Update with current status
[gnash.git] / libmedia / Makefile.am
blobba7e940792b43a24aafa4a2d3b316ae1b5794217
1
2 #   Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
3
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.
8
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 = \
27         Id3Info.h \
28         AudioDecoder.h \
29         AudioDecoderSimple.cpp \
30         AudioDecoderSimple.h \
31         AudioResampler.cpp \
32         AudioResampler.h \
33         FLVParser.cpp \
34         FLVParser.h \
35         MediaHandler.cpp \
36         MediaHandler.h \
37         MediaParser.cpp \
38         MediaParser.h \
39         SoundInfo.h \
40         VideoConverter.h \
41         $(NULL)
43 if USE_GST_ENGINE
44 libgnashmedia_la_SOURCES += \
45         AudioInput.h \
46         gst/AudioDecoderGst.cpp \
47         gst/AudioDecoderGst.h \
48         gst/AudioInputGst.cpp \
49         gst/AudioInputGst.h \
50         gst/GlibDeprecated.h \
51         gst/GstUtil.cpp \
52         gst/GstUtil.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 \
64         gst/VideoInputGst.h \
65         $(NULL)
66 endif
68 if USE_FFMPEG_ENGINE
69 libgnashmedia_la_SOURCES += \
70         AudioInput.h \
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 \
88         VideoDecoder.h \
89         VideoInput.h \
90         $(NULL)
92 if HAVE_VAAPI
93 libgnashmedia_la_SOURCES += \
94         ffmpeg/VideoDecoderFfmpegVaapi.cpp \
95         ffmpeg/VideoDecoderFfmpegVaapi.h \
96         $(NULL)
97 endif
98 endif
100 if USE_HAIKU_ENGINE
101 libgnashmedia_la_SOURCES += \
102         haiku/adipe.h \
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 \
117         $(NULL)
118 endif
120 if HAVE_SPEEX
121 libgnashmedia_la_SOURCES += \
122         AudioDecoderSpeex.cpp \
123         AudioDecoderSpeex.h \
124         $(NULL)
125 endif
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      \
133         $(PTHREAD_CFLAGS) \
134         $(BOOST_CFLAGS) \
135         $(NULL)
137 if USE_GST_ENGINE
138 libgnashmedia_la_CPPFLAGS += \
139         $(GSTREAMER_CFLAGS) \
140         $(GSTAPP_CFLAGS) \
141         $(GSTREAMER_PBUTILS_CFLAGS) \
142         $(NULL)
143 endif
145 if USE_FFMPEG_ENGINE
146 libgnashmedia_la_CPPFLAGS += \
147         $(FFMPEG_CFLAGS) \
148         $(NULL)
149 endif
151 if HAVE_SPEEX
152 libgnashmedia_la_CPPFLAGS += \
153         $(SPEEX_CFLAGS) \
154         $(SPEEXDSP_CFLAGS) \
155         $(NULL)
156 endif
158 if HAVE_VAAPI
159 libgnashmedia_la_CPPFLAGS += \
160         -I$(top_srcdir)/libdevice/vaapi \
161         $(NULL)
162 endif
164 libgnashmedia_la_LIBADD = \
165         $(top_builddir)/libbase/libgnashbase.la \
166         $(BOOST_LIBS) \
167         $(NULL)
169 if USE_GST_ENGINE
170 libgnashmedia_la_LIBADD += \
171         $(GSTREAMER_APP_LIBS) \
172         $(GSTREAMER_PBUTILS_LIBS) \
173         $(GSTREAMER_PLUGINS_BASE_LIBS) \
174         $(GSTREAMER_LIBS) \
175         $(NULL)
176 endif
178 if USE_FFMPEG_ENGINE
179 libgnashmedia_la_LIBADD += \
180         $(FFMPEG_LIBS) \
181         $(NULL)
182 endif
184 if USE_HAIKU_ENGINE
185 libgnashmedia_la_LIBADD += \
186         -lmedia \
187         $(NULL)
188 endif
190 if HAVE_SPEEX
191 libgnashmedia_la_LIBADD += \
192         $(SPEEX_LIBS) \
193         $(SPEEXDSP_LIBS) \
194         $(NULL)
195 endif
197 if HAVE_VAAPI
198 libgnashmedia_la_LIBADD += \
199         $(top_builddir)/libdevice/libgnashvaapi.la \
200         $(NULL)
201 endif
203 libgnashmedia_la_LDFLAGS = -release $(VERSION)
205 if WIN32
206 libgnashmedia_la_LDFLAGS += -no-undefined
207 libgnashmedia_la_LIBADD += -lintl
208 endif
210 if ENABLE_PCH
211 AM_CXXFLAGS += $(PCH_FLAGS)
212 endif
214 # Remove libtool .la files
215 install-exec-hook:
216         $(RM) $(DESTDIR)$(libdir)/gnash/libgnashmedia.la
218 uninstall-local:
219         $(RM) $(DESTDIR)$(libdir)/gnash/libgnashmedia-*.so