2 # Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 AUTOMAKE_OPTIONS = foreign
19 AM_CXXFLAGS = $(CROSS_CXXFLAGS) -DREGISTER_MEDIA_HANDLERS
20 AM_LDFLAGS = $(CROSS_LDFLAGS)
22 # If we are using an installable libltdl, then it needs to be built
23 # before libgnash, as libgnash depends on it for extensions.
24 pkglib_LTLIBRARIES = libgnashmedia.la
26 libgnashmedia_la_SOURCES = \
29 AudioDecoderSimple.cpp \
30 AudioDecoderSimple.h \
44 libgnashmedia_la_SOURCES += \
46 gst/AudioDecoderGst.cpp \
47 gst/AudioDecoderGst.h \
48 gst/AudioInputGst.cpp \
50 gst/GlibDeprecated.h \
53 gst/MediaHandlerGst.cpp \
54 gst/MediaHandlerGst.h \
55 gst/MediaParserGst.cpp \
56 gst/MediaParserGst.h \
57 gst/swfdec_codec_gst.c \
58 gst/swfdec_codec_gst.h \
59 gst/VideoConverterGst.cpp \
60 gst/VideoConverterGst.h \
61 gst/VideoDecoderGst.cpp \
62 gst/VideoDecoderGst.h \
63 gst/VideoInputGst.cpp \
69 libgnashmedia_la_SOURCES += \
71 ffmpeg/AudioDecoderFfmpeg.cpp \
72 ffmpeg/AudioDecoderFfmpeg.h \
73 ffmpeg/AudioInputFfmpeg.cpp \
74 ffmpeg/AudioInputFfmpeg.h \
75 ffmpeg/AudioResamplerFfmpeg.cpp \
76 ffmpeg/AudioResamplerFfmpeg.h \
77 ffmpeg/ffmpegHeaders.h \
78 ffmpeg/MediaHandlerFfmpeg.cpp \
79 ffmpeg/MediaHandlerFfmpeg.h \
80 ffmpeg/MediaParserFfmpeg.cpp \
81 ffmpeg/MediaParserFfmpeg.h \
82 ffmpeg/VideoConverterFfmpeg.cpp \
83 ffmpeg/VideoConverterFfmpeg.h \
84 ffmpeg/VideoDecoderFfmpeg.cpp \
85 ffmpeg/VideoDecoderFfmpeg.h \
86 ffmpeg/VideoInputFfmpeg.cpp \
87 ffmpeg/VideoInputFfmpeg.h \
93 libgnashmedia_la_SOURCES += \
94 ffmpeg/VideoDecoderFfmpegVaapi.cpp \
95 ffmpeg/VideoDecoderFfmpegVaapi.h \
101 libgnashmedia_la_SOURCES += \
103 haiku/AudioDecoderHaiku.cpp \
104 haiku/AudioDecoderHaiku.h \
105 haiku/AudioInputHaiku.cpp \
106 haiku/AudioInputHaiku.h \
107 haiku/MediaHandlerHaiku.cpp \
108 haiku/MediaHandlerHaiku.h \
109 haiku/MediaParserHaiku.cpp \
110 haiku/MediaParserHaiku.h \
111 haiku/VideoConverterHaiku.cpp \
112 haiku/VideoConverterHaiku.h \
113 haiku/VideoDecoderHaiku.cpp \
114 haiku/VideoDecoderHaiku.h \
115 haiku/VideoInputHaiku.cpp \
116 haiku/VideoInputHaiku.h \
121 libgnashmedia_la_SOURCES += \
122 AudioDecoderSpeex.cpp \
123 AudioDecoderSpeex.h \
127 libgnashmedia_la_CPPFLAGS = \
128 -I$(top_srcdir)/libbase \
129 -I$(top_srcdir)/libcore \
130 -I$(top_srcdir)/libcore/swf \
131 -I$(top_srcdir)/libcore/parser \
132 -I$(top_srcdir)/libcore/vm \
138 libgnashmedia_la_CPPFLAGS += \
139 $(GSTREAMER_CFLAGS) \
141 $(GSTREAMER_PBUTILS_CFLAGS) \
146 libgnashmedia_la_CPPFLAGS += \
152 libgnashmedia_la_CPPFLAGS += \
159 libgnashmedia_la_CPPFLAGS += \
160 -I$(top_srcdir)/libdevice/vaapi \
164 libgnashmedia_la_LIBADD = \
165 $(top_builddir)/libbase/libgnashbase.la \
170 libgnashmedia_la_LIBADD += \
171 $(GSTREAMER_APP_LIBS) \
172 $(GSTREAMER_PBUTILS_LIBS) \
173 $(GSTREAMER_PLUGINS_BASE_LIBS) \
179 libgnashmedia_la_LIBADD += \
185 libgnashmedia_la_LIBADD += \
191 libgnashmedia_la_LIBADD += \
198 libgnashmedia_la_LIBADD += \
199 $(top_builddir)/libdevice/libgnashvaapi.la \
203 libgnashmedia_la_LDFLAGS = -release $(VERSION)
206 libgnashmedia_la_LDFLAGS += -no-undefined
207 libgnashmedia_la_LIBADD += -lintl
211 AM_CXXFLAGS += $(PCH_FLAGS)
214 # Remove libtool .la files
216 $(RM) $(DESTDIR)$(libdir)/gnash/libgnashmedia.la
219 $(RM) $(DESTDIR)$(libdir)/gnash/libgnashmedia-*.so