2010-08-24 Xan Lopez <xlopez@igalia.com>
[WebKit-https.git] / GNUmakefile.am
1 # Top-level Makefile rule for automake
2 #
3 # Variable conventions:
4 #
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
7 # _sources          = sources that will be compiled and included in the distribution
8 # _built_sources    = files that will be autogenerated by the build system and
9 #                     will be part of the _SOURCES primary
10 # _built_nosources  = files that are autogenerated but are not part of the
11 #                     _SOURCES primary
12 # _cleanfiles       = files that will be removed by the clean target
13 #
14 # Sources, headers, flags, etc... should be added to the respective variables
15 # with the above suffix, e.g, webcore-specific sources should go to
16 # webcore_sources, gtk port API and WebCoreSupport parts to webkitgtk_sources,
17 # etc... The only exceptions are the global variables. See Global Variables
18 # below.
19 #
20 # Global Variables
21 #
22 # global_cppflags   = CPPFLAGS that apply to JSC, WebCore, and to any
23 #                     specific port
24 # global_cflags     = CFLAGS that apply to JSC, WebCore, and to
25 #                     any specific port
26 # global_cxxflags   = CXXFLAGS that apply to JSC, WebCore, and to any
27 #                     specific port
28
29 srcdir = @srcdir@
30 VPATH = @srcdir@
31
32 DISTCHECK_CONFIGURE_FLAGS = \
33         --enable-introspection  \
34         --enable-gtk-doc
35
36 # Directory for autogenerated sources
37 GENSOURCES := $(top_builddir)/DerivedSources
38 GENSOURCES_JAVASCRIPTCORE := $(top_builddir)/DerivedSources/JavaScriptCore
39 GENSOURCES_WEBCORE := $(top_builddir)/DerivedSources/WebCore
40 GENSOURCES_WEBKIT := $(top_builddir)/DerivedSources/webkit
41 GENPROGRAMS := $(top_builddir)/Programs
42 GENSOURCES_INSPECTOR := $(GENPROGRAMS)/resources/inspector
43 WebCore := $(srcdir)/WebCore
44
45 # Programs to run the WebKitGtk unit tests
46 GTESTER = gtester
47 GTESTER_REPORT = gtester-report
48
49 # Libraries and support components
50 bin_PROGRAMS :=
51 noinst_PROGRAMS :=
52 noinst_HEADERS :=
53 noinst_LTLIBRARIES :=
54 lib_LTLIBRARIES :=
55 IDL_BINDINGS :=
56 TEST_PROGS :=
57 POFILES :=
58 MOFILES :=
59 javascriptcore_h_api :=
60 javascriptcore_cppflags:=
61 javascriptcore_sources :=
62 javascriptcore_built_sources :=
63 javascriptcore_built_nosources :=
64 webcore_cppflags :=
65 webcore_sources :=
66 webcore_libadd :=
67 webcore_built_sources :=
68 webcore_built_nosources :=
69 webcoregtk_cppflags :=
70 webcoregtk_sources :=
71 webkitgtk_built_h_api :=
72 webkitgtk_static_h_api :=
73 webkitgtk_h_api :=
74 webkitgtk_sources :=
75 webkitgtk_cppflags :=
76 webkitgtk_gdom_built_sources :=
77 webkitgtk_built_sources :=
78 webkitgtk_built_nosources :=
79 global_cppflags :=
80 global_cflags :=
81 global_cxxflags :=
82 corekit_cflags :=
83 corekit_cppflags :=
84 JSCORE_GIRSOURCES :=
85 WEBKIT_GIRSOURCES :=
86 typelibsdir :=
87 typelibs_DATA :=
88 EXTRA_DIST :=
89 BUILT_SOURCES :=
90 CLEANFILES :=
91 DISTCLEANFILES :=
92 MAINTAINERCLEANFILES :=
93
94 webcoregtk_cppflags += \
95         -I$(top_builddir)/DerivedSources/webkit \
96         -I$(srcdir)/WebCore/bindings \
97         -I$(srcdir)/WebCore/bindings/gobject
98
99 # CFLAGS/CXXFLAGS used by WebCore and WebKit
100 #
101 # gtk+.pc already include glib, cairo, freetype and pango CFLAGS
102 # Don't include them for now to reduce the noise when compiling
103 # $(GLIB_CFLAGS) $(CAIRO_CFLAGS) $(PANGO_CFLAGS)  $(FREETYPE_CFLAGS)
104 corekit_cflags += \
105         -fno-strict-aliasing \
106         $(COVERAGE_CFLAGS) \
107         $(ENCHANT_CFLAGS) \
108         $(GAIL_CFLAGS) \
109         $(GEOCLUE_CFLAGS) \
110         $(GLIB_CFLAGS) \
111         $(GSTREAMER_CFLAGS) \
112         $(GTK_CFLAGS) \
113         $(HILDON_CFLAGS) \
114         $(LIBSOUP_CFLAGS) \
115         $(LIBXML_CFLAGS) \
116         $(LIBXSLT_CFLAGS) \
117         $(SQLITE3_CFLAGS) \
118         $(UNICODE_CFLAGS) \
119         $(XT_CFLAGS)
120
121 # When building webcore/webkit, we want WebCore/config.h and NOT
122 # JavaScriptCore/config.h, hence, it's important that WebCore/ should come first
123 # before JavaScriptCore in the include path.
124 corekit_cppflags += \
125         $(global_cppflags) \
126         $(webcore_cppflags) \
127         $(webcoregtk_cppflags) \
128         $(javascriptcore_cppflags)
129
130 # For the Gtk port we want to use XP_UNIX both in X11 and Mac
131 if !TARGET_WIN32
132 corekit_cppflags += -DXP_UNIX
133 endif
134
135 # Default compiler flags
136 global_cflags += \
137         -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
138         -Wformat -Wformat-security -Wno-format-y2k -Wundef \
139         -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \
140         -Wno-unused-parameter -Wno-parentheses \
141         -fno-exceptions
142
143 global_cxxflags += \
144         $(global_cflags) \
145         $(SYMBOL_VISIBILITY_INLINES) \
146         -fno-rtti
147
148 # -no-undefined required for building DLLs on Windows
149 # It breaks the build on other platforms, so we use it conditionally
150 if OS_WIN32
151 no_undefined = -no-undefined
152 version_script = -export-symbols-regex "^(webkit_|JS).*"
153 endif
154
155 if OS_GNU
156 version_script = -Wl,--version-script,$(srcdir)/autotools/symbols.filter
157 endif
158
159 # Shared libraries
160 lib_LTLIBRARIES += \
161         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
162
163 # Convenience libraries
164 noinst_LTLIBRARIES += \
165         libJavaScriptCore.la
166
167 # JavaScriptCore
168 javascriptcore_cppflags += \
169         -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
170         -I$(srcdir)/JavaScriptCore/parser \
171         -I$(srcdir)/JavaScriptCore/wtf \
172         -I$(srcdir)/JavaScriptCore/wtf/gtk \
173         -I$(srcdir)/JavaScriptCore/wtf/gobject \
174         -I$(top_builddir)/DerivedSources/JavaScriptCore
175
176 nodist_EXTRA_libJavaScriptCore_la_SOURCES = \
177         $(javascriptcore_built_nosources)
178
179 nodist_libJavaScriptCore_la_SOURCES = \
180         $(javascriptcore_built_sources)
181
182 libJavaScriptCore_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/JavaScriptCore
183 libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
184
185 libJavaScriptCore_la_SOURCES = \
186         $(javascriptcore_sources)
187
188 libJavaScriptCore_la_LIBADD = \
189         $(UNICODE_LIBS) \
190         $(GLIB_LIBS) \
191         -lpthread
192
193 libJavaScriptCore_la_CXXFLAGS = \
194         $(global_cxxflags) \
195         $(libJavaScriptCore_la_CFLAGS)
196
197 libJavaScriptCore_la_CFLAGS = \
198         -fstrict-aliasing \
199         -O3 \
200         $(global_cflags) \
201         $(GLIB_CFLAGS) \
202         $(UNICODE_CFLAGS)
203
204 libJavaScriptCore_la_CPPFLAGS = \
205         $(global_cppflags) \
206         $(javascriptcore_cppflags)
207
208 # WebKit
209 nodist_EXTRA_libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
210         $(webcore_built_nosources)
211
212 nodist_libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
213         $(webcore_built_sources) \
214         $(webkitgtk_built_sources)
215
216 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/webkit
217 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = \
218         $(webkitgtk_static_h_api)
219
220 nodist_libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = \
221         $(webkitgtk_built_h_api) \
222         WebKit/gtk/webkit/webkitenumtypes.h
223
224 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
225         $(webcore_sources) \
226         $(webcoregtk_sources) \
227         $(webkitgtk_sources)
228
229 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \
230         $(global_cxxflags) \
231         $(corekit_cflags)
232
233 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
234         $(global_cflags) \
235         $(corekit_cflags)
236
237 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
238         $(corekit_cppflags) \
239         $(webkitgtk_cppflags) \
240         $(HILDON_CPPFLAGS)
241
242 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
243         -version-info @LIBWEBKITGTK_VERSION@ \
244         $(version_script) \
245         $(no_undefined)
246
247 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD = \
248         -lpthread \
249         libJavaScriptCore.la \
250         $(webcore_ldflags) \
251         $(CAIRO_LIBS) \
252         $(COVERAGE_LDFLAGS) \
253         $(ENCHANT_LIBS) \
254         $(FREETYPE_LIBS) \
255         $(GAIL_LIBS) \
256         $(GEOCLUE_LIBS) \
257         $(GLIB_LIBS) \
258         $(GSTREAMER_LIBS) \
259         $(GTK_LIBS) \
260         $(HILDON_LIBS) \
261         $(JPEG_LIBS) \
262         $(LIBSOUP_LIBS) \
263         $(LIBXML_LIBS) \
264         $(LIBXSLT_LIBS) \
265         $(PANGO_LIBS) \
266         $(PNG_LIBS) \
267         $(SQLITE3_LIBS) \
268         $(UNICODE_LIBS) \
269         $(XT_LIBS)
270
271 #
272 # Extra checks and flags
273 global_cppflags += \
274         -DBUILDING_CAIRO__=1 \
275         -DBUILDING_GTK__=1 \
276         -DWTF_CHANGES
277
278 # ----
279 # GTK+ 2.x/3.x support
280 # ----
281 if GTK_API_VERSION_2
282 global_cppflags += \
283         -DGTK_API_VERSION_2=1
284 endif
285
286 if USE_ICU_UNICODE
287 global_cppflags += \
288         -DWTF_USE_ICU_UNICODE=1
289 endif
290
291 if USE_GLIB_UNICODE
292 global_cppflags += \
293         -DWTF_USE_GLIB_UNICODE=1
294 endif
295
296 if !ENABLE_FAST_MALLOC
297 global_cppflags += \
298         -DUSE_SYSTEM_MALLOC
299 endif
300
301 if !ENABLE_DEBUG
302 global_cppflags += -DNDEBUG
303 global_cflags += $(SYMBOL_VISIBILITY)
304 else
305 webcoregtk_cppflags += \
306         -DG_DISABLE_DEPRECATED \
307         -DGDK_PIXBUF_DISABLE_DEPRECATED \
308         -DGDK_DISABLE_DEPRECATED \
309         -DGTK_DISABLE_DEPRECATED \
310         -DPANGO_DISABLE_DEPRECATED
311
312 # Might be useful in the future
313 #       -DGDK_MULTIHEAD_SAFE \
314 #       -DGTK_MULTIHEAD_SAFE
315 endif
316
317 if ENABLE_COVERAGE
318 global_cppflags += \
319         -DGCC_GENERATE_TEST_COVERAGE_FILES \
320         -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
321 endif
322
323 webkitgtk_static_h_api += \
324         $(srcdir)/WebKit/gtk/webkit/webkit.h \
325         $(srcdir)/WebKit/gtk/webkit/webkitdefines.h \
326         $(srcdir)/WebKit/gtk/webkit/webkitdownload.h \
327         $(srcdir)/WebKit/gtk/webkit/webkiterror.h \
328         $(srcdir)/WebKit/gtk/webkit/webkithittestresult.h \
329         $(srcdir)/WebKit/gtk/webkit/webkitnetworkrequest.h \
330         $(srcdir)/WebKit/gtk/webkit/webkitnetworkresponse.h \
331         $(srcdir)/WebKit/gtk/webkit/webkitsoupauthdialog.h \
332         $(srcdir)/WebKit/gtk/webkit/webkitwebbackforwardlist.h \
333         $(srcdir)/WebKit/gtk/webkit/webkitwebdatasource.h \
334         $(srcdir)/WebKit/gtk/webkit/webkitwebframe.h \
335         $(srcdir)/WebKit/gtk/webkit/webkitwebhistoryitem.h \
336         $(srcdir)/WebKit/gtk/webkit/webkitwebinspector.h \
337         $(srcdir)/WebKit/gtk/webkit/webkitwebnavigationaction.h \
338         $(srcdir)/WebKit/gtk/webkit/webkitwebpolicydecision.h \
339         $(srcdir)/WebKit/gtk/webkit/webkitgeolocationpolicydecision.h \
340         $(srcdir)/WebKit/gtk/webkit/webkitwebresource.h \
341         $(srcdir)/WebKit/gtk/webkit/webkitwebsettings.h \
342         $(srcdir)/WebKit/gtk/webkit/webkitwebwindowfeatures.h \
343         $(srcdir)/WebKit/gtk/webkit/webkitwebview.h \
344         $(srcdir)/WebKit/gtk/webkit/webkitwebdatabase.h \
345         $(srcdir)/WebKit/gtk/webkit/webkitsecurityorigin.h
346
347 webkitgtk_built_h_api += \
348         DerivedSources/webkit/WebKitDOMCSSRule.h \
349         DerivedSources/webkit/WebKitDOMCSSRuleList.h \
350         DerivedSources/webkit/WebKitDOMCSSStyleDeclaration.h \
351         DerivedSources/webkit/WebKitDOMCSSStyleSheet.h \
352         DerivedSources/webkit/WebKitDOMCSSValue.h \
353         DerivedSources/webkit/WebKitDOMMediaList.h \
354         DerivedSources/webkit/WebKitDOMStyleMedia.h \
355         DerivedSources/webkit/WebKitDOMStyleSheet.h \
356         DerivedSources/webkit/WebKitDOMStyleSheetList.h \
357         DerivedSources/webkit/WebKitDOMAttr.h \
358         DerivedSources/webkit/WebKitDOMCDATASection.h \
359         DerivedSources/webkit/WebKitDOMCharacterData.h \
360         DerivedSources/webkit/WebKitDOMComment.h \
361         DerivedSources/webkit/WebKitDOMDocument.h \
362         DerivedSources/webkit/WebKitDOMDocumentFragment.h \
363         DerivedSources/webkit/WebKitDOMDocumentType.h \
364         DerivedSources/webkit/WebKitDOMDOMImplementation.h \
365         DerivedSources/webkit/WebKitDOMDOMStringList.h \
366         DerivedSources/webkit/WebKitDOMDOMStringMap.h \
367         DerivedSources/webkit/WebKitDOMElement.h \
368         DerivedSources/webkit/WebKitDOMEntityReference.h \
369         DerivedSources/webkit/WebKitDOMEvent.h \
370         DerivedSources/webkit/WebKitDOMMessagePort.h \
371         DerivedSources/webkit/WebKitDOMMouseEvent.h \
372         DerivedSources/webkit/WebKitDOMNamedNodeMap.h \
373         DerivedSources/webkit/WebKitDOMNode.h \
374         DerivedSources/webkit/WebKitDOMNodeFilter.h \
375         DerivedSources/webkit/WebKitDOMNodeIterator.h \
376         DerivedSources/webkit/WebKitDOMNodeList.h \
377         DerivedSources/webkit/WebKitDOMProcessingInstruction.h \
378         DerivedSources/webkit/WebKitDOMRange.h \
379         DerivedSources/webkit/WebKitDOMText.h \
380         DerivedSources/webkit/WebKitDOMTreeWalker.h \
381         DerivedSources/webkit/WebKitDOMUIEvent.h \
382         DerivedSources/webkit/WebKitDOMBlob.h \
383         DerivedSources/webkit/WebKitDOMFile.h \
384         DerivedSources/webkit/WebKitDOMFileList.h \
385         DerivedSources/webkit/WebKitDOMHTMLAnchorElement.h \
386         DerivedSources/webkit/WebKitDOMHTMLAppletElement.h \
387         DerivedSources/webkit/WebKitDOMHTMLAreaElement.h \
388         DerivedSources/webkit/WebKitDOMHTMLAudioElement.h \
389         DerivedSources/webkit/WebKitDOMHTMLBaseElement.h \
390         DerivedSources/webkit/WebKitDOMHTMLBaseFontElement.h \
391         DerivedSources/webkit/WebKitDOMHTMLBlockquoteElement.h \
392         DerivedSources/webkit/WebKitDOMHTMLBodyElement.h \
393         DerivedSources/webkit/WebKitDOMHTMLBRElement.h \
394         DerivedSources/webkit/WebKitDOMHTMLButtonElement.h \
395         DerivedSources/webkit/WebKitDOMHTMLCanvasElement.h \
396         DerivedSources/webkit/WebKitDOMHTMLCollection.h \
397         DerivedSources/webkit/WebKitDOMHTMLDirectoryElement.h \
398         DerivedSources/webkit/WebKitDOMHTMLDivElement.h \
399         DerivedSources/webkit/WebKitDOMHTMLDListElement.h \
400         DerivedSources/webkit/WebKitDOMHTMLDocument.h \
401         DerivedSources/webkit/WebKitDOMHTMLElement.h \
402         DerivedSources/webkit/WebKitDOMHTMLEmbedElement.h \
403         DerivedSources/webkit/WebKitDOMHTMLFieldSetElement.h \
404         DerivedSources/webkit/WebKitDOMHTMLFontElement.h \
405         DerivedSources/webkit/WebKitDOMHTMLFormElement.h \
406         DerivedSources/webkit/WebKitDOMHTMLFrameElement.h \
407         DerivedSources/webkit/WebKitDOMHTMLFrameSetElement.h \
408         DerivedSources/webkit/WebKitDOMHTMLHeadElement.h \
409         DerivedSources/webkit/WebKitDOMHTMLHeadingElement.h \
410         DerivedSources/webkit/WebKitDOMHTMLHRElement.h \
411         DerivedSources/webkit/WebKitDOMHTMLHtmlElement.h \
412         DerivedSources/webkit/WebKitDOMHTMLIFrameElement.h \
413         DerivedSources/webkit/WebKitDOMHTMLImageElement.h \
414         DerivedSources/webkit/WebKitDOMHTMLInputElement.h \
415         DerivedSources/webkit/WebKitDOMHTMLIsIndexElement.h \
416         DerivedSources/webkit/WebKitDOMHTMLLabelElement.h \
417         DerivedSources/webkit/WebKitDOMHTMLLegendElement.h \
418         DerivedSources/webkit/WebKitDOMHTMLLIElement.h \
419         DerivedSources/webkit/WebKitDOMHTMLLinkElement.h \
420         DerivedSources/webkit/WebKitDOMHTMLMapElement.h \
421         DerivedSources/webkit/WebKitDOMHTMLMarqueeElement.h \
422         DerivedSources/webkit/WebKitDOMHTMLMediaElement.h \
423         DerivedSources/webkit/WebKitDOMHTMLMenuElement.h \
424         DerivedSources/webkit/WebKitDOMHTMLMetaElement.h \
425         DerivedSources/webkit/WebKitDOMHTMLModElement.h \
426         DerivedSources/webkit/WebKitDOMHTMLObjectElement.h \
427         DerivedSources/webkit/WebKitDOMHTMLOListElement.h \
428         DerivedSources/webkit/WebKitDOMHTMLOptGroupElement.h \
429         DerivedSources/webkit/WebKitDOMHTMLOptionElement.h \
430         DerivedSources/webkit/WebKitDOMHTMLOptionsCollection.h \
431         DerivedSources/webkit/WebKitDOMHTMLParagraphElement.h \
432         DerivedSources/webkit/WebKitDOMHTMLParamElement.h \
433         DerivedSources/webkit/WebKitDOMHTMLPreElement.h \
434         DerivedSources/webkit/WebKitDOMHTMLQuoteElement.h \
435         DerivedSources/webkit/WebKitDOMHTMLScriptElement.h \
436         DerivedSources/webkit/WebKitDOMHTMLSelectElement.h \
437         DerivedSources/webkit/WebKitDOMHTMLStyleElement.h \
438         DerivedSources/webkit/WebKitDOMHTMLTableElement.h \
439         DerivedSources/webkit/WebKitDOMHTMLTableCaptionElement.h \
440         DerivedSources/webkit/WebKitDOMHTMLTableColElement.h \
441         DerivedSources/webkit/WebKitDOMHTMLTableSectionElement.h \
442         DerivedSources/webkit/WebKitDOMHTMLTableCellElement.h \
443         DerivedSources/webkit/WebKitDOMHTMLTextAreaElement.h \
444         DerivedSources/webkit/WebKitDOMHTMLTitleElement.h \
445         DerivedSources/webkit/WebKitDOMHTMLTableRowElement.h \
446         DerivedSources/webkit/WebKitDOMHTMLUListElement.h \
447         DerivedSources/webkit/WebKitDOMMediaError.h \
448         DerivedSources/webkit/WebKitDOMTimeRanges.h \
449         DerivedSources/webkit/WebKitDOMValidityState.h \
450         DerivedSources/webkit/WebKitDOMDOMApplicationCache.h \
451         DerivedSources/webkit/WebKitDOMBarInfo.h \
452         DerivedSources/webkit/WebKitDOMConsole.h \
453         DerivedSources/webkit/WebKitDOMDOMWindow.h \
454         DerivedSources/webkit/WebKitDOMDOMSelection.h \
455         DerivedSources/webkit/WebKitDOMEventTarget.h \
456         DerivedSources/webkit/WebKitDOMHistory.h \
457         DerivedSources/webkit/WebKitDOMLocation.h \
458         DerivedSources/webkit/WebKitDOMMemoryInfo.h \
459         DerivedSources/webkit/WebKitDOMObject.h \
460         DerivedSources/webkit/WebKitDOMNavigator.h \
461         DerivedSources/webkit/WebKitDOMScreen.h \
462         DerivedSources/webkit/WebKitDOMWebKitPoint.h \
463         DerivedSources/webkit/WebKitDOMDOMMimeType.h \
464         DerivedSources/webkit/WebKitDOMDOMMimeTypeArray.h \
465         DerivedSources/webkit/WebKitDOMDOMPlugin.h \
466         DerivedSources/webkit/WebKitDOMDOMPluginArray.h \
467         DerivedSources/webkit/WebKitDOMDatabase.h \
468         DerivedSources/webkit/WebKitDOMStorage.h \
469         DerivedSources/webkit/WebKitDOMXPathExpression.h \
470         DerivedSources/webkit/WebKitDOMXPathNSResolver.h \
471         DerivedSources/webkit/WebKitDOMXPathResult.h \
472         DerivedSources/webkit/webkitdom.h \
473         DerivedSources/webkit/webkitdomdefines.h \
474         WebKit/gtk/webkit/webkitversion.h
475
476 webkitgtk_h_api += \
477         $(webkitgtk_built_h_api) \
478         $(webkitgtk_static_h_api)
479
480 webkitgtk_gdom_built_sources += \
481         DerivedSources/webkit/WebKitDOMAttr.cpp \
482         DerivedSources/webkit/WebKitDOMAttrPrivate.h \
483         DerivedSources/webkit/WebKitDOMBarInfo.cpp \
484         DerivedSources/webkit/WebKitDOMBarInfoPrivate.h \
485         DerivedSources/webkit/WebKitDOMBlob.cpp \
486         DerivedSources/webkit/WebKitDOMBlobPrivate.h \
487         DerivedSources/webkit/WebKitDOMCDATASection.cpp \
488         DerivedSources/webkit/WebKitDOMCDATASectionPrivate.h \
489         DerivedSources/webkit/WebKitDOMCharacterData.cpp \
490         DerivedSources/webkit/WebKitDOMCharacterDataPrivate.h \
491         DerivedSources/webkit/WebKitDOMComment.cpp \
492         DerivedSources/webkit/WebKitDOMCommentPrivate.h \
493         DerivedSources/webkit/WebKitDOMConsole.cpp \
494         DerivedSources/webkit/WebKitDOMConsolePrivate.h \
495         DerivedSources/webkit/WebKitDOMCSSRule.cpp \
496         DerivedSources/webkit/WebKitDOMCSSRuleList.cpp \
497         DerivedSources/webkit/WebKitDOMCSSRuleListPrivate.h \
498         DerivedSources/webkit/WebKitDOMCSSRulePrivate.h \
499         DerivedSources/webkit/WebKitDOMCSSStyleDeclaration.cpp \
500         DerivedSources/webkit/WebKitDOMCSSStyleDeclarationPrivate.h \
501         DerivedSources/webkit/WebKitDOMCSSStyleSheet.cpp \
502         DerivedSources/webkit/WebKitDOMCSSStyleSheetPrivate.h \
503         DerivedSources/webkit/WebKitDOMCSSValue.cpp \
504         DerivedSources/webkit/WebKitDOMCSSValuePrivate.h \
505         DerivedSources/webkit/WebKitDOMDatabase.cpp \
506         DerivedSources/webkit/WebKitDOMDatabasePrivate.h \
507         DerivedSources/webkit/WebKitDOMDocument.cpp \
508         DerivedSources/webkit/WebKitDOMDocumentFragment.cpp \
509         DerivedSources/webkit/WebKitDOMDocumentFragmentPrivate.h \
510         DerivedSources/webkit/WebKitDOMDocumentPrivate.h \
511         DerivedSources/webkit/WebKitDOMDocumentType.cpp \
512         DerivedSources/webkit/WebKitDOMDocumentTypePrivate.h \
513         DerivedSources/webkit/WebKitDOMDOMApplicationCache.cpp \
514         DerivedSources/webkit/WebKitDOMDOMApplicationCachePrivate.h \
515         DerivedSources/webkit/WebKitDOMDOMImplementation.cpp \
516         DerivedSources/webkit/WebKitDOMDOMImplementationPrivate.h \
517         DerivedSources/webkit/WebKitDOMDOMMimeTypeArray.cpp \
518         DerivedSources/webkit/WebKitDOMDOMMimeTypeArrayPrivate.h \
519         DerivedSources/webkit/WebKitDOMDOMMimeType.cpp \
520         DerivedSources/webkit/WebKitDOMDOMMimeTypePrivate.h \
521         DerivedSources/webkit/WebKitDOMDOMPluginArray.cpp \
522         DerivedSources/webkit/WebKitDOMDOMPluginArrayPrivate.h \
523         DerivedSources/webkit/WebKitDOMDOMPlugin.cpp \
524         DerivedSources/webkit/WebKitDOMDOMPluginPrivate.h \
525         DerivedSources/webkit/WebKitDOMDOMSelection.cpp \
526         DerivedSources/webkit/WebKitDOMDOMSelectionPrivate.h \
527         DerivedSources/webkit/WebKitDOMDOMStringList.cpp \
528         DerivedSources/webkit/WebKitDOMDOMStringListPrivate.h \
529         DerivedSources/webkit/WebKitDOMDOMStringMap.cpp \
530         DerivedSources/webkit/WebKitDOMDOMStringMapPrivate.h \
531         DerivedSources/webkit/WebKitDOMDOMWindow.cpp \
532         DerivedSources/webkit/WebKitDOMDOMWindowPrivate.h \
533         DerivedSources/webkit/WebKitDOMElement.cpp \
534         DerivedSources/webkit/WebKitDOMElementPrivate.h \
535         DerivedSources/webkit/WebKitDOMEntityReference.cpp \
536         DerivedSources/webkit/WebKitDOMEntityReferencePrivate.h \
537         DerivedSources/webkit/WebKitDOMEvent.cpp \
538         DerivedSources/webkit/WebKitDOMEventPrivate.h \
539         DerivedSources/webkit/WebKitDOMEventTargetPrivate.h \
540         DerivedSources/webkit/WebKitDOMFile.cpp \
541         DerivedSources/webkit/WebKitDOMFileList.cpp \
542         DerivedSources/webkit/WebKitDOMFileListPrivate.h \
543         DerivedSources/webkit/WebKitDOMFilePrivate.h \
544         DerivedSources/webkit/WebKitDOMHistory.cpp \
545         DerivedSources/webkit/WebKitDOMHistoryPrivate.h \
546         DerivedSources/webkit/WebKitDOMHTMLAnchorElement.cpp \
547         DerivedSources/webkit/WebKitDOMHTMLAnchorElementPrivate.h \
548         DerivedSources/webkit/WebKitDOMHTMLAppletElement.cpp \
549         DerivedSources/webkit/WebKitDOMHTMLAppletElementPrivate.h \
550         DerivedSources/webkit/WebKitDOMHTMLAreaElement.cpp \
551         DerivedSources/webkit/WebKitDOMHTMLAreaElementPrivate.h \
552         DerivedSources/webkit/WebKitDOMHTMLAudioElement.cpp \
553         DerivedSources/webkit/WebKitDOMHTMLAudioElementPrivate.h \
554         DerivedSources/webkit/WebKitDOMHTMLBaseElement.cpp \
555         DerivedSources/webkit/WebKitDOMHTMLBaseElementPrivate.h \
556         DerivedSources/webkit/WebKitDOMHTMLBaseFontElement.cpp \
557         DerivedSources/webkit/WebKitDOMHTMLBaseFontElementPrivate.h \
558         DerivedSources/webkit/WebKitDOMHTMLBlockquoteElement.cpp \
559         DerivedSources/webkit/WebKitDOMHTMLBlockquoteElementPrivate.h \
560         DerivedSources/webkit/WebKitDOMHTMLBodyElement.cpp \
561         DerivedSources/webkit/WebKitDOMHTMLBodyElementPrivate.h \
562         DerivedSources/webkit/WebKitDOMHTMLBRElement.cpp \
563         DerivedSources/webkit/WebKitDOMHTMLBRElementPrivate.h \
564         DerivedSources/webkit/WebKitDOMHTMLButtonElement.cpp \
565         DerivedSources/webkit/WebKitDOMHTMLButtonElementPrivate.h \
566         DerivedSources/webkit/WebKitDOMHTMLCanvasElement.cpp \
567         DerivedSources/webkit/WebKitDOMHTMLCanvasElementPrivate.h \
568         DerivedSources/webkit/WebKitDOMHTMLCollection.cpp \
569         DerivedSources/webkit/WebKitDOMHTMLCollectionPrivate.h \
570         DerivedSources/webkit/WebKitDOMHTMLDirectoryElement.cpp \
571         DerivedSources/webkit/WebKitDOMHTMLDirectoryElementPrivate.h \
572         DerivedSources/webkit/WebKitDOMHTMLDivElement.cpp \
573         DerivedSources/webkit/WebKitDOMHTMLDivElementPrivate.h \
574         DerivedSources/webkit/WebKitDOMHTMLDListElement.cpp \
575         DerivedSources/webkit/WebKitDOMHTMLDListElementPrivate.h \
576         DerivedSources/webkit/WebKitDOMHTMLDocument.cpp \
577         DerivedSources/webkit/WebKitDOMHTMLDocumentPrivate.h \
578         DerivedSources/webkit/WebKitDOMHTMLElement.cpp \
579         DerivedSources/webkit/WebKitDOMHTMLElementPrivate.h \
580         DerivedSources/webkit/WebKitDOMHTMLEmbedElement.cpp \
581         DerivedSources/webkit/WebKitDOMHTMLEmbedElementPrivate.h \
582         DerivedSources/webkit/WebKitDOMHTMLFieldSetElement.cpp \
583         DerivedSources/webkit/WebKitDOMHTMLFieldSetElementPrivate.h \
584         DerivedSources/webkit/WebKitDOMHTMLFontElement.cpp \
585         DerivedSources/webkit/WebKitDOMHTMLFontElementPrivate.h \
586         DerivedSources/webkit/WebKitDOMHTMLFormElement.cpp \
587         DerivedSources/webkit/WebKitDOMHTMLFormElementPrivate.h \
588         DerivedSources/webkit/WebKitDOMHTMLFrameElement.cpp \
589         DerivedSources/webkit/WebKitDOMHTMLFrameElementPrivate.h \
590         DerivedSources/webkit/WebKitDOMHTMLFrameSetElement.cpp \
591         DerivedSources/webkit/WebKitDOMHTMLFrameSetElementPrivate.h \
592         DerivedSources/webkit/WebKitDOMHTMLHeadElement.cpp \
593         DerivedSources/webkit/WebKitDOMHTMLHeadElementPrivate.h \
594         DerivedSources/webkit/WebKitDOMHTMLHeadingElement.cpp \
595         DerivedSources/webkit/WebKitDOMHTMLHeadingElementPrivate.h \
596         DerivedSources/webkit/WebKitDOMHTMLHRElement.cpp \
597         DerivedSources/webkit/WebKitDOMHTMLHRElementPrivate.h \
598         DerivedSources/webkit/WebKitDOMHTMLHtmlElement.cpp \
599         DerivedSources/webkit/WebKitDOMHTMLHtmlElementPrivate.h \
600         DerivedSources/webkit/WebKitDOMHTMLIFrameElement.cpp \
601         DerivedSources/webkit/WebKitDOMHTMLIFrameElementPrivate.h \
602         DerivedSources/webkit/WebKitDOMHTMLImageElement.cpp \
603         DerivedSources/webkit/WebKitDOMHTMLImageElementPrivate.h \
604         DerivedSources/webkit/WebKitDOMHTMLInputElement.cpp \
605         DerivedSources/webkit/WebKitDOMHTMLInputElementPrivate.h \
606         DerivedSources/webkit/WebKitDOMHTMLIsIndexElement.cpp \
607         DerivedSources/webkit/WebKitDOMHTMLIsIndexElementPrivate.h \
608         DerivedSources/webkit/WebKitDOMHTMLLabelElement.cpp \
609         DerivedSources/webkit/WebKitDOMHTMLLabelElementPrivate.h \
610         DerivedSources/webkit/WebKitDOMHTMLLegendElement.cpp \
611         DerivedSources/webkit/WebKitDOMHTMLLegendElementPrivate.h \
612         DerivedSources/webkit/WebKitDOMHTMLLIElement.cpp \
613         DerivedSources/webkit/WebKitDOMHTMLLIElementPrivate.h \
614         DerivedSources/webkit/WebKitDOMHTMLLinkElement.cpp \
615         DerivedSources/webkit/WebKitDOMHTMLLinkElementPrivate.h \
616         DerivedSources/webkit/WebKitDOMHTMLMapElement.cpp \
617         DerivedSources/webkit/WebKitDOMHTMLMapElementPrivate.h \
618         DerivedSources/webkit/WebKitDOMHTMLMarqueeElement.cpp \
619         DerivedSources/webkit/WebKitDOMHTMLMarqueeElementPrivate.h \
620         DerivedSources/webkit/WebKitDOMHTMLMediaElement.cpp \
621         DerivedSources/webkit/WebKitDOMHTMLMediaElementPrivate.h \
622         DerivedSources/webkit/WebKitDOMHTMLMenuElement.cpp \
623         DerivedSources/webkit/WebKitDOMHTMLMenuElementPrivate.h \
624         DerivedSources/webkit/WebKitDOMHTMLMetaElement.cpp \
625         DerivedSources/webkit/WebKitDOMHTMLMetaElementPrivate.h \
626         DerivedSources/webkit/WebKitDOMHTMLModElement.cpp \
627         DerivedSources/webkit/WebKitDOMHTMLModElementPrivate.h \
628         DerivedSources/webkit/WebKitDOMHTMLObjectElement.cpp \
629         DerivedSources/webkit/WebKitDOMHTMLObjectElementPrivate.h \
630         DerivedSources/webkit/WebKitDOMHTMLOListElement.cpp \
631         DerivedSources/webkit/WebKitDOMHTMLOListElementPrivate.h \
632         DerivedSources/webkit/WebKitDOMHTMLOptGroupElement.cpp \
633         DerivedSources/webkit/WebKitDOMHTMLOptGroupElementPrivate.h \
634         DerivedSources/webkit/WebKitDOMHTMLOptionElement.cpp \
635         DerivedSources/webkit/WebKitDOMHTMLOptionElementPrivate.h \
636         DerivedSources/webkit/WebKitDOMHTMLOptionsCollection.cpp \
637         DerivedSources/webkit/WebKitDOMHTMLOptionsCollectionPrivate.h \
638         DerivedSources/webkit/WebKitDOMHTMLParagraphElement.cpp \
639         DerivedSources/webkit/WebKitDOMHTMLParagraphElementPrivate.h \
640         DerivedSources/webkit/WebKitDOMHTMLParamElement.cpp \
641         DerivedSources/webkit/WebKitDOMHTMLParamElementPrivate.h \
642         DerivedSources/webkit/WebKitDOMHTMLPreElement.cpp \
643         DerivedSources/webkit/WebKitDOMHTMLPreElementPrivate.h \
644         DerivedSources/webkit/WebKitDOMHTMLQuoteElement.cpp \
645         DerivedSources/webkit/WebKitDOMHTMLQuoteElementPrivate.h \
646         DerivedSources/webkit/WebKitDOMHTMLScriptElement.cpp \
647         DerivedSources/webkit/WebKitDOMHTMLScriptElementPrivate.h \
648         DerivedSources/webkit/WebKitDOMHTMLSelectElement.cpp \
649         DerivedSources/webkit/WebKitDOMHTMLSelectElementPrivate.h \
650         DerivedSources/webkit/WebKitDOMHTMLStyleElement.cpp \
651         DerivedSources/webkit/WebKitDOMHTMLStyleElementPrivate.h \
652         DerivedSources/webkit/WebKitDOMHTMLTableCaptionElement.cpp \
653         DerivedSources/webkit/WebKitDOMHTMLTableCaptionElementPrivate.h \
654         DerivedSources/webkit/WebKitDOMHTMLTableCellElement.cpp \
655         DerivedSources/webkit/WebKitDOMHTMLTableCellElementPrivate.h \
656         DerivedSources/webkit/WebKitDOMHTMLTableColElement.cpp \
657         DerivedSources/webkit/WebKitDOMHTMLTableColElementPrivate.h \
658         DerivedSources/webkit/WebKitDOMHTMLTableElement.cpp \
659         DerivedSources/webkit/WebKitDOMHTMLTableElementPrivate.h \
660         DerivedSources/webkit/WebKitDOMHTMLTableRowElement.cpp \
661         DerivedSources/webkit/WebKitDOMHTMLTableRowElementPrivate.h \
662         DerivedSources/webkit/WebKitDOMHTMLTableSectionElement.cpp \
663         DerivedSources/webkit/WebKitDOMHTMLTableSectionElementPrivate.h \
664         DerivedSources/webkit/WebKitDOMHTMLTextAreaElement.cpp \
665         DerivedSources/webkit/WebKitDOMHTMLTextAreaElementPrivate.h \
666         DerivedSources/webkit/WebKitDOMHTMLTitleElement.cpp \
667         DerivedSources/webkit/WebKitDOMHTMLTitleElementPrivate.h \
668         DerivedSources/webkit/WebKitDOMHTMLUListElement.cpp \
669         DerivedSources/webkit/WebKitDOMHTMLUListElementPrivate.h \
670         DerivedSources/webkit/WebKitDOMLocation.cpp \
671         DerivedSources/webkit/WebKitDOMLocationPrivate.h \
672         DerivedSources/webkit/WebKitDOMMediaError.cpp \
673         DerivedSources/webkit/WebKitDOMMediaErrorPrivate.h \
674         DerivedSources/webkit/WebKitDOMMediaList.cpp \
675         DerivedSources/webkit/WebKitDOMMediaListPrivate.h \
676         DerivedSources/webkit/WebKitDOMMemoryInfo.cpp \
677         DerivedSources/webkit/WebKitDOMMemoryInfoPrivate.h \
678         DerivedSources/webkit/WebKitDOMMessagePort.cpp \
679         DerivedSources/webkit/WebKitDOMMessagePortPrivate.h \
680         DerivedSources/webkit/WebKitDOMMouseEvent.cpp \
681         DerivedSources/webkit/WebKitDOMMouseEventPrivate.h \
682         DerivedSources/webkit/WebKitDOMNamedNodeMap.cpp \
683         DerivedSources/webkit/WebKitDOMNamedNodeMapPrivate.h \
684         DerivedSources/webkit/WebKitDOMNavigator.cpp \
685         DerivedSources/webkit/WebKitDOMNavigatorPrivate.h \
686         DerivedSources/webkit/WebKitDOMNode.cpp \
687         DerivedSources/webkit/WebKitDOMNodeFilter.cpp \
688         DerivedSources/webkit/WebKitDOMNodeFilterPrivate.h \
689         DerivedSources/webkit/WebKitDOMNodeIterator.cpp \
690         DerivedSources/webkit/WebKitDOMNodeIteratorPrivate.h \
691         DerivedSources/webkit/WebKitDOMNodeList.cpp \
692         DerivedSources/webkit/WebKitDOMNodeListPrivate.h \
693         DerivedSources/webkit/WebKitDOMNodePrivate.h \
694         DerivedSources/webkit/WebKitDOMProcessingInstruction.cpp \
695         DerivedSources/webkit/WebKitDOMProcessingInstructionPrivate.h \
696         DerivedSources/webkit/WebKitDOMRange.cpp \
697         DerivedSources/webkit/WebKitDOMRangePrivate.h \
698         DerivedSources/webkit/WebKitDOMScreen.cpp \
699         DerivedSources/webkit/WebKitDOMScreenPrivate.h \
700         DerivedSources/webkit/WebKitDOMStorage.cpp \
701         DerivedSources/webkit/WebKitDOMStoragePrivate.h \
702         DerivedSources/webkit/WebKitDOMStyleMedia.cpp \
703         DerivedSources/webkit/WebKitDOMStyleMediaPrivate.h \
704         DerivedSources/webkit/WebKitDOMStyleSheet.cpp \
705         DerivedSources/webkit/WebKitDOMStyleSheetList.cpp \
706         DerivedSources/webkit/WebKitDOMStyleSheetListPrivate.h \
707         DerivedSources/webkit/WebKitDOMStyleSheetPrivate.h \
708         DerivedSources/webkit/WebKitDOMText.cpp \
709         DerivedSources/webkit/WebKitDOMTextPrivate.h \
710         DerivedSources/webkit/WebKitDOMTimeRanges.cpp \
711         DerivedSources/webkit/WebKitDOMTimeRangesPrivate.h \
712         DerivedSources/webkit/WebKitDOMTreeWalker.cpp \
713         DerivedSources/webkit/WebKitDOMTreeWalkerPrivate.h \
714         DerivedSources/webkit/WebKitDOMUIEvent.cpp \
715         DerivedSources/webkit/WebKitDOMUIEventPrivate.h \
716         DerivedSources/webkit/WebKitDOMValidityState.cpp \
717         DerivedSources/webkit/WebKitDOMValidityStatePrivate.h \
718         DerivedSources/webkit/WebKitDOMWebKitPoint.cpp \
719         DerivedSources/webkit/WebKitDOMWebKitPointPrivate.h \
720         DerivedSources/webkit/WebKitDOMXPathExpression.cpp \
721         DerivedSources/webkit/WebKitDOMXPathExpressionPrivate.h \
722         DerivedSources/webkit/WebKitDOMXPathNSResolver.cpp \
723         DerivedSources/webkit/WebKitDOMXPathNSResolverPrivate.h \
724         DerivedSources/webkit/WebKitDOMXPathResult.cpp \
725         DerivedSources/webkit/WebKitDOMXPathResultPrivate.h
726
727 if ENABLE_GEOLOCATION
728 webkitgtk_built_h_api += \
729         $(top_builddir)/DerivedSources/webkit/WebKitDOMGeolocation.h
730
731 webkitgtk_gdom_built_sources += \
732         DerivedSources/webkit/WebKitDOMGeolocation.cpp \
733         DerivedSources/webkit/WebKitDOMGeolocationPrivate.h
734 endif
735
736 # webkitenumtypes.{h,cpp} cannot be in webkitgtk_built_h_api, because
737 # the rule that builds it depends on webkitgtk_built_h_api (circular dependency).
738 webkitgtk_built_sources += \
739         $(webkitgtk_built_h_api) \
740         $(webkitgtk_gdom_built_sources) \
741         DerivedSources/webkit/webkitmarshal.cpp \
742         DerivedSources/webkit/webkitmarshal.h \
743         WebKit/gtk/webkit/webkitenumtypes.cpp \
744         WebKit/gtk/webkit/webkitenumtypes.h
745
746 webkitgtk_sources += \
747         WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
748         WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
749         WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
750         WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
751         WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.cpp \
752         WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.h \
753         WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
754         WebKit/gtk/WebCoreSupport/DragClientGtk.h \
755         WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
756         WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
757         WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
758         WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
759         WebKit/gtk/WebCoreSupport/FrameNetworkingContextGtk.h \
760         WebKit/gtk/WebCoreSupport/FullscreenVideoController.cpp \
761         WebKit/gtk/WebCoreSupport/FullscreenVideoController.h \
762         WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \
763         WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
764         WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp \
765         WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h \
766         WebKit/gtk/webkit/webkitapplicationcache.cpp \
767         WebKit/gtk/webkit/webkitdownload.cpp \
768         WebKit/gtk/webkit/webkiterror.cpp \
769         WebKit/gtk/webkit/webkithittestresult.cpp \
770         WebKit/gtk/webkit/webkitnetworkrequest.cpp \
771         WebKit/gtk/webkit/webkitnetworkresponse.cpp \
772         WebKit/gtk/webkit/webkitprivate.cpp \
773         WebKit/gtk/webkit/webkitprivate.h \
774         WebKit/gtk/webkit/webkitsoupauthdialog.c \
775         WebKit/gtk/webkit/webkitversion.cpp \
776         WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \
777         WebKit/gtk/webkit/webkitwebdatasource.cpp \
778         WebKit/gtk/webkit/webkitwebframe.cpp \
779         WebKit/gtk/webkit/webkitwebhistoryitem.cpp \
780         WebKit/gtk/webkit/webkitwebinspector.cpp \
781         WebKit/gtk/webkit/webkitwebnavigationaction.cpp \
782         WebKit/gtk/webkit/webkitwebpolicydecision.cpp \
783         WebKit/gtk/webkit/webkitgeolocationpolicydecision.cpp \
784         WebKit/gtk/webkit/webkitwebresource.cpp \
785         WebKit/gtk/webkit/webkitwebdatabase.cpp \
786         WebKit/gtk/webkit/webkitsecurityorigin.cpp \
787         WebKit/gtk/webkit/webkitwebsettings.cpp \
788         WebKit/gtk/webkit/webkitwebview.cpp \
789         WebKit/gtk/webkit/webkitwebwindowfeatures.cpp \
790         WebKit/gtk/webkit/webkitworkers.cpp
791
792 gdom_class_list := $(subst WebKitDOM,, $(filter-out %Private, $(basename $(notdir $(webkitgtk_gdom_built_sources)))))
793 gdom_class_list += Object EventTarget
794 DerivedSources/webkit/webkitdom.h: $(WebCore)/bindings/scripts/gobject-generate-headers.pl GNUmakefile
795         $(AM_V_GEN)echo $(gdom_class_list) | $(PERL) $< gdom > $@
796
797 DerivedSources/webkit/webkitdomdefines.h: $(WebCore)/bindings/scripts/gobject-generate-headers.pl GNUmakefile
798         $(AM_V_GEN)echo $(gdom_class_list) | $(PERL) $< defines > $@
799
800 # Because WebCore/bindings/gobject/WebKitDOMObject.h is static source but is also a distributed header
801 # required by other distributed headers (both static and auto-generated), need to move this to the
802 # DerivedSources/webkit directory.  The reason is that we want all header files distributed in the
803 # include/webkit-x.y/webkit directory, but do not want to name the WebCore/bindings/gobject directory 
804 # "webkit", as that's a bit presumptuous for a GTK binding.
805 $(top_builddir)/DerivedSources/webkit/WebKitDOMObject.h: $(WebCore)/bindings/gobject/WebKitDOMObject.h
806         $(AM_V_GEN)cp -f $< $@
807
808 $(top_builddir)/DerivedSources/webkit/WebKitDOMEventTarget.h: $(WebCore)/bindings/gobject/WebKitDOMEventTarget.h
809         $(AM_V_GEN)cp -f $< $@
810
811 $(top_builddir)/DerivedSources/webkit/WebKitDOMEventTargetPrivate.h: $(WebCore)/bindings/gobject/WebKitDOMEventTargetPrivate.h
812         $(AM_V_GEN)cp -f $< $@
813
814 # Filter out SVG for now
815 gdom_feature_defines := $(filter-out ENABLE-SVG%, $(FEATURE_DEFINES))
816 DerivedSources/webkit/WebKitDOM%.cpp DerivedSources/webkit/WebKitDOM%.h DerivedSources/webkit/WebKitDOM%Private.h:: %.idl $(SCRIPTS_BINDINGS) $(WebCore)/bindings/scripts/CodeGeneratorGObject.pm
817         $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl --include $(WebCore)/dom --include $(WebCore)/html --include $(WebCore)/css --include $(WebCore)/page --include $(WebCore)/xml --include $(WebCore)/svg --outputDir "$(GENSOURCES_WEBKIT)" --defines "LANGUAGE_GOBJECT=1 $(gdom_features_defines)" --generator GObject $<
818
819 webkitgtk_cppflags += \
820         -DBUILDING_WEBKIT \
821         -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
822         -DDATA_DIR=\"${datadir}\" \
823         -I$(srcdir)/WebKit/gtk \
824         -I$(srcdir)/WebKit/gtk/WebCoreSupport \
825         -I$(srcdir)/WebKit/gtk/webkit \
826         -I$(top_builddir)/WebKit/gtk \
827         -I$(top_builddir)/WebKit/gtk/webkit \
828         -I$(GENSOURCES_WEBKIT)
829
830 pkgconfigdir = $(libdir)/pkgconfig
831 pkgconfig_DATA = WebKit/gtk/@WEBKITGTK_PC_NAME@-@WEBKITGTK_API_VERSION@.pc
832
833 if ENABLE_INTROSPECTION
834
835 JSCore-@WEBKITGTK_API_VERSION@.gir: $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir
836         $(AM_V_GEN)cp $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir $(builddir)/
837
838 JSCORE_GIRSOURCES += JSCore-@WEBKITGTK_API_VERSION@.gir
839 WEBKIT_GIRSOURCES += WebKit-@WEBKITGTK_API_VERSION@.gir
840
841 $(WEBKIT_GIRSOURCES): $(G_IR_SCANNER) $(JSCORE_GIRSOURCES) libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
842         $(AM_V_GEN)$(G_IR_SCANNER) -v --namespace WebKit --nsversion=@WEBKITGTK_API_VERSION@ \
843              --include=GObject-2.0 \
844              --include=Gtk-@GTK_API_VERSION@ \
845              --include=JSCore-@WEBKITGTK_API_VERSION@ \
846              --include=Soup-2.4 \
847              --library=webkitgtk-@WEBKITGTK_API_VERSION@ \
848              --libtool="$(LIBTOOL)" \
849              --pkg gobject-2.0 \
850              --pkg gtk+-@GTK_API_VERSION@ \
851              --pkg libsoup-2.4 \
852              --output $@ \
853              --add-include-path $(top_srcdir)/WebKit/gtk \
854              --add-include-path $(builddir) \
855              -I$(top_srcdir)/WebKit/gtk \
856              -I$(top_builddir)/WebKit/gtk \
857              -I$(top_builddir)/DerivedSources \
858              -I$(top_builddir)/DerivedSources/webkit \
859              -I$(top_srcdir)/JavaScriptCore/ForwardingHeaders \
860              -I$(top_srcdir) \
861              $(webkitgtk_h_api) \
862              $(top_srcdir)/WebKit/gtk/webkit/*.cpp
863
864 girdir = $(datadir)/gir-1.0
865 gir_DATA = $(WEBKIT_GIRSOURCES) $(JSCORE_GIRSOURCES)
866
867 typelibsdir += $(libdir)/girepository-1.0
868 typelibs_DATA += $(JSCORE_GIRSOURCES:.gir=.typelib) $(WEBKIT_GIRSOURCES:.gir=.typelib)
869
870 %.typelib: %.gir $(G_IR_COMPILER)
871         $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(top_srcdir)/WebKit/gtk --includedir $(builddir) $< -o $@
872
873 CLEANFILES += $(JSCORE_GIRSOURCES) $(WEBKIT_GIRSOURCES) $(typelibs_DATA)
874
875 endif
876
877 EXTRA_DIST += $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir
878
879 WEBKIT_MARSHAL = $(GENSOURCES_WEBKIT)/webkitmarshal
880 WEBKIT_MARSHAL_LIST = $(top_srcdir)/WebKit/gtk/webkitmarshal.list
881 $(WEBKIT_MARSHAL).cpp: stamp-webkitmarshal.cpp
882         @true
883
884 $(WEBKIT_MARSHAL).h: stamp-webkitmarshal.h
885         @true
886
887 stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST)
888         $(AM_V_GEN) echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
889         $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
890         echo timestamp > $(@F)
891
892 stamp-webkitmarshal.h: $(WEBKIT_MARSHAL_LIST)
893         $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
894         echo timestamp > $(@F)
895
896 WebKit/gtk/webkit/webkitenumtypes.h: stamp-webkitenumtypes.h
897         @true
898 stamp-webkitenumtypes.h: $(webkitgtk_h_api) GNUmakefile
899         $(AM_V_GEN)glib-mkenums \
900                         --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
901                         --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
902                         --fhead "#include <glib-object.h>\n\n" \
903                         --fhead "#include <webkit/webkitdefines.h>\n\n" \
904                         --fhead "G_BEGIN_DECLS\n\n" \
905                         --ftail "G_END_DECLS\n\n" \
906                         --ftail "#endif\n" \
907                         --fprod "#include <webkit/@basename@>\n\n" \
908                         --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
909                         --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
910                 $(webkitgtk_h_api) | \
911                 sed 's,web_kit,webkit,' | \
912                 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
913                 > xgen-gth \
914         && (cmp -s xgen-gth WebKit/gtk/webkit/webkitenumtypes.h || cp xgen-gth WebKit/gtk/webkit/webkitenumtypes.h) \
915         && rm -f xgen-gth \
916         && echo timestamp > $(@F)
917
918 WebKit/gtk/webkit/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile
919         $(AM_V_GEN)glib-mkenums \
920                         --fhead "#include <config.h>\n" \
921                         --fhead "#include <glib-object.h>\n" \
922                         --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h\"\n\n" \
923                         --fhead "extern \"C\" {\n\n" \
924                         --fprod "\n/* enumerations from \"@filename@\" */" \
925                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
926                         --vprod "    { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
927                         --vtail "    { 0, NULL, NULL }\n};\n\n" \
928                         --vtail "GType @enum_name@_get_type(void)\n{\n" \
929                         --vtail "    static GType type = 0;\n\n" \
930                         --vtail "    if (!type)\n" \
931                         --vtail "        type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
932                         --vtail "    return type;\n}\n\n" \
933                         --ftail "}\n" \
934                 $(webkitgtk_h_api) | \
935                 sed 's,web_kit,webkit,' \
936                 > xgen-gtc \
937         && cp xgen-gtc $@ \
938         && rm -f xgen-gtc
939
940 # GSettings
941 if USE_GSETTINGS
942 gsettings_SCHEMAS = $(top_builddir)/WebKit/gtk/org.webkitgtk-@WEBKITGTK_API_VERSION@.gschema.xml
943
944 @GSETTINGS_RULES@
945 endif
946
947 # Files that will be distributed
948 EXTRA_DIST += \
949         $(srcdir)/gtk-doc.make \
950         WebKit/LICENSE \
951         $(srcdir)/autotools/symbols.filter \
952         $(srcdir)/WebKit/gtk/ChangeLog \
953         $(srcdir)/WebKit/gtk/NEWS \
954         $(srcdir)/WebKit/gtk/webkitmarshal.list \
955         $(srcdir)/WebKit/gtk/docs/GNUmakefile.* \
956         $(srcdir)/WebKit/gtk/docs/webkitenvironment.xml \
957         $(srcdir)/WebKit/gtk/docs/webkitgtk-docs.sgml \
958         $(srcdir)/WebKit/gtk/docs/webkitgtk-sections.txt \
959         $(srcdir)/WebKit/gtk/docs/version.xml.in \
960         $(srcdir)/WebKit/gtk/po/* \
961         $(srcdir)/WebKit/gtk/resources/* \
962         $(srcdir)/WebKit/gtk/tests/resources/* \
963         $(srcdir)/WebKit/gtk/tests/test_utils.h \
964         $(srcdir)/WebKit/gtk/org.webkitgtk.gschema.xml.in
965
966 # extra resource files
967 resourcesdir = ${datadir}/webkit-@WEBKITGTK_API_VERSION@/resources
968 dist_resources_DATA = \
969         $(shell ls $(srcdir)/WebKit/gtk/resources/*.html)
970
971 # END WEBKIT GTK+
972
973 # Include module makefiles
974 include JavaScriptCore/GNUmakefile.am
975 include WebCore/GNUmakefile.am
976 include WebKitTools/GNUmakefile.am
977 include WebKit/gtk/po/GNUmakefile.am
978
979 # Build unit tests
980 noinst_PROGRAMS += $(TEST_PROGS)
981
982 webkit_tests_cflags = \
983         -fno-strict-aliasing \
984         -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
985         -I$(srcdir)/WebKit/gtk \
986         -I$(top_builddir)/WebKit/gtk \
987         -I$(top_builddir)/DerivedSources \
988         -I$(top_srcdir)/WebCore/bindings \
989         -I$(top_srcdir)/WebCore/bindings/gobject \
990         $(global_cflags) \
991         $(GLIB_CFLAGS) \
992         $(GTK_CFLAGS) \
993         $(LIBSOUP_CFLAGS)
994
995 webkit_tests_ldadd = \
996         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
997         $(GTK_LIBS)     \
998         $(GLIB_LIBS) \
999         $(LIBSOUP_LIBS)
1000
1001 webkit_tests_ldflags = \
1002         -no-install \
1003         -no-fast-install
1004
1005 TEST_PROGS += \
1006         Programs/unittests/testdomdocument \
1007         Programs/unittests/testdomdomwindow \
1008         Programs/unittests/testdomnode \
1009         Programs/unittests/testhttpbackend \
1010         Programs/unittests/testloading \
1011         Programs/unittests/testglobals \
1012         Programs/unittests/testmimehandling \
1013         Programs/unittests/testnetworkrequest \
1014         Programs/unittests/testnetworkresponse \
1015         Programs/unittests/testwebframe \
1016         Programs/unittests/testwebbackforwardlist \
1017         Programs/unittests/testwebhistoryitem \
1018         Programs/unittests/testwindow \
1019         Programs/unittests/testdownload \
1020         Programs/unittests/testatk \
1021         Programs/unittests/testatkroles \
1022         Programs/unittests/testhittestresult \
1023         Programs/unittests/testwebsettings \
1024         Programs/unittests/testwebresource \
1025         Programs/unittests/testwebdatasource \
1026         Programs/unittests/testwebview \
1027         Programs/unittests/testkeyevents \
1028         Programs/unittests/testcopyandpaste
1029
1030 # Add additional tests here
1031 Programs_unittests_testdomdocument_SOURCES = WebKit/gtk/tests/testdomdocument.c
1032 Programs_unittests_testdomdocument_CFLAGS = $(webkit_tests_cflags)
1033 Programs_unittests_testdomdocument_LDADD = $(webkit_tests_ldadd)
1034 Programs_unittests_testdomdocument_LDFLAGS = $(webkit_tests_ldflags)
1035
1036 Programs_unittests_testdomdomwindow_SOURCES = WebKit/gtk/tests/testdomdomwindow.c
1037 Programs_unittests_testdomdomwindow_CFLAGS = $(webkit_tests_cflags)
1038 Programs_unittests_testdomdomwindow_LDADD = $(webkit_tests_ldadd)
1039 Programs_unittests_testdomdomwindow_LDFLAGS = $(webkit_tests_ldflags)
1040
1041 Programs_unittests_testdomnode_SOURCES = WebKit/gtk/tests/testdomnode.c
1042 Programs_unittests_testdomnode_CFLAGS = $(webkit_tests_cflags)
1043 Programs_unittests_testdomnode_LDADD = $(webkit_tests_ldadd)
1044 Programs_unittests_testdomnode_LDFLAGS = $(webkit_tests_ldflags)
1045
1046 Programs_unittests_testhttpbackend_SOURCES = WebKit/gtk/tests/testhttpbackend.c
1047 Programs_unittests_testhttpbackend_CFLAGS = $(webkit_tests_cflags)
1048 Programs_unittests_testhttpbackend_LDADD = $(webkit_tests_ldadd)
1049 Programs_unittests_testhttpbackend_LDFLAGS = $(webkit_tests_ldflags)
1050
1051 Programs_unittests_testglobals_SOURCES = WebKit/gtk/tests/testglobals.c
1052 Programs_unittests_testglobals_CFLAGS = $(webkit_tests_cflags)
1053 Programs_unittests_testglobals_LDADD = $(webkit_tests_ldadd)
1054 Programs_unittests_testglobals_LDFLAGS = $(webkit_tests_ldflags)
1055
1056 Programs_unittests_testloading_SOURCES = WebKit/gtk/tests/testloading.c
1057 Programs_unittests_testloading_CFLAGS = $(webkit_tests_cflags)
1058 Programs_unittests_testloading_LDADD = $(webkit_tests_ldadd)
1059 Programs_unittests_testloading_LDFLAGS = $(webkit_tests_ldflags)
1060
1061 Programs_unittests_testmimehandling_SOURCES = WebKit/gtk/tests/testmimehandling.c WebKit/gtk/tests/test_utils.c
1062 Programs_unittests_testmimehandling_CFLAGS = $(webkit_tests_cflags)
1063 Programs_unittests_testmimehandling_LDADD = $(webkit_tests_ldadd)
1064 Programs_unittests_testmimehandling_LDFLAGS = $(webkit_tests_ldflags)
1065
1066 Programs_unittests_testnetworkrequest_SOURCES = WebKit/gtk/tests/testnetworkrequest.c
1067 Programs_unittests_testnetworkrequest_CFLAGS = $(webkit_tests_cflags)
1068 Programs_unittests_testnetworkrequest_LDADD = $(webkit_tests_ldadd)
1069 Programs_unittests_testnetworkrequest_LDFLAGS = $(webkit_tests_ldflags)
1070
1071 Programs_unittests_testnetworkresponse_SOURCES = WebKit/gtk/tests/testnetworkresponse.c
1072 Programs_unittests_testnetworkresponse_CFLAGS = $(webkit_tests_cflags)
1073 Programs_unittests_testnetworkresponse_LDADD = $(webkit_tests_ldadd)
1074 Programs_unittests_testnetworkresponse_LDFLAGS = $(webkit_tests_ldflags)
1075
1076 Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c
1077 Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags)
1078 Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd)
1079 Programs_unittests_testwebframe_LDFLAGS = $(webkit_tests_ldflags)
1080
1081 Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c
1082 Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags)
1083 Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd)
1084 Programs_unittests_testwebbackforwardlist_LDFLAGS = $(webkit_tests_ldflags)
1085
1086 Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c
1087 Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags)
1088 Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd)
1089 Programs_unittests_testwebhistoryitem_LDFLAGS = $(webkit_tests_ldflags)
1090
1091 Programs_unittests_testwindow_SOURCES = WebKit/gtk/tests/testwindow.c
1092 Programs_unittests_testwindow_CFLAGS = $(webkit_tests_cflags)
1093 Programs_unittests_testwindow_LDADD = $(webkit_tests_ldadd)
1094 Programs_unittests_testwindow_LDFLAGS = $(webkit_tests_ldflags)
1095
1096 Programs_unittests_testdownload_SOURCES = WebKit/gtk/tests/testdownload.c
1097 Programs_unittests_testdownload_CFLAGS = $(webkit_tests_cflags)
1098 Programs_unittests_testdownload_LDADD = $(webkit_tests_ldadd)
1099 Programs_unittests_testdownload_LDFLAGS = $(webkit_tests_ldflags)
1100
1101 Programs_unittests_testatk_SOURCES = WebKit/gtk/tests/testatk.c
1102 Programs_unittests_testatk_CFLAGS = $(webkit_tests_cflags)
1103 Programs_unittests_testatk_LDADD = $(webkit_tests_ldadd)
1104 Programs_unittests_testatk_LDFLAGS = $(webkit_tests_ldflags)
1105
1106 Programs_unittests_testatkroles_SOURCES = WebKit/gtk/tests/testatkroles.c
1107 Programs_unittests_testatkroles_CFLAGS = $(webkit_tests_cflags)
1108 Programs_unittests_testatkroles_LDADD = $(webkit_tests_ldadd)
1109 Programs_unittests_testatkroles_LDFLAGS = $(webkit_tests_ldflags)
1110
1111 Programs_unittests_testwebsettings_SOURCES = WebKit/gtk/tests/testwebsettings.c
1112 Programs_unittests_testwebsettings_CFLAGS = $(webkit_tests_cflags)
1113 Programs_unittests_testwebsettings_LDADD = $(webkit_tests_ldadd)
1114 Programs_unittests_testwebsettings_LDFLAGS = $(webkit_tests_ldflags)
1115
1116 Programs_unittests_testwebresource_SOURCES = WebKit/gtk/tests/testwebresource.c
1117 Programs_unittests_testwebresource_CFLAGS = $(webkit_tests_cflags)
1118 Programs_unittests_testwebresource_LDADD = $(webkit_tests_ldadd)
1119
1120 Programs_unittests_testwebdatasource_SOURCES = WebKit/gtk/tests/testwebdatasource.c
1121 Programs_unittests_testwebdatasource_CFLAGS = $(webkit_tests_cflags)
1122 Programs_unittests_testwebdatasource_LDADD = $(webkit_tests_ldadd)
1123
1124 Programs_unittests_testwebview_SOURCES = WebKit/gtk/tests/testwebview.c WebKit/gtk/tests/test_utils.c
1125 Programs_unittests_testwebview_CFLAGS = $(webkit_tests_cflags)
1126 Programs_unittests_testwebview_LDADD = $(webkit_tests_ldadd)
1127 Programs_unittests_testwebview_LDFLAGS = $(webkit_tests_ldflags)
1128
1129 Programs_unittests_testhittestresult_SOURCES = WebKit/gtk/tests/testhittestresult.c
1130 Programs_unittests_testhittestresult_CFLAGS = $(webkit_tests_cflags)
1131 Programs_unittests_testhittestresult_LDADD = $(webkit_tests_ldadd)
1132
1133 Programs_unittests_testkeyevents_SOURCES = WebKit/gtk/tests/testkeyevents.c
1134 Programs_unittests_testkeyevents_CFLAGS = $(webkit_tests_cflags)
1135 Programs_unittests_testkeyevents_LDADD = $(webkit_tests_ldadd)
1136 Programs_unittests_testkeyevents_LDFLAGS = $(webkit_tests_ldflags)
1137
1138 Programs_unittests_testcopyandpaste_SOURCES = WebKit/gtk/tests/testcopyandpaste.c
1139 Programs_unittests_testcopyandpaste_CFLAGS = $(webkit_tests_cflags)
1140 Programs_unittests_testcopyandpaste_LDADD = $(webkit_tests_ldadd)
1141 Programs_unittests_testcopyandpaste_LDFLAGS = $(webkit_tests_ldflags)
1142
1143 # Autogenerated sources
1144 BUILT_SOURCES += \
1145         $(javascriptcore_built_sources) \
1146         $(javascriptcore_built_nosources) \
1147         $(webcore_built_sources) \
1148         $(webcore_built_nosources) \
1149         $(webkitgtk_built_sources) \
1150         $(webkitgtk_built_nosources)
1151
1152 # Project-wide clean rules
1153 # Files that will be cleaned
1154 CLEANFILES += \
1155         $(BUILT_SOURCES) \
1156         $(top_builddir)/stamp-webkitmarshal.cpp \
1157         $(top_builddir)/stamp-webkitmarshal.h \
1158         $(top_builddir)/stamp-webkitenumtypes.cpp \
1159         $(top_builddir)/stamp-webkitenumtypes.h \
1160         $(top_builddir)/Programs/GtkLauncher
1161
1162 DISTCLEANFILES += \
1163         $(CLEANFILES) \
1164         $(builddir)/doltcompile \
1165         $(builddir)/doltlibtool \
1166         $(top_builddir)/WebKit/gtk/docs/version.xml \
1167         $(top_builddir)/WebKit/gtk/docs/GNUmakefile \
1168         $(top_builddir)/WebKit/gtk/@WEBKITGTK_PC_NAME@-@WEBKITGTK_API_VERSION@.pc \
1169         $(top_builddir)/WebKit/gtk/webkit/webkitversion.h \
1170         $(top_builddir)/WebKit/gtk/org.webkitgtk-@WEBKITGTK_API_VERSION@.gschema.xml
1171
1172 MAINTAINERCLEANFILES += \
1173         $(CLEANFILES) \
1174         $(builddir)/doltcompile \
1175         $(builddir)/doltlibtool \
1176         $(srcdir)/aconfig.h.in \
1177         $(srcdir)/autotools/config.* \
1178         $(srcdir)/autotools/compile \
1179         $(srcdir)/autotools/depcomp \
1180         $(srcdir)/autotools/install-sh \
1181         $(srcdir)/autotools/missing \
1182         $(srcdir)/configure \
1183         $(srcdir)/GNUmakefile.in \
1184         $(srcdir)/INSTALL \
1185         $(srcdir)/README \
1186         $(top_builddir)/config.*
1187
1188 # Older automake versions (1.7) place Plo files in a different place so we need
1189 # to create the output directory manually.
1190 all-local: stamp-po
1191         $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
1192
1193 # remove built sources and program directories
1194 clean-local:
1195         -rm -rf $(GENPROGRAMS)
1196
1197 maintainer-clean-local: distclean-local
1198
1199 distclean-local:
1200         -rm -rf $(GENSOURCES) $(GENPROGRAMS)
1201
1202 dist-hook:
1203         cp $(srcdir)/WebKit/gtk/NEWS $(distdir)
1204
1205 install-data-local: po-install-data-local
1206
1207 installdirs-data-local: po-installdirs-data-local
1208
1209 uninstall-local: po-uninstall-local
1210
1211 # Run all tests in cwd
1212 # FIXME: we should run this under xvfb
1213 test: $(TEST_PROGS)
1214         $(GTESTER) --verbose $(TEST_PROGS);
1215
1216 # test-report: run tests in cwd and generate report
1217 # full-report: run tests in cwd with -m perf and -m slow and generate report
1218 # perf-report: run tests in cwd with -m perf and generate report
1219 test-report full-report perf-report: $(TEST_PROGS)
1220         @ case $@ in \
1221           test-report) test_options="-k";; \
1222           full-report) test_options="-k -m=perf";; \
1223           perf-report) test_options="-k -m=perf -m=slow";; \
1224           esac ; \
1225           $(GTESTER) --verbose $$test_options -o test-report.xml $(TEST_PROGS); \
1226           $(GTESTER_REPORT) test-report.xml > test-report.html ;
1227
1228 .PHONY: test test-report perf-report full-report
1229 check-local: test