2 # Copyright (C) 2007, 2008, 2009, 2010 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
27 #LIBLTDLHEAD = $(top_srcdir)/libltdl/ltdl.h
30 # If we are using an installable libltdl, then it needs to be built
31 # before libgnash, as libgnash depends on it for extensions.
32 pkglib_LTLIBRARIES = libgnashmedia.la
34 libgnashmedia_la_CPPFLAGS = \
35 -I$(top_srcdir)/libbase \
48 libgnashmedia_la_CPPFLAGS += $(ANDROID_NDK)/usr/include
52 # These headers get installed
53 # include_HEADERS = log.h err.h
55 libgnashmedia_la_LIBADD = \
56 $(top_builddir)/libbase/libgnashbase.la \
68 libgnashmedia_la_SOURCES = \
70 AudioDecoderSimple.cpp \
83 AudioDecoderSimple.h \
91 libgnashmedia_la_SOURCES += \
92 gst/MediaHandlerGst.cpp \
93 gst/VideoDecoderGst.cpp \
94 gst/AudioDecoderGst.cpp \
95 gst/MediaParserGst.cpp \
96 gst/VideoConverterGst.cpp \
98 gst/swfdec_codec_gst.c \
99 gst/VideoInputGst.cpp \
100 gst/AudioInputGst.cpp \
104 gst/MediaHandlerGst.h \
105 gst/AudioDecoderGst.h \
106 gst/VideoDecoderGst.h \
107 gst/MediaParserGst.h \
108 gst/VideoConverterGst.h \
110 gst/swfdec_codec_gst.h \
111 gst/gnash_gst_version.h \
112 gst/VideoInputGst.h \
113 gst/AudioInputGst.h \
116 libgnashmedia_la_CPPFLAGS += \
117 -I$(top_srcdir)/libmedia/gst \
118 $(GSTREAMER_CFLAGS) \
120 $(GSTREAMER_PBUTILS_CFLAGS) \
123 libgnashmedia_la_LIBADD += \
125 $(GSTREAMER_APP_LIBS) \
126 $(GSTREAMER_PBUTILS_LIBS) \
127 $(GSTREAMER_PLUGINS_BASE_LIBS) \
134 libgnashmedia_la_SOURCES += \
135 ffmpeg/MediaHandlerFfmpeg.cpp \
136 ffmpeg/MediaParserFfmpeg.cpp \
137 ffmpeg/AudioDecoderFfmpeg.cpp \
138 ffmpeg/VideoDecoderFfmpeg.cpp \
139 ffmpeg/AudioResamplerFfmpeg.cpp \
140 ffmpeg/VideoConverterFfmpeg.cpp \
141 ffmpeg/VideoInputFfmpeg.cpp \
142 ffmpeg/AudioInputFfmpeg.cpp \
146 ffmpeg/MediaHandlerFfmpeg.h \
147 ffmpeg/MediaParserFfmpeg.h \
148 ffmpeg/AudioDecoderFfmpeg.h \
149 ffmpeg/VideoDecoderFfmpeg.h \
150 ffmpeg/AudioResamplerFfmpeg.h \
151 ffmpeg/ffmpegHeaders.h \
152 ffmpeg/VideoConverterFfmpeg.h \
153 ffmpeg/VideoInputFfmpeg.h \
154 ffmpeg/AudioInputFfmpeg.h \
157 libgnashmedia_la_LIBADD += \
161 libgnashmedia_la_CPPFLAGS += \
166 libgnashmedia_la_SOURCES += \
167 ffmpeg/VideoDecoderFfmpegVaapi.cpp \
171 ffmpeg/VideoDecoderFfmpegVaapi.h \
177 libgnashmedia_la_SOURCES += \
178 haiku/MediaHandlerHaiku.cpp \
179 haiku/MediaParserHaiku.cpp \
180 haiku/AudioDecoderHaiku.cpp \
181 haiku/VideoDecoderHaiku.cpp \
182 haiku/VideoConverterHaiku.cpp \
183 haiku/VideoInputHaiku.cpp \
184 haiku/AudioInputHaiku.cpp \
188 haiku/MediaHandlerHaiku.h \
189 haiku/MediaParserHaiku.h \
190 haiku/AudioDecoderHaiku.h \
191 haiku/VideoDecoderHaiku.h \
192 haiku/VideoConverterHaiku.h \
193 haiku/VideoInputHaiku.h \
194 haiku/AudioInputHaiku.h \
197 libgnashmedia_la_LIBADD += \
201 libgnashmedia_la_CPPFLAGS += \
206 libgnashmedia_la_LIBADD += \
210 libgnashmedia_la_CPPFLAGS += \
214 libgnashmedia_la_SOURCES += AudioDecoderSpeex.cpp
215 noinst_HEADERS += AudioDecoderSpeex.h
218 libgnashmedia_la_LDFLAGS = -release $(VERSION)
220 libgnashmedia_la_CPPFLAGS += \
221 -I$(top_srcdir)/libvaapi \
225 libgnashmedia_la_LIBADD += \
226 $(top_builddir)/libvaapi/libgnashvaapi.la \
231 libgnashmedia_la_LDFLAGS += -no-undefined
232 libgnashmedia_la_LIBADD += \
237 AM_CXXFLAGS += $(PCH_FLAGS)
240 # Rebuild with GCC 4.x Mudflap support
242 @echo "Rebuilding with GCC Mudflap support"
243 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"