drop libxv, add lsb-release
[gnash.git] / libcore / Makefile.am
blobdc8878800495d692642c24169fbd4006683dace4
1 ## Process this file with automake to generate Makefile.in
2
3 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 AUTOMAKE_OPTIONS = 
20 SUBDIRS = parser vm
22 if ENABLE_PCH
23 AM_CXXFLAGS = $(PCH_FLAGS)
24 endif
26 # noinst_LTLIBRARIES = libserver.la 
27 pkglib_LTLIBRARIES = libgnashcore.la
28 # noinst_SCRIPTS = gen-files.sh
30 # TODO: use a conditional to optionally link ?
31 FREETYPE_SOURCES = FreetypeGlyphsProvider.h FreetypeGlyphsProvider.cpp
33 # Only enable if we're configured with --enable-mp3
34 AM_CPPFLAGS = \
35         -I$(top_srcdir)/librender \
36         -I$(top_srcdir)/libcore/swf \
37         -I$(top_srcdir)/libcore/abc \
38         -I$(top_srcdir)/libcore/asobj \
39         -I$(top_srcdir)/libcore/asobj/flash \
40         -I$(top_srcdir)/libcore/parser \
41         -I$(top_srcdir)/libltdl \
42         -I$(top_srcdir)/libcore/vm \
43         -I$(top_srcdir)/libbase \
44         -I$(top_srcdir)/libmedia \
45         -I$(top_srcdir)/libsound \
46         $(PTHREAD_CFLAGS) \
47         $(GLIB_CFLAGS) \
48         $(BOOST_CFLAGS) \
49         $(FREETYPE2_CFLAGS) \
50         $(FONTCONFIG_CFLAGS) \
51         $(NULL)
53 libgnashcore_la_SOURCES = \
54         BitmapMovie.cpp \
55         Property.cpp \
56         PropertyList.cpp \
57         URLAccessManager.cpp \
58         SystemClock.cpp \
59         ClassHierarchy.cpp \
60         as_environment.cpp \
61         as_function.cpp \
62         event_id.cpp \
63         Relay.cpp \
64         as_object.cpp \
65         AMFConverter.cpp \
66         as_value.cpp \
67         DisplayObjectContainer.cpp \
68         DisplayObject.cpp \
69         CharacterProxy.cpp \
70         SWFCxForm.cpp \
71         Geometry.cpp \
72         DynamicShape.cpp        \
73         Bitmap.cpp \
74         Shape.cpp \
75         MorphShape.cpp \
76         StaticText.cpp \
77         TextField.cpp \
78         parser/filter_factory.cpp \
79         InteractiveObject.cpp \
80         ExternalInterface.cpp \
81         SWFMatrix.cpp \
82         SWFMovie.cpp \
83         movie_root.cpp \
84         namedStrings.cpp \
85         SWFRect.cpp \
86         MovieClip.cpp \
87         swf/SWF.cpp \
88         swf/TagLoadersTable.cpp \
89         swf/DefaultTagLoaders.cpp \
90         swf/DefineVideoStreamTag.cpp \
91         swf/DefineTextTag.cpp \
92         swf/DefineButtonSoundTag.cpp \
93         swf/DefineButtonCxformTag.cpp \
94         swf/DefineButtonTag.cpp \
95         swf/DefineFontTag.cpp \
96         swf/VideoFrameTag.cpp \
97         swf/DefinitionTag.cpp \
98         swf/ShapeRecord.cpp \
99         swf/SoundInfoRecord.cpp \
100         swf/TextRecord.cpp \
101         swf/tag_loaders.cpp \
102         swf/DefineBitsTag.cpp \
103         swf/DefineFontAlignZonesTag.cpp \
104         swf/DefineShapeTag.cpp \
105         swf/DefineScalingGridTag.cpp \
106         swf/DefineEditTextTag.cpp \
107         swf/DefineMorphShapeTag.cpp \
108         swf/CSMTextSettingsTag.cpp \
109         swf/PlaceObject2Tag.cpp \
110         swf/RemoveObjectTag.cpp \
111         swf/StartSoundTag.cpp \
112         swf/SetTabIndexTag.cpp \
113         swf/StreamSoundBlockTag.cpp \
114         Function.cpp \
115         Function2.cpp \
116         Video.cpp \
117         StreamProvider.cpp \
118         Button.cpp \
119         DisplayList.cpp \
120         FillStyle.cpp \
121         Font.cpp \
122         fontlib.cpp \
123         LoadVariablesThread.cpp \
124         SWFStream.cpp \
125         LineStyle.cpp \
126         Timers.cpp \
127         RGBA.cpp        \
128         MovieFactory.cpp \
129         MovieLoader.cpp \
130         $(FREETYPE_SOURCES) \
131         $(NULL)
133 if ENABLE_AVM2
134 libgnashcore_la_SOURCES += \
135         abc/CodeStream.cpp \
136         abc/Class.cpp \
137         abc/Namespace.cpp \
138         abc/as_class.cpp \
139         abc/abc_function.cpp \
140         abc/Method.cpp \
141         abc/AbcBlock.cpp \
142         $(NULL)
143 endif
145 noinst_HEADERS = \
146         URLAccessManager.h \
147         VirtualClock.h \
148         SystemClock.h \
149         ClassHierarchy.h \
150         ManualClock.h \
151         Bitmap.h \
152         BitmapMovie.h \
153         Transform.h \
154         Button.h \
155         debugger.h \
156         TextField.h \
157         Filters.h \
158         parser/filter_factory.h \
159         Font.h \
160         fontlib.h \
161         Shape.h \
162         MorphShape.h \
163         StaticText.h \
164         LoadVariablesThread.h \
165         SWFMovie.h \
166         SWFStream.h \
167         MovieLibrary.h \
168         ExternalInterface.h \
169         swf/tag_loaders.h \
170         swf/DefineBitsTag.h \
171         swf/DefaultTagLoaders.h \
172         swf/ImportAssetsTag.h \
173         swf/ExportAssetsTag.h \
174         swf/VideoFrameTag.h \
175         swf/DefineVideoStreamTag.h \
176         swf/DefineFontAlignZonesTag.h \
177         swf/SymbolClassTag.h \
178         swf/DefineSceneAndFrameLabelDataTag.h \
179         swf/CSMTextSettingsTag.h \
180         swf/DefineShapeTag.h \
181         swf/DefineScalingGridTag.h \
182         swf/DefineMorphShapeTag.h \
183         swf/SoundInfoRecord.h \
184         swf/TextRecord.h \
185         swf/DefineButtonSoundTag.h \
186         swf/DefineTextTag.h \
187         swf/DefineButtonTag.h \
188         swf/DefineEditTextTag.h \
189         swf/DefineButtonCxformTag.h \
190         swf/PlaceObject2Tag.h \
191         swf/DefineFontTag.h \
192         swf/DefineFontNameTag.h \
193         swf/RemoveObjectTag.h \
194         swf/DisplayListTag.h \
195         swf/DoActionTag.h \
196         swf/DoInitActionTag.h \
197         swf/SetBackgroundColorTag.h \
198         swf/SetTabIndexTag.h \
199         swf/StartSoundTag.h \
200         swf/StreamSoundBlockTag.h \
201         swf/ScriptLimitsTag.h \
202         swf_event.h \
203         Function.h \
204         Function2.h \
205         Timers.h \
206         Video.h \
207         MovieLoader.h \
208         $(NULL)
210 if ENABLE_AVM2
211 noinst_HEADERS += \
212         abc/CodeStream.h \
213         abc/Class.h \
214         abc/Namespace.h \
215         swf/DoABCTag.h \
216         abc/as_class.h \
217         abc/abc_function.h \
218         abc/Method.h \
219         abc/asException.h \
220         abc/BoundValues.h \
221         abc/AbcBlock.h \
222         abc/MultiName.h \
223         $(NULL)
224 endif
226 EXTENSIONS_API = \
227         Relay.h \
228         as_object.h \
229         ObjectURI.h \
230         Property.h \
231         PropertyList.h \
232         AMFConverter.h \
233         as_value.h \
234         PropFlags.h     \
235         CharacterProxy.h \
236         builtin_function.h \
237         UserFunction.h \
238         NativeFunction.h \
239         as_function.h \
240         namedStrings.h \
241         as_environment.h \
242         movie_root.h \
243         MouseButtonState.h \
244         DragState.h \
245         InteractiveObject.h \
246         SWFRect.h \
247         GnashKey.h \
248         Movie.h \
249         RunResources.h \
250         DisplayObjectContainer.h \
251         DisplayObject.h \
252         MovieClip.h \
253         StreamProvider.h \
254         event_id.h \
255         SWFMatrix.h \
256         SWFCxForm.h \
257         DisplayList.h   \
258         DynamicShape.h  \
259         swf/ControlTag.h \
260         swf/DefinitionTag.h \
261         swf/ShapeRecord.h \
262         swf/TagLoadersTable.h \
263         swf/SWF.h \
264         MovieFactory.h \
265         FillStyle.h \
266         LineStyle.h \
267         RGBA.h  \
268         Geometry.h      \
269         Video.h \
270         $(NULL)
272 # These makefile fragments build the ActionScript library for
273 # Gnash, and supports both AS2 as well as AS3, so we always
274 # want to build.
275 include $(srcdir)/asobj/flash.am
276 libgnashcore_la_SOURCES += $(libgnashasobjs_la_SOURCES)
278 instdir = $(includedir)/gnash/asobj
279 inst_HEADERS += $(EXTENSIONS_API)
281 libgnashcore_la_LIBADD = \
282         $(top_builddir)/libcore/parser/libgnashparser.la \
283         $(top_builddir)/libcore/vm/libgnashvm.la \
284         $(top_builddir)/libmedia/libgnashmedia.la \
285         $(top_builddir)/libsound/libgnashsound.la \
286         $(top_builddir)/libbase/libgnashbase.la \
287         $(BOOST_LIBS) \
288         $(PTHREAD_LIBS) \
289         $(FREETYPE2_LIBS) \
290         $(FONTCONFIG_LIBS) \
291         $(NULL)
293 if USE_GST_ENGINE
294 AM_CPPFLAGS += $(GSTREAMER_CFLAGS) \
295                 -I$(top_srcdir)/libmedia/gst
296 libgnashcore_la_LIBADD += $(GSTREAMER_LIBS)
297 endif
299 if USE_FFMPEG_ENGINE
300 AM_CPPFLAGS += $(FFMPEG_CFLAGS) \
301                 -I$(top_srcdir)/libmedia/ffmpeg
302 endif
304 # Enable building the Flash debugger
305 if DEBUGGER
306 libgnashcore_la_SOURCES += debugger.cpp
307 endif
309 #libserver_la_LIBDADD =  #@DL_LIB@
310 libgnashcore_la_LDFLAGS = -release $(VERSION) -export-dynamic
312 if HAIKU
313   libgnashcore_la_LIBADD += $(HAIKU_LIBS)
314 endif
316 # Rebuild with GCC 4.x Mudflap support
317 mudflap:
318         @echo "Rebuilding with GCC Mudflap support"
319         $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
321 clean-hook:
322         -rm -f core.*