2010-08-30 Alejandro G. Castro <alex@igalia.com>
[WebKit-https.git] / WebKitTools / GNUmakefile.am
1 noinst_PROGRAMS += \
2         Programs/DumpRenderTree \
3         Programs/GtkLauncher \
4         Programs/ImageDiff
5
6 # GtkLauncher
7 Programs_GtkLauncher_CPPFLAGS = \
8         -I$(srcdir)/WebKit/gtk \
9         -I$(top_builddir)/WebKit/gtk \
10         -I$(top_builddir)/DerivedSources \
11         $(global_cppflags) \
12         $(javascriptcore_cppflags)
13
14 Programs_GtkLauncher_SOURCES = \
15         WebKitTools/GtkLauncher/main.c
16
17 Programs_GtkLauncher_CFLAGS = \
18         -ansi \
19         -fno-strict-aliasing \
20         $(global_cflags) \
21         $(GTK_CFLAGS) \
22         $(LIBSOUP_CFLAGS)
23
24 Programs_GtkLauncher_LDADD = \
25         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
26         $(GTK_LIBS) \
27         $(GLIB_LIBS)
28
29 Programs_GtkLauncher_LDFLAGS = \
30         -no-fast-install \
31         -no-install
32
33 # DumpRenderTree
34 dumprendertree_cppflags := \
35         -I$(srcdir)/WebKitTools/DumpRenderTree \
36         -I$(srcdir)/WebKitTools/DumpRenderTree/cairo \
37         -I$(srcdir)/WebKitTools/DumpRenderTree/gtk \
38         -I$(srcdir)/WebKit/gtk \
39         -I$(srcdir)/WebCore/platform/gtk \
40         -I$(top_builddir)/WebKit/gtk \
41         -I$(top_builddir)/DerivedSources \
42         $(global_cppflags) \
43         $(javascriptcore_cppflags)
44
45 Programs_DumpRenderTree_CPPFLAGS = $(dumprendertree_cppflags)
46
47 Programs_DumpRenderTree_SOURCES = \
48         WebKitTools/DumpRenderTree/DumpRenderTree.h \
49         WebKitTools/DumpRenderTree/DumpRenderTreePrefix.h \
50         WebKitTools/DumpRenderTree/AccessibilityController.cpp \
51         WebKitTools/DumpRenderTree/AccessibilityController.h \
52         WebKitTools/DumpRenderTree/AccessibilityUIElement.cpp \
53         WebKitTools/DumpRenderTree/AccessibilityUIElement.h \
54         WebKitTools/DumpRenderTree/GCController.cpp \
55         WebKitTools/DumpRenderTree/GCController.h \
56         WebKitTools/DumpRenderTree/JavaScriptThreading.h \
57         WebKitTools/DumpRenderTree/LayoutTestController.cpp \
58         WebKitTools/DumpRenderTree/LayoutTestController.h \
59         WebKitTools/DumpRenderTree/PixelDumpSupport.cpp \
60         WebKitTools/DumpRenderTree/PixelDumpSupport.h \
61         WebKitTools/DumpRenderTree/WorkQueue.cpp \
62         WebKitTools/DumpRenderTree/WorkQueue.h \
63         WebKitTools/DumpRenderTree/WorkQueueItem.h \
64         WebKitTools/DumpRenderTree/config.h \
65         WebKitTools/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp \
66         WebKitTools/DumpRenderTree/cairo/PixelDumpSupportCairo.h \
67         WebKitTools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
68         WebKitTools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp \
69         WebKitTools/DumpRenderTree/gtk/DumpRenderTree.cpp \
70         WebKitTools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
71         WebKitTools/DumpRenderTree/gtk/EventSender.h \
72         WebKitTools/DumpRenderTree/gtk/EventSender.cpp \
73         WebKitTools/DumpRenderTree/gtk/GCControllerGtk.cpp \
74         WebKitTools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
75         WebKitTools/DumpRenderTree/gtk/PixelDumpSupportGtk.cpp \
76         WebKitTools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp \
77         WebCore/platform/gtk/GtkVersioning.c
78
79 Programs_DumpRenderTree_CXXFLAGS = \
80         $(global_cxxflags) \
81         $(dumprendertree_cppflags) \
82         $(Programs_DumpRenderTree_CFLAGS)
83
84 Programs_DumpRenderTree_CFLAGS = \
85         -fno-strict-aliasing \
86         $(dumprendertree_cppflags) \
87         $(global_cflags) \
88         $(GLOBALDEPS_CFLAGS) \
89         $(CAIRO_CFLAGS) \
90         $(GTK_CFLAGS) \
91         $(LIBSOUP_CFLAGS)
92
93 Programs_DumpRenderTree_LDADD = \
94         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
95         libJavaScriptCore.la \
96         $(GLOBALDEPS_LIBS) \
97         $(CAIRO_LIBS) \
98         $(GTK_LIBS) \
99         $(GLIB_LIBS) \
100         $(LIBSOUP_LIBS) \
101         $(FREETYPE_LIBS)
102
103 Programs_DumpRenderTree_LDFLAGS = \
104         -no-fast-install \
105         -no-install
106
107 # ImageDiff
108 Programs_ImageDiff_CPPFLAGS = $(global_cppflags)
109
110 Programs_ImageDiff_SOURCES = \
111    WebKitTools/DumpRenderTree/gtk/ImageDiff.cpp
112
113 Programs_ImageDiff_CXXFLAGS = \
114    $(global_cxxflags) \
115    $(global_cppflags) \
116    $(Programs_ImageDiff_CFLAGS)
117
118 Programs_ImageDiff_CFLAGS = \
119    -fno-strict-aliasing \
120    $(global_cflags) \
121    $(GLOBALDEPS_CFLAGS) \
122    $(GTK_CFLAGS)
123
124 Programs_ImageDiff_LDADD = \
125    $(GTK_LIBS)
126
127 Programs_ImageDiff_LDFLAGS = \
128    -no-fast-install \
129    -no-install
130
131 # clean target
132 CLEANFILES += \
133         Programs/DumpRenderTree \
134         Programs/GtkLauncher \
135         Programs/ImageDiff
136
137 if TARGET_X11
138
139 # Build TestNetscapePlugin only for X11
140 # since we don't support plugins for non-X11 builds at the moment.
141 noinst_LTLIBRARIES += \
142         TestNetscapePlugin/libtestnetscapeplugin.la
143
144 dumprendertree_cppflags += \
145         -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\" \
146         -DFONTS_CONF_FILE=\"${shell pwd}/${srcdir}/WebKitTools/DumpRenderTree/gtk/fonts.conf\"
147
148 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
149         -I$(srcdir)/WebKitTools/DumpRenderTree \
150         -I$(srcdir)/WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders \
151         -I$(srcdir)/WebCore \
152         -I$(srcdir)/WebCore/bridge \
153         -I$(srcdir)/WebCore/plugins \
154         -I$(srcdir)/WebKitTools/DumpRenderTree/TestNetscapePlugIn \
155         $(global_cppflags) \
156         $(javascriptcore_cppflags)
157
158 TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
159         WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npapi.h \
160         WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npfunctions.h \
161         WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npruntime.h \
162         WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp \
163         WebKitTools/DumpRenderTree/TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp \
164         WebKitTools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \
165         WebKitTools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp \
166         WebKitTools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp \
167         WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp \
168         WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginTest.h \
169         WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp \
170         WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h \
171         WebKitTools/DumpRenderTree/TestNetscapePlugIn/TestObject.cpp \
172         WebKitTools/DumpRenderTree/TestNetscapePlugIn/TestObject.h
173
174 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
175         -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
176         $(no_undefined) \
177         -avoid-version \
178         -module
179
180 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
181 endif