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