add documentation for the revno,h target
[gnash.git] / libmedia / Makefile.am
blob09639d06ef44b9c1776ad759e42ef78e34e3e600
1
2 #   Copyright (C) 2007, 2008, 2009, 2010 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 EXTRA_DIST = 
21 # this is where Gnash plugins get installed
22 pluginsdir = $(prefix)/lib/gnash/plugins
24 AM_CXXFLAGS = -DREGISTER_MEDIA_HANDLERS
26 #if INSTALL_LTDL
27 #LIBLTDLHEAD =  $(top_srcdir)/libltdl/ltdl.h
28 #endif
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 \
36         $(PTHREAD_CFLAGS) \
37         $(OPENGL_CFLAGS) \
38         $(PNG_CFLAGS) \
39         $(GLIB_CFLAGS) \
40         $(CURL_CFLAGS) \
41         $(Z_CFLAGS) \
42         $(JPEG_CFLAGS) \
43         $(GIF_CFLAGS) \
44         $(BOOST_CFLAGS) \
45         $(NULL)
47 if ANDROID
48   libgnashmedia_la_CPPFLAGS += $(ANDROID_NDK)/usr/include
49 endif
52 # These headers get installed
53 # include_HEADERS = log.h err.h
55 libgnashmedia_la_LIBADD = \
56         $(top_builddir)/libbase/libgnashbase.la \
57         $(FFMPEG_LIBS) \
58         $(PNG_LIBS) \
59         $(JPEG_LIBS) \
60         $(GIF_LIBS) \
61         $(Z_LIBS) \
62         $(CURL_LIBS) \
63         $(OPENGL_LIBS) \
64         $(BOOST_LIBS) \
65         $(PTHREAD_LIBS) \
66         $(NULL)
68 libgnashmedia_la_SOURCES = \
69         MediaHandler.cpp \
70         AudioDecoderSimple.cpp \
71         MediaParser.cpp \
72         FLVParser.cpp \
73         AudioResampler.cpp \
74         $(NULL)
76 noinst_HEADERS = \
77         AudioDecoder.h \
78         VideoDecoder.h \
79         VideoConverter.h \
80         MediaParser.h \
81         MediaHandler.h \
82         FLVParser.h \
83         AudioDecoderSimple.h \
84         SoundInfo.h \
85         AudioResampler.h \
86         AudioInput.h \
87         VideoInput.h \
88         $(NULL)
90 if USE_GST_ENGINE
91    libgnashmedia_la_SOURCES += \
92         gst/MediaHandlerGst.cpp \
93         gst/VideoDecoderGst.cpp \
94         gst/AudioDecoderGst.cpp \
95         gst/MediaParserGst.cpp \
96         gst/VideoConverterGst.cpp \
97         gst/GstUtil.cpp \
98         gst/swfdec_codec_gst.c \
99         gst/VideoInputGst.cpp \
100         gst/AudioInputGst.cpp \
101         $(NULL)
103    noinst_HEADERS += \
104         gst/MediaHandlerGst.h \
105         gst/AudioDecoderGst.h \
106         gst/VideoDecoderGst.h \
107         gst/MediaParserGst.h \
108         gst/VideoConverterGst.h \
109         gst/GstUtil.h \
110         gst/swfdec_codec_gst.h \
111         gst/gnash_gst_version.h \
112         gst/VideoInputGst.h \
113         gst/AudioInputGst.h \
114         $(NULL)
116    libgnashmedia_la_CPPFLAGS += \
117         -I$(top_srcdir)/libmedia/gst \
118         $(GSTREAMER_CFLAGS) \
119         $(GSTAPP_CFLAGS) \
120         $(GSTREAMER_PBUTILS_CFLAGS) \
121         $(NULL)
123    libgnashmedia_la_LIBADD += \
124         -lgstbase-0.10 \
125         $(GSTREAMER_APP_LIBS) \
126         $(GSTREAMER_PBUTILS_LIBS) \
127         $(GSTREAMER_PLUGINS_BASE_LIBS) \
128         $(GSTREAMER_LIBS) \
129         $(NULL)
131 endif
133 if USE_FFMPEG_ENGINE
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 \
143         $(NULL)
145    noinst_HEADERS += \
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 \
155         $(NULL)
157    libgnashmedia_la_LIBADD += \
158         $(FFMPEG_LIBS) \
159         $(NULL)
161    libgnashmedia_la_CPPFLAGS += \
162         $(FFMPEG_CFLAGS) \
163         $(NULL)
165 if HAVE_VAAPI
166    libgnashmedia_la_SOURCES += \
167                 ffmpeg/VideoDecoderFfmpegVaapi.cpp \
168                 $(NULL)
170    noinst_HEADERS += \
171                 ffmpeg/VideoDecoderFfmpegVaapi.h \
172                 $(NULL)
173 endif
174 endif
176 if USE_HAIKU_ENGINE
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 \
185         $(NULL)
187    noinst_HEADERS += \
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 \
195         $(NULL)
197    libgnashmedia_la_LIBADD += \
198         -lmedia \
199         $(NULL)
201    libgnashmedia_la_CPPFLAGS += \
202         $(NULL)
203 endif
205 if HAVE_SPEEX
206    libgnashmedia_la_LIBADD += \
207         $(SPEEX_LIBS) \
208         $(SPEEXDSP_LIBS) \
209         $(NULL)
210    libgnashmedia_la_CPPFLAGS += \
211         $(SPEEX_CFLAGS) \
212         $(SPEEXDSP_CFLAGS) \
213         $(NULL)
214    libgnashmedia_la_SOURCES += AudioDecoderSpeex.cpp
215    noinst_HEADERS += AudioDecoderSpeex.h
216 endif
218 libgnashmedia_la_LDFLAGS = -release $(VERSION)
220    libgnashmedia_la_CPPFLAGS += \
221         -I$(top_srcdir)/libvaapi \
222         $(NULL)
224 if HAVE_VAAPI
225    libgnashmedia_la_LIBADD += \
226         $(top_builddir)/libvaapi/libgnashvaapi.la \
227         $(NULL)
228 endif
230 if WIN32
231   libgnashmedia_la_LDFLAGS += -no-undefined
232   libgnashmedia_la_LIBADD += \
233         -lintl
234 endif
236 if ENABLE_PCH
237 AM_CXXFLAGS += $(PCH_FLAGS)
238 endif
240 # Rebuild with GCC 4.x Mudflap support
241 mudflap:
242         @echo "Rebuilding with GCC Mudflap support"
243         $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
245 clean-hook:
246         -rm -f core.* *.obj