Unreviewed; updated chromium test expectations.
[WebKit-https.git] / Tools / GNUmakefile.am
1 noinst_PROGRAMS += \
2         Programs/DumpRenderTree \
3         Programs/GtkLauncher
4
5 if ENABLE_WEBKIT2
6 noinst_PROGRAMS += \
7         Programs/GtkLauncher2
8 endif
9
10 # GtkLauncher
11 gtklauncher_sources = \
12         Tools/GtkLauncher/main.c
13
14 gtklauncher_cflags = \
15         -fno-strict-aliasing \
16         $(global_cflags) \
17         $(GTK_CFLAGS) \
18         $(LIBSOUP_CFLAGS)
19
20 gtklauncher_ldadd = \
21         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
22         $(GTK_LIBS) \
23         $(GLIB_LIBS) \
24         $(LIBSOUP_LIBS) \
25         $(WINMM_LIBS)
26
27 gtklauncher_ldflags = \
28         -no-fast-install \
29         -no-install
30
31 Programs_GtkLauncher_CPPFLAGS = \
32         -I$(srcdir)/Source/WebKit/gtk \
33         -I$(srcdir)/Source/WebCore/platform/network/soup/cache/ \
34         -I$(top_builddir)/Source/WebKit/gtk \
35         -I$(top_builddir)/DerivedSources \
36         $(global_cppflags) \
37         $(javascriptcore_cppflags)
38
39 Programs_GtkLauncher_SOURCES = \
40         $(gtklauncher_sources)
41
42 Programs_GtkLauncher_CFLAGS = \
43         -ansi \
44         $(gtklauncher_cflags)
45
46 Programs_GtkLauncher_LDADD = \
47         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
48         $(gtklauncher_ldadd)
49
50 Programs_GtkLauncher_LDFLAGS = \
51         $(gtklauncher_ldflags)
52
53 if ENABLE_WEBKIT2
54 Programs_GtkLauncher2_CPPFLAGS = \
55         -I$(srcdir)/Source \
56         -I$(top_builddir)/DerivedSources/WebKit2/include \
57         -I$(srcdir)/Source/WebKit2/UIProcess/API/gtk \
58         -I$(top_builddir)/Source/WebKit2/UIProcess/API/gtk \
59         -I$(srcdir)/Source/WebKit/gtk \
60         -I$(top_builddir)/Source/WebKit/gtk \
61         -I$(top_builddir)/DerivedSources \
62         $(global_cppflags) \
63         $(javascriptcore_cppflags)
64
65 Programs_GtkLauncher2_SOURCES = \
66         $(gtklauncher_sources)
67
68 Programs_GtkLauncher2_CFLAGS = \
69         -DWEBKIT2=\"1\" \
70         $(gtklauncher_cflags)
71
72 Programs_GtkLauncher2_LDADD = \
73         libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
74         $(gtklauncher_ldadd)
75
76 Programs_GtkLauncher2_LDFLAGS = \
77         $(gtklauncher_ldflags)
78
79 endif
80
81 # libWebCoreInternals
82 # We must split off the window.internals implementation into a separate
83 # convenience library because it requires a different include path order
84 # to prefer the WebCore config.h over the DumpRenderTree config.h
85 noinst_LTLIBRARIES += libWebCoreInternals.la
86 libWebCoreInternals_la_SOURCES = \
87         Source/WebCore/bindings/js/JSDOMWrapper.cpp \
88         Source/WebCore/bindings/js/JSDOMWrapper.h \
89         Source/WebCore/testing/Internals.cpp \
90         Source/WebCore/testing/Internals.h \
91         Source/WebCore/testing/js/WebCoreTestSupport.cpp \
92         Source/WebCore/testing/js/WebCoreTestSupport.h
93
94 libwebcoreinternals_built_sources += \
95         DerivedSources/WebCore/JSInternals.cpp \
96         DerivedSources/WebCore/JSInternals.h
97 nodist_libWebCoreInternals_la_SOURCES = $(libwebcoreinternals_built_sources)
98 BUILT_SOURCES += $(libwebcoreinternals_built_sources)
99
100 libWebCoreInternals_la_CPPFLAGS = \
101         $(global_cppflags) \
102         $(webcore_cppflags) \
103         $(webcoregtk_cppflags) \
104         $(javascriptcore_cppflags) \
105         -I$(top_builddir)/DerivedSources \
106         -I$(top_builddir)/DerivedSources/WebCore
107
108 libWebCoreInternals_la_CXXFLAGS = \
109         $(global_cxxflags) \
110         $(libWebCoreInternals_la_CFLAGS)
111
112 libWebCoreInternals_la_CFLAGS = \
113         -fno-strict-aliasing \
114         $(javascriptcore_cflags) \
115         $(LIBSOUP_CFLAGS)
116
117 # DumpRenderTree
118 Programs_DumpRenderTree_CPPFLAGS = \
119         $(global_cppflags) \
120         -I$(srcdir)/Tools/DumpRenderTree \
121         -I$(srcdir)/Tools/DumpRenderTree/cairo \
122         -I$(srcdir)/Tools/DumpRenderTree/gtk \
123         -I$(srcdir)/Source/WebKit/gtk \
124         -I$(srcdir)/Source/WebCore/platform/gtk \
125         -I$(srcdir)/Source/WebCore/testing/js \
126         -I$(top_builddir)/DerivedSources \
127         -I$(top_builddir)/Source/WebKit/gtk \
128         $(javascriptcore_cppflags)
129
130 if TARGET_X11
131 Programs_DumpRenderTree_CPPFLAGS += \
132         -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\" \
133         -DFONTS_CONF_DIR=\"${shell pwd}/${srcdir}/Tools/DumpRenderTree/gtk/fonts\"
134 endif
135
136 Programs_DumpRenderTree_SOURCES = \
137         Tools/DumpRenderTree/DumpRenderTree.h \
138         Tools/DumpRenderTree/DumpRenderTreePrefix.h \
139         Tools/DumpRenderTree/AccessibilityController.cpp \
140         Tools/DumpRenderTree/AccessibilityController.h \
141         Tools/DumpRenderTree/AccessibilityTextMarker.cpp \
142         Tools/DumpRenderTree/AccessibilityTextMarker.h \
143         Tools/DumpRenderTree/AccessibilityUIElement.cpp \
144         Tools/DumpRenderTree/AccessibilityUIElement.h \
145         Tools/DumpRenderTree/CyclicRedundancyCheck.cpp \
146         Tools/DumpRenderTree/CyclicRedundancyCheck.h \
147         Tools/DumpRenderTree/GCController.cpp \
148         Tools/DumpRenderTree/GCController.h \
149         Tools/DumpRenderTree/JavaScriptThreading.h \
150         Tools/DumpRenderTree/LayoutTestController.cpp \
151         Tools/DumpRenderTree/LayoutTestController.h \
152         Tools/DumpRenderTree/PixelDumpSupport.cpp \
153         Tools/DumpRenderTree/PixelDumpSupport.h \
154         Tools/DumpRenderTree/WorkQueue.cpp \
155         Tools/DumpRenderTree/WorkQueue.h \
156         Tools/DumpRenderTree/WorkQueueItem.h \
157         Tools/DumpRenderTree/config.h \
158         Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp \
159         Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.h \
160         Tools/DumpRenderTree/gtk/AccessibilityCallbacks.h \
161         Tools/DumpRenderTree/gtk/AccessibilityCallbacks.cpp \
162         Tools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
163         Tools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp \
164         Tools/DumpRenderTree/gtk/DumpRenderTree.cpp \
165         Tools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
166         Tools/DumpRenderTree/gtk/EditingCallbacks.h \
167         Tools/DumpRenderTree/gtk/EditingCallbacks.cpp \
168         Tools/DumpRenderTree/gtk/EventSender.h \
169         Tools/DumpRenderTree/gtk/EventSender.cpp \
170         Tools/DumpRenderTree/gtk/GCControllerGtk.cpp \
171         Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
172         Tools/DumpRenderTree/gtk/PixelDumpSupportGtk.cpp \
173         Tools/DumpRenderTree/gtk/PlainTextController.cpp \
174         Tools/DumpRenderTree/gtk/PlainTextController.h \
175         Tools/DumpRenderTree/gtk/TextInputController.h \
176         Tools/DumpRenderTree/gtk/TextInputController.cpp \
177         Tools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp \
178         Source/WebCore/platform/gtk/GtkVersioning.c
179
180 Programs_DumpRenderTree_CXXFLAGS = \
181         $(global_cxxflags) \
182         $(Programs_DumpRenderTree_CFLAGS)
183
184 Programs_DumpRenderTree_CFLAGS = \
185         -fno-strict-aliasing \
186         $(global_cflags) \
187         $(GLOBALDEPS_CFLAGS) \
188         $(CAIRO_CFLAGS) \
189         $(GTK_CFLAGS) \
190         $(LIBSOUP_CFLAGS)
191
192 Programs_DumpRenderTree_LDADD = \
193         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
194         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
195         libWebCoreInternals.la \
196         $(GLOBALDEPS_LIBS) \
197         $(CAIRO_LIBS) \
198         $(GTK_LIBS) \
199         $(GLIB_LIBS) \
200         $(LIBSOUP_LIBS) \
201         $(FREETYPE_LIBS) \
202         $(WINMM_LIBS)
203
204 Programs_DumpRenderTree_LDFLAGS = \
205         -no-fast-install \
206         -no-install
207
208 # clean target
209 CLEANFILES += \
210         Programs/DumpRenderTree \
211         Programs/GtkLauncher
212
213 if ENABLE_WEBKIT2
214 CLEANFILES += \
215         Programs/GtkLauncher2
216 endif
217
218 if TARGET_X11
219
220 # Build TestNetscapePlugin only for X11
221 # since we don't support plugins for non-X11 builds at the moment.
222 noinst_LTLIBRARIES += \
223         TestNetscapePlugin/libtestnetscapeplugin.la
224
225 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
226         -I$(srcdir)/Tools/DumpRenderTree \
227         -I$(srcdir)/Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders \
228         -I$(srcdir)/Source/WebCore \
229         -I$(srcdir)/Source/WebCore/bridge \
230         -I$(srcdir)/Source/WebCore/plugins \
231         -I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn \
232         $(global_cppflags) \
233         $(javascriptcore_cppflags)
234
235 # For the Gtk port we want to use XP_UNIX both on X11 and Mac
236 if !TARGET_WIN32
237 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS += -DXP_UNIX
238 endif
239
240 TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
241         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npapi.h \
242         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npfunctions.h \
243         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npruntime.h \
244         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp \
245         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/EvaluateJSAfterRemovingPluginElement.cpp \
246         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/FormValue.cpp \
247         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp \
248         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURL.cpp \
249         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp \
250         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp \
251         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPDeallocateCalledBeforeNPShutdown.cpp \
252         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPPSetWindowCalledDuringDestruction.cpp \
253         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \
254         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp \
255         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NullNPPGetValuePointer.cpp \
256         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PassDifferentNPPStruct.cpp \
257         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp \
258         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/x11/CallInvalidateRectWithNullNPPArgument.cpp \
259         Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp \
260         Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.h \
261         Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp \
262         Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h \
263         Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.cpp \
264         Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.h \
265         Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp
266
267 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
268         -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
269         $(no_undefined) \
270         -avoid-version \
271         -module
272
273 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
274 endif