1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
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.
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
23 AUTOMAKE_OPTIONS = -Wno-portability
25 # top_builddir and top_srcdir are for revno.h; its location depends on
26 # whether we're building from a snapshot or a checkout.
31 -I$(top_srcdir)/libnet \
32 -I$(top_srcdir)/libcore \
33 -I$(top_srcdir)/libcore/swf \
34 -I$(top_srcdir)/libcore/parser \
35 -I$(top_srcdir)/libcore/vm \
36 -I$(top_srcdir)/libcore/asobj \
37 -I$(top_srcdir)/libltdl \
38 -I$(top_srcdir)/libbase \
39 -I$(top_srcdir)/librender \
40 -I$(top_srcdir)/librender/agg \
41 -I$(top_srcdir)/librender/cairo \
42 -I$(top_srcdir)/librender/opengl \
43 -I$(top_srcdir)/libmedia \
44 -I$(top_srcdir)/libsound \
45 -DLOCALEDIR=\"$(localedir)\" \
46 -DPLUGINSDIR=\"$(pluginsdir)\" \
47 -DLIBAVCODEC_IDENT=\"$(LIBAVCODEC_IDENT)\" \
55 AM_CPPFLAGS += -DPKGDATADIR="\"$(pkgdatadir)\""
56 AM_CPPFLAGS += -DRENDERER_CONFIG="\"$(RENDERER_CONFIG)\""
57 AM_CPPFLAGS += -DHWACCEL_CONFIG="\"$(HWACCEL_CONFIG)\""
58 AM_CPPFLAGS += -DMEDIA_CONFIG="\"$(MEDIA_CONFIG)\""
59 AM_CPPFLAGS += -DCONFIG_CONFIG="\"$(shell cat ../../.configline)\""
60 AM_CPPFLAGS += -DCXXFLAGS="\"$(CXXFLAGS)\""
62 ## WARNING: make sure GLIB_LIBS appears first
63 ## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html
78 AM_LDFLAGS += $(FFMPEG_LIBS) $(LIBVA_LIBS) $(LIBVA_X11_LIBS)
79 AM_CPPFLAGS += $(FFMPEG_CFLAGS)
83 GST_STUFF = $(GSTREAMER_PBUTILS_LIBS) $(GSTREAMER_PLUGINS_BASE_LIBS) $(GSTREAMER_LIBS)
84 AM_CPPFLAGS += $(GSTREAMER_CFLAGS)
85 AM_LDFLAGS += $(GST_STUFF)
89 $(top_builddir)/libcore/libgnashcore.la \
90 $(top_builddir)/librender/libgnashrender.la \
91 $(top_builddir)/libsound/libgnashsound.la \
92 $(top_builddir)/libmedia/libgnashmedia.la \
93 $(top_builddir)/libbase/libgnashbase.la
96 # These are used to handle input events from a keyboard, mouse, or
97 # touchscreen. These are only used by the Framebuffer GUI, as without
98 # X11, it has no event handling. We do it this way so the optionally
99 # built source files still get included in the source tarball.
101 if ENABLE_INPUT_DEVICES
102 DEVICES += InputDevice.cpp InputDevice.h
106 DEVICES += TouchDevice.cpp
110 DEVICES += MouseDevice.cpp
113 if ENABLE_INPUT_EVENTS
114 DEVICES += EventDevice.cpp
119 bin_PROGRAMS = fb-gnash
121 # TODO: stop using these
122 GUI_SRCS = ../gnash.cpp \
123 ../gui.cpp ../gui.h \
124 ../Player.cpp ../Player.h \
125 ../NullGui.cpp ../NullGui.h \
126 ../ScreenShotter.cpp ../ScreenShotter.h \
129 fb_gnash_SOURCES = $(GUI_SRCS) $(DEVICES) gui_fb.cpp fb.cpp fbsup.h
130 fb_gnash_CPPFLAGS = -DGUI_FB -DGUI_CONFIG=\"FB\" -DFAKEFB=\"$(FAKEFB)\" \
132 fb_gnash_LDFLAGS = -export-dynamic $(AM_LDFLAGS)
133 #fb_gnash_DEPENDENCIES = .configline
135 $(top_builddir)/librender/libgnashrender.la \
138 if BUILD_AGG_RENDERER
139 fb_gnash_CPPFLAGS += $(AGG_CFLAGS)
140 fb_gnash_LDADD += $(AGG_LIBS)
141 endif # BUILD_AGG_RENDERER