add libraries so test cases build for Android.
[gnash.git] / gui / fb / fb.am
blobb444fb7a08261e9313cde225485d00d6cd2f620b
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
16
19 # Build the FB gui
21 if BUILD_FB_GUI
22 bin_PROGRAMS += fb-gnash
23 fb_gnash_SOURCES = $(GUI_SRCS) \
24         fb/fb.cpp \
25         fb/fbsup.h \
26         fb/fb_glue.h
27 fb_gnash_CPPFLAGS = \
28         -DGUI_FB \
29         -DGUI_CONFIG=\"FB\" \
30         -DFAKEFB=\"$(FAKEFB)\" \
31         $(AM_CPPFLAGS) 
32 fb_gnash_LDFLAGS = $(LIBLTDL) -export-dynamic
33 fb_gnash_LDADD = \
34         $(INTLLIBS) \
35         $(GNASH_LIBS) \
36         $(TS_LIBS) \
37         $(BOOST_LIBS) \
38         $(NULL)
40 # Build support for AntiGrain.
41 if BUILD_AGG_RENDERER
42 fb_gnash_SOURCES += fb/fb_glue_agg.cpp fb/fb_glue_agg.h
43 fb_gnash_CPPFLAGS += $(AGG_CFLAGS)
44 fb_gnash_LDADD += $(AGG_LIBS)
45 endif   # BUILD_AGG_RENDERER
47 # Build support for OpenVG.
48 if BUILD_OVG_RENDERER
49 fb_gnash_SOURCES += fb/fb_glue_ovg.cpp fb/fb_glue_ovg.h
50 fb_gnash_CPPFLAGS += \
51         $(OPENVG_CFLAGS) \
52         $(EGL_CFLAGS)
53 fb_gnash_LDADD += $(OPENVG_LIBS) $(EGL_LIBS)
54 endif   # BUILD_OVG_RENDERER
56 if ANDROID
57 fb_gnash_LDADD +=  -lui -llog
58 endif   # ANDROID
60 # # This supports only OpenGLES 1.1 with EGL support.
61 # if BUILD_GLES1_RENDERER
62 # fb_gnash_SOURCES += fb/fb_glue_gles1.cpp fb/fb_glue_gles1.h
63 # fb_gnash_CPPFLAGS += $(GLES1_CFLAGS) $(EGL_CFLAGS)
64 # fb_gnash_LDADD += $(GLES1_LIBS) $(EGL_LIBS)
65 # endif # BUILD_GLES1_RENDERER
67 # # This supports only OpenGLES 2 with EGL support.
68 # if BUILD_GLES2_RENDERER
69 # fb_gnash_SOURCES += fb/fb_glue_gles2.cpp fb/fb_glue_gles2.h
70 # fb_gnash_CPPFLAGS += $(GLES2_CFLAGS) $(EGL_CFLAGS)
71 # fb_gnash_LDADD += $(GLES2_LIBS) $(EGL_LIBS)
72 # endif # BUILD_GLES2_RENDERER
74 endif   # BUILD_FB_GUI