Unreviewed, GTK test_expectations update.
[WebKit-https.git] / Tools / GNUmakefile.am
1 noinst_PROGRAMS += \
2         Programs/DumpRenderTree \
3         Programs/GtkLauncher
4
5 # GtkLauncher
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 \
11         $(global_cppflags) \
12         $(javascriptcore_cppflags)
13
14 Programs_GtkLauncher_SOURCES = \
15         Tools/GtkLauncher/main.c
16
17 Programs_GtkLauncher_CFLAGS = \
18         -ansi \
19         -fno-strict-aliasing \
20         $(global_cflags) \
21         $(GTK_CFLAGS) \
22         $(LIBSOUP_CFLAGS)
23
24 Programs_GtkLauncher_LDADD = \
25         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
26         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
27         $(GTK_LIBS) \
28         $(GLIB_LIBS) \
29         $(LIBSOUP_LIBS) \
30         $(WINMM_LIBS)
31
32 Programs_GtkLauncher_LDFLAGS = \
33         -no-fast-install \
34         -no-install
35
36 # libWebCoreInternals
37 # We must split off the window.internals implementation into a separate
38 # convenience library because it requires a different include path order
39 # to prefer the WebCore config.h over the DumpRenderTree config.h
40 noinst_LTLIBRARIES += libWebCoreInternals.la
41 libWebCoreInternals_la_SOURCES = \
42         Source/WebCore/bindings/js/JSDOMWrapper.cpp \
43         Source/WebCore/bindings/js/JSDOMWrapper.h \
44         Source/WebCore/testing/Internals.cpp \
45         Source/WebCore/testing/Internals.h \
46         Source/WebCore/testing/InternalSettings.cpp \
47         Source/WebCore/testing/InternalSettings.h \
48         Source/WebCore/testing/js/WebCoreTestSupport.cpp \
49         Source/WebCore/testing/js/WebCoreTestSupport.h
50
51 libwebcoreinternals_built_sources += \
52         DerivedSources/WebCore/JSInternals.cpp \
53         DerivedSources/WebCore/JSInternals.h   \
54         DerivedSources/WebCore/JSInternalSettings.cpp \
55         DerivedSources/WebCore/JSInternalSettings.h
56
57 nodist_libWebCoreInternals_la_SOURCES = $(libwebcoreinternals_built_sources)
58 BUILT_SOURCES += $(libwebcoreinternals_built_sources)
59
60 libWebCoreInternals_la_CPPFLAGS = \
61         $(global_cppflags) \
62         $(webcore_cppflags) \
63         $(webcoregtk_cppflags) \
64         $(javascriptcore_cppflags) \
65         $(CAIRO_CFLAGS) \
66         $(LIBSOUP_CFLAGS) \
67         $(PANGO_CFLAGS) \
68         -I$(top_builddir)/DerivedSources \
69         -I$(top_builddir)/DerivedSources/WebCore
70
71 libWebCoreInternals_la_CXXFLAGS = \
72         $(global_cxxflags) \
73         $(libWebCoreInternals_la_CFLAGS)
74
75 libWebCoreInternals_la_CFLAGS = \
76         -fno-strict-aliasing \
77         $(javascriptcore_cflags)
78
79 # DumpRenderTree
80 Programs_DumpRenderTree_CPPFLAGS = \
81         $(global_cppflags) \
82         -DTOP_LEVEL_DIR=\"${shell pwd}/${srcdir}\" \
83         -I$(srcdir)/Tools/DumpRenderTree \
84         -I$(srcdir)/Tools/DumpRenderTree/cairo \
85         -I$(srcdir)/Tools/DumpRenderTree/gtk \
86         -I$(srcdir)/Source/WebKit/gtk \
87         -I$(srcdir)/Source/WebCore/platform/gtk \
88         -I$(srcdir)/Source/WebCore/testing/js \
89         -I$(top_builddir)/DerivedSources \
90         -I$(top_builddir)/Source/WebKit/gtk \
91         $(javascriptcore_cppflags) \
92         $(webcore_cppflags)
93
94 if TARGET_X11
95 Programs_DumpRenderTree_CPPFLAGS += \
96         -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\" \
97         -DFONTS_CONF_DIR=\"${shell pwd}/${srcdir}/Tools/DumpRenderTree/gtk/fonts\"
98 endif
99
100 Programs_DumpRenderTree_SOURCES = \
101         Tools/DumpRenderTree/DumpRenderTree.h \
102         Tools/DumpRenderTree/DumpRenderTreePrefix.h \
103         Tools/DumpRenderTree/AccessibilityController.cpp \
104         Tools/DumpRenderTree/AccessibilityController.h \
105         Tools/DumpRenderTree/AccessibilityTextMarker.cpp \
106         Tools/DumpRenderTree/AccessibilityTextMarker.h \
107         Tools/DumpRenderTree/AccessibilityUIElement.cpp \
108         Tools/DumpRenderTree/AccessibilityUIElement.h \
109         Tools/DumpRenderTree/CyclicRedundancyCheck.cpp \
110         Tools/DumpRenderTree/CyclicRedundancyCheck.h \
111         Tools/DumpRenderTree/GCController.cpp \
112         Tools/DumpRenderTree/GCController.h \
113         Tools/DumpRenderTree/JavaScriptThreading.h \
114         Tools/DumpRenderTree/LayoutTestController.cpp \
115         Tools/DumpRenderTree/LayoutTestController.h \
116         Tools/DumpRenderTree/PixelDumpSupport.cpp \
117         Tools/DumpRenderTree/PixelDumpSupport.h \
118         Tools/DumpRenderTree/WorkQueue.cpp \
119         Tools/DumpRenderTree/WorkQueue.h \
120         Tools/DumpRenderTree/WorkQueueItem.h \
121         Tools/DumpRenderTree/config.h \
122         Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp \
123         Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.h \
124         Tools/DumpRenderTree/gtk/AccessibilityCallbacks.h \
125         Tools/DumpRenderTree/gtk/AccessibilityCallbacks.cpp \
126         Tools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
127         Tools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp \
128         Tools/DumpRenderTree/gtk/DumpRenderTree.cpp \
129         Tools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
130         Tools/DumpRenderTree/gtk/EditingCallbacks.h \
131         Tools/DumpRenderTree/gtk/EditingCallbacks.cpp \
132         Tools/DumpRenderTree/gtk/EventSender.h \
133         Tools/DumpRenderTree/gtk/EventSender.cpp \
134         Tools/DumpRenderTree/gtk/GCControllerGtk.cpp \
135         Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
136         Tools/DumpRenderTree/gtk/PixelDumpSupportGtk.cpp \
137         Tools/DumpRenderTree/gtk/SelfScrollingWebKitWebView.cpp \
138         Tools/DumpRenderTree/gtk/SelfScrollingWebKitWebView.h \
139         Tools/DumpRenderTree/gtk/TextInputController.h \
140         Tools/DumpRenderTree/gtk/TextInputController.cpp \
141         Tools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp \
142         Source/WebCore/platform/gtk/GtkVersioning.c
143
144 Programs_DumpRenderTree_CXXFLAGS = \
145         $(global_cxxflags) \
146         $(Programs_DumpRenderTree_CFLAGS)
147
148 Programs_DumpRenderTree_CFLAGS = \
149         -fno-strict-aliasing \
150         $(global_cflags) \
151         $(GLOBALDEPS_CFLAGS) \
152         $(CAIRO_CFLAGS) \
153         $(GTK_CFLAGS) \
154         $(LIBSOUP_CFLAGS)
155
156 Programs_DumpRenderTree_LDADD = \
157         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
158         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
159         libWebCoreModules.la \
160         libWebCoreInternals.la \
161         $(GLOBALDEPS_LIBS) \
162         $(CAIRO_LIBS) \
163         $(GTK_LIBS) \
164         $(GLIB_LIBS) \
165         $(LIBSOUP_LIBS) \
166         $(FREETYPE_LIBS) \
167         $(WINMM_LIBS) \
168         $(XRENDER_LIBS) \
169         $(XT_LIBS)
170
171 Programs_DumpRenderTree_LDFLAGS = \
172         -no-fast-install \
173         -no-install
174
175 # clean target
176 CLEANFILES += \
177         Programs/DumpRenderTree \
178         Programs/GtkLauncher
179
180 if TARGET_X11
181
182 # Build TestNetscapePlugin only for X11
183 # since we don't support plugins for non-X11 builds at the moment.
184 noinst_LTLIBRARIES += \
185         TestNetscapePlugin/libtestnetscapeplugin.la
186
187 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
188         -I$(srcdir)/Tools/DumpRenderTree \
189         -I$(srcdir)/Source/WebCore \
190         -I$(srcdir)/Source/WebCore/bridge \
191         -I$(srcdir)/Source/WebCore/plugins \
192         -I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn \
193         -I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders \
194         $(global_cppflags) \
195         $(javascriptcore_cppflags)
196
197 # For the Gtk port we want to use XP_UNIX both on X11 and Mac
198 if !TARGET_WIN32
199 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS += -DXP_UNIX
200 endif
201
202 TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
203         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp \
204         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/EvaluateJSAfterRemovingPluginElement.cpp \
205         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/FormValue.cpp \
206         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp \
207         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURL.cpp \
208         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp \
209         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp \
210         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPDeallocateCalledBeforeNPShutdown.cpp \
211         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPPSetWindowCalledDuringDestruction.cpp \
212         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \
213         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp \
214         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NullNPPGetValuePointer.cpp \
215         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PassDifferentNPPStruct.cpp \
216         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp \
217         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PrivateBrowsing.cpp \
218         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/x11/CallInvalidateRectWithNullNPPArgument.cpp \
219         Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp \
220         Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.h \
221         Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp \
222         Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h \
223         Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.cpp \
224         Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.h \
225         Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp \
226         Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npapi.h \
227         Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npfunctions.h \
228         Tools/DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npruntime.h
229
230 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
231         -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
232         $(no_undefined) \
233         -avoid-version \
234         -module
235
236 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
237 endif
238
239 check-local:
240         $(top_srcdir)/Tools/Scripts/run-gtk-tests
241
242 EXTRA_DIST += \
243         Tools/gtk/common.py \
244         Tools/gtk/generate-gtkdoc \
245         Tools/gtk/gtkdoc.py \
246         Tools/Scripts/VCSUtils.pm \
247         Tools/Scripts/run-gtk-tests \
248         Tools/Scripts/webkit-build-directory \
249         Tools/Scripts/webkitdirs.pm
250
251 docs: docs-build.stamp
252 .PHONY : docs
253 DISTCLEANFILES += docs-build.stamp
254
255 if ENABLE_WEBKIT2
256 docs-build.stamp: \
257         Source/WebKit/gtk/docs/webkitenvironment.xml \
258         Source/WebKit/gtk/docs/webkitgtk-docs.sgml \
259         Source/WebKit/gtk/docs/webkitgtk-sections.txt \
260         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
261         libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
262         Source/WebKit2/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml \
263         Source/WebKit2/UIProcess/API/gtk/docs/webkit2gtk-sections.txt
264         $(srcdir)/Tools/gtk/generate-gtkdoc
265         @touch docs-build.stamp
266 else
267 docs-build.stamp: \
268         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
269         Source/WebKit/gtk/docs/webkitenvironment.xml \
270         Source/WebKit/gtk/docs/webkitgtk-docs.sgml \
271         Source/WebKit/gtk/docs/webkitgtk-sections.txt
272         $(srcdir)/Tools/gtk/generate-gtkdoc
273         @touch docs-build.stamp
274 endif
275
276 clean-local: doc-clean-local
277 doc-clean-local:
278         @rm -f Documentation/webkitgtk/*~ Documentation/webkitgtk*.bak
279         @rm -f Documentation/webkit2gtk/*~ Documentation/webkit2gtk*.bak
280 distclean-local: doc-distclean-local
281 doc-distclean-local:
282         @rm -rf Documentation
283 maintainer-clean-local: doc-maintainer-clean-local
284 doc-maintainer-clean-local: clean
285         @rm -rf Documentation/webkitgtk Documentation/webkit2gtk
286         -@rmdir Documentation
287
288 install-data-local:
289         @installfiles=`echo ./Documentation/webkitgtk/html/*`; \
290         if test "$$installfiles" = './Documentation/webkitgtk/html/*'; \
291         then echo 1>&2 'No documentation to install' ; \
292         else \
293           DOC_MODULE_VERSION=`cat ./Documentation/webkitgtk/version.xml`; \
294           if test -n "$(DOC_MODULE_VERSION)"; then \
295             installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk-$(DOC_MODULE_VERSION)"; \
296           else \
297             installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk"; \
298           fi; \
299           $(mkinstalldirs) $${installdir} ; \
300           for i in $$installfiles; do \
301             echo ' $(INSTALL_DATA) '$$i ; \
302             $(INSTALL_DATA) $$i $${installdir}; \
303           done; \
304           if test -n "$(DOC_MODULE_VERSION)"; then \
305             mv -f $${installdir}/webkitgtk.devhelp2 \
306               $${installdir}/webkitgtk-$(DOC_MODULE_VERSION).devhelp2; \
307           fi; \
308         fi
309 if ENABLE_WEBKIT2
310         @installfiles=`echo ./Documentation/webkit2gtk/html/*`; \
311         if test "$$installfiles" = './Documentation/webkit2gtk/html/*'; \
312         then echo 1>&2 'No documentation to install' ; \
313         else \
314           DOC_MODULE_VERSION=`cat ./Documentation/webkit2gtk/version.xml`; \
315           if test -n "$(DOC_MODULE_VERSION)"; then \
316             installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk-$(DOC_MODULE_VERSION)"; \
317           else \
318             installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk"; \
319           fi; \
320           $(mkinstalldirs) $${installdir} ; \
321           for i in $$installfiles; do \
322             echo ' $(INSTALL_DATA) '$$i ; \
323             $(INSTALL_DATA) $$i $${installdir}; \
324           done; \
325           if test -n "$(DOC_MODULE_VERSION)"; then \
326             mv -f $${installdir}/webkit2gtk.devhelp2 \
327               $${installdir}/webkit2gtk-$(DOC_MODULE_VERSION).devhelp2; \
328           fi; \
329         fi
330 endif
331         @$(AM_V_GEN)$(PYTHON) $(srcdir)/Tools/gtk/generate-gtkdoc --rebase --virtual-root=$${DESTDIR}
332
333 uninstall-local:
334         @DOC_MODULE_VERSION=`cat ./Documentation/webkitgtk/version.xml`; \
335         if test -n "$(DOC_MODULE_VERSION)"; then \
336           installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk-$(DOC_MODULE_VERSION)"; \
337         else \
338           installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk"; \
339         fi; \
340         rm -rf $${installdir}
341 if ENABLE_WEBKIT2
342         @DOC_MODULE_VERSION=`cat ./Documentation/webkit2gtk/version.xml`; \
343         if test -n "$(DOC_MODULE_VERSION)"; then \
344           installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk-$(DOC_MODULE_VERSION)"; \
345         else \
346           installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk"; \
347         fi; \
348         rm -rf $${installdir}
349 endif
350
351 if ENABLE_GTK_DOC
352 all: docs-build.stamp
353 endif
354