blob: 14d597a2a45d07fedf3b3b25be479752afa7377a (
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
|
noinst_PROGRAMS += \
Programs/DumpRenderTree \
Programs/GtkLauncher
# GtkLauncher
Programs_GtkLauncher_CPPFLAGS = \
-I$(srcdir)/Source/WebKit/gtk \
-I$(srcdir)/Source/WebCore/platform/network/soup/cache/ \
-I$(top_builddir)/Source/WebKit/gtk \
-I$(top_builddir)/DerivedSources \
$(global_cppflags) \
$(javascriptcore_cppflags)
Programs_GtkLauncher_SOURCES = \
Tools/GtkLauncher/LauncherInspectorWindow.c \
Tools/GtkLauncher/LauncherInspectorWindow.h \
Tools/GtkLauncher/main.c
Programs_GtkLauncher_CFLAGS = \
-ansi \
-fno-strict-aliasing \
$(global_cflags) \
$(GTK_CFLAGS) \
$(LIBSOUP_CFLAGS)
Programs_GtkLauncher_LDADD = \
libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
$(GTK_LIBS) \
$(GLIB_LIBS) \
$(LIBSOUP_LIBS) \
$(WINMM_LIBS)
Programs_GtkLauncher_LDFLAGS = \
-no-fast-install \
-no-install
# 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/Internals.cpp \
Source/WebCore/testing/Internals.h \
Source/WebCore/testing/InternalSettings.cpp \
Source/WebCore/testing/InternalSettings.h \
Source/WebCore/testing/js/WebCoreTestSupport.cpp \
Source/WebCore/testing/js/WebCoreTestSupport.h
libwebcoreinternals_built_sources += \
DerivedSources/WebCore/JSInternals.cpp \
DerivedSources/WebCore/JSInternals.h \
DerivedSources/WebCore/JSInternalSettings.cpp \
DerivedSources/WebCore/JSInternalSettings.h
nodist_libWebCoreInternals_la_SOURCES = $(libwebcoreinternals_built_sources)
BUILT_SOURCES += $(libwebcoreinternals_built_sources)
libWebCoreInternals_la_CPPFLAGS = \
$(global_cppflags) \
$(webcore_cppflags) \
$(webcoregtk_cppflags) \
$(javascriptcore_cppflags) \
$(CAIRO_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/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) \
$(webcore_cppflags)
if TARGET_X11
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 = \
Tools/DumpRenderTree/DumpRenderTree.h \
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/LayoutTestController.cpp \
Tools/DumpRenderTree/LayoutTestController.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/cairo/PixelDumpSupportCairo.cpp \
Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.h \
Tools/DumpRenderTree/gtk/AccessibilityCallbacks.h \
Tools/DumpRenderTree/gtk/AccessibilityCallbacks.cpp \
Tools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
Tools/DumpRenderTree/gtk/AccessibilityUIElementGtk.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/LayoutTestControllerGtk.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 \
Source/WebCore/platform/gtk/GtkVersioning.c
Programs_DumpRenderTree_CXXFLAGS = \
$(global_cxxflags) \
$(Programs_DumpRenderTree_CFLAGS)
Programs_DumpRenderTree_CFLAGS = \
-fno-strict-aliasing \
$(global_cflags) \
$(GLOBALDEPS_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 \
libWebCoreModules.la \
libWebCoreInternals.la \
$(GLOBALDEPS_LIBS) \
$(CAIRO_LIBS) \
$(GTK_LIBS) \
$(GLIB_LIBS) \
$(LIBSOUP_LIBS) \
$(FREETYPE_LIBS) \
$(WINMM_LIBS) \
$(XRENDER_LIBS) \
$(XT_LIBS)
Programs_DumpRenderTree_LDFLAGS = \
-no-fast-install \
-no-install
# clean target
CLEANFILES += \
Programs/DumpRenderTree \
Programs/GtkLauncher
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)
# 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/NPDeallocateCalledBeforeNPShutdown.cpp \
Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPPSetWindowCalledDuringDestruction.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/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
EXTRA_DIST += \
Tools/gtk/common.py \
Tools/gtk/generate-gtkdoc \
Tools/gtk/gtkdoc.py \
Tools/gtk/run-api-tests \
Tools/Scripts/VCSUtils.pm \
Tools/Scripts/run-gtk-tests \
Tools/Scripts/webkit-build-directory \
Tools/Scripts/webkitdirs.pm
docs: docs-build.stamp
.PHONY : docs
DISTCLEANFILES += docs-build.stamp
if ENABLE_WEBKIT2
docs-build.stamp: \
Source/WebKit/gtk/docs/webkitenvironment.xml \
Source/WebKit/gtk/docs/webkitgtk-docs.sgml \
Source/WebKit/gtk/docs/webkitgtk-sections.txt \
libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
Source/WebKit2/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml \
Source/WebKit2/UIProcess/API/gtk/docs/webkit2gtk-sections.txt
$(srcdir)/Tools/gtk/generate-gtkdoc
@touch docs-build.stamp
else
docs-build.stamp: \
libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
Source/WebKit/gtk/docs/webkitenvironment.xml \
Source/WebKit/gtk/docs/webkitgtk-docs.sgml \
Source/WebKit/gtk/docs/webkitgtk-sections.txt
$(srcdir)/Tools/gtk/generate-gtkdoc
@touch docs-build.stamp
endif
clean-local: doc-clean-local
doc-clean-local:
@rm -f Documentation/webkitgtk/*~ Documentation/webkitgtk*.bak
@rm -f Documentation/webkit2gtk/*~ Documentation/webkit2gtk*.bak
distclean-local: doc-distclean-local
doc-distclean-local:
@rm -rf Documentation
maintainer-clean-local: doc-maintainer-clean-local
doc-maintainer-clean-local: clean
@rm -rf Documentation/webkitgtk Documentation/webkit2gtk
-@rmdir Documentation
install-data-local:
@installfiles=`echo ./Documentation/webkitgtk/html/*`; \
if test "$$installfiles" = './Documentation/webkitgtk/html/*'; \
then echo 1>&2 'No documentation to install' ; \
else \
DOC_MODULE_VERSION=`cat ./Documentation/webkitgtk/version.xml`; \
if test -n "$(DOC_MODULE_VERSION)"; then \
installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk-$(DOC_MODULE_VERSION)"; \
else \
installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk"; \
fi; \
$(mkinstalldirs) $${installdir} ; \
for i in $$installfiles; do \
echo ' $(INSTALL_DATA) '$$i ; \
$(INSTALL_DATA) $$i $${installdir}; \
done; \
if test -n "$(DOC_MODULE_VERSION)"; then \
mv -f $${installdir}/webkitgtk.devhelp2 \
$${installdir}/webkitgtk-$(DOC_MODULE_VERSION).devhelp2; \
fi; \
fi
if ENABLE_WEBKIT2
@installfiles=`echo ./Documentation/webkit2gtk/html/*`; \
if test "$$installfiles" = './Documentation/webkit2gtk/html/*'; \
then echo 1>&2 'No documentation to install' ; \
else \
DOC_MODULE_VERSION=`cat ./Documentation/webkit2gtk/version.xml`; \
if test -n "$(DOC_MODULE_VERSION)"; then \
installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk-$(DOC_MODULE_VERSION)"; \
else \
installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk"; \
fi; \
$(mkinstalldirs) $${installdir} ; \
for i in $$installfiles; do \
echo ' $(INSTALL_DATA) '$$i ; \
$(INSTALL_DATA) $$i $${installdir}; \
done; \
if test -n "$(DOC_MODULE_VERSION)"; then \
mv -f $${installdir}/webkit2gtk.devhelp2 \
$${installdir}/webkit2gtk-$(DOC_MODULE_VERSION).devhelp2; \
fi; \
fi
endif
@$(AM_V_GEN)$(PYTHON) $(srcdir)/Tools/gtk/generate-gtkdoc --rebase --virtual-root=$${DESTDIR}
uninstall-local:
@DOC_MODULE_VERSION=`cat ./Documentation/webkitgtk/version.xml`; \
if test -n "$(DOC_MODULE_VERSION)"; then \
installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk-$(DOC_MODULE_VERSION)"; \
else \
installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk"; \
fi; \
rm -rf $${installdir}
if ENABLE_WEBKIT2
@DOC_MODULE_VERSION=`cat ./Documentation/webkit2gtk/version.xml`; \
if test -n "$(DOC_MODULE_VERSION)"; then \
installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk-$(DOC_MODULE_VERSION)"; \
else \
installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk"; \
fi; \
rm -rf $${installdir}
endif
if ENABLE_GTK_DOC
all: docs-build.stamp
endif
|