1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 # build gtk-gnash, qt4-gnash, sdl-gnash, fltk-gnash, aqua-gnash, fb-gnash,
21 # haiku-gnash and dump-gnash
24 AUTOMAKE_OPTIONS = -Wno-portability
28 # If python support is enabled, built that too
37 localedir = $(datadir)/locale
39 # this is where Gnash plugins get installed
40 pluginsdir = $(libdir)/gnash/plugins
42 # noinst_LTLIBRARIES = libgnashgui.la
45 DIST_SUBDIRS = pythonmod
46 EXTRA_DIST = gnash.in \
54 # top_builddir and top_srcdir are for revno.h; its location depends on
55 # whether we're building from a snapshot or a checkout.
59 -I$(top_srcdir)/libnet \
60 -I$(top_srcdir)/libcore \
61 -I$(top_srcdir)/libcore/swf \
62 -I$(top_srcdir)/libcore/parser \
63 -I$(top_srcdir)/libcore/vm \
64 -I$(top_srcdir)/libcore/asobj \
65 -I$(top_srcdir)/libltdl \
66 -I$(top_srcdir)/libbase \
67 -I$(top_srcdir)/libdevice \
68 -I$(top_srcdir)/librender \
69 -I$(top_srcdir)/librender/agg \
70 -I$(top_srcdir)/librender/cairo \
71 -I$(top_srcdir)/librender/opengl \
72 -I$(top_srcdir)/libmedia \
73 -I$(top_srcdir)/libsound \
74 -DLOCALEDIR=\"$(localedir)\" \
75 -DPLUGINSDIR=\"$(pluginsdir)\" \
76 -DLIBAVCODEC_IDENT=\"$(LIBAVCODEC_IDENT)\" \
82 AM_CPPFLAGS += $(EGL_CFLAGS)
84 if BUILD_DIRECTFB_DEVICE
85 AM_CPPFLAGS += $(DIRECTFB_CFLAGS)
106 # The following will be filled up later
109 AM_CXXFLAGS = $(CROSS_CXXFLAGS)
112 $(top_builddir)/libcore/libgnashcore.la \
113 $(top_builddir)/libdevice/libgnashdevice.la \
114 $(top_builddir)/librender/libgnashrender.la \
115 $(top_builddir)/libbase/libgnashbase.la
118 GNASH_LIBS += $(top_builddir)/libmedia/libgnashmedia.la
121 GNASH_LIBS += $(top_builddir)/libsound/libgnashsound.la
126 $(top_builddir)/libdevice/libgnashvaapi.la \
129 if BUILD_OGL_RENDERER
130 GNASH_LIBS += $(LIBVA_GLX_LIBS)
131 endif # BUILD_OGL_RENDERER
134 LIB_FLAGS = -release $(VERSION)
136 LIB_FLAGS += --enable-auto-import
139 AM_CPPFLAGS += -DPKGDATADIR="\"$(pkgdatadir)\""
140 AM_CPPFLAGS += -DRENDERER_CONFIG="\"$(RENDERER_CONFIG)\""
141 AM_CPPFLAGS += -DHWACCEL_CONFIG="\"$(HWACCEL_CONFIG)\""
142 AM_CPPFLAGS += -DMEDIA_CONFIG="\"$(MEDIA_CONFIG)\""
143 AM_CPPFLAGS += -DCONFIG_CONFIG="\"$(shell cat ../.configline)\""
144 AM_CPPFLAGS += -DCXXFLAGS="\"$(CXXFLAGS)\""
146 dist_images_DATA = images/gnash_128_96.ico images/GnashG.png
147 imagesdir = $(pkgdatadir)
153 cp $(srcdir)/gnash.in $@
156 GUI_SRCS = gnash.cpp \
158 Player.cpp Player.h \
159 NullGui.cpp NullGui.h \
160 ScreenShotter.cpp ScreenShotter.h \
164 include $(srcdir)/dump/dump.am
168 BUILT_SOURCES += bundle
169 EXTRA_DIST += Gnash.app
174 include $(srcdir)/fb/fb.am
177 # Build the QTOPIA gui
179 include $(srcdir)/qt/qtopia3.am
184 BUILT_SOURCES += klash3.moc
185 include $(srcdir)/qt/kde3.am
190 BUILT_SOURCES += Qt4Gui.moc
191 BUILT_SOURCES += Qt4Glue.moc
192 include $(srcdir)/qt/qt4.am
197 include $(srcdir)/sdl/sdl.am
200 # Build the AmigaOS4 gui
201 if BUILD_AMIGAOS4_GUI
202 include $(srcdir)/aos4/aos4.am
205 # Build the Haiku gui
207 include $(srcdir)/haiku/haiku.am
212 include $(srcdir)/fltk/fltk.am
217 include $(srcdir)/aqua/aqua.am
222 include $(srcdir)/gtk/gtk.am
225 CLEANFILES = klash3.moc Qt4Gui.moc Qt4Glue.moc gnash
227 bundle: Info.plist aqua-gnash
228 @echo " Building: $(bundle_name)"
229 rm -rf $(bundle_name)/Contents
230 mkdir -p $(bundle_name)/Contents/MacOS
231 mkdir -p $(bundle_name)/Contents/Resources
232 echo "APPL????" > $(bundle_name)/Contents/PkgInfo
233 cp Info.plist $(bundle_name)/Contents/Info.plist
234 cp -f aqua-gnash $(bundle_name)/Contents/MacOS/Gnash
235 cp -f images/GnashG.icns $(bundle_name)/Contents/Resources/
238 -rm -f core.* $(CLEANFILES)
240 if ENABLE_DEVELOPER_TESTS
241 check_PROGRAMS = test_glue
243 test_glue_SOURCES = \
247 test_glue_CPPFLAGS = \
248 -DFAKEFB=\"$(FAKEFB)\" \
252 test_glue_LDADD = $(GNASH_LIBS)