2 # Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
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.
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
23 Qt4Gui.moc: $(srcdir)/qt/Qt4Gui.h
24 @if test x"$(MOC4)" != x; then \
25 echo "Generating MOC file: Qt4Gui.moc."; \
26 $(MOC4) $(srcdir)/qt/Qt4Gui.h -o Qt4Gui.moc; \
28 echo "WARNING: Install QT 4.x moc tool! Using default MOC file"; \
29 ln -sf $(srcdir)/qt/Qt4Gui.moc.in Qt4Gui.moc; \
32 Qt4Glue.moc: $(srcdir)/qt/Qt4Glue.h
33 @if test x"$(MOC4)" != x; then \
34 echo "Generating MOC file: Qt4Glue.moc."; \
35 $(MOC4) $(srcdir)/qt/Qt4Glue.h -o Qt4Glue.moc; \
37 echo "WARNING: Install QT 4.x moc tool! Using default MOC file"; \
38 ln -sf $(srcdir)/qt/Qt4Glue.moc.in Qt4Glue.moc; \
43 bin_PROGRAMS += qt4-gnash
45 qt4_gnash_SOURCES = $(GUI_SRCS) \
52 qt4_gnash_CPPFLAGS = -DGUI_QT4 -DGUI_CONFIG=\"QT4\" $(AM_CPPFLAGS) $(QT4_CFLAGS)
53 qt4_gnash_LDFLAGS = -export-dynamic
62 qt4_gnash_CPPFLAGS += $(OPENGL_CFLAGS)
63 qt4_gnash_LDADD += $(top_builddir)/librender/libgnashrender.la \
64 $(QT4_LIBS) $(OGL_LIBS) -lQtOpenGL
65 qt4_gnash_SOURCES += qt/Qt4GlueOgl.cpp qt/Qt4GlueOgl.h
66 endif # BUILD_OGL_RENDERER
68 if BUILD_CAIRO_RENDERER
69 qt4_gnash_CPPFLAGS += $(CAIRO_CFLAGS) $(X11_CFLAGS)
70 qt4_gnash_LDADD += $(top_builddir)/librender/libgnashrender.la \
71 $(QT4_LIBS) $(CAIRO_LIBS)
72 qt4_gnash_SOURCES += qt/Qt4GlueCairo.cpp qt/Qt4GlueCairo.h
73 endif # BUILD_CAIRO_RENDERER
76 qt4_gnash_CPPFLAGS += $(AGG_CFLAGS) $(X11_CFLAGS)
77 qt4_gnash_LDADD += $(top_builddir)/librender/libgnashrender.la \
78 $(QT4_LIBS) $(AGG_LIBS)
79 qt4_gnash_SOURCES += qt/Qt4GlueAgg.cpp qt/Qt4GlueAgg.h