Add brackets around control flow constructs to make more readable
[gnash.git] / gui / kde / kde4.am
blobcf715fb900888f86844d79ec13361ec037c1b390
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 KDE gui
20
21 if BUILD_KDE4_GUI
23 Kde4Gui.moc: $(srcdir)/kde/Kde4Gui.h
24         @if test x"$(MOC4)" != x; then \
25           echo "Generating MOC file: Kde4Gui.moc."; \
26           $(MOC4) $(srcdir)/kde/Kde4Gui.h -o Kde4Gui.moc; \
27         else  \
28           echo "WARNING: Install QT 4.x moc tool! Using default MOC file"; \
29           ln -sf $(srcdir)/kde/Kde4Gui.moc.in Kde4Gui.moc; \
30         fi
32 Kde4Glue.moc: $(srcdir)/kde/Kde4Glue.h
33         @if test x"$(MOC4)" != x; then \
34           echo "Generating MOC file: Kde4Glue.moc."; \
35           $(MOC4) $(srcdir)/kde/Kde4Glue.h -o Kde4Glue.moc; \
36         else  \
37           echo "WARNING: Install QT 4.x moc tool! Using default MOC file"; \
38           ln -sf $(srcdir)/kde/Kde4Glue.moc.in Kde4Glue.moc; \
39         fi
41 endif
43 bin_PROGRAMS += kde4-gnash
45 kde4_gnash_SOURCES = $(GUI_SRCS) \
46         kde/GuiKde4.cpp \
47         kde/Kde4Gui.cpp \
48         kde/Kde4Glue.cpp \
49         kde/Kde4Gui.h \
50         kde/Kde4Glue.h
52 kde4_gnash_CPPFLAGS = -DGUI_KDE4 -DGUI_CONFIG=\"KDE4\" $(AM_CPPFLAGS) $(KDE4_CFLAGS) $(QT4_CFLAGS)
53 kde4_gnash_LDFLAGS = -export-dynamic 
54 kde4_gnash_LDADD = \
55         $(MYSQL_LIBS) \
56         $(GNASH_LIBS) \
57         $(AM_LDFLAGS) \
58         $(KDE4_LIBS) \
59         $(LIBVA_X11_LIBS)
61 if BUILD_OGL_RENDERER
62 kde4_gnash_CPPFLAGS += $(OPENGL_CFLAGS)
63 kde4_gnash_LDADD += $(top_builddir)/librender/libgnashrender.la \
64         $(QT4_LIBS) $(OGL_LIBS) -lQtOpenGL
65 kde4_gnash_SOURCES += kde/Kde4GlueOgl.cpp kde/Kde4GlueOgl.h
66 endif                           # BUILD_OGL_RENDERER
68 if BUILD_CAIRO_RENDERER
69 kde4_gnash_CPPFLAGS += $(CAIRO_CFLAGS) $(X11_CFLAGS)
70 kde4_gnash_LDADD += $(top_builddir)/librender/libgnashrender.la \
71         $(QT4_LIBS) $(CAIRO_LIBS)
72 kde4_gnash_SOURCES += kde/Kde4GlueCairo.cpp kde/Kde4GlueCairo.h
73 endif                           # BUILD_CAIRO_RENDERER
75 if BUILD_AGG_RENDERER
76 kde4_gnash_CPPFLAGS += $(AGG_CFLAGS) $(X11_CFLAGS)
77 kde4_gnash_LDADD += $(top_builddir)/librender/libgnashrender.la \
78         $(QT4_LIBS) $(AGG_LIBS)
79 kde4_gnash_SOURCES += kde/Kde4GlueAgg.cpp kde/Kde4GlueAgg.h
80 endif