2 # Copyright (C) 2007, 2008, 2009, 2010, 2011 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
21 # this is where Gnash plugins get installed
22 pluginsdir = $(prefix)/lib/gnash/plugins
24 AM_CXXFLAGS = -DREGISTER_MEDIA_HANDLERS
26 # If we are using an installable libltdl, then it needs to be built
27 # before libgnash, as libgnash depends on it for extensions.
28 pkglib_LTLIBRARIES = libgnashmedia.la
30 libgnashmedia_la_CPPFLAGS = \
31 -I$(top_srcdir)/libbase \
44 libgnashmedia_la_CPPFLAGS += $(ANDROID_NDK)/usr/include
48 # These headers get installed
49 # include_HEADERS = log.h err.h
51 libgnashmedia_la_LIBADD = \
52 $(top_builddir)/libbase/libgnashbase.la \
64 libgnashmedia_la_SOURCES = \
66 AudioDecoderSimple.cpp \
79 AudioDecoderSimple.h \
87 libgnashmedia_la_SOURCES += \
88 gst/MediaHandlerGst.cpp \
89 gst/VideoDecoderGst.cpp \
90 gst/AudioDecoderGst.cpp \
91 gst/MediaParserGst.cpp \
92 gst/VideoConverterGst.cpp \
94 gst/swfdec_codec_gst.c \
95 gst/VideoInputGst.cpp \
96 gst/AudioInputGst.cpp \
100 gst/MediaHandlerGst.h \
101 gst/AudioDecoderGst.h \
102 gst/VideoDecoderGst.h \
103 gst/MediaParserGst.h \
104 gst/VideoConverterGst.h \
106 gst/swfdec_codec_gst.h \
107 gst/gnash_gst_version.h \
108 gst/VideoInputGst.h \
109 gst/AudioInputGst.h \
112 libgnashmedia_la_CPPFLAGS += \
113 -I$(top_srcdir)/libmedia/gst \
114 $(GSTREAMER_CFLAGS) \
116 $(GSTREAMER_PBUTILS_CFLAGS) \
119 libgnashmedia_la_LIBADD += \
121 $(GSTREAMER_APP_LIBS) \
122 $(GSTREAMER_PBUTILS_LIBS) \
123 $(GSTREAMER_PLUGINS_BASE_LIBS) \
130 libgnashmedia_la_SOURCES += \
131 ffmpeg/MediaHandlerFfmpeg.cpp \
132 ffmpeg/MediaParserFfmpeg.cpp \
133 ffmpeg/AudioDecoderFfmpeg.cpp \
134 ffmpeg/VideoDecoderFfmpeg.cpp \
135 ffmpeg/AudioResamplerFfmpeg.cpp \
136 ffmpeg/VideoConverterFfmpeg.cpp \
137 ffmpeg/VideoInputFfmpeg.cpp \
138 ffmpeg/AudioInputFfmpeg.cpp \
142 ffmpeg/MediaHandlerFfmpeg.h \
143 ffmpeg/MediaParserFfmpeg.h \
144 ffmpeg/AudioDecoderFfmpeg.h \
145 ffmpeg/VideoDecoderFfmpeg.h \
146 ffmpeg/AudioResamplerFfmpeg.h \
147 ffmpeg/ffmpegHeaders.h \
148 ffmpeg/VideoConverterFfmpeg.h \
149 ffmpeg/VideoInputFfmpeg.h \
150 ffmpeg/AudioInputFfmpeg.h \
153 libgnashmedia_la_LIBADD += \
157 libgnashmedia_la_CPPFLAGS += \
162 libgnashmedia_la_SOURCES += \
163 ffmpeg/VideoDecoderFfmpegVaapi.cpp \
167 ffmpeg/VideoDecoderFfmpegVaapi.h \
173 libgnashmedia_la_SOURCES += \
174 haiku/MediaHandlerHaiku.cpp \
175 haiku/MediaParserHaiku.cpp \
176 haiku/AudioDecoderHaiku.cpp \
177 haiku/VideoDecoderHaiku.cpp \
178 haiku/VideoConverterHaiku.cpp \
179 haiku/VideoInputHaiku.cpp \
180 haiku/AudioInputHaiku.cpp \
184 haiku/MediaHandlerHaiku.h \
185 haiku/MediaParserHaiku.h \
186 haiku/AudioDecoderHaiku.h \
187 haiku/VideoDecoderHaiku.h \
188 haiku/VideoConverterHaiku.h \
189 haiku/VideoInputHaiku.h \
190 haiku/AudioInputHaiku.h \
193 libgnashmedia_la_LIBADD += \
197 libgnashmedia_la_CPPFLAGS += \
202 libgnashmedia_la_LIBADD += \
206 libgnashmedia_la_CPPFLAGS += \
210 libgnashmedia_la_SOURCES += AudioDecoderSpeex.cpp
211 noinst_HEADERS += AudioDecoderSpeex.h
214 libgnashmedia_la_LDFLAGS = -release $(VERSION)
216 libgnashmedia_la_CPPFLAGS += \
217 -I$(top_srcdir)/libvaapi \
221 libgnashmedia_la_LIBADD += \
222 $(top_builddir)/libvaapi/libgnashvaapi.la \
227 libgnashmedia_la_LDFLAGS += -no-undefined
228 libgnashmedia_la_LIBADD += \
233 AM_CXXFLAGS += $(PCH_FLAGS)
236 # Rebuild with GCC 4.x Mudflap support
238 @echo "Rebuilding with GCC Mudflap support"
239 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
244 # Remove libtool .la files
246 $(RM) $(DESTDIR)$(libdir)/gnash/libgnashmedia.la
249 $(RM) $(DESTDIR)$(libdir)/gnash/libgnashmedia-*.so