1#
2#   Copyright (C) 2007, 2008, 2009, 2010, 2011 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#
17
18#
19# Build the GTK gui
20#
21
22GTK_CANVAS = gtk/gtk_canvas.cpp gtk/gtk_canvas.h
23
24if BUILD_GTK_GUI
25bin_PROGRAMS += gtk-gnash
26
27gtk_gnash_SOURCES = $(GUI_SRCS) $(GTK_CANVAS) \
28	gtk/gtk.cpp gtk/gtksup.h gtk/gtk_glue.h gtk/gui_gtk.cpp
29gtk_gnash_CPPFLAGS = -DGUI_GTK -DGUI_CONFIG=\"GTK\" \
30	$(AM_CPPFLAGS) $(GTK_CFLAGS) $(X11_CFLAGS)
31gtk_gnash_LDFLAGS = -export-dynamic
32gtk_gnash_LDADD = \
33	$(top_builddir)/librender/libgnashrender.la \
34	$(GNASH_LIBS) \
35	$(GTK_LIBS) \
36	$(INTLLIBS) \
37	$(BOOST_LIBS) \
38	$(NULL)
39
40#gtk_gnash_DEPENDENCIES = .configline
41
42if BUILD_OGL_RENDERER
43gtk_gnash_CPPFLAGS += $(OPENGL_CFLAGS)
44gtk_gnash_SOURCES += gtk/gtk_glue_gtkglext.cpp gtk/gtk_glue_gtkglext.h
45gtk_gnash_LDADD += \
46	$(OPENGL_LIBS) \
47	$(NULL)
48endif	# BUILD_OGL_RENDERER
49
50if BUILD_AGG_RENDERER
51gtk_gnash_CPPFLAGS += $(AGG_CFLAGS)
52gtk_gnash_SOURCES += gtk/gtk_glue_agg.cpp gtk/gtk_glue_agg.h
53gtk_gnash_LDADD += \
54	$(AGG_LIBS) \
55	$(NULL)
56
57if HAVE_VAAPI
58noinst_HEADERS		+= gtk/gtk_glue_agg_vaapi.h
59gtk_gnash_SOURCES	+= gtk/gtk_glue_agg_vaapi.cpp
60gtk_gnash_CPPFLAGS	+= \
61	$(X11_CFLAGS) \
62	$(LIBVA_X11_CFLAGS) \
63	-I$(top_srcdir)/libdevice/vaapi \
64	$(NULL)
65gtk_gnash_LDADD += \
66	$(X11_LIBS) \
67	$(LIBVA_LIBS) \
68	$(LIBVA_X11_LIBS) \
69	$(top_builddir)/libdevice/libgnashvaapi.la \
70	$(NULL)
71endif   # USE_VAAPI
72endif	# BUILD_AGG_RENDERER
73
74if BUILD_OVG_RENDERER
75gtk_gnash_CPPFLAGS += $(OPENVG_CFLAGS) $(EGL_CFLAGS)
76gtk_gnash_SOURCES += gtk/gtk_glue_ovg.cpp gtk/gtk_glue_ovg.h
77gtk_gnash_LDADD += \
78	$(OPENVG_LIBS) \
79	$(EGL_LIBS)
80endif	# BUILD_OVG_RENDERER
81
82if BUILD_CAIRO_RENDERER
83gtk_gnash_CPPFLAGS += $(CAIRO_CFLAGS)
84gtk_gnash_SOURCES += gtk/gtk_glue_cairo.cpp gtk/gtk_glue_cairo.h
85gtk_gnash_LDADD += \
86	$(CAIRO_LIBS) \
87	$(NULL)
88
89endif	# BUILD_CAIRO_RENDERER
90
91endif	# BUILD_GTK_GUI
92
93