2 Programs/DumpRenderTree \
6 Programs_GtkLauncher_CPPFLAGS = \
7 -I$(srcdir)/Source/WebKit/gtk \
8 -I$(srcdir)/Source/WebCore/platform/network/soup/cache/ \
9 -I$(top_builddir)/Source/WebKit/gtk \
10 -I$(top_builddir)/DerivedSources \
12 $(javascriptcore_cppflags)
14 Programs_GtkLauncher_SOURCES = \
15 Tools/GtkLauncher/LauncherInspectorWindow.c \
16 Tools/GtkLauncher/LauncherInspectorWindow.h \
17 Tools/GtkLauncher/main.c
19 Programs_GtkLauncher_CFLAGS = \
21 -fno-strict-aliasing \
26 Programs_GtkLauncher_LDADD = \
27 libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
28 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
34 Programs_GtkLauncher_LDFLAGS = \
39 # We must split off the window.internals implementation into a separate
40 # convenience library because it requires a different include path order
41 # to prefer the WebCore config.h over the DumpRenderTree config.h
42 noinst_LTLIBRARIES += libWebCoreInternals.la
43 libWebCoreInternals_la_SOURCES = \
44 Source/WebCore/bindings/js/JSDOMWrapper.cpp \
45 Source/WebCore/bindings/js/JSDOMWrapper.h \
46 Source/WebCore/testing/FastMallocStatistics.h \
47 Source/WebCore/testing/Internals.cpp \
48 Source/WebCore/testing/Internals.h \
49 Source/WebCore/testing/InternalSettings.cpp \
50 Source/WebCore/testing/InternalSettings.h \
51 Source/WebCore/testing/MockPagePopupDriver.cpp \
52 Source/WebCore/testing/MockPagePopupDriver.h \
53 Source/WebCore/testing/js/WebCoreTestSupport.cpp \
54 Source/WebCore/testing/js/WebCoreTestSupport.h
56 libwebcoreinternals_built_sources += \
57 DerivedSources/WebCore/JSFastMallocStatistics.cpp \
58 DerivedSources/WebCore/JSFastMallocStatistics.h \
59 DerivedSources/WebCore/JSInternals.cpp \
60 DerivedSources/WebCore/JSInternals.h \
61 DerivedSources/WebCore/JSInternalSettings.cpp \
62 DerivedSources/WebCore/JSInternalSettings.h
64 nodist_libWebCoreInternals_la_SOURCES = $(libwebcoreinternals_built_sources)
65 BUILT_SOURCES += $(libwebcoreinternals_built_sources)
67 libWebCoreInternals_la_CPPFLAGS = \
70 $(webcoregtk_cppflags) \
71 $(javascriptcore_cppflags) \
75 -I$(top_builddir)/DerivedSources \
76 -I$(top_builddir)/DerivedSources/WebCore
78 libWebCoreInternals_la_CXXFLAGS = \
80 $(libWebCoreInternals_la_CFLAGS)
82 libWebCoreInternals_la_CFLAGS = \
83 -fno-strict-aliasing \
84 $(javascriptcore_cflags)
87 Programs_DumpRenderTree_CPPFLAGS = \
89 -DTOP_LEVEL_DIR=\"${shell pwd}/${srcdir}\" \
90 -I$(srcdir)/Tools/DumpRenderTree \
91 -I$(srcdir)/Tools/DumpRenderTree/cairo \
92 -I$(srcdir)/Tools/DumpRenderTree/gtk \
93 -I$(srcdir)/Source/WebKit/gtk \
94 -I$(srcdir)/Source/WebCore/platform/gtk \
95 -I$(srcdir)/Source/WebCore/testing/js \
96 -I$(top_builddir)/DerivedSources \
97 -I$(top_builddir)/Source/WebKit/gtk \
98 $(javascriptcore_cppflags) \
102 Programs_DumpRenderTree_CPPFLAGS += \
103 -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\" \
104 -DFONTS_CONF_DIR=\"${shell pwd}/${srcdir}/Tools/DumpRenderTree/gtk/fonts\"
107 Programs_DumpRenderTree_SOURCES = \
108 Tools/DumpRenderTree/DumpRenderTree.h \
109 Tools/DumpRenderTree/DumpRenderTreePrefix.h \
110 Tools/DumpRenderTree/AccessibilityController.cpp \
111 Tools/DumpRenderTree/AccessibilityController.h \
112 Tools/DumpRenderTree/AccessibilityTextMarker.cpp \
113 Tools/DumpRenderTree/AccessibilityTextMarker.h \
114 Tools/DumpRenderTree/AccessibilityUIElement.cpp \
115 Tools/DumpRenderTree/AccessibilityUIElement.h \
116 Tools/DumpRenderTree/CyclicRedundancyCheck.cpp \
117 Tools/DumpRenderTree/CyclicRedundancyCheck.h \
118 Tools/DumpRenderTree/GCController.cpp \
119 Tools/DumpRenderTree/GCController.h \
120 Tools/DumpRenderTree/JavaScriptThreading.h \
121 Tools/DumpRenderTree/LayoutTestController.cpp \
122 Tools/DumpRenderTree/LayoutTestController.h \
123 Tools/DumpRenderTree/PixelDumpSupport.cpp \
124 Tools/DumpRenderTree/PixelDumpSupport.h \
125 Tools/DumpRenderTree/WorkQueue.cpp \
126 Tools/DumpRenderTree/WorkQueue.h \
127 Tools/DumpRenderTree/WorkQueueItem.h \
128 Tools/DumpRenderTree/config.h \
129 Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp \
130 Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.h \
131 Tools/DumpRenderTree/gtk/AccessibilityCallbacks.h \
132 Tools/DumpRenderTree/gtk/AccessibilityCallbacks.cpp \
133 Tools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
134 Tools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp \
135 Tools/DumpRenderTree/gtk/DumpRenderTree.cpp \
136 Tools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
137 Tools/DumpRenderTree/gtk/EditingCallbacks.h \
138 Tools/DumpRenderTree/gtk/EditingCallbacks.cpp \
139 Tools/DumpRenderTree/gtk/EventSender.h \
140 Tools/DumpRenderTree/gtk/EventSender.cpp \
141 Tools/DumpRenderTree/gtk/GCControllerGtk.cpp \
142 Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
143 Tools/DumpRenderTree/gtk/PixelDumpSupportGtk.cpp \
144 Tools/DumpRenderTree/gtk/SelfScrollingWebKitWebView.cpp \
145 Tools/DumpRenderTree/gtk/SelfScrollingWebKitWebView.h \
146 Tools/DumpRenderTree/gtk/TextInputController.h \
147 Tools/DumpRenderTree/gtk/TextInputController.cpp \
148 Tools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp \
149 Source/WebCore/platform/gtk/GtkVersioning.c
151 Programs_DumpRenderTree_CXXFLAGS = \
153 $(Programs_DumpRenderTree_CFLAGS)
155 Programs_DumpRenderTree_CFLAGS = \
156 -fno-strict-aliasing \
158 $(GLOBALDEPS_CFLAGS) \
163 Programs_DumpRenderTree_LDADD = \
164 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
165 libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
166 libWebCoreModules.la \
167 libWebCoreInternals.la \
178 Programs_DumpRenderTree_LDFLAGS = \
184 Programs/DumpRenderTree \
189 # Build TestNetscapePlugin only for X11
190 # since we don't support plugins for non-X11 builds at the moment.
191 noinst_LTLIBRARIES += \
192 TestNetscapePlugin/libtestnetscapeplugin.la
194 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
195 -I$(srcdir)/Tools/DumpRenderTree \
196 -I$(srcdir)/Source/WebCore \
197 -I$(srcdir)/Source/WebCore/bridge \
198 -I$(srcdir)/Source/WebCore/plugins \
199 -I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn \
200 -I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders \
202 $(javascriptcore_cppflags)
204 # For the Gtk port we want to use XP_UNIX both on X11 and Mac
206 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS += -DXP_UNIX
209 # Add MOZ_X11 only for X11 targets
211 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS += -DMOZ_X11
214 TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
215 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp \
216 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/EvaluateJSAfterRemovingPluginElement.cpp \
217 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/FormValue.cpp \
218 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp \
219 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURL.cpp \
220 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp \
221 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp \
222 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPDeallocateCalledBeforeNPShutdown.cpp \
223 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPPSetWindowCalledDuringDestruction.cpp \
224 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \
225 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp \
226 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NullNPPGetValuePointer.cpp \
227 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PassDifferentNPPStruct.cpp \
228 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp \
229 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PrivateBrowsing.cpp \
230 Tools/DumpRenderTree/TestNetscapePlugIn/Tests/x11/CallInvalidateRectWithNullNPPArgument.cpp \
231 Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp \
232 Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.h \
233 Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp \
234 Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h \
235 Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.cpp \
236 Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.h \
237 Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp \
238 Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npapi.h \
239 Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npfunctions.h \
240 Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npruntime.h
242 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
243 -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
248 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
252 $(top_srcdir)/Tools/Scripts/run-gtk-tests
255 Tools/gtk/common.py \
256 Tools/gtk/generate-gtkdoc \
257 Tools/gtk/gtkdoc.py \
258 Tools/gtk/run-api-tests \
259 Tools/Scripts/VCSUtils.pm \
260 Tools/Scripts/run-gtk-tests \
261 Tools/Scripts/webkit-build-directory \
262 Tools/Scripts/webkitdirs.pm
264 docs: docs-build.stamp
266 DISTCLEANFILES += docs-build.stamp
270 Source/WebKit/gtk/docs/webkitenvironment.xml \
271 Source/WebKit/gtk/docs/webkitgtk-docs.sgml \
272 Source/WebKit/gtk/docs/webkitgtk-sections.txt \
273 libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
274 libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
275 Source/WebKit2/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml \
276 Source/WebKit2/UIProcess/API/gtk/docs/webkit2gtk-sections.txt
277 $(srcdir)/Tools/gtk/generate-gtkdoc
278 @touch docs-build.stamp
281 libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
282 Source/WebKit/gtk/docs/webkitenvironment.xml \
283 Source/WebKit/gtk/docs/webkitgtk-docs.sgml \
284 Source/WebKit/gtk/docs/webkitgtk-sections.txt
285 $(srcdir)/Tools/gtk/generate-gtkdoc
286 @touch docs-build.stamp
289 clean-local: doc-clean-local
291 @rm -f Documentation/webkitgtk/*~ Documentation/webkitgtk*.bak
292 @rm -f Documentation/webkit2gtk/*~ Documentation/webkit2gtk*.bak
293 distclean-local: doc-distclean-local
295 @rm -rf Documentation
296 maintainer-clean-local: doc-maintainer-clean-local
297 doc-maintainer-clean-local: clean
298 @rm -rf Documentation/webkitgtk Documentation/webkit2gtk
299 -@rmdir Documentation
302 @installfiles=`echo ./Documentation/webkitgtk/html/*`; \
303 if test "$$installfiles" = './Documentation/webkitgtk/html/*'; \
304 then echo 1>&2 'No documentation to install' ; \
306 DOC_MODULE_VERSION=`cat ./Documentation/webkitgtk/version.xml`; \
307 if test -n "$(DOC_MODULE_VERSION)"; then \
308 installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk-$(DOC_MODULE_VERSION)"; \
310 installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk"; \
312 $(mkinstalldirs) $${installdir} ; \
313 for i in $$installfiles; do \
314 echo ' $(INSTALL_DATA) '$$i ; \
315 $(INSTALL_DATA) $$i $${installdir}; \
317 if test -n "$(DOC_MODULE_VERSION)"; then \
318 mv -f $${installdir}/webkitgtk.devhelp2 \
319 $${installdir}/webkitgtk-$(DOC_MODULE_VERSION).devhelp2; \
323 @installfiles=`echo ./Documentation/webkit2gtk/html/*`; \
324 if test "$$installfiles" = './Documentation/webkit2gtk/html/*'; \
325 then echo 1>&2 'No documentation to install' ; \
327 DOC_MODULE_VERSION=`cat ./Documentation/webkit2gtk/version.xml`; \
328 if test -n "$(DOC_MODULE_VERSION)"; then \
329 installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk-$(DOC_MODULE_VERSION)"; \
331 installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk"; \
333 $(mkinstalldirs) $${installdir} ; \
334 for i in $$installfiles; do \
335 echo ' $(INSTALL_DATA) '$$i ; \
336 $(INSTALL_DATA) $$i $${installdir}; \
338 if test -n "$(DOC_MODULE_VERSION)"; then \
339 mv -f $${installdir}/webkit2gtk.devhelp2 \
340 $${installdir}/webkit2gtk-$(DOC_MODULE_VERSION).devhelp2; \
344 @$(AM_V_GEN)$(PYTHON) $(srcdir)/Tools/gtk/generate-gtkdoc --rebase --virtual-root=$${DESTDIR}
347 @DOC_MODULE_VERSION=`cat ./Documentation/webkitgtk/version.xml`; \
348 if test -n "$(DOC_MODULE_VERSION)"; then \
349 installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk-$(DOC_MODULE_VERSION)"; \
351 installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk"; \
353 rm -rf $${installdir}
355 @DOC_MODULE_VERSION=`cat ./Documentation/webkit2gtk/version.xml`; \
356 if test -n "$(DOC_MODULE_VERSION)"; then \
357 installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk-$(DOC_MODULE_VERSION)"; \
359 installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk"; \
361 rm -rf $${installdir}
365 all: docs-build.stamp