summaryrefslogtreecommitdiff
path: root/Tools/GNUmakefile.am
blob: 115e09bfce6a7cc10906a104019dd6213a813d6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
noinst_PROGRAMS += \
	Programs/ImageDiff

if ENABLE_WEBKIT1
noinst_PROGRAMS += \
	Programs/DumpRenderTree
endif

# libWebCoreInternals
# We must split off the window.internals implementation into a separate
# convenience library because it requires a different include path order
# to prefer the WebCore config.h over the DumpRenderTree config.h
noinst_LTLIBRARIES += libWebCoreInternals.la
libWebCoreInternals_la_SOURCES = \
	Source/WebCore/bindings/js/JSDOMWrapper.cpp \
	Source/WebCore/bindings/js/JSDOMWrapper.h \
	Source/WebCore/testing/MallocStatistics.h \
	Source/WebCore/testing/MemoryInfo.h \
	Source/WebCore/testing/Internals.cpp \
	Source/WebCore/testing/Internals.h \
	Source/WebCore/testing/InternalSettings.cpp \
	Source/WebCore/testing/InternalSettings.h \
	Source/WebCore/testing/TypeConversions.h \
	Source/WebCore/testing/js/WebCoreTestSupport.cpp \
	Source/WebCore/testing/js/WebCoreTestSupport.h

libwebcoreinternals_built_sources += \
	DerivedSources/WebCore/InternalSettingsGenerated.cpp \
	DerivedSources/WebCore/InternalSettingsGenerated.h   \
	DerivedSources/WebCore/JSMallocStatistics.cpp \
	DerivedSources/WebCore/JSMallocStatistics.h   \
	DerivedSources/WebCore/JSMemoryInfo.cpp \
	DerivedSources/WebCore/JSMemoryInfo.h \
	DerivedSources/WebCore/JSInternals.cpp \
	DerivedSources/WebCore/JSInternals.h   \
	DerivedSources/WebCore/JSInternalSettings.cpp \
	DerivedSources/WebCore/JSInternalSettings.h   \
	DerivedSources/WebCore/JSInternalSettingsGenerated.cpp \
	DerivedSources/WebCore/JSInternalSettingsGenerated.h \
	DerivedSources/WebCore/JSTypeConversions.cpp \
	DerivedSources/WebCore/JSTypeConversions.h

nodist_libWebCoreInternals_la_SOURCES = $(libwebcoreinternals_built_sources)
BUILT_SOURCES += $(libwebcoreinternals_built_sources)

libWebCoreInternals_la_CPPFLAGS = \
	$(global_cppflags) \
	$(platform_cppflags) \
	$(platformgtk_cppflags) \
	$(webcore_cppflags) \
	$(webcoregtk_cppflags) \
	$(javascriptcore_cppflags) \
	$(CAIRO_CFLAGS) \
	$(FREETYPE_CFLAGS) \
	$(LIBSOUP_CFLAGS) \
	$(PANGO_CFLAGS) \
	-I$(top_builddir)/DerivedSources \
	-I$(top_builddir)/DerivedSources/WebCore

libWebCoreInternals_la_CXXFLAGS = \
	$(global_cxxflags) \
	$(libWebCoreInternals_la_CFLAGS)

libWebCoreInternals_la_CFLAGS = \
	-fno-strict-aliasing \
	$(javascriptcore_cflags)

# DumpRenderTree
Programs_DumpRenderTree_CPPFLAGS = \
	$(global_cppflags) \
	-DTOP_LEVEL_DIR=\"${shell pwd}/${srcdir}\" \
	-I$(srcdir)/Tools/DumpRenderTree \
	-I$(srcdir)/Tools/DumpRenderTree/atk \
	-I$(srcdir)/Tools/DumpRenderTree/cairo \
	-I$(srcdir)/Tools/DumpRenderTree/gtk \
	-I$(srcdir)/Source/WebKit/gtk \
	-I$(srcdir)/Source/WebCore/platform/gtk \
	-I$(srcdir)/Source/WebCore/testing/js \
	-I$(top_builddir)/DerivedSources \
	-I$(top_builddir)/Source/WebKit/gtk \
	$(javascriptcore_cppflags) \
	$(platform_cppflags) \
	$(platformgtk_cppflags) \
	$(webcore_cppflags)

