Fixed somtimes focus ring is shown twice.
[framework/web/webkit-efl.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/LauncherInspectorWindow.c \
16         Tools/GtkLauncher/LauncherInspectorWindow.h \
17         Tools/GtkLauncher/main.c
18
19 Programs_GtkLauncher_CFLAGS = \
20         -ansi \
21         -fno-strict-aliasing \
22         $(global_cflags) \
23         $(GTK_CFLAGS) \
24         $(LIBSOUP_CFLAGS)
25
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 \
29         $(GTK_LIBS) \
30         $(GLIB_LIBS) \
31         $(LIBSOUP_LIBS) \
32         $(WINMM_LIBS)
33
34 Programs_GtkLauncher_LDFLAGS = \
35         -no-fast-install \
36         -no-install
37
38 # libWebCoreInternals
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
55
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
63
64 nodist_libWebCoreInternals_la_SOURCES = $(libwebcoreinternals_built_sources)
65 BUILT_SOURCES += $(libwebcoreinternals_built_sources)
66
67 libWebCoreInternals_la_CPPFLAGS = \
68         $(global_cppflags) \
69         $(webcore_cppflags) \
70         $(webcoregtk_cppflags) \
71         $(javascriptcore_cppflags) \
72         $(CAIRO_CFLAGS) \
73         $(LIBSOUP_CFLAGS) \
74         $(PANGO_CFLAGS) \
75         -I$(top_builddir)/DerivedSources \
76         -I$(top_builddir)/DerivedSources/WebCore
77
78 libWebCoreInternals_la_CXXFLAGS = \
79         $(global_cxxflags) \
80         $(libWebCoreInternals_la_CFLAGS)
81
82 libWebCoreInternals_la_CFLAGS = \
83         -fno-strict-aliasing \
84         $(javascriptcore_cflags)
85
86 # DumpRenderTree
87 Programs_DumpRenderTree_CPPFLAGS = \
88         $(global_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) \
99         $(webcore_cppflags)
100
101 if TARGET_X11
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\"
105 endif
106
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
150
151 Programs_DumpRenderTree_CXXFLAGS = \
152         $(global_cxxflags) \
153         $(Programs_DumpRenderTree_CFLAGS)
154
155 Programs_DumpRenderTree_CFLAGS = \
156         -fno-strict-aliasing \
157         $(global_cflags) \
158         $(GLOBALDEPS_CFLAGS) \
159         $(CAIRO_CFLAGS) \
160         $(GTK_CFLAGS) \
161         $(LIBSOUP_CFLAGS)
162
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 \
168         $(GLOBALDEPS_LIBS) \
169         $(CAIRO_LIBS) \
170         $(GTK_LIBS) \
171         $(GLIB_LIBS) \
172         $(LIBSOUP_LIBS) \
173         $(FREETYPE_LIBS) \
174         $(WINMM_LIBS) \
175         $(XRENDER_LIBS) \
176         $(XT_LIBS)
177
178 Programs_DumpRenderTree_LDFLAGS = \
179         -no-fast-install \
180         -no-install
181
182 # clean target
183 CLEANFILES += \
184         Programs/DumpRenderTree \
185         Programs/GtkLauncher
186
187 if TARGET_X11
188
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
193
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 \
201         $(global_cppflags) \
202         $(javascriptcore_cppflags)
203
204 # For the Gtk port we want to use XP_UNIX both on X11 and Mac
205 if !TARGET_WIN32
206 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS += -DXP_UNIX
207 endif
208
209 # Add MOZ_X11 only for X11 targets
210 if TARGET_X11
211 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS += -DMOZ_X11
212 endif
213
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
241
242 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
243         -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
244         $(no_undefined) \
245         -avoid-version \
246         -module
247
248 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
249 endif
250
251 check-local:
252         $(top_srcdir)/Tools/Scripts/run-gtk-tests
253
254 EXTRA_DIST += \
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
263
264 docs: docs-build.stamp
265 .PHONY : docs
266 DISTCLEANFILES += docs-build.stamp
267
268 if ENABLE_WEBKIT2
269 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
279 else
280 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
287 endif
288
289 clean-local: doc-clean-local
290 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
294 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
300
301 install-data-local:
302         @installfiles=`echo ./Documentation/webkitgtk/html/*`; \
303         if test "$$installfiles" = './Documentation/webkitgtk/html/*'; \
304         then echo 1>&2 'No documentation to install' ; \
305         else \
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)"; \
309           else \
310             installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk"; \
311           fi; \
312           $(mkinstalldirs) $${installdir} ; \
313           for i in $$installfiles; do \
314             echo ' $(INSTALL_DATA) '$$i ; \
315             $(INSTALL_DATA) $$i $${installdir}; \
316           done; \
317           if test -n "$(DOC_MODULE_VERSION)"; then \
318             mv -f $${installdir}/webkitgtk.devhelp2 \
319               $${installdir}/webkitgtk-$(DOC_MODULE_VERSION).devhelp2; \
320           fi; \
321         fi
322 if ENABLE_WEBKIT2
323         @installfiles=`echo ./Documentation/webkit2gtk/html/*`; \
324         if test "$$installfiles" = './Documentation/webkit2gtk/html/*'; \
325         then echo 1>&2 'No documentation to install' ; \
326         else \
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)"; \
330           else \
331             installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk"; \
332           fi; \
333           $(mkinstalldirs) $${installdir} ; \
334           for i in $$installfiles; do \
335             echo ' $(INSTALL_DATA) '$$i ; \
336             $(INSTALL_DATA) $$i $${installdir}; \
337           done; \
338           if test -n "$(DOC_MODULE_VERSION)"; then \
339             mv -f $${installdir}/webkit2gtk.devhelp2 \
340               $${installdir}/webkit2gtk-$(DOC_MODULE_VERSION).devhelp2; \
341           fi; \
342         fi
343 endif
344         @$(AM_V_GEN)$(PYTHON) $(srcdir)/Tools/gtk/generate-gtkdoc --rebase --virtual-root=$${DESTDIR}
345
346 uninstall-local:
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)"; \
350         else \
351           installdir="$(DESTDIR)$(HTML_DIR)/webkitgtk"; \
352         fi; \
353         rm -rf $${installdir}
354 if ENABLE_WEBKIT2
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)"; \
358         else \
359           installdir="$(DESTDIR)$(HTML_DIR)/webkit2gtk"; \
360         fi; \
361         rm -rf $${installdir}
362 endif
363
364 if ENABLE_GTK_DOC
365 all: docs-build.stamp
366 endif
367