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