summaryrefslogtreecommitdiffstats
path: root/meta/packages/webkit/files/GNUmakefile.am
diff options
context:
space:
mode:
authorZhai Edwin <edwin.zhai@intel.com>2010-07-22 19:30:47 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-24 00:07:19 +0100
commit3a1c4561721ac0be9bb0cb1fca5f5d41d18a085c (patch)
treea061a9fec5649ccca315380361bfaa02abcbc12c /meta/packages/webkit/files/GNUmakefile.am
parentb0b3468b956ae478cc8c79f972bdbcce38bb3893 (diff)
downloadpoky-3a1c4561721ac0be9bb0cb1fca5f5d41d18a085c.tar.gz
webkit-gtk: Update to 1.3.2
* Update the following files with 1.3.2 version in upstream: GNUmakefile.am Makefile Makefile.shared autogen.sh configure.ac * Update the .bb with the one in openembeded(91eefa1e) * inherit pkgconfig and remove dolt stuff according to RP's comments Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Diffstat (limited to 'meta/packages/webkit/files/GNUmakefile.am')
-rw-r--r--meta/packages/webkit/files/GNUmakefile.am883
1 files changed, 676 insertions, 207 deletions
diff --git a/meta/packages/webkit/files/GNUmakefile.am b/meta/packages/webkit/files/GNUmakefile.am
index a0aefbf50b..39817f1dd5 100644
--- a/meta/packages/webkit/files/GNUmakefile.am
+++ b/meta/packages/webkit/files/GNUmakefile.am
@@ -5,7 +5,6 @@
5# _h_api = API headers that will be installed and included in the distribution 5# _h_api = API headers that will be installed and included in the distribution
6# _cppflags = flags that will be passed to the C/CXX Preprocessor 6# _cppflags = flags that will be passed to the C/CXX Preprocessor
7# _sources = sources that will be compiled and included in the distribution 7# _sources = sources that will be compiled and included in the distribution
8# _headers = header files that will be part of the distribution
9# _built_sources = files that will be autogenerated by the build system and 8# _built_sources = files that will be autogenerated by the build system and
10# will be part of the _SOURCES primary 9# will be part of the _SOURCES primary
11# _built_nosources = files that are autogenerated but are not part of the 10# _built_nosources = files that are autogenerated but are not part of the
@@ -14,8 +13,9 @@
14# 13#
15# Sources, headers, flags, etc... should be added to the respective variables 14# Sources, headers, flags, etc... should be added to the respective variables
16# with the above suffix, e.g, webcore-specific sources should go to 15# with the above suffix, e.g, webcore-specific sources should go to
17# webcore_sources, gtk port-specific flags should go to webkitgtk_cppflags, 16# webcore_sources, gtk port API and WebCoreSupport parts to webkitgtk_sources,
18# etc... The only exceptions are the global variables. See Global Variables below. 17# etc... The only exceptions are the global variables. See Global Variables
18# below.
19# 19#
20# Global Variables 20# Global Variables
21# 21#
@@ -29,223 +29,290 @@
29srcdir = @srcdir@ 29srcdir = @srcdir@
30VPATH = @srcdir@ 30VPATH = @srcdir@
31 31
32DISTCHECK_CONFIGURE_FLAGS = \
33 --enable-introspection \
34 --enable-gtk-doc
35
32# Directory for autogenerated sources 36# Directory for autogenerated sources
33GENSOURCES := $(top_builddir)/DerivedSources 37GENSOURCES := $(top_builddir)/DerivedSources
38GENSOURCESWEBKITDOM := $(top_builddir)/DerivedSources/webkit
39GENPROGRAMS := $(top_builddir)/Programs
34 40
35# Script for creating hash tables 41# Script for creating hash tables
36CREATE_HASH_TABLE = $(srcdir)/JavaScriptCore/kjs/create_hash_table 42CREATE_HASH_TABLE = $(srcdir)/JavaScriptCore/create_hash_table
37
38# Libraries and support components
39noinst_HEADERS :=
40 43
41noinst_PROGRAMS := 44# Script for creating regexp tables
45CREATE_REGEXP_TABLES = $(srcdir)/JavaScriptCore/create_regex_tables
42 46
43lib_LIBRARIES := 47# Programs to run the WebKitGtk unit tests
48GTESTER = gtester
49GTESTER_REPORT = gtester-report
44 50
51# Libraries and support components
52bin_PROGRAMS :=
53noinst_PROGRAMS :=
54noinst_HEADERS :=
55noinst_LTLIBRARIES :=
56lib_LTLIBRARIES :=
45IDL_BINDINGS := 57IDL_BINDINGS :=
46 58TEST_PROGS :=
47# Files that will be distributed 59POFILES :=
60MOFILES :=
61javascriptcore_h_api :=
62javascriptcore_cppflags:=
63javascriptcore_sources :=
64javascriptcore_built_sources :=
65javascriptcore_built_nosources :=
66javascriptcore_dist :=
67webcore_cppflags :=
68webcore_sources :=
69webcore_libadd :=
70webcore_built_sources :=
71webcore_built_nosources :=
72webcore_dist :=
73webcoregtk_cppflags :=
74webcoregtk_sources :=
75IDL_BINDINGS_GDOM :=
76GDOM_AUTO_CLASSES :=
77GDOM_FIXED_CLASSES :=
78GDOM_CLASSES :=
79GDOM_HEADERS_BUILT :=
80GDOM_HEADERS_FIXED :=
81libgdom_h_api :=
82libgdom_cleanfiles :=
83webkitgtk_h_api :=
84webkitgtk_sources :=
85webkitgtk_cppflags :=
86webkitgtk_built_sources :=
87webkitgtk_built_nosources :=
88webkitgtk_cleanfiles :=
89global_cppflags :=
90global_cflags :=
91global_cxxflags :=
92corekit_cflags :=
93corekit_cppflags :=
94JSCORE_GIRSOURCES :=
95WEBKIT_GIRSOURCES :=
96typelibsdir :=
97typelibs_DATA :=
48EXTRA_DIST := 98EXTRA_DIST :=
99BUILT_SOURCES :=
100CLEANFILES :=
101DISTCLEANFILES :=
102MAINTAINERCLEANFILES :=
103
104webcoregtk_cppflags += \
105 -I$(top_builddir)/DerivedSources/webkit \
106 -I$(srcdir)/WebCore/bindings \
107 -I$(srcdir)/WebCore/bindings/gobject
49 108
109# CFLAGS/CXXFLAGS used by WebCore and WebKit
50# 110#
51# Global flags to CPP 111# gtk+.pc already include glib, cairo, freetype and pango CFLAGS
52global_cppflags := 112# Don't include them for now to reduce the noise when compiling
113# $(GLIB_CFLAGS) $(CAIRO_CFLAGS) $(PANGO_CFLAGS) $(FREETYPE_CFLAGS)
114corekit_cflags += \
115 -fno-strict-aliasing \
116 $(COVERAGE_CFLAGS) \
117 $(ENCHANT_CFLAGS) \
118 $(GAIL_CFLAGS) \
119 $(GEOCLUE_CFLAGS) \
120 $(GLIB_CFLAGS) \
121 $(GSTREAMER_CFLAGS) \
122 $(GTK_CFLAGS) \
123 $(HILDON_CFLAGS) \
124 $(LIBSOUP_CFLAGS) \
125 $(LIBXML_CFLAGS) \
126 $(LIBXSLT_CFLAGS) \
127 $(SQLITE3_CFLAGS) \
128 $(UNICODE_CFLAGS) \
129 $(XT_CFLAGS)
53 130
54global_cppflags += \ 131# When building webcore/webkit, we want WebCore/config.h and NOT
55 -DWTF_USE_ICU_UNICODE=1 132# JavaScriptCore/config.h, hence, it's important that WebCore/ should come first
133# before JavaScriptCore in the include path.
134corekit_cppflags += \
135 $(global_cppflags) \
136 $(webcore_cppflags) \
137 $(webcoregtk_cppflags) \
138 $(javascriptcore_cppflags)
139
140# For the Gtk port we want to use XP_UNIX both in X11 and Mac
141if !TARGET_WIN32
142corekit_cppflags += -DXP_UNIX
143endif
56 144
57# Default compiler flags 145# Default compiler flags
58global_cflags := \ 146global_cflags += \
59 -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \ 147 -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
60 -Wformat -Wformat-security -Wno-format-y2k -Wundef \ 148 -Wformat -Wformat-security -Wno-format-y2k -Wundef \
61 -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \ 149 -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \
62 -Wno-unused-parameter 150 -Wno-unused-parameter -Wno-parentheses \
63 151 -fno-exceptions
64global_cxxflags := \
65 $(SYMBOL_VISIBILITY_INLINES)
66
67if !ENABLE_DEBUG
68global_cflags += \
69 -fno-exceptions \
70 $(SYMBOL_VISIBILITY)
71 152
72global_cxxflags += \ 153global_cxxflags += \
154 $(global_cflags) \
155 $(SYMBOL_VISIBILITY_INLINES) \
73 -fno-rtti 156 -fno-rtti
157
158# -no-undefined required for building DLLs on Windows
159# It breaks the build on other platforms, so we use it conditionally
160if OS_WIN32
161no_undefined = -no-undefined
162version_script = -export-symbols-regex "^(webkit_|JS).*"
163endif
164
165if OS_GNU
166version_script = -Wl,--version-script,$(srcdir)/autotools/symbols.filter
74endif 167endif
75 168
76# Shared libraries 169# Shared libraries
77lib_LTLIBRARIES = \ 170lib_LTLIBRARIES += \
78 libwebkit-1.0.la 171 libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
79 172
80# Convenience libraries 173# Convenience libraries
81noinst_LTLIBRARIES = \ 174noinst_LTLIBRARIES += \
82 libJavaScriptCore.la \ 175 libJavaScriptCore.la
83 libWebCore.la
84 176
85#
86# JavaScriptCore 177# JavaScriptCore
87javascriptcore_h_api :=
88javascriptcore_cppflags:=
89javascriptcore_sources :=
90javascriptcore_built_sources :=
91javascriptcore_built_nosources :=
92
93javascriptcore_cppflags += \ 178javascriptcore_cppflags += \
94 -I$(srcdir)/JavaScriptCore \
95 -I$(srcdir)/JavaScriptCore/ForwardingHeaders \ 179 -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
180 -I$(srcdir)/JavaScriptCore/parser \
96 -I$(srcdir)/JavaScriptCore/wtf \ 181 -I$(srcdir)/JavaScriptCore/wtf \
97 -I$(srcdir)/JavaScriptCore/kjs \ 182 -I$(srcdir)/JavaScriptCore/wtf/gtk \
183 -I$(srcdir)/JavaScriptCore/wtf/gobject \
98 -I$(top_builddir)/DerivedSources 184 -I$(top_builddir)/DerivedSources
99 185
100# The variables above are already included below so no need to touch 186nodist_EXTRA_libJavaScriptCore_la_SOURCES = \
101# these variables unless you really have to 187 $(javascriptcore_built_nosources)
102libJavaScriptCore_ladir = $(prefix)/include/webkit-1.0/JavaScriptCore 188
189nodist_libJavaScriptCore_la_SOURCES = \
190 $(javascriptcore_built_sources)
191
192libJavaScriptCore_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/JavaScriptCore
103libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api) 193libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
104 194
105libJavaScriptCore_la_SOURCES = \ 195libJavaScriptCore_la_SOURCES = \
106 $(javascriptcore_built_sources) \
107 $(javascriptcore_sources) 196 $(javascriptcore_sources)
108 197
109libJavaScriptCore_la_LIBADD = \ 198libJavaScriptCore_la_LIBADD = \
110 $(UNICODE_LIBS) \ 199 $(UNICODE_LIBS) \
111 $(GLOBALDEPS_LIBS) \ 200 $(GLIB_LIBS) \
112 -lpthread 201 -lpthread
113 202
114libJavaScriptCore_la_CXXFLAGS = \ 203libJavaScriptCore_la_CXXFLAGS = \
115 $(global_cxxflags) \ 204 $(global_cxxflags) \
116 $(global_cflags) \ 205 $(libJavaScriptCore_la_CFLAGS)
117 $(GLOBALDEPS_CFLAGS) \
118 $(UNICODE_CFLAGS) \
119 -fno-strict-aliasing
120 206
121libJavaScriptCore_la_CFLAGS = \ 207libJavaScriptCore_la_CFLAGS = \
208 -fstrict-aliasing \
209 -O3 \
122 $(global_cflags) \ 210 $(global_cflags) \
123 $(GLOBALDEPS_CFLAGS) \ 211 $(GLIB_CFLAGS) \
124 $(UNICODE_CFLAGS) \ 212 $(UNICODE_CFLAGS)
125 -fno-strict-aliasing
126 213
127libJavaScriptCore_la_CPPFLAGS = \ 214libJavaScriptCore_la_CPPFLAGS = \
128 $(global_cppflags) \ 215 $(global_cppflags) \
129 $(javascriptcore_cppflags) 216 $(javascriptcore_cppflags)
130 217
131#
132# WebCore
133webcore_cppflags :=
134webcore_sources :=
135webcore_headers :=
136webcore_libadd :=
137webcore_built_sources :=
138webcore_built_nosources :=
139
140webcore_cppflags += $(HILDON_CPPFLAGS)
141
142# WebKit 218# WebKit
143webkitgtk_h_api := 219nodist_EXTRA_libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
144webkitgtk_headers := 220 $(webcore_built_nosources)
145webkitgtk_sources :=
146webkitgtk_cppflags :=
147webkitgtk_built_sources :=
148webkitgtk_built_nosources :=
149webkitgtk_cleanfiles :=
150 221
151libWebCore_la_SOURCES = \ 222nodist_libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
152 $(webcore_built_sources) \ 223 $(webcore_built_sources) \
153 $(webcore_headers) \ 224 $(webkitgtk_built_sources)
154 $(webcore_sources)
155 225
156libWebCore_la_CXXFLAGS = \ 226libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/webkit
157 -fno-strict-aliasing \ 227libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = \
228 $(webkitgtk_h_api) \
229 WebKit/gtk/webkit/webkitenumtypes.h
230
231libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
232 $(webcore_sources) \
233 $(webcoregtk_sources) \
234 $(webkitgtk_sources)
235
236libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \
158 $(global_cxxflags) \ 237 $(global_cxxflags) \
159 $(global_cflags) \ 238 $(corekit_cflags)
160 $(GLOBALDEPS_CFLAGS) \
161 $(UNICODE_CFLAGS) \
162 $(WEBKITDEPS_CFLAGS) \
163 $(LIBCURL_CFLAGS) \
164 $(LIBSOUP_CFLAGS) \
165 $(SQLITE3_CFLAGS) \
166 $(GSTREAMER_CFLAGS) \
167 $(LIBXSLT_CFLAGS) \
168 $(COVERAGE_CFLAGS) \
169 $(HILDON_CFLAGS)
170 239
171libWebCore_la_CFLAGS = \ 240libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
172 -fno-strict-aliasing \
173 $(global_cflags) \ 241 $(global_cflags) \
174 $(GLOBALDEPS_CFLAGS) \ 242 $(corekit_cflags)
175 $(UNICODE_CFLAGS) \
176 $(WEBKITDEPS_CFLAGS) \
177 $(LIBCURL_CFLAGS) \
178 $(LIBSOUP_CFLAGS) \
179 $(SQLITE3_CFLAGS) \
180 $(GSTREAMER_CFLAGS) \
181 $(LIBXSLT_CFLAGS) \
182 $(COVERAGE_CFLAGS) \
183 $(HILDON_CFLAGS)
184 243
185libWebCore_la_CPPFLAGS = \ 244libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
186 $(global_cppflags) \ 245 $(corekit_cppflags) \
187 $(webcore_cppflags) \ 246 $(webkitgtk_cppflags) \
188 $(javascriptcore_cppflags) \ 247 $(HILDON_CPPFLAGS)
189 $(webkitgtk_cppflags)
190 248
191libWebCore_la_LIBADD = \ 249libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
250 -version-info @LIBWEBKITGTK_VERSION@ \
251 $(version_script) \
252 $(no_undefined)
253
254libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD = \
255 -lpthread \
192 libJavaScriptCore.la \ 256 libJavaScriptCore.la \
193 $(webcore_libadd) \ 257 libWebCoreJS.la \
194 $(GLOBALDEPS_LIBS) \ 258 libgdom.la \
195 $(WEBKITDEPS_LIBS) \ 259 $(webcore_ldflags) \
196 $(LIBCURL_LIBS) \ 260 $(CAIRO_LIBS) \
197 $(LIBSOUP_LIBS) \ 261 $(COVERAGE_LDFLAGS) \
198 $(UNICODE_LIBS) \ 262 $(ENCHANT_LIBS) \
199 $(SQLITE3_LIBS) \ 263 $(FREETYPE_LIBS) \
264 $(GAIL_LIBS) \
265 $(GEOCLUE_LIBS) \
266 $(GLIB_LIBS) \
200 $(GSTREAMER_LIBS) \ 267 $(GSTREAMER_LIBS) \
201 $(LIBXSLT_LIBS) \ 268 $(GTK_LIBS) \
202 $(HILDON_LIBS) \ 269 $(HILDON_LIBS) \
203 -lpthread \ 270 $(JPEG_LIBS) \
204 -ljpeg 271 $(LIBSOUP_LIBS) \
205 272 $(LIBXML_LIBS) \
206libwebkit_1_0_ladir = $(prefix)/include/webkit-1.0/webkit 273 $(LIBXSLT_LIBS) \
207libwebkit_1_0_la_HEADERS = $(webkitgtk_h_api) 274 $(PANGO_LIBS) \
208 275 $(PNG_LIBS) \
209libwebkit_1_0_la_SOURCES = \ 276 $(SQLITE3_LIBS) \
210 $(webkitgtk_built_sources) \ 277 $(UNICODE_LIBS) \
211 $(webkitgtk_headers) \ 278 $(XT_LIBS)
212 $(webkitgtk_sources)
213
214libwebkit_1_0_la_CXXFLAGS = \
215 $(libWebCore_la_CXXFLAGS)
216
217libwebkit_1_0_la_CFLAGS = \
218 $(libWebCore_la_CFLAGS)
219 279
220libwebkit_1_0_la_CPPFLAGS = \ 280libgdom_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/webkit
221 $(libWebCore_la_CPPFLAGS) 281nodist_libgdom_la_HEADERS = \
282 $(libgdom_h_api)
222 283
223libwebkit_1_0_la_LDFLAGS = \ 284libgdom_cleanfiles += \
224 $(COVERAGE_LDFLAGS) \ 285 $(top_builddir)/WebKit/gtk/webkit/webkitdomenumtypes.h \
225 -version-info @LIBWEBKITGTK_VERSION@ 286 $(top_builddir)/libgdom.la \
226 287 $(top_builddir)/stamp-webkitdomenumtypes.h
227libwebkit_1_0_la_LIBADD = \
228 libWebCore.la
229 288
230# 289#
231# Extra checks and flags 290# Extra checks and flags
232global_cppflags += \ 291global_cppflags += \
292 -DBUILDING_CAIRO__=1 \
233 -DBUILDING_GTK__=1 \ 293 -DBUILDING_GTK__=1 \
234 -DWTF_CHANGES 294 -DWTF_CHANGES
235 295
236if !ENABLE_FAST_MALLOC 296if USE_ICU_UNICODE
237global_cppflags += \ 297global_cppflags += \
238 -DUSE_SYSTEM_MALLOC 298 -DWTF_USE_ICU_UNICODE=1
299endif
300
301if USE_GLIB_UNICODE
302global_cppflags += \
303 -DWTF_USE_GLIB_UNICODE=1
239endif 304endif
240 305
241if TARGET_X11 306if !ENABLE_FAST_MALLOC
242global_cppflags += -DXP_UNIX 307global_cppflags += \
308 -DUSE_SYSTEM_MALLOC
243endif 309endif
244 310
245if !ENABLE_DEBUG 311if !ENABLE_DEBUG
246global_cppflags += -DNDEBUG 312global_cppflags += -DNDEBUG
313global_cflags += $(SYMBOL_VISIBILITY)
247else 314else
248webkitgtk_cppflags += \ 315webcoregtk_cppflags += \
249 -DG_DISABLE_DEPRECATED \ 316 -DG_DISABLE_DEPRECATED \
250 -DGDK_PIXBUF_DISABLE_DEPRECATED \ 317 -DGDK_PIXBUF_DISABLE_DEPRECATED \
251 -DGDK_DISABLE_DEPRECATED \ 318 -DGDK_DISABLE_DEPRECATED \
@@ -257,131 +324,533 @@ webkitgtk_cppflags += \
257# -DGTK_MULTIHEAD_SAFE 324# -DGTK_MULTIHEAD_SAFE
258endif 325endif
259 326
260if !ENABLE_DATABASE
261global_cppflags += -DENABLE_DATABASE=0
262endif
263
264if !ENABLE_ICONDATABASE
265global_cppflags += -DENABLE_ICONDATABASE=0
266endif
267
268if ENABLE_COVERAGE 327if ENABLE_COVERAGE
269global_cppflags += \ 328global_cppflags += \
270 -DGCC_GENERATE_TEST_COVERAGE_FILES \ 329 -DGCC_GENERATE_TEST_COVERAGE_FILES \
271 -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS 330 -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
272endif 331endif
273 332
274if ENABLE_VIDEO
275webcore_libadd += -lgstinterfaces-0.10 -lgstvideo-0.10
276endif
277
278webkitgtk_cppflags += \
279-I$(top_builddir)/WebKit/gtk/webkit \
280-DBUILDING_CAIRO__=1 \
281-DBUILD_WEBKIT
282
283webkitgtk_h_api += \ 333webkitgtk_h_api += \
284 WebKit/gtk/webkit/webkit.h \ 334 $(srcdir)/WebKit/gtk/webkit/webkit.h \
285 WebKit/gtk/webkit/webkitdefines.h \ 335 $(srcdir)/WebKit/gtk/webkit/webkitdefines.h \
286 WebKit/gtk/webkit/webkitnetworkrequest.h \ 336 $(srcdir)/WebKit/gtk/webkit/webkitdownload.h \
287 WebKit/gtk/webkit/webkitwebbackforwardlist.h \ 337 $(srcdir)/WebKit/gtk/webkit/webkiterror.h \
288 WebKit/gtk/webkit/webkitwebframe.h \ 338 $(srcdir)/WebKit/gtk/webkit/webkithittestresult.h \
289 WebKit/gtk/webkit/webkitwebhistoryitem.h \ 339 $(srcdir)/WebKit/gtk/webkit/webkitnetworkrequest.h \
290 WebKit/gtk/webkit/webkitwebsettings.h \ 340 $(srcdir)/WebKit/gtk/webkit/webkitnetworkresponse.h \
291 WebKit/gtk/webkit/webkitwebview.h 341 $(srcdir)/WebKit/gtk/webkit/webkitsoupauthdialog.h \
342 $(srcdir)/WebKit/gtk/webkit/webkitwebbackforwardlist.h \
343 $(srcdir)/WebKit/gtk/webkit/webkitwebdatasource.h \
344 $(srcdir)/WebKit/gtk/webkit/webkitwebframe.h \
345 $(srcdir)/WebKit/gtk/webkit/webkitwebhistoryitem.h \
346 $(srcdir)/WebKit/gtk/webkit/webkitwebinspector.h \
347 $(srcdir)/WebKit/gtk/webkit/webkitwebnavigationaction.h \
348 $(srcdir)/WebKit/gtk/webkit/webkitwebpolicydecision.h \
349 $(srcdir)/WebKit/gtk/webkit/webkitgeolocationpolicydecision.h \
350 $(srcdir)/WebKit/gtk/webkit/webkitwebresource.h \
351 $(srcdir)/WebKit/gtk/webkit/webkitwebsettings.h \
352 $(srcdir)/WebKit/gtk/webkit/webkitwebwindowfeatures.h \
353 $(srcdir)/WebKit/gtk/webkit/webkitwebview.h \
354 $(srcdir)/WebKit/gtk/webkit/webkitwebdatabase.h \
355 $(srcdir)/WebKit/gtk/webkit/webkitsecurityorigin.h \
356 $(top_builddir)/WebKit/gtk/webkit/webkitversion.h
292 357
293webkitgtk_built_sources += \ 358webkitgtk_built_sources += \
294 WebKit/gtk/webkit/webkit-marshal.h \ 359 DerivedSources/webkitenumtypes.cpp \
295 WebKit/gtk/webkit/webkit-marshal.cpp 360 DerivedSources/webkitdomenumtypes.cpp \
361 DerivedSources/webkitmarshal.cpp \
362 DerivedSources/webkitmarshal.h \
363 WebKit/gtk/webkit/webkitenumtypes.h
296 364
297webkitgtk_headers += \ 365webkitgtk_sources += \
298 WebKit/gtk/webkit/webkitprivate.h \ 366 WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
299 WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \ 367 WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
368 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
300 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \ 369 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
370 WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.cpp \
371 WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.h \
372 WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
301 WebKit/gtk/WebCoreSupport/DragClientGtk.h \ 373 WebKit/gtk/WebCoreSupport/DragClientGtk.h \
374 WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
302 WebKit/gtk/WebCoreSupport/EditorClientGtk.h \ 375 WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
376 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
303 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \ 377 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
378 WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \
304 WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \ 379 WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
305 WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h 380 WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp \
306 381 WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h \
307webkitgtk_sources += \ 382 WebKit/gtk/webkit/webkitapplicationcache.cpp \
383 WebKit/gtk/webkit/webkitdownload.cpp \
384 WebKit/gtk/webkit/webkiterror.cpp \
385 WebKit/gtk/webkit/webkithittestresult.cpp \
308 WebKit/gtk/webkit/webkitnetworkrequest.cpp \ 386 WebKit/gtk/webkit/webkitnetworkrequest.cpp \
387 WebKit/gtk/webkit/webkitnetworkresponse.cpp \
309 WebKit/gtk/webkit/webkitprivate.cpp \ 388 WebKit/gtk/webkit/webkitprivate.cpp \
389 WebKit/gtk/webkit/webkitprivate.h \
390 WebKit/gtk/webkit/webkitsoupauthdialog.c \
391 WebKit/gtk/webkit/webkitversion.cpp \
310 WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \ 392 WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \
393 WebKit/gtk/webkit/webkitwebdatasource.cpp \
311 WebKit/gtk/webkit/webkitwebframe.cpp \ 394 WebKit/gtk/webkit/webkitwebframe.cpp \
312 WebKit/gtk/webkit/webkitwebhistoryitem.cpp \ 395 WebKit/gtk/webkit/webkitwebhistoryitem.cpp \
396 WebKit/gtk/webkit/webkitwebinspector.cpp \
397 WebKit/gtk/webkit/webkitwebnavigationaction.cpp \
398 WebKit/gtk/webkit/webkitwebpolicydecision.cpp \
399 WebKit/gtk/webkit/webkitgeolocationpolicydecision.cpp \
400 WebKit/gtk/webkit/webkitwebresource.cpp \
401 WebKit/gtk/webkit/webkitwebdatabase.cpp \
402 WebKit/gtk/webkit/webkitsecurityorigin.cpp \
313 WebKit/gtk/webkit/webkitwebsettings.cpp \ 403 WebKit/gtk/webkit/webkitwebsettings.cpp \
314 WebKit/gtk/webkit/webkitwebview.cpp \ 404 WebKit/gtk/webkit/webkitwebview.cpp \
315 WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \ 405 WebKit/gtk/webkit/webkitwebwindowfeatures.cpp \
316 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \ 406 WebKit/gtk/webkit/webkitworkers.cpp
317 WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \ 407
318 WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \ 408webkitgtk_cppflags += \
319 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \ 409 -DBUILDING_WEBKIT \
320 WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \ 410 -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
321 WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp 411 -DDATA_DIR=\"${datadir}\" \
412 -I$(srcdir)/WebKit/gtk \
413 -I$(srcdir)/WebKit/gtk/WebCoreSupport \
414 -I$(srcdir)/WebKit/gtk/webkit \
415 -I$(top_builddir)/WebKit/gtk \
416 -I$(top_builddir)/WebKit/gtk/webkit \
417 -I$(GENSOURCESWEBKITDOM)
322 418
323webkitgtk_cleanfiles += \ 419webkitgtk_cleanfiles += \
420 $(top_builddir)/stamp-webkitmarshal.cpp \
421 $(top_builddir)/stamp-webkitmarshal.h \
422 $(top_builddir)/stamp-webkitenumtypes.cpp \
423 $(top_builddir)/stamp-webkitenumtypes.h \
324 $(top_builddir)/Programs/GtkLauncher \ 424 $(top_builddir)/Programs/GtkLauncher \
325 $(top_builddir)/WebKit/gtk/webkit-1.0.pc 425 $(top_builddir)/WebKit/gtk/docs/version.xml \
426 $(top_builddir)/WebKit/gtk/docs/GNUmakefile \
427 $(top_builddir)/WebKit/gtk/@WEBKITGTK_PC_NAME@-@WEBKITGTK_API_VERSION@.pc \
428 $(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h \
429 $(top_builddir)/WebKit/gtk/webkit/webkitversion.h
326 430
327pkgconfigdir = $(libdir)/pkgconfig 431pkgconfigdir = $(libdir)/pkgconfig
328pkgconfig_DATA = WebKit/gtk/webkit-1.0.pc 432pkgconfig_DATA = WebKit/gtk/@WEBKITGTK_PC_NAME@-@WEBKITGTK_API_VERSION@.pc
433
434if ENABLE_INTROSPECTION
435
436JSCore-@WEBKITGTK_API_VERSION@.gir: $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir
437 cp $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir $(builddir)/
438
439JSCORE_GIRSOURCES += JSCore-@WEBKITGTK_API_VERSION@.gir
440WEBKIT_GIRSOURCES += WebKit-@WEBKITGTK_API_VERSION@.gir
441
442$(WEBKIT_GIRSOURCES): $(G_IR_SCANNER) $(JSCORE_GIRSOURCES) libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
443 $(AM_V_GEN)$(G_IR_SCANNER) -v --namespace WebKit --nsversion=@WEBKITGTK_API_VERSION@ \
444 --include=GObject-2.0 \
445 --include=Gtk-@GTK_API_VERSION@ \
446 --include=JSCore-@WEBKITGTK_API_VERSION@ \
447 --include=Soup-2.4 \
448 --library=webkitgtk-@WEBKITGTK_API_VERSION@ \
449 --libtool="$(LIBTOOL)" \
450 --pkg gobject-2.0 \
451 --pkg gtk+-@GTK_API_VERSION@ \
452 --pkg libsoup-2.4 \
453 --output $@ \
454 --add-include-path $(top_srcdir)/WebKit/gtk \
455 --add-include-path $(builddir) \
456 -I$(top_srcdir)/WebKit/gtk \
457 -I$(top_builddir)/WebKit/gtk \
458 -I$(top_builddir)/DerivedSources \
459 -I$(top_srcdir)/JavaScriptCore/ForwardingHeaders \
460 -I$(top_srcdir) \
461 $(webkitgtk_h_api) \
462 $(libgdom_h_api)
463
464girdir = $(datadir)/gir-1.0
465gir_DATA = $(WEBKIT_GIRSOURCES) $(JSCORE_GIRSOURCES)
466
467typelibsdir += $(libdir)/girepository-1.0
468typelibs_DATA += $(JSCORE_GIRSOURCES:.gir=.typelib) $(WEBKIT_GIRSOURCES:.gir=.typelib)
469
470%.typelib: %.gir $(G_IR_COMPILER)
471 $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(top_srcdir)/WebKit/gtk --includedir $(builddir) $< -o $@
472
473CLEANFILES += $(JSCORE_GIRSOURCES) $(WEBKIT_GIRSOURCES) $(typelibs_DATA)
329 474
330WEBKIT_MARSHAL = $(CURDIR)/WebKit/gtk/webkit/webkit-marshal 475endif
331WEBKIT_MARSHAL_LIST = $(srcdir)/WebKit/gtk/webkit/webkit-marshal.list 476
477EXTRA_DIST += $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir
332 478
333stamp_files := \ 479WEBKIT_MARSHAL = $(GENSOURCES)/webkitmarshal
334 stamp-webkit-marshal.cpp \ 480WEBKIT_MARSHAL_LIST = $(top_srcdir)/WebKit/gtk/webkitmarshal.list
335 stamp-webkit-marshal.h
336 481
337WebKit/gtk/webkit/webkit-marshal.cpp: stamp-webkit-marshal.cpp 482$(WEBKIT_MARSHAL).cpp: stamp-webkitmarshal.cpp
338 @true 483 @true
339 484
340WebKit/gtk/webkit/webkit-marshal.h: stamp-webkit-marshal.h 485$(WEBKIT_MARSHAL).h: stamp-webkitmarshal.h
341 @true 486 @true
342 487
343stamp-webkit-marshal.cpp: $(WEBKIT_MARSHAL_LIST) 488stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST)
344 echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \ 489 $(AM_V_GEN) echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
345 $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \ 490 $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
346 echo timestamp > $(@F) 491 echo timestamp > $(@F)
347 492
348stamp-webkit-marshal.h: $(WEBKIT_MARSHAL_LIST) 493stamp-webkitmarshal.h: $(WEBKIT_MARSHAL_LIST)
349 $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \ 494 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
350 echo timestamp > $(@F) 495 echo timestamp > $(@F)
351 496
352# END WEBKIT GTK+ 497WebKit/gtk/webkit/webkitenumtypes.h: stamp-webkitenumtypes.h
498 @true
499stamp-webkitenumtypes.h: $(webkitgtk_h_api) GNUmakefile
500 $(AM_V_GEN)glib-mkenums \
501 --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
502 --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
503 --fhead "#include <glib-object.h>\n\n" \
504 --fhead "#include <webkit/webkitdefines.h>\n\n" \
505 --fhead "G_BEGIN_DECLS\n\n" \
506 --ftail "G_END_DECLS\n\n" \
507 --ftail "#endif\n" \
508 --fprod "#include <webkit/@basename@>\n\n" \
509 --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
510 --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
511 $(webkitgtk_h_api) | \
512 sed 's,web_kit,webkit,' | \
513 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
514 > xgen-gth \
515 && (cmp -s xgen-gth WebKit/gtk/webkit/webkitenumtypes.h || cp xgen-gth WebKit/gtk/webkit/webkitenumtypes.h) \
516 && rm -f xgen-gth \
517 && echo timestamp > $(@F)
518
519DerivedSources/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile
520 $(AM_V_GEN)glib-mkenums \
521 --fhead "#include <config.h>\n" \
522 --fhead "#include <glib-object.h>\n" \
523 --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h\"\n\n" \
524 --fhead "extern \"C\" {\n\n" \
525 --fprod "\n/* enumerations from \"@filename@\" */" \
526 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
527 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
528 --vtail " { 0, NULL, NULL }\n};\n\n" \
529 --vtail "GType @enum_name@_get_type(void)\n{\n" \
530 --vtail " static GType type = 0;\n\n" \
531 --vtail " if (!type)\n" \
532 --vtail " type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
533 --vtail " return type;\n}\n\n" \
534 --ftail "}\n" \
535 $(webkitgtk_h_api) | \
536 sed 's,web_kit,webkit,' \
537 > xgen-gtc \
538 && cp xgen-gtc $@ \
539 && rm -f xgen-gtc
540
541WebKit/gtk/webkit/webkitdomenumtypes.h: stamp-webkitdomenumtypes.h
542 @true
543stamp-webkitdomenumtypes.h: $(libgdom_h_api) GNUmakefile
544 $(AM_V_GEN)glib-mkenums \
545 --fhead "#ifndef WEBKIT_DOM_ENUM_TYPES_H\n" \
546 --fhead "#define WEBKIT_DOM_ENUM_TYPES_H\n\n" \
547 --fhead "#include <glib-object.h>\n\n" \
548 --fhead "G_BEGIN_DECLS\n\n" \
549 --ftail "G_END_DECLS\n\n" \
550 --ftail "#endif\n" \
551 --fprod "#include <webkit/@basename@>\n\n" \
552 --eprod "#define WEBKIT_DOM_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
553 --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);n\n" \
554 $(libgdom_h_api) | \
555 sed 's,web_kit,webkit_dom,' | \
556 sed 's,WEBKIT_DOM_TYPE_KIT,WEBKIT_DOM_TYPE,' \
557 > xgen-cgth \
558 && (cmp -s xgen-cgth WebKit/gtk/webkit/webkitdomenumtypes.h || cp xgen-cgth WebKit/gtk/webkit/webkitdomenumtypes.h) \
559 && rm -f xgen-cgth \
560 && echo timestamp > $(@F)
561
562DerivedSources/webkitdomenumtypes.cpp: $(top_builddir)/WebKit/gtk/webkit/webkitdomenumtypes.h $(libgdom_h_api) GNUmakefile
563 $(AM_V_GEN)glib-mkenums \
564 --fhead "#include <config.h>\n" \
565 --fhead "#include <glib-object.h>\n" \
566 --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitdomenumtypes.h\"\n\n" \
567 --fhead "extern \"C\" {\n\n" \
568 --fprod "\n/* enumerations from \"@filename@\" */" \
569 --vhead "static const G@Type@Value _@enum_name@_values] = {" \
570 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
571 --vtail " { 0, NULL, NULL }\n};\n\n" \
572 --vtail "GType @enum_name@_get_type(void)\n{\n" \
573 --vtail " static GType type = 0;\n\n" \
574 --vtail " if (!type)\n" \
575 --vtail " type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
576 --vtail " return type;\n}\n\n" \
577 --ftail "}\n" \
578 $(libgdom_h_api) | \
579 sed 's,web_kit,webkitdom,' \
580 > xgen-cgtc \
581 && cp xgen-cgtc $@ \
582 && rm -f xgen-cgtc
353 583
354# Files that will be cleaned 584# Files that will be distributed
355MAINTAINERCLEANFILES := $(stamp_files) $(BUILT_SOURCES) 585EXTRA_DIST += \
356DISTCLEANFILES := $(stamp_files) $(BUILT_SOURCES) 586 $(srcdir)/gtk-doc.make \
357CLEANFILES := $(stamp_files) $(BUILT_SOURCES) 587 WebKit/LICENSE \
588 $(javascriptcore_dist) \
589 $(webcore_dist) \
590 $(srcdir)/autotools/symbols.filter \
591 $(srcdir)/WebKit/gtk/ChangeLog \
592 $(srcdir)/WebKit/gtk/NEWS \
593 $(srcdir)/WebKit/gtk/webkitmarshal.list \
594 $(srcdir)/WebKit/gtk/docs/GNUmakefile.* \
595 $(srcdir)/WebKit/gtk/docs/webkitenvironment.xml \
596 $(srcdir)/WebKit/gtk/docs/webkitgtk-docs.sgml \
597 $(srcdir)/WebKit/gtk/docs/webkitgtk-sections.txt \
598 $(srcdir)/WebKit/gtk/docs/version.xml.in \
599 $(srcdir)/WebKit/gtk/po/* \
600 $(srcdir)/WebKit/gtk/resources/* \
601 $(srcdir)/WebKit/gtk/tests/resources/* \
602 $(srcdir)/WebKit/gtk/tests/test_utils.h
603
604# extra resource files
605resourcesdir = ${datadir}/webkit-@WEBKITGTK_API_VERSION@/resources
606dist_resources_DATA = \
607 $(shell ls $(srcdir)/WebKit/gtk/resources/*.html)
608
609# END WEBKIT GTK+
358 610
359# Include module makefiles 611# Include module makefiles
360include JavaScriptCore/GNUmakefile.am 612include JavaScriptCore/GNUmakefile.am
361include WebCore/GNUmakefile.am 613include WebCore/GNUmakefile.am
362include WebKitTools/GNUmakefile.am 614include WebKitTools/GNUmakefile.am
615include WebKit/gtk/po/GNUmakefile.am
616
617# Build unit tests
618noinst_PROGRAMS += $(TEST_PROGS)
363 619
620webkit_tests_cflags = \
621 -fno-strict-aliasing \
622 -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
623 -I$(srcdir)/WebKit/gtk \
624 -I$(top_builddir)/WebKit/gtk \
625 -I$(top_builddir)/DerivedSources \
626 -I$(top_srcdir)/WebCore/bindings \
627 -I$(top_srcdir)/WebCore/bindings/gobject \
628 $(global_cflags) \
629 $(GLIB_CFLAGS) \
630 $(GTK_CFLAGS) \
631 $(LIBSOUP_CFLAGS)
632
633webkit_tests_ldadd = \
634 libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
635 $(GTK_LIBS) \
636 $(GLIB_LIBS) \
637 $(LIBSOUP_LIBS)
638
639webkit_tests_ldflags = \
640 -no-install \
641 -no-fast-install
642
643TEST_PROGS += \
644 Programs/unittests/testdomdocument \
645 Programs/unittests/testdomdomwindow \
646 Programs/unittests/testdomnode \
647 Programs/unittests/testhttpbackend \
648 Programs/unittests/testloading \
649 Programs/unittests/testglobals \
650 Programs/unittests/testmimehandling \
651 Programs/unittests/testnetworkrequest \
652 Programs/unittests/testnetworkresponse \
653 Programs/unittests/testwebframe \
654 Programs/unittests/testwebbackforwardlist \
655 Programs/unittests/testwebhistoryitem \
656 Programs/unittests/testwindow \
657 Programs/unittests/testdownload \
658 Programs/unittests/testatk \
659 Programs/unittests/testatkroles \
660 Programs/unittests/testhittestresult \
661 Programs/unittests/testwebsettings \
662 Programs/unittests/testwebresource \
663 Programs/unittests/testwebdatasource \
664 Programs/unittests/testwebview \
665 Programs/unittests/testkeyevents \
666 Programs/unittests/testcopyandpaste
667
668# Add additional tests here
669Programs_unittests_testdomdocument_SOURCES = WebKit/gtk/tests/testdomdocument.c
670Programs_unittests_testdomdocument_CFLAGS = $(webkit_tests_cflags)
671Programs_unittests_testdomdocument_LDADD = $(webkit_tests_ldadd)
672Programs_unittests_testdomdocument_LDFLAGS = $(webkit_tests_ldflags)
673
674Programs_unittests_testdomdomwindow_SOURCES = WebKit/gtk/tests/testdomdomwindow.c
675Programs_unittests_testdomdomwindow_CFLAGS = $(webkit_tests_cflags)
676Programs_unittests_testdomdomwindow_LDADD = $(webkit_tests_ldadd)
677Programs_unittests_testdomdomwindow_LDFLAGS = $(webkit_tests_ldflags)
678
679Programs_unittests_testdomnode_SOURCES = WebKit/gtk/tests/testdomnode.c
680Programs_unittests_testdomnode_CFLAGS = $(webkit_tests_cflags)
681Programs_unittests_testdomnode_LDADD = $(webkit_tests_ldadd)
682Programs_unittests_testdomnode_LDFLAGS = $(webkit_tests_ldflags)
683
684Programs_unittests_testhttpbackend_SOURCES = WebKit/gtk/tests/testhttpbackend.c
685Programs_unittests_testhttpbackend_CFLAGS = $(webkit_tests_cflags)
686Programs_unittests_testhttpbackend_LDADD = $(webkit_tests_ldadd)
687Programs_unittests_testhttpbackend_LDFLAGS = $(webkit_tests_ldflags)
688
689Programs_unittests_testglobals_SOURCES = WebKit/gtk/tests/testglobals.c
690Programs_unittests_testglobals_CFLAGS = $(webkit_tests_cflags)
691Programs_unittests_testglobals_LDADD = $(webkit_tests_ldadd)
692Programs_unittests_testglobals_LDFLAGS = $(webkit_tests_ldflags)
693
694Programs_unittests_testloading_SOURCES = WebKit/gtk/tests/testloading.c
695Programs_unittests_testloading_CFLAGS = $(webkit_tests_cflags)
696Programs_unittests_testloading_LDADD = $(webkit_tests_ldadd)
697Programs_unittests_testloading_LDFLAGS = $(webkit_tests_ldflags)
698
699Programs_unittests_testmimehandling_SOURCES = WebKit/gtk/tests/testmimehandling.c WebKit/gtk/tests/test_utils.c
700Programs_unittests_testmimehandling_CFLAGS = $(webkit_tests_cflags)
701Programs_unittests_testmimehandling_LDADD = $(webkit_tests_ldadd)
702Programs_unittests_testmimehandling_LDFLAGS = $(webkit_tests_ldflags)
703
704Programs_unittests_testnetworkrequest_SOURCES = WebKit/gtk/tests/testnetworkrequest.c
705Programs_unittests_testnetworkrequest_CFLAGS = $(webkit_tests_cflags)
706Programs_unittests_testnetworkrequest_LDADD = $(webkit_tests_ldadd)
707Programs_unittests_testnetworkrequest_LDFLAGS = $(webkit_tests_ldflags)
708
709Programs_unittests_testnetworkresponse_SOURCES = WebKit/gtk/tests/testnetworkresponse.c
710Programs_unittests_testnetworkresponse_CFLAGS = $(webkit_tests_cflags)
711Programs_unittests_testnetworkresponse_LDADD = $(webkit_tests_ldadd)
712Programs_unittests_testnetworkresponse_LDFLAGS = $(webkit_tests_ldflags)
713
714Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c
715Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags)
716Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd)
717Programs_unittests_testwebframe_LDFLAGS = $(webkit_tests_ldflags)
718
719Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c
720Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags)
721Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd)
722Programs_unittests_testwebbackforwardlist_LDFLAGS = $(webkit_tests_ldflags)
723
724Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c
725Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags)
726Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd)
727Programs_unittests_testwebhistoryitem_LDFLAGS = $(webkit_tests_ldflags)
728
729Programs_unittests_testwindow_SOURCES = WebKit/gtk/tests/testwindow.c
730Programs_unittests_testwindow_CFLAGS = $(webkit_tests_cflags)
731Programs_unittests_testwindow_LDADD = $(webkit_tests_ldadd)
732Programs_unittests_testwindow_LDFLAGS = $(webkit_tests_ldflags)
733
734Programs_unittests_testdownload_SOURCES = WebKit/gtk/tests/testdownload.c
735Programs_unittests_testdownload_CFLAGS = $(webkit_tests_cflags)
736Programs_unittests_testdownload_LDADD = $(webkit_tests_ldadd)
737Programs_unittests_testdownload_LDFLAGS = $(webkit_tests_ldflags)
738
739Programs_unittests_testatk_SOURCES = WebKit/gtk/tests/testatk.c
740Programs_unittests_testatk_CFLAGS = $(webkit_tests_cflags)
741Programs_unittests_testatk_LDADD = $(webkit_tests_ldadd)
742Programs_unittests_testatk_LDFLAGS = $(webkit_tests_ldflags)
743
744Programs_unittests_testatkroles_SOURCES = WebKit/gtk/tests/testatkroles.c
745Programs_unittests_testatkroles_CFLAGS = $(webkit_tests_cflags)
746Programs_unittests_testatkroles_LDADD = $(webkit_tests_ldadd)
747Programs_unittests_testatkroles_LDFLAGS = $(webkit_tests_ldflags)
748
749Programs_unittests_testwebsettings_SOURCES = WebKit/gtk/tests/testwebsettings.c
750Programs_unittests_testwebsettings_CFLAGS = $(webkit_tests_cflags)
751Programs_unittests_testwebsettings_LDADD = $(webkit_tests_ldadd)
752Programs_unittests_testwebsettings_LDFLAGS = $(webkit_tests_ldflags)
753
754Programs_unittests_testwebresource_SOURCES = WebKit/gtk/tests/testwebresource.c
755Programs_unittests_testwebresource_CFLAGS = $(webkit_tests_cflags)
756Programs_unittests_testwebresource_LDADD = $(webkit_tests_ldadd)
757
758Programs_unittests_testwebdatasource_SOURCES = WebKit/gtk/tests/testwebdatasource.c
759Programs_unittests_testwebdatasource_CFLAGS = $(webkit_tests_cflags)
760Programs_unittests_testwebdatasource_LDADD = $(webkit_tests_ldadd)
761
762Programs_unittests_testwebview_SOURCES = WebKit/gtk/tests/testwebview.c WebKit/gtk/tests/test_utils.c
763Programs_unittests_testwebview_CFLAGS = $(webkit_tests_cflags)
764Programs_unittests_testwebview_LDADD = $(webkit_tests_ldadd)
765Programs_unittests_testwebview_LDFLAGS = $(webkit_tests_ldflags)
766
767Programs_unittests_testhittestresult_SOURCES = WebKit/gtk/tests/testhittestresult.c
768Programs_unittests_testhittestresult_CFLAGS = $(webkit_tests_cflags)
769Programs_unittests_testhittestresult_LDADD = $(webkit_tests_ldadd)
770
771Programs_unittests_testkeyevents_SOURCES = WebKit/gtk/tests/testkeyevents.c
772Programs_unittests_testkeyevents_CFLAGS = $(webkit_tests_cflags)
773Programs_unittests_testkeyevents_LDADD = $(webkit_tests_ldadd)
774Programs_unittests_testkeyevents_LDFLAGS = $(webkit_tests_ldflags)
775
776Programs_unittests_testcopyandpaste_SOURCES = WebKit/gtk/tests/testcopyandpaste.c
777Programs_unittests_testcopyandpaste_CFLAGS = $(webkit_tests_cflags)
778Programs_unittests_testcopyandpaste_LDADD = $(webkit_tests_ldadd)
779Programs_unittests_testcopyandpaste_LDFLAGS = $(webkit_tests_ldflags)
364 780
365# Autogenerated sources 781# Autogenerated sources
366BUILT_SOURCES = \ 782BUILT_SOURCES += \
367 $(javascriptcore_built_sources) \ 783 $(javascriptcore_built_sources) \
368 $(javascriptcore_built_nosources) \ 784 $(javascriptcore_built_nosources) \
369 $(webcore_built_sources) \ 785 $(webcore_built_sources) \
370 $(webcore_built_nosources) \ 786 $(webcore_built_nosources) \
371 $(webkitgtk_built_sources) \ 787 $(webkitgtk_built_sources) \
372 $(webkitgtk_built_nosources) 788 $(webkitgtk_built_nosources) \
789 $(gdom_built_nosources)
373 790
374# Project-wide clean rules 791# Project-wide clean rules
792# Files that will be cleaned
375CLEANFILES += \ 793CLEANFILES += \
794 $(BUILT_SOURCES) \
376 $(webkitgtk_cleanfiles) \ 795 $(webkitgtk_cleanfiles) \
377 $(top_builddir)/Programs/DumpRenderTree \ 796 $(libgdom_cleanfiles)
378 $(top_builddir)/Programs/testkjs \ 797
379 $(GENSOURCES) 798DISTCLEANFILES += \
799 $(CLEANFILES)
380 800
381MAINTAINERCLEANFILES += \ 801MAINTAINERCLEANFILES += \
802 $(CLEANFILES) \
382 $(srcdir)/aconfig.h.in \ 803 $(srcdir)/aconfig.h.in \
383 configure \ 804 $(srcdir)/autotools/config.* \
384 config.* \ 805 $(srcdir)/autotools/compile \
385 GNUmakefile.in \ 806 $(srcdir)/autotools/depcomp \
386 INSTALL \ 807 $(srcdir)/autotools/install-sh \
387 README 808 $(srcdir)/autotools/missing \
809 $(srcdir)/configure \
810 $(srcdir)/GNUmakefile.in \
811 $(srcdir)/INSTALL \
812 $(srcdir)/README \
813 $(top_builddir)/config.*
814
815# Older automake versions (1.7) place Plo files in a different place so we need
816# to create the output directory manually.
817all-local: stamp-po
818 $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
819
820# remove built sources and program directories
821clean-local:
822 -rm -rf $(GENPROGRAMS)
823
824maintainer-clean-local: distclean-local
825
826distclean-local:
827 -rm -rf $(GENSOURCES) $(GENPROGRAMS)
828
829dist-hook:
830 cp $(srcdir)/WebKit/gtk/NEWS $(distdir)/
831
832install-data-local: po-install-data-local
833
834installdirs-data-local: po-installdirs-data-local
835
836uninstall-local: po-uninstall-local
837
838# Run all tests in cwd
839# FIXME: we should run this under xvfb
840test: $(TEST_PROGS)
841 $(GTESTER) --verbose $(TEST_PROGS);
842
843# test-report: run tests in cwd and generate report
844# full-report: run tests in cwd with -m perf and -m slow and generate report
845# perf-report: run tests in cwd with -m perf and generate report
846test-report full-report perf-report: $(TEST_PROGS)
847 @ case $@ in \
848 test-report) test_options="-k";; \
849 full-report) test_options="-k -m=perf";; \
850 perf-report) test_options="-k -m=perf -m=slow";; \
851 esac ; \
852 $(GTESTER) --verbose $$test_options -o test-report.xml $(TEST_PROGS); \
853 $(GTESTER_REPORT) test-report.xml > test-report.html ;
854
855.PHONY: test test-report perf-report full-report
856check-local: test