if TARGET_X11_OR_WAYLAND
Programs_DumpRenderTree_CPPFLAGS += \
	-DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\" \
	-DFONTS_CONF_DIR=\"${shell pwd}/${srcdir}/Tools/DumpRenderTree/gtk/fonts\"
endif

Programs_DumpRenderTree_SOURCES = \
	Source/WebCore/platform/gtk/GtkVersioning.c \
	Tools/DumpRenderTree/DumpRenderTree.h \
	Tools/DumpRenderTree/DumpRenderTreeCommon.cpp \
	Tools/DumpRenderTree/DumpRenderTreePrefix.h \
	Tools/DumpRenderTree/AccessibilityController.cpp \
	Tools/DumpRenderTree/AccessibilityController.h \
	Tools/DumpRenderTree/AccessibilityTextMarker.cpp \
	Tools/DumpRenderTree/AccessibilityTextMarker.h \
	Tools/DumpRenderTree/AccessibilityUIElement.cpp \
	Tools/DumpRenderTree/AccessibilityUIElement.h \
	Tools/DumpRenderTree/CyclicRedundancyCheck.cpp \
	Tools/DumpRenderTree/CyclicRedundancyCheck.h \
	Tools/DumpRenderTree/GCController.cpp \
	Tools/DumpRenderTree/GCController.h \
	Tools/DumpRenderTree/JavaScriptThreading.h \
	Tools/DumpRenderTree/TestRunner.cpp \
	Tools/DumpRenderTree/TestRunner.h \
	Tools/DumpRenderTree/PixelDumpSupport.cpp \
	Tools/DumpRenderTree/PixelDumpSupport.h \
	Tools/DumpRenderTree/WorkQueue.cpp \
	Tools/DumpRenderTree/WorkQueue.h \
	Tools/DumpRenderTree/WorkQueueItem.h \
	Tools/DumpRenderTree/config.h \
	Tools/DumpRenderTree/atk/AccessibilityCallbacks.h \
	Tools/DumpRenderTree/atk/AccessibilityCallbacksAtk.cpp \
	Tools/DumpRenderTree/atk/AccessibilityControllerAtk.cpp \
	Tools/DumpRenderTree/atk/AccessibilityNotificationHandlerAtk.cpp \
	Tools/DumpRenderTree/atk/AccessibilityNotificationHandlerAtk.h \
	Tools/DumpRenderTree/atk/AccessibilityUIElementAtk.cpp \
	Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp \
	Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.h \
	Tools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
	Tools/DumpRenderTree/gtk/DumpRenderTree.cpp \
	Tools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
	Tools/DumpRenderTree/gtk/EditingCallbacks.h \
	Tools/DumpRenderTree/gtk/EditingCallbacks.cpp \
	Tools/DumpRenderTree/gtk/EventSender.h \
	Tools/DumpRenderTree/gtk/EventSender.cpp \
	Tools/DumpRenderTree/gtk/GCControllerGtk.cpp \
	Tools/DumpRenderTree/gtk/TestRunnerGtk.cpp \
	Tools/DumpRenderTree/gtk/PixelDumpSupportGtk.cpp \
	Tools/DumpRenderTree/gtk/SelfScrollingWebKitWebView.cpp \
	Tools/DumpRenderTree/gtk/SelfScrollingWebKitWebView.h \
	Tools/DumpRenderTree/gtk/TextInputController.h \
	Tools/DumpRenderTree/gtk/TextInputController.cpp \
	Tools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp

Programs_DumpRenderTree_CXXFLAGS = \
	$(global_cxxflags) \
	$(Programs_DumpRenderTree_CFLAGS)

Programs_DumpRenderTree_CFLAGS = \
	-fno-strict-aliasing \
	$(global_cflags) \
	$(CAIRO_CFLAGS) \
	$(GTK_CFLAGS) \
	$(LIBSOUP_CFLAGS)

