Update with current status
[gnash.git] / gui / qt / qt4.am
blobd6793bd3f9c17acf9863963b7d50c586f4c0ccb8
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
19 # Build the Qt gui
20
21 if BUILD_QT4_GUI
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; \
27         else  \
28           echo "WARNING: Install QT 4.x moc tool! Using default MOC file"; \
29           ln -sf $(srcdir)/qt/Qt4Gui.moc.in Qt4Gui.moc; \
30         fi
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; \
36         else  \
37           echo "WARNING: Install QT 4.x moc tool! Using default MOC file"; \
38           ln -sf $(srcdir)/qt/Qt4Glue.moc.in Qt4Glue.moc; \
39         fi
41 endif
43 bin_PROGRAMS += qt4-gnash
45 qt4_gnash_SOURCES = $(GUI_SRCS) \
46         qt/GuiQt4.cpp \
47         qt/Qt4Gui.cpp \
48         qt/Qt4Glue.cpp \
49         qt/Qt4Gui.h \
50         qt/Qt4Glue.h
52 qt4_gnash_CPPFLAGS = -DGUI_QT4 -DGUI_CONFIG=\"QT4\" $(AM_CPPFLAGS) $(QT4_CFLAGS)
53 qt4_gnash_LDFLAGS = -export-dynamic 
54 qt4_gnash_LDADD = \
55         $(GNASH_LIBS) \
56         $(AM_LDFLAGS) \
57     $(BOOST_LIBS) \
58         $(X11_LIBS) \
59         $(NULL)
61 if BUILD_OGL_RENDERER
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
75 if BUILD_AGG_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
80 endif