3D transformed surfaces with z>0 gets cropped
[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/JSInternalsCustom.cpp \
49         Source/WebCore/testing/js/WebCoreTestSupport.cpp \
50         Source/WebCore/testing/js/WebCoreTestSupport.h
51
52 libwebcoreinternals_built_sources += \
53         DerivedSources/WebCore/JSInternals.cpp \
54         DerivedSources/WebCore/JSInternals.h   \
55         DerivedSources/WebCore/JSInternalSettings.cpp \
56         DerivedSources/WebCore/JSInternalSettings.h
57
58 nodist_libWebCoreInternals_la_SOURCES = $(libwebcoreinternals_built_sources)
59 BUILT_SOURCES += $(libwebcoreinternals_built_sources)
60
61 libWebCoreInternals_la_CPPFLAGS = \
62         $(global_cppflags) \
63         $(webcore_cppflags) \
64         $(webcoregtk_cppflags) \
65         $(javascriptcore_cppflags) \
66         $(CAIRO_CFLAGS) \
67         $(LIBSOUP_CFLAGS) \
68         $(PANGO_CFLAGS) \
69         -I$(top_builddir)/DerivedSources \
70         -I$(top_builddir)/DerivedSources/WebCore
71
72 libWebCoreInternals_la_CXXFLAGS = \
73         $(global_cxxflags) \
74         $(libWebCoreInternals_la_CFLAGS)
75
76 libWebCoreInternals_la_CFLAGS = \
77         -fno-strict-aliasing \
78         $(javascriptcore_cflags)
79
80 # DumpRenderTree
81 Programs_DumpRenderTree_CPPFLAGS = \
82         $(global_cppflags) \
83         -DTOP_LEVEL_DIR=\"${shell pwd}/${srcdir}\" \
84         -I$(srcdir)/Tools/DumpRenderTree \
85         -I$(srcdir)/Tools/DumpRenderTree/cairo \
86         -I$(srcdir)/Tools/DumpRenderTree/gtk \
87         -I$(srcdir)/Source/WebKit/gtk \
88         -I$(srcdir)/Source/WebCore/platform/gtk \
89         -I$(srcdir)/Source/WebCore/testing/js \
90         -I$(top_builddir)/DerivedSources \
91         -I$(top_builddir)/Source/WebKit/gtk \
92         $(javascriptcore_cppflags) \
93         $(webcore_cppflags)
94
95 if TARGET_X11
96 Programs_DumpRenderTree_CPPFLAGS += \
97         -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\" \
98         -DFONTS_CONF_DIR=\"${shell pwd}/${srcdir}/Tools/DumpRenderTree/gtk/fonts\"
99 endif
100
101 Programs_DumpRenderTree_SOURCES = \
102         Tools/DumpRenderTree/DumpRenderTree.h \
103         Tools/DumpRenderTree/DumpRenderTreePrefix.h \
104         Tools/DumpRenderTree/AccessibilityController.cpp \
105         Tools/DumpRenderTree/AccessibilityController.h \
106         Tools/DumpRenderTree/AccessibilityTextMarker.cpp \
107         Tools/DumpRenderTree/AccessibilityTextMarker.h \
108         Tools/DumpRenderTree/AccessibilityUIElement.cpp \
109         Tools/DumpRenderTree/AccessibilityUIElement.h \
110         Tools/DumpRenderTree/CyclicRedundancyCheck.cpp \
111         Tools/DumpRenderTree/CyclicRedundancyCheck.h \
112         Tools/DumpRenderTree/GCController.cpp \
113         Tools/DumpRenderTree/GCController.h \
114         Tools/DumpRenderTree/JavaScriptThreading.h \
115         Tools/DumpRenderTree/LayoutTestController.cpp \
116         Tools/DumpRenderTree/LayoutTestController.h \
117         Tools/DumpRenderTree/PixelDumpSupport.cpp \
118         Tools/DumpRenderTree/PixelDumpSupport.h \
119         Tools/DumpRenderTree/WorkQueue.cpp \
120         Tools/DumpRenderTree/WorkQueue.h \
121         Tools/DumpRenderTree/WorkQueueItem.h \
122         Tools/DumpRenderTree/config.h \
123         Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp \
124         Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.h \
125         Tools/DumpRenderTree/gtk/AccessibilityCallbacks.h \
126         Tools/DumpRenderTree/gtk/AccessibilityCallbacks.cpp \
127         Tools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
128         Tools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp \
129         Tools/DumpRenderTree/gtk/DumpRenderTree.cpp \
130         Tools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
131         Tools/DumpRenderTree/gtk/EditingCallbacks.h \
132         Tools/DumpRenderTree/gtk/EditingCallbacks.cpp \
133         Tools/DumpRenderTree/gtk/EventSender.h \
134         Tools/DumpRenderTree/gtk/EventSender.cpp \
135         Tools/DumpRenderTree/gtk/GCControllerGtk.cpp \
136         Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
137         Tools/DumpRenderTree/gtk/PixelDumpSupportGtk.cpp \
138         Tools/DumpRenderTree/gtk/SelfScrollingWebKitWebView.cpp \
139         Tools/DumpRenderTree/gtk/SelfScrollingWebKitWebView.h \
140         Tools/DumpRenderTree/gtk/TextInputController.h \
141         Tools/DumpRenderTree/gtk/TextInputController.cpp \
142         Tools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp \
143         Source/WebCore/platform/gtk/GtkVersioning.c
144
145 Programs_DumpRenderTree_CXXFLAGS = \
146         $(global_cxxflags) \
147         $(Programs_DumpRenderTree_CFLAGS)
148
149 Programs_DumpRenderTree_CFLAGS = \
150         -fno-strict-aliasing \
151         $(global_cflags) \
152         $(GLOBALDEPS_CFLAGS) \
153         $(CAIRO_CFLAGS) \
154         $(GTK_CFLAGS) \
155         $(LIBSOUP_CFLAGS)
156
157 Programs_DumpRenderTree_LDADD = \
158         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
159         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.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 EXTRA_DIST += \
240         Tools/gtk/common.py \
241         Tools/gtk/generate-gtkdoc \
242         Tools/gtk/gtkdoc.py \
243         Tools/Scripts/VCSUtils.pm \
244         Tools/Scripts/webkit-build-directory \
245         Tools/Scripts/webkitdirs.pm
246
247 docs: docs-build.stamp
248 .PHONY : docs
249 DISTCLEANFILES += docs-build.stamp
250
251 if ENABLE_WEBKIT2
252 docs-build.stamp: \
253         Source/WebKit/gtk/docs/webkitenvironment.xml \
254         Source/WebKit/gtk/docs/webkitgtk-docs.sgml \
255         Source/WebKit/gtk/docs/webkitgtk-sections.txt \
256         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
257         libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
258         Source/WebKit2/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml \
259         Source/WebKit2/UIProcess/API/gtk/docs/webkit2gtk-sections.txt
260         $(srcdir)/Tools/gtk/generate-gtkdoc
261         @touch docs-build.stamp
262 else
263 docs-build.stamp: \
264         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
265         Source/WebKit/gtk/docs/webkitenvironment.xml \
266         Source/WebKit/gtk/docs/webkitgtk-docs.sgml \
267         Source/WebKit/gtk/docs/webkitgtk-sections.txt
268         $(srcdir)/Tools/gtk/generate-gtkdoc
269         @touch docs-build.stamp
270 endif
271
272 clean-local: doc-clean-local
273 doc-clean-local:
274         @rm -f Documentation/webkitgtk/*~ Documentation/webkitgtk*.bak
275         @rm -f Documentation/webkit2gtk/*~ Documentation/webkit2gtk*.bak
276 distclean-local: doc-distclean-local
277 doc-distclean-local:
278         @rm -rf Documentation
279 maintainer-clean-local: doc-maintainer-clean-local
280 doc-maintainer-clean-local: clean
281         @rm -rf Documentation/webkitgtk Documentation/webkit2gtk
282         -@rmdir Documentation
283
284 install-data-local:
285         @installfiles=`echo ./Documentation/webkitgtk/html/*`; \
286         if test "$$installfiles" = './Documentation/webkitgtk/html/*'; \
287         then echo 1>&2 'No documentation to install' ; \
288         else \
289           DOC_MODULE_VERSION=`cat ./Documentation/webkitgtk/version.xml`; \
290           if test -n "$(DOC_MODULE_VERSION)"; then \
291             installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk-$(DOC_MODULE_VERSION)"; \
292           else \
293             installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk"; \
294           fi; \
295           $(mkinstalldirs) $${installdir} ; \
296           for i in $$installfiles; do \
297             echo ' $(INSTALL_DATA) '$$i ; \
298             $(INSTALL_DATA) $$i $${installdir}; \
299           done; \
300           if test -n "$(DOC_MODULE_VERSION)"; then \
301             mv -f $${installdir}/webkitgtk.devhelp2 \
302               $${installdir}/webkitgtk-$(DOC_MODULE_VERSION).devhelp2; \
303           fi; \
304         fi
305 if ENABLE_WEBKIT2
306         @installfiles=`echo ./Documentation/webkit2gtk/html/*`; \
307         if test "$$installfiles" = './Documentation/webkit2gtk/html/*'; \
308         then echo 1>&2 'No documentation to install' ; \
309         else \
310           DOC_MODULE_VERSION=`cat ./Documentation/webkit2gtk/version.xml`; \
311           if test -n "$(DOC_MODULE_VERSION)"; then \
312             installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk-$(DOC_MODULE_VERSION)"; \
313           else \
314             installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk"; \
315           fi; \
316           $(mkinstalldirs) $${installdir} ; \
317           for i in $$installfiles; do \
318             echo ' $(INSTALL_DATA) '$$i ; \
319             $(INSTALL_DATA) $$i $${installdir}; \
320           done; \
321           if test -n "$(DOC_MODULE_VERSION)"; then \
322             mv -f $${installdir}/webkit2gtk.devhelp2 \
323               $${installdir}/webkit2gtk-$(DOC_MODULE_VERSION).devhelp2; \
324           fi; \
325         fi
326 endif
327         @$(AM_V_GEN)$(PYTHON) $(srcdir)/Tools/gtk/generate-gtkdoc --rebase --virtual-root=$${DESTDIR}
328
329 uninstall-local:
330         @DOC_MODULE_VERSION=`cat ./Documentation/webkitgtk/version.xml`; \
331         if test -n "$(DOC_MODULE_VERSION)"; then \
332           installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk-$(DOC_MODULE_VERSION)"; \
333         else \
334           installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk"; \
335         fi; \
336         rm -rf $${installdir}
337 if ENABLE_WEBKIT2
338         @DOC_MODULE_VERSION=`cat ./Documentation/webkit2gtk/version.xml`; \
339         if test -n "$(DOC_MODULE_VERSION)"; then \
340           installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk-$(DOC_MODULE_VERSION)"; \
341         else \
342           installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk"; \
343         fi; \
344         rm -rf $${installdir}
345 endif
346
347 if ENABLE_GTK_DOC
348 all: docs-build.stamp
349 endif
350