Programs_DumpRenderTree_LDADD = \
	libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
	libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
	libPlatform.la \
	libPlatformGtk.la \
	libWebCorePlatform.la \
	libWebCoreModules.la \
	libWebCoreInternals.la \
	$(CAIRO_LIBS) \
	$(GTK_LIBS) \
	$(GLIB_LIBS) \
	$(LIBSOUP_LIBS) \
	$(FREETYPE_LIBS) \
	$(WINMM_LIBS) \
	$(XRENDER_LIBS) \
	$(XT_LIBS)

Programs_DumpRenderTree_LDFLAGS = \
	-no-install

# ImageDiff
Programs_ImageDiff_CPPFLAGS = $(global_cppflags)

Programs_ImageDiff_SOURCES = \
   Tools/ImageDiff/gtk/ImageDiff.cpp

Programs_ImageDiff_CXXFLAGS = \
   $(global_cxxflags) \
   $(global_cppflags) \
   $(Programs_ImageDiff_CFLAGS)

Programs_ImageDiff_CFLAGS = \
   -fno-strict-aliasing \
   $(global_cflags) \
   $(GTK_CFLAGS)

Programs_ImageDiff_LDADD = \
   $(GTK_LIBS)

Programs_ImageDiff_LDFLAGS = \
   -no-install

# clean target
CLEANFILES += \
	Programs/DumpRenderTree \
	Programs/GtkLauncher \
	Programs/ImageDiff

if TARGET_X11

# Build TestNetscapePlugin only for X11
# since we don't support plugins for non-X11 builds at the moment.
noinst_LTLIBRARIES += \
	TestNetscapePlugin/libTestNetscapePlugin.la

TestNetscapePlugin_libTestNetscapePlugin_la_CPPFLAGS = \
	-I$(srcdir)/Tools/DumpRenderTree \
	-I$(srcdir)/Source/WebCore \
	-I$(srcdir)/Source/WebCore/bridge \
	-I$(srcdir)/Source/WebCore/plugins \
	-I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn \
	-I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders \
	$(global_cppflags) \
	$(javascriptcore_cppflags) \
	-Wno-missing-format-attribute

# For the Gtk port we want to use XP_UNIX both on X11 and Mac
if !TARGET_WIN32
TestNetscapePlugin_libTestNetscapePlugin_la_CPPFLAGS += -DXP_UNIX
endif

# Add MOZ_X11 only for X11 targets
if TARGET_X11
TestNetscapePlugin_libTestNetscapePlugin_la_CPPFLAGS += -DMOZ_X11
endif

TestNetscapePlugin_libTestNetscapePlugin_la_SOURCES = \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/EvaluateJSAfterRemovingPluginElement.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/FormValue.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURL.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/LogNPPSetWindow.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPDeallocateCalledBeforeNPShutdown.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPPNewFails.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPPSetWindowCalledDuringDestruction.cpp \
    Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeCallsWithNullNPP.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NullNPPGetValuePointer.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PassDifferentNPPStruct.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PrivateBrowsing.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/ToStringAndValueOfObject.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/Tests/x11/CallInvalidateRectWithNullNPPArgument.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.h \
	Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h \
	Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.h \
	Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp \
	Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npapi.h \
	Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npfunctions.h \
	Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npruntime.h

TestNetscapePlugin_libTestNetscapePlugin_la_LDFLAGS = \
	-rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
	$(no_undefined) \
	-avoid-version \
	-module

CLEANFILES += TestNetscapePlugin/libTestNetscapePlugin.la
endif

check-local:
	$(top_srcdir)/Tools/Scripts/run-gtk-tests --timeout=-1
	$(top_srcdir)/Tools/gtk/check-for-webkitdom-api-breaks

EXTRA_DIST += \
	Tools/jhbuild/jhbuildutils.py \
	Tools/Scripts/VCSUtils.pm \
	Tools/Scripts/run-gtk-tests \
	Tools/Scripts/webkit-build-directory \
	Tools/Scripts/webkitdirs.pm