~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to Tools/GNUmakefile.am

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

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