2010-08-25 Zaheer Ahmad <zaheer.mot@gmail.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 if USE_ICU_UNICODE
279 global_cppflags += \
280         -DWTF_USE_ICU_UNICODE=1
281 endif
282
283 if USE_GLIB_UNICODE
284 global_cppflags += \
285         -DWTF_USE_GLIB_UNICODE=1
286 endif
287
288 if !ENABLE_FAST_MALLOC
289 global_cppflags += \
290         -DUSE_SYSTEM_MALLOC
291 endif
292
293 # ----
294 # GTK+ 2.x/3.x support
295 # ----
296 if GTK_API_VERSION_2
297 global_cflags += \
298         -DGTK_API_VERSION_2=1
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/WebKitDOMHTMLBaseElement.h \
389         DerivedSources/webkit/WebKitDOMHTMLBaseFontElement.h \
390         DerivedSources/webkit/WebKitDOMHTMLBlockquoteElement.h \
391         DerivedSources/webkit/WebKitDOMHTMLBodyElement.h \
392         DerivedSources/webkit/WebKitDOMHTMLBRElement.h \
393         DerivedSources/webkit/WebKitDOMHTMLButtonElement.h \
394         DerivedSources/webkit/WebKitDOMHTMLCanvasElement.h \
395         DerivedSources/webkit/WebKitDOMHTMLCollection.h \
396         DerivedSources/webkit/WebKitDOMHTMLDirectoryElement.h \
397         DerivedSources/webkit/WebKitDOMHTMLDivElement.h \
398         DerivedSources/webkit/WebKitDOMHTMLDListElement.h \
399         DerivedSources/webkit/WebKitDOMHTMLDocument.h \
400         DerivedSources/webkit/WebKitDOMHTMLElement.h \
401         DerivedSources/webkit/WebKitDOMHTMLEmbedElement.h \
402         DerivedSources/webkit/WebKitDOMHTMLFieldSetElement.h \
403         DerivedSources/webkit/WebKitDOMHTMLFontElement.h \
404         DerivedSources/webkit/WebKitDOMHTMLFormElement.h \
405         DerivedSources/webkit/WebKitDOMHTMLFrameElement.h \
406         DerivedSources/webkit/WebKitDOMHTMLFrameSetElement.h \
407         DerivedSources/webkit/WebKitDOMHTMLHeadElement.h \
408         DerivedSources/webkit/WebKitDOMHTMLHeadingElement.h \
409         DerivedSources/webkit/WebKitDOMHTMLHRElement.h \
410         DerivedSources/webkit/WebKitDOMHTMLHtmlElement.h \
411         DerivedSources/webkit/WebKitDOMHTMLIFrameElement.h \
412         DerivedSources/webkit/WebKitDOMHTMLImageElement.h \
413         DerivedSources/webkit/WebKitDOMHTMLInputElement.h \
414         DerivedSources/webkit/WebKitDOMHTMLIsIndexElement.h \
415         DerivedSources/webkit/WebKitDOMHTMLLabelElement.h \
416         DerivedSources/webkit/WebKitDOMHTMLLegendElement.h \
417         DerivedSources/webkit/WebKitDOMHTMLLIElement.h \
418         DerivedSources/webkit/WebKitDOMHTMLLinkElement.h \
419         DerivedSources/webkit/WebKitDOMHTMLMapElement.h \
420         DerivedSources/webkit/WebKitDOMHTMLMarqueeElement.h \
421         DerivedSources/webkit/WebKitDOMHTMLMediaElement.h \
422         DerivedSources/webkit/WebKitDOMHTMLMenuElement.h \
423         DerivedSources/webkit/WebKitDOMHTMLMetaElement.h \
424         DerivedSources/webkit/WebKitDOMHTMLModElement.h \
425         DerivedSources/webkit/WebKitDOMHTMLObjectElement.h \
426         DerivedSources/webkit/WebKitDOMHTMLOListElement.h \
427         DerivedSources/webkit/WebKitDOMHTMLOptGroupElement.h \
428         DerivedSources/webkit/WebKitDOMHTMLOptionElement.h \
429         DerivedSources/webkit/WebKitDOMHTMLOptionsCollection.h \
430         DerivedSources/webkit/WebKitDOMHTMLParagraphElement.h \
431         DerivedSources/webkit/WebKitDOMHTMLParamElement.h \
432         DerivedSources/webkit/WebKitDOMHTMLPreElement.h \
433         DerivedSources/webkit/WebKitDOMHTMLQuoteElement.h \
434         DerivedSources/webkit/WebKitDOMHTMLScriptElement.h \
435         DerivedSources/webkit/WebKitDOMHTMLSelectElement.h \
436         DerivedSources/webkit/WebKitDOMHTMLStyleElement.h \
437         DerivedSources/webkit/WebKitDOMHTMLTableElement.h \
438         DerivedSources/webkit/WebKitDOMHTMLTableCaptionElement.h \
439         DerivedSources/webkit/WebKitDOMHTMLTableColElement.h \
440         DerivedSources/webkit/WebKitDOMHTMLTableSectionElement.h \
441         DerivedSources/webkit/WebKitDOMHTMLTableCellElement.h \
442         DerivedSources/webkit/WebKitDOMHTMLTextAreaElement.h \
443         DerivedSources/webkit/WebKitDOMHTMLTitleElement.h \
444         DerivedSources/webkit/WebKitDOMHTMLTableRowElement.h \
445         DerivedSources/webkit/WebKitDOMHTMLUListElement.h \
446         DerivedSources/webkit/WebKitDOMMediaError.h \
447         DerivedSources/webkit/WebKitDOMTimeRanges.h \
448         DerivedSources/webkit/WebKitDOMValidityState.h \
449         DerivedSources/webkit/WebKitDOMDOMApplicationCache.h \
450         DerivedSources/webkit/WebKitDOMBarInfo.h \
451         DerivedSources/webkit/WebKitDOMConsole.h \
452         DerivedSources/webkit/WebKitDOMDOMWindow.h \
453         DerivedSources/webkit/WebKitDOMDOMSelection.h \
454         DerivedSources/webkit/WebKitDOMEventTarget.h \
455         DerivedSources/webkit/WebKitDOMHistory.h \
456         DerivedSources/webkit/WebKitDOMLocation.h \
457         DerivedSources/webkit/WebKitDOMMemoryInfo.h \
458         DerivedSources/webkit/WebKitDOMObject.h \
459         DerivedSources/webkit/WebKitDOMNavigator.h \
460         DerivedSources/webkit/WebKitDOMScreen.h \
461         DerivedSources/webkit/WebKitDOMWebKitPoint.h \
462         DerivedSources/webkit/WebKitDOMDOMMimeType.h \
463         DerivedSources/webkit/WebKitDOMDOMMimeTypeArray.h \
464         DerivedSources/webkit/WebKitDOMDOMPlugin.h \
465         DerivedSources/webkit/WebKitDOMDOMPluginArray.h \
466         DerivedSources/webkit/WebKitDOMDatabase.h \
467         DerivedSources/webkit/WebKitDOMStorage.h \
468         DerivedSources/webkit/WebKitDOMXPathExpression.h \
469         DerivedSources/webkit/WebKitDOMXPathNSResolver.h \
470         DerivedSources/webkit/WebKitDOMXPathResult.h \
471         DerivedSources/webkit/webkitdom.h \
472         DerivedSources/webkit/webkitdomdefines.h \
473         WebKit/gtk/webkit/webkitversion.h
474
475 webkitgtk_h_api += \
476         $(webkitgtk_built_h_api) \
477         $(webkitgtk_static_h_api)
478
479 webkitgtk_gdom_built_sources += \
480         DerivedSources/webkit/WebKitDOMAttr.cpp \
481         DerivedSources/webkit/WebKitDOMAttrPrivate.h \
482         DerivedSources/webkit/WebKitDOMBarInfo.cpp \
483         DerivedSources/webkit/WebKitDOMBarInfoPrivate.h \
484         DerivedSources/webkit/WebKitDOMBlob.cpp \
485         DerivedSources/webkit/WebKitDOMBlobPrivate.h \
486         DerivedSources/webkit/WebKitDOMCDATASection.cpp \
487         DerivedSources/webkit/WebKitDOMCDATASectionPrivate.h \
488         DerivedSources/webkit/WebKitDOMCharacterData.cpp \
489         DerivedSources/webkit/WebKitDOMCharacterDataPrivate.h \
490         DerivedSources/webkit/WebKitDOMComment.cpp \
491         DerivedSources/webkit/WebKitDOMCommentPrivate.h \
492         DerivedSources/webkit/WebKitDOMConsole.cpp \
493         DerivedSources/webkit/WebKitDOMConsolePrivate.h \
494         DerivedSources/webkit/WebKitDOMCSSRule.cpp \
495         DerivedSources/webkit/WebKitDOMCSSRuleList.cpp \
496         DerivedSources/webkit/WebKitDOMCSSRuleListPrivate.h \
497         DerivedSources/webkit/WebKitDOMCSSRulePrivate.h \
498         DerivedSources/webkit/WebKitDOMCSSStyleDeclaration.cpp \
499         DerivedSources/webkit/WebKitDOMCSSStyleDeclarationPrivate.h \
500         DerivedSources/webkit/WebKitDOMCSSStyleSheet.cpp \
501         DerivedSources/webkit/WebKitDOMCSSStyleSheetPrivate.h \
502         DerivedSources/webkit/WebKitDOMCSSValue.cpp \
503         DerivedSources/webkit/WebKitDOMCSSValuePrivate.h \
504         DerivedSources/webkit/WebKitDOMDatabase.cpp \
505         DerivedSources/webkit/WebKitDOMDatabasePrivate.h \
506         DerivedSources/webkit/WebKitDOMDocument.cpp \
507         DerivedSources/webkit/WebKitDOMDocumentFragment.cpp \
508         DerivedSources/webkit/WebKitDOMDocumentFragmentPrivate.h \
509         DerivedSources/webkit/WebKitDOMDocumentPrivate.h \
510         DerivedSources/webkit/WebKitDOMDocumentType.cpp \
511         DerivedSources/webkit/WebKitDOMDocumentTypePrivate.h \
512         DerivedSources/webkit/WebKitDOMDOMApplicationCache.cpp \
513         DerivedSources/webkit/WebKitDOMDOMApplicationCachePrivate.h \
514         DerivedSources/webkit/WebKitDOMDOMImplementation.cpp \
515         DerivedSources/webkit/WebKitDOMDOMImplementationPrivate.h \
516         DerivedSources/webkit/WebKitDOMDOMMimeTypeArray.cpp \
517         DerivedSources/webkit/WebKitDOMDOMMimeTypeArrayPrivate.h \
518         DerivedSources/webkit/WebKitDOMDOMMimeType.cpp \
519         DerivedSources/webkit/WebKitDOMDOMMimeTypePrivate.h \
520         DerivedSources/webkit/WebKitDOMDOMPluginArray.cpp \
521         DerivedSources/webkit/WebKitDOMDOMPluginArrayPrivate.h \
522         DerivedSources/webkit/WebKitDOMDOMPlugin.cpp \
523         DerivedSources/webkit/WebKitDOMDOMPluginPrivate.h \
524         DerivedSources/webkit/WebKitDOMDOMSelection.cpp \
525         DerivedSources/webkit/WebKitDOMDOMSelectionPrivate.h \
526         DerivedSources/webkit/WebKitDOMDOMStringList.cpp \
527         DerivedSources/webkit/WebKitDOMDOMStringListPrivate.h \
528         DerivedSources/webkit/WebKitDOMDOMStringMap.cpp \
529         DerivedSources/webkit/WebKitDOMDOMStringMapPrivate.h \
530         DerivedSources/webkit/WebKitDOMDOMWindow.cpp \
531         DerivedSources/webkit/WebKitDOMDOMWindowPrivate.h \
532         DerivedSources/webkit/WebKitDOMElement.cpp \
533         DerivedSources/webkit/WebKitDOMElementPrivate.h \
534         DerivedSources/webkit/WebKitDOMEntityReference.cpp \
535         DerivedSources/webkit/WebKitDOMEntityReferencePrivate.h \
536         DerivedSources/webkit/WebKitDOMEvent.cpp \
537         DerivedSources/webkit/WebKitDOMEventPrivate.h \
538         DerivedSources/webkit/WebKitDOMEventTargetPrivate.h \
539         DerivedSources/webkit/WebKitDOMFile.cpp \
540         DerivedSources/webkit/WebKitDOMFileList.cpp \
541         DerivedSources/webkit/WebKitDOMFileListPrivate.h \
542         DerivedSources/webkit/WebKitDOMFilePrivate.h \
543         DerivedSources/webkit/WebKitDOMHistory.cpp \
544         DerivedSources/webkit/WebKitDOMHistoryPrivate.h \
545         DerivedSources/webkit/WebKitDOMHTMLAnchorElement.cpp \
546         DerivedSources/webkit/WebKitDOMHTMLAnchorElementPrivate.h \
547         DerivedSources/webkit/WebKitDOMHTMLAppletElement.cpp \
548         DerivedSources/webkit/WebKitDOMHTMLAppletElementPrivate.h \
549         DerivedSources/webkit/WebKitDOMHTMLAreaElement.cpp \
550         DerivedSources/webkit/WebKitDOMHTMLAreaElementPrivate.h \
551         DerivedSources/webkit/WebKitDOMHTMLBaseElement.cpp \
552         DerivedSources/webkit/WebKitDOMHTMLBaseElementPrivate.h \
553         DerivedSources/webkit/WebKitDOMHTMLBaseFontElement.cpp \
554         DerivedSources/webkit/WebKitDOMHTMLBaseFontElementPrivate.h \
555         DerivedSources/webkit/WebKitDOMHTMLBlockquoteElement.cpp \
556         DerivedSources/webkit/WebKitDOMHTMLBlockquoteElementPrivate.h \
557         DerivedSources/webkit/WebKitDOMHTMLBodyElement.cpp \
558         DerivedSources/webkit/WebKitDOMHTMLBodyElementPrivate.h \
559         DerivedSources/webkit/WebKitDOMHTMLBRElement.cpp \
560         DerivedSources/webkit/WebKitDOMHTMLBRElementPrivate.h \
561         DerivedSources/webkit/WebKitDOMHTMLButtonElement.cpp \
562         DerivedSources/webkit/WebKitDOMHTMLButtonElementPrivate.h \
563         DerivedSources/webkit/WebKitDOMHTMLCanvasElement.cpp \
564         DerivedSources/webkit/WebKitDOMHTMLCanvasElementPrivate.h \
565         DerivedSources/webkit/WebKitDOMHTMLCollection.cpp \
566         DerivedSources/webkit/WebKitDOMHTMLCollectionPrivate.h \
567         DerivedSources/webkit/WebKitDOMHTMLDirectoryElement.cpp \
568         DerivedSources/webkit/WebKitDOMHTMLDirectoryElementPrivate.h \
569         DerivedSources/webkit/WebKitDOMHTMLDivElement.cpp \
570         DerivedSources/webkit/WebKitDOMHTMLDivElementPrivate.h \
571         DerivedSources/webkit/WebKitDOMHTMLDListElement.cpp \
572         DerivedSources/webkit/WebKitDOMHTMLDListElementPrivate.h \
573         DerivedSources/webkit/WebKitDOMHTMLDocument.cpp \
574         DerivedSources/webkit/WebKitDOMHTMLDocumentPrivate.h \
575         DerivedSources/webkit/WebKitDOMHTMLElement.cpp \
576         DerivedSources/webkit/WebKitDOMHTMLElementPrivate.h \
577         DerivedSources/webkit/WebKitDOMHTMLEmbedElement.cpp \
578         DerivedSources/webkit/WebKitDOMHTMLEmbedElementPrivate.h \
579         DerivedSources/webkit/WebKitDOMHTMLFieldSetElement.cpp \
580         DerivedSources/webkit/WebKitDOMHTMLFieldSetElementPrivate.h \
581         DerivedSources/webkit/WebKitDOMHTMLFontElement.cpp \
582         DerivedSources/webkit/WebKitDOMHTMLFontElementPrivate.h \
583         DerivedSources/webkit/WebKitDOMHTMLFormElement.cpp \
584         DerivedSources/webkit/WebKitDOMHTMLFormElementPrivate.h \
585         DerivedSources/webkit/WebKitDOMHTMLFrameElement.cpp \
586         DerivedSources/webkit/WebKitDOMHTMLFrameElementPrivate.h \
587         DerivedSources/webkit/WebKitDOMHTMLFrameSetElement.cpp \
588         DerivedSources/webkit/WebKitDOMHTMLFrameSetElementPrivate.h \
589         DerivedSources/webkit/WebKitDOMHTMLHeadElement.cpp \
590         DerivedSources/webkit/WebKitDOMHTMLHeadElementPrivate.h \
591         DerivedSources/webkit/WebKitDOMHTMLHeadingElement.cpp \
592         DerivedSources/webkit/WebKitDOMHTMLHeadingElementPrivate.h \
593         DerivedSources/webkit/WebKitDOMHTMLHRElement.cpp \
594         DerivedSources/webkit/WebKitDOMHTMLHRElementPrivate.h \
595         DerivedSources/webkit/WebKitDOMHTMLHtmlElement.cpp \
596         DerivedSources/webkit/WebKitDOMHTMLHtmlElementPrivate.h \
597         DerivedSources/webkit/WebKitDOMHTMLIFrameElement.cpp \
598         DerivedSources/webkit/WebKitDOMHTMLIFrameElementPrivate.h \
599         DerivedSources/webkit/WebKitDOMHTMLImageElement.cpp \
600         DerivedSources/webkit/WebKitDOMHTMLImageElementPrivate.h \
601         DerivedSources/webkit/WebKitDOMHTMLInputElement.cpp \
602         DerivedSources/webkit/WebKitDOMHTMLInputElementPrivate.h \
603         DerivedSources/webkit/WebKitDOMHTMLIsIndexElement.cpp \
604         DerivedSources/webkit/WebKitDOMHTMLIsIndexElementPrivate.h \
605         DerivedSources/webkit/WebKitDOMHTMLLabelElement.cpp \
606         DerivedSources/webkit/WebKitDOMHTMLLabelElementPrivate.h \
607         DerivedSources/webkit/WebKitDOMHTMLLegendElement.cpp \
608         DerivedSources/webkit/WebKitDOMHTMLLegendElementPrivate.h \
609         DerivedSources/webkit/WebKitDOMHTMLLIElement.cpp \
610         DerivedSources/webkit/WebKitDOMHTMLLIElementPrivate.h \
611         DerivedSources/webkit/WebKitDOMHTMLLinkElement.cpp \
612         DerivedSources/webkit/WebKitDOMHTMLLinkElementPrivate.h \
613         DerivedSources/webkit/WebKitDOMHTMLMapElement.cpp \
614         DerivedSources/webkit/WebKitDOMHTMLMapElementPrivate.h \
615         DerivedSources/webkit/WebKitDOMHTMLMarqueeElement.cpp \
616         DerivedSources/webkit/WebKitDOMHTMLMarqueeElementPrivate.h \
617         DerivedSources/webkit/WebKitDOMHTMLMediaElement.cpp \
618         DerivedSources/webkit/WebKitDOMHTMLMediaElementPrivate.h \
619         DerivedSources/webkit/WebKitDOMHTMLMenuElement.cpp \
620         DerivedSources/webkit/WebKitDOMHTMLMenuElementPrivate.h \
621         DerivedSources/webkit/WebKitDOMHTMLMetaElement.cpp \
622         DerivedSources/webkit/WebKitDOMHTMLMetaElementPrivate.h \
623         DerivedSources/webkit/WebKitDOMHTMLModElement.cpp \
624         DerivedSources/webkit/WebKitDOMHTMLModElementPrivate.h \
625         DerivedSources/webkit/WebKitDOMHTMLObjectElement.cpp \
626         DerivedSources/webkit/WebKitDOMHTMLObjectElementPrivate.h \
627         DerivedSources/webkit/WebKitDOMHTMLOListElement.cpp \
628         DerivedSources/webkit/WebKitDOMHTMLOListElementPrivate.h \
629         DerivedSources/webkit/WebKitDOMHTMLOptGroupElement.cpp \
630         DerivedSources/webkit/WebKitDOMHTMLOptGroupElementPrivate.h \
631         DerivedSources/webkit/WebKitDOMHTMLOptionElement.cpp \
632         DerivedSources/webkit/WebKitDOMHTMLOptionElementPrivate.h \
633         DerivedSources/webkit/WebKitDOMHTMLOptionsCollection.cpp \
634         DerivedSources/webkit/WebKitDOMHTMLOptionsCollectionPrivate.h \
635         DerivedSources/webkit/WebKitDOMHTMLParagraphElement.cpp \
636         DerivedSources/webkit/WebKitDOMHTMLParagraphElementPrivate.h \
637         DerivedSources/webkit/WebKitDOMHTMLParamElement.cpp \
638         DerivedSources/webkit/WebKitDOMHTMLParamElementPrivate.h \
639         DerivedSources/webkit/WebKitDOMHTMLPreElement.cpp \
640         DerivedSources/webkit/WebKitDOMHTMLPreElementPrivate.h \
641         DerivedSources/webkit/WebKitDOMHTMLQuoteElement.cpp \
642         DerivedSources/webkit/WebKitDOMHTMLQuoteElementPrivate.h \
643         DerivedSources/webkit/WebKitDOMHTMLScriptElement.cpp \
644         DerivedSources/webkit/WebKitDOMHTMLScriptElementPrivate.h \
645         DerivedSources/webkit/WebKitDOMHTMLSelectElement.cpp \
646         DerivedSources/webkit/WebKitDOMHTMLSelectElementPrivate.h \
647         DerivedSources/webkit/WebKitDOMHTMLStyleElement.cpp \
648         DerivedSources/webkit/WebKitDOMHTMLStyleElementPrivate.h \
649         DerivedSources/webkit/WebKitDOMHTMLTableCaptionElement.cpp \
650         DerivedSources/webkit/WebKitDOMHTMLTableCaptionElementPrivate.h \
651         DerivedSources/webkit/WebKitDOMHTMLTableCellElement.cpp \
652         DerivedSources/webkit/WebKitDOMHTMLTableCellElementPrivate.h \
653         DerivedSources/webkit/WebKitDOMHTMLTableColElement.cpp \
654         DerivedSources/webkit/WebKitDOMHTMLTableColElementPrivate.h \
655         DerivedSources/webkit/WebKitDOMHTMLTableElement.cpp \
656         DerivedSources/webkit/WebKitDOMHTMLTableElementPrivate.h \
657         DerivedSources/webkit/WebKitDOMHTMLTableRowElement.cpp \
658         DerivedSources/webkit/WebKitDOMHTMLTableRowElementPrivate.h \
659         DerivedSources/webkit/WebKitDOMHTMLTableSectionElement.cpp \
660         DerivedSources/webkit/WebKitDOMHTMLTableSectionElementPrivate.h \
661         DerivedSources/webkit/WebKitDOMHTMLTextAreaElement.cpp \
662         DerivedSources/webkit/WebKitDOMHTMLTextAreaElementPrivate.h \
663         DerivedSources/webkit/WebKitDOMHTMLTitleElement.cpp \
664         DerivedSources/webkit/WebKitDOMHTMLTitleElementPrivate.h \
665         DerivedSources/webkit/WebKitDOMHTMLUListElement.cpp \
666         DerivedSources/webkit/WebKitDOMHTMLUListElementPrivate.h \
667         DerivedSources/webkit/WebKitDOMLocation.cpp \
668         DerivedSources/webkit/WebKitDOMLocationPrivate.h \
669         DerivedSources/webkit/WebKitDOMMediaError.cpp \
670         DerivedSources/webkit/WebKitDOMMediaErrorPrivate.h \
671         DerivedSources/webkit/WebKitDOMMediaList.cpp \
672         DerivedSources/webkit/WebKitDOMMediaListPrivate.h \
673         DerivedSources/webkit/WebKitDOMMemoryInfo.cpp \
674         DerivedSources/webkit/WebKitDOMMemoryInfoPrivate.h \
675         DerivedSources/webkit/WebKitDOMMessagePort.cpp \
676         DerivedSources/webkit/WebKitDOMMessagePortPrivate.h \
677         DerivedSources/webkit/WebKitDOMMouseEvent.cpp \
678         DerivedSources/webkit/WebKitDOMMouseEventPrivate.h \
679         DerivedSources/webkit/WebKitDOMNamedNodeMap.cpp \
680         DerivedSources/webkit/WebKitDOMNamedNodeMapPrivate.h \
681         DerivedSources/webkit/WebKitDOMNavigator.cpp \
682         DerivedSources/webkit/WebKitDOMNavigatorPrivate.h \
683         DerivedSources/webkit/WebKitDOMNode.cpp \
684         DerivedSources/webkit/WebKitDOMNodeFilter.cpp \
685         DerivedSources/webkit/WebKitDOMNodeFilterPrivate.h \
686         DerivedSources/webkit/WebKitDOMNodeIterator.cpp \
687         DerivedSources/webkit/WebKitDOMNodeIteratorPrivate.h \
688         DerivedSources/webkit/WebKitDOMNodeList.cpp \
689         DerivedSources/webkit/WebKitDOMNodeListPrivate.h \
690         DerivedSources/webkit/WebKitDOMNodePrivate.h \
691         DerivedSources/webkit/WebKitDOMProcessingInstruction.cpp \
692         DerivedSources/webkit/WebKitDOMProcessingInstructionPrivate.h \
693         DerivedSources/webkit/WebKitDOMRange.cpp \
694         DerivedSources/webkit/WebKitDOMRangePrivate.h \
695         DerivedSources/webkit/WebKitDOMScreen.cpp \
696         DerivedSources/webkit/WebKitDOMScreenPrivate.h \
697         DerivedSources/webkit/WebKitDOMStorage.cpp \
698         DerivedSources/webkit/WebKitDOMStoragePrivate.h \
699         DerivedSources/webkit/WebKitDOMStyleMedia.cpp \
700         DerivedSources/webkit/WebKitDOMStyleMediaPrivate.h \
701         DerivedSources/webkit/WebKitDOMStyleSheet.cpp \
702         DerivedSources/webkit/WebKitDOMStyleSheetList.cpp \
703         DerivedSources/webkit/WebKitDOMStyleSheetListPrivate.h \
704         DerivedSources/webkit/WebKitDOMStyleSheetPrivate.h \
705         DerivedSources/webkit/WebKitDOMText.cpp \
706         DerivedSources/webkit/WebKitDOMTextPrivate.h \
707         DerivedSources/webkit/WebKitDOMTimeRanges.cpp \
708         DerivedSources/webkit/WebKitDOMTimeRangesPrivate.h \
709         DerivedSources/webkit/WebKitDOMTreeWalker.cpp \
710         DerivedSources/webkit/WebKitDOMTreeWalkerPrivate.h \
711         DerivedSources/webkit/WebKitDOMUIEvent.cpp \
712         DerivedSources/webkit/WebKitDOMUIEventPrivate.h \
713         DerivedSources/webkit/WebKitDOMValidityState.cpp \
714         DerivedSources/webkit/WebKitDOMValidityStatePrivate.h \
715         DerivedSources/webkit/WebKitDOMWebKitPoint.cpp \
716         DerivedSources/webkit/WebKitDOMWebKitPointPrivate.h \
717         DerivedSources/webkit/WebKitDOMXPathExpression.cpp \
718         DerivedSources/webkit/WebKitDOMXPathExpressionPrivate.h \
719         DerivedSources/webkit/WebKitDOMXPathNSResolver.cpp \
720         DerivedSources/webkit/WebKitDOMXPathNSResolverPrivate.h \
721         DerivedSources/webkit/WebKitDOMXPathResult.cpp \
722         DerivedSources/webkit/WebKitDOMXPathResultPrivate.h
723
724 if ENABLE_GEOLOCATION
725 webkitgtk_built_h_api += \
726         $(top_builddir)/DerivedSources/webkit/WebKitDOMGeolocation.h
727
728 webkitgtk_gdom_built_sources += \
729         DerivedSources/webkit/WebKitDOMGeolocation.cpp \
730         DerivedSources/webkit/WebKitDOMGeolocationPrivate.h
731 endif
732
733 if ENABLE_VIDEO
734 webkitgtk_built_h_api += \
735         $(top_builddir)/DerivedSources/webkit/WebKitDOMHTMLAudioElement.h
736
737 webkitgtk_gdom_built_sources += \
738         DerivedSources/webkit/WebKitDOMHTMLAudioElement.cpp \
739         DerivedSources/webkit/WebKitDOMHTMLAudioElementPrivate.h
740 endif
741
742 # webkitenumtypes.{h,cpp} cannot be in webkitgtk_built_h_api, because
743 # the rule that builds it depends on webkitgtk_built_h_api (circular dependency).
744 webkitgtk_built_sources += \
745         $(webkitgtk_built_h_api) \
746         $(webkitgtk_gdom_built_sources) \
747         DerivedSources/webkit/webkitmarshal.cpp \
748         DerivedSources/webkit/webkitmarshal.h \
749         WebKit/gtk/webkit/webkitenumtypes.cpp \
750         WebKit/gtk/webkit/webkitenumtypes.h
751
752 webkitgtk_sources += \
753         WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
754         WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
755         WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
756         WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
757         WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.cpp \
758         WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.h \
759         WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
760         WebKit/gtk/WebCoreSupport/DragClientGtk.h \
761         WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
762         WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
763         WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
764         WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
765         WebKit/gtk/WebCoreSupport/FrameNetworkingContextGtk.h \
766         WebKit/gtk/WebCoreSupport/FullscreenVideoController.cpp \
767         WebKit/gtk/WebCoreSupport/FullscreenVideoController.h \
768         WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \
769         WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
770         WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp \
771         WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h \
772         WebKit/gtk/webkit/webkitapplicationcache.cpp \
773         WebKit/gtk/webkit/webkitdownload.cpp \
774         WebKit/gtk/webkit/webkiterror.cpp \
775         WebKit/gtk/webkit/webkithittestresult.cpp \
776         WebKit/gtk/webkit/webkitnetworkrequest.cpp \
777         WebKit/gtk/webkit/webkitnetworkresponse.cpp \
778         WebKit/gtk/webkit/webkitprivate.cpp \
779         WebKit/gtk/webkit/webkitprivate.h \
780         WebKit/gtk/webkit/webkitsoupauthdialog.c \
781         WebKit/gtk/webkit/webkitversion.cpp \
782         WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \
783         WebKit/gtk/webkit/webkitwebdatasource.cpp \
784         WebKit/gtk/webkit/webkitwebframe.cpp \
785         WebKit/gtk/webkit/webkitwebhistoryitem.cpp \
786         WebKit/gtk/webkit/webkitwebinspector.cpp \
787         WebKit/gtk/webkit/webkitwebnavigationaction.cpp \
788         WebKit/gtk/webkit/webkitwebpolicydecision.cpp \
789         WebKit/gtk/webkit/webkitgeolocationpolicydecision.cpp \
790         WebKit/gtk/webkit/webkitwebresource.cpp \
791         WebKit/gtk/webkit/webkitwebdatabase.cpp \
792         WebKit/gtk/webkit/webkitsecurityorigin.cpp \
793         WebKit/gtk/webkit/webkitwebsettings.cpp \
794         WebKit/gtk/webkit/webkitwebview.cpp \
795         WebKit/gtk/webkit/webkitwebwindowfeatures.cpp \
796         WebKit/gtk/webkit/webkitworkers.cpp
797
798 gdom_class_list := $(subst WebKitDOM,, $(filter-out %Private, $(basename $(notdir $(webkitgtk_gdom_built_sources)))))
799 gdom_class_list += Object EventTarget
800 DerivedSources/webkit/webkitdom.h: $(WebCore)/bindings/scripts/gobject-generate-headers.pl GNUmakefile
801         $(AM_V_GEN)echo $(gdom_class_list) | $(PERL) $< gdom > $@
802
803 DerivedSources/webkit/webkitdomdefines.h: $(WebCore)/bindings/scripts/gobject-generate-headers.pl GNUmakefile
804         $(AM_V_GEN)echo $(gdom_class_list) | $(PERL) $< defines > $@
805
806 # Because WebCore/bindings/gobject/WebKitDOMObject.h is static source but is also a distributed header
807 # required by other distributed headers (both static and auto-generated), need to move this to the
808 # DerivedSources/webkit directory.  The reason is that we want all header files distributed in the
809 # include/webkit-x.y/webkit directory, but do not want to name the WebCore/bindings/gobject directory 
810 # "webkit", as that's a bit presumptuous for a GTK binding.
811 $(top_builddir)/DerivedSources/webkit/WebKitDOMObject.h: $(WebCore)/bindings/gobject/WebKitDOMObject.h
812         $(AM_V_GEN)cp -f $< $@
813
814 $(top_builddir)/DerivedSources/webkit/WebKitDOMEventTarget.h: $(WebCore)/bindings/gobject/WebKitDOMEventTarget.h
815         $(AM_V_GEN)cp -f $< $@
816
817 $(top_builddir)/DerivedSources/webkit/WebKitDOMEventTargetPrivate.h: $(WebCore)/bindings/gobject/WebKitDOMEventTargetPrivate.h
818         $(AM_V_GEN)cp -f $< $@
819
820 # Filter out SVG for now
821 gdom_feature_defines := $(filter-out ENABLE-SVG%, $(FEATURE_DEFINES))
822 DerivedSources/webkit/WebKitDOM%.cpp DerivedSources/webkit/WebKitDOM%.h DerivedSources/webkit/WebKitDOM%Private.h:: %.idl $(SCRIPTS_BINDINGS) $(WebCore)/bindings/scripts/CodeGeneratorGObject.pm
823         $(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 $<
824
825 webkitgtk_cppflags += \
826         -DBUILDING_WEBKIT \
827         -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
828         -DDATA_DIR=\"${datadir}\" \
829         -I$(srcdir)/WebKit/gtk \
830         -I$(srcdir)/WebKit/gtk/WebCoreSupport \
831         -I$(srcdir)/WebKit/gtk/webkit \
832         -I$(top_builddir)/WebKit/gtk \
833         -I$(top_builddir)/WebKit/gtk/webkit \
834         -I$(GENSOURCES_WEBKIT)
835
836 pkgconfigdir = $(libdir)/pkgconfig
837 pkgconfig_DATA = WebKit/gtk/@WEBKITGTK_PC_NAME@-@WEBKITGTK_API_VERSION@.pc
838
839 if ENABLE_INTROSPECTION
840
841 JSCore-@WEBKITGTK_API_VERSION@.gir: $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir
842         $(AM_V_GEN)cp $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir $(builddir)/
843
844 JSCORE_GIRSOURCES += JSCore-@WEBKITGTK_API_VERSION@.gir
845 WEBKIT_GIRSOURCES += WebKit-@WEBKITGTK_API_VERSION@.gir
846
847 $(WEBKIT_GIRSOURCES): $(G_IR_SCANNER) $(JSCORE_GIRSOURCES) libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
848         $(AM_V_GEN)$(G_IR_SCANNER) -v --namespace WebKit --nsversion=@WEBKITGTK_API_VERSION@ \
849              --include=GObject-2.0 \
850              --include=Gtk-@GTK_API_VERSION@ \
851              --include=JSCore-@WEBKITGTK_API_VERSION@ \
852              --include=Soup-2.4 \
853              --library=webkitgtk-@WEBKITGTK_API_VERSION@ \
854              --libtool="$(LIBTOOL)" \
855              --pkg gobject-2.0 \
856              --pkg gtk+-@GTK_API_VERSION@ \
857              --pkg libsoup-2.4 \
858              --output $@ \
859              --add-include-path $(top_srcdir)/WebKit/gtk \
860              --add-include-path $(builddir) \
861              -I$(top_srcdir)/WebKit/gtk \
862              -I$(top_builddir)/WebKit/gtk \
863              -I$(top_builddir)/DerivedSources \
864              -I$(top_builddir)/DerivedSources/webkit \
865              -I$(top_srcdir)/JavaScriptCore/ForwardingHeaders \
866              -I$(top_srcdir) \
867              $(webkitgtk_h_api) \
868              $(top_srcdir)/WebKit/gtk/webkit/*.cpp
869
870 girdir = $(datadir)/gir-1.0
871 gir_DATA = $(WEBKIT_GIRSOURCES) $(JSCORE_GIRSOURCES)
872
873 typelibsdir += $(libdir)/girepository-1.0
874 typelibs_DATA += $(JSCORE_GIRSOURCES:.gir=.typelib) $(WEBKIT_GIRSOURCES:.gir=.typelib)
875
876 %.typelib: %.gir $(G_IR_COMPILER)
877         $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(top_srcdir)/WebKit/gtk --includedir $(builddir) $< -o $@
878
879 CLEANFILES += $(JSCORE_GIRSOURCES) $(WEBKIT_GIRSOURCES) $(typelibs_DATA)
880
881 endif
882
883 EXTRA_DIST += $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir
884
885 WEBKIT_MARSHAL = $(GENSOURCES_WEBKIT)/webkitmarshal
886 WEBKIT_MARSHAL_LIST = $(top_srcdir)/WebKit/gtk/webkitmarshal.list
887 $(WEBKIT_MARSHAL).cpp: stamp-webkitmarshal.cpp
888         @true
889
890 $(WEBKIT_MARSHAL).h: stamp-webkitmarshal.h
891         @true
892
893 stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST)
894         $(AM_V_GEN) echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
895         $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
896         echo timestamp > $(@F)
897
898 stamp-webkitmarshal.h: $(WEBKIT_MARSHAL_LIST)
899         $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
900         echo timestamp > $(@F)
901
902 WebKit/gtk/webkit/webkitenumtypes.h: stamp-webkitenumtypes.h
903         @true
904 stamp-webkitenumtypes.h: $(webkitgtk_h_api) GNUmakefile
905         $(AM_V_GEN)glib-mkenums \
906                         --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
907                         --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
908                         --fhead "#include <glib-object.h>\n\n" \
909                         --fhead "#include <webkit/webkitdefines.h>\n\n" \
910                         --fhead "G_BEGIN_DECLS\n\n" \
911                         --ftail "G_END_DECLS\n\n" \
912                         --ftail "#endif\n" \
913                         --fprod "#include <webkit/@basename@>\n\n" \
914                         --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
915                         --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
916                 $(webkitgtk_h_api) | \
917                 sed 's,web_kit,webkit,' | \
918                 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
919                 > xgen-gth \
920         && (cmp -s xgen-gth WebKit/gtk/webkit/webkitenumtypes.h || cp xgen-gth WebKit/gtk/webkit/webkitenumtypes.h) \
921         && rm -f xgen-gth \
922         && echo timestamp > $(@F)
923
924 WebKit/gtk/webkit/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile
925         $(AM_V_GEN)glib-mkenums \
926                         --fhead "#include <config.h>\n" \
927                         --fhead "#include <glib-object.h>\n" \
928                         --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h\"\n\n" \
929                         --fhead "extern \"C\" {\n\n" \
930                         --fprod "\n/* enumerations from \"@filename@\" */" \
931                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
932                         --vprod "    { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
933                         --vtail "    { 0, NULL, NULL }\n};\n\n" \
934                         --vtail "GType @enum_name@_get_type(void)\n{\n" \
935                         --vtail "    static GType type = 0;\n\n" \
936                         --vtail "    if (!type)\n" \
937                         --vtail "        type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
938                         --vtail "    return type;\n}\n\n" \
939                         --ftail "}\n" \
940                 $(webkitgtk_h_api) | \
941                 sed 's,web_kit,webkit,' \
942                 > xgen-gtc \
943         && cp xgen-gtc $@ \
944         && rm -f xgen-gtc
945
946 # GSettings
947 if USE_GSETTINGS
948 gsettings_SCHEMAS = $(top_builddir)/WebKit/gtk/org.webkitgtk-@WEBKITGTK_API_VERSION@.gschema.xml
949
950 @GSETTINGS_RULES@
951 endif
952
953 # Files that will be distributed
954 EXTRA_DIST += \
955         $(srcdir)/gtk-doc.make \
956         WebKit/LICENSE \
957         $(srcdir)/autotools/symbols.filter \
958         $(srcdir)/WebKit/gtk/ChangeLog \
959         $(srcdir)/WebKit/gtk/NEWS \
960         $(srcdir)/WebKit/gtk/webkitmarshal.list \
961         $(srcdir)/WebKit/gtk/docs/GNUmakefile.* \
962         $(srcdir)/WebKit/gtk/docs/webkitenvironment.xml \
963         $(srcdir)/WebKit/gtk/docs/webkitgtk-docs.sgml \
964         $(srcdir)/WebKit/gtk/docs/webkitgtk-sections.txt \
965         $(srcdir)/WebKit/gtk/docs/version.xml.in \
966         $(srcdir)/WebKit/gtk/po/* \
967         $(srcdir)/WebKit/gtk/resources/* \
968         $(srcdir)/WebKit/gtk/tests/resources/* \
969         $(srcdir)/WebKit/gtk/tests/test_utils.h \
970         $(srcdir)/WebKit/gtk/org.webkitgtk.gschema.xml.in
971
972 # extra resource files
973 resourcesdir = ${datadir}/webkit-@WEBKITGTK_API_VERSION@/resources
974 dist_resources_DATA = \
975         $(shell ls $(srcdir)/WebKit/gtk/resources/*.html)
976
977 # END WEBKIT GTK+
978
979 # Include module makefiles
980 include JavaScriptCore/GNUmakefile.am
981 include WebCore/GNUmakefile.am
982 include WebKitTools/GNUmakefile.am
983 include WebKit/gtk/po/GNUmakefile.am
984
985 # Build unit tests
986 noinst_PROGRAMS += $(TEST_PROGS)
987
988 webkit_tests_cflags = \
989         -fno-strict-aliasing \
990         -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
991         -I$(srcdir)/WebKit/gtk \
992         -I$(top_builddir)/WebKit/gtk \
993         -I$(top_builddir)/DerivedSources \
994         -I$(top_srcdir)/WebCore/bindings \
995         -I$(top_srcdir)/WebCore/bindings/gobject \
996         $(global_cflags) \
997         $(GLIB_CFLAGS) \
998         $(GTK_CFLAGS) \
999         $(LIBSOUP_CFLAGS)
1000
1001 webkit_tests_ldadd = \
1002         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
1003         $(GTK_LIBS)     \
1004         $(GLIB_LIBS) \
1005         $(LIBSOUP_LIBS)
1006
1007 webkit_tests_ldflags = \
1008         -no-install \
1009         -no-fast-install
1010
1011 TEST_PROGS += \
1012         Programs/unittests/testdomdocument \
1013         Programs/unittests/testdomdomwindow \
1014         Programs/unittests/testdomnode \
1015         Programs/unittests/testhttpbackend \
1016         Programs/unittests/testloading \
1017         Programs/unittests/testglobals \
1018         Programs/unittests/testmimehandling \
1019         Programs/unittests/testnetworkrequest \
1020         Programs/unittests/testnetworkresponse \
1021         Programs/unittests/testwebframe \
1022         Programs/unittests/testwebbackforwardlist \
1023         Programs/unittests/testwebhistoryitem \
1024         Programs/unittests/testwindow \
1025         Programs/unittests/testdownload \
1026         Programs/unittests/testatk \
1027         Programs/unittests/testatkroles \
1028         Programs/unittests/testhittestresult \
1029         Programs/unittests/testwebsettings \
1030         Programs/unittests/testwebresource \
1031         Programs/unittests/testwebdatasource \
1032         Programs/unittests/testwebview \
1033         Programs/unittests/testkeyevents \
1034         Programs/unittests/testcopyandpaste
1035
1036 # Add additional tests here
1037 Programs_unittests_testdomdocument_SOURCES = WebKit/gtk/tests/testdomdocument.c
1038 Programs_unittests_testdomdocument_CFLAGS = $(webkit_tests_cflags)
1039 Programs_unittests_testdomdocument_LDADD = $(webkit_tests_ldadd)
1040 Programs_unittests_testdomdocument_LDFLAGS = $(webkit_tests_ldflags)
1041
1042 Programs_unittests_testdomdomwindow_SOURCES = WebKit/gtk/tests/testdomdomwindow.c
1043 Programs_unittests_testdomdomwindow_CFLAGS = $(webkit_tests_cflags)
1044 Programs_unittests_testdomdomwindow_LDADD = $(webkit_tests_ldadd)
1045 Programs_unittests_testdomdomwindow_LDFLAGS = $(webkit_tests_ldflags)
1046
1047 Programs_unittests_testdomnode_SOURCES = WebKit/gtk/tests/testdomnode.c
1048 Programs_unittests_testdomnode_CFLAGS = $(webkit_tests_cflags)
1049 Programs_unittests_testdomnode_LDADD = $(webkit_tests_ldadd)
1050 Programs_unittests_testdomnode_LDFLAGS = $(webkit_tests_ldflags)
1051
1052 Programs_unittests_testhttpbackend_SOURCES = WebKit/gtk/tests/testhttpbackend.c
1053 Programs_unittests_testhttpbackend_CFLAGS = $(webkit_tests_cflags)
1054 Programs_unittests_testhttpbackend_LDADD = $(webkit_tests_ldadd)
1055 Programs_unittests_testhttpbackend_LDFLAGS = $(webkit_tests_ldflags)
1056
1057 Programs_unittests_testglobals_SOURCES = WebKit/gtk/tests/testglobals.c
1058 Programs_unittests_testglobals_CFLAGS = $(webkit_tests_cflags)
1059 Programs_unittests_testglobals_LDADD = $(webkit_tests_ldadd)
1060 Programs_unittests_testglobals_LDFLAGS = $(webkit_tests_ldflags)
1061
1062 Programs_unittests_testloading_SOURCES = WebKit/gtk/tests/testloading.c
1063 Programs_unittests_testloading_CFLAGS = $(webkit_tests_cflags)
1064 Programs_unittests_testloading_LDADD = $(webkit_tests_ldadd)
1065 Programs_unittests_testloading_LDFLAGS = $(webkit_tests_ldflags)
1066
1067 Programs_unittests_testmimehandling_SOURCES = WebKit/gtk/tests/testmimehandling.c WebKit/gtk/tests/test_utils.c
1068 Programs_unittests_testmimehandling_CFLAGS = $(webkit_tests_cflags)
1069 Programs_unittests_testmimehandling_LDADD = $(webkit_tests_ldadd)
1070 Programs_unittests_testmimehandling_LDFLAGS = $(webkit_tests_ldflags)
1071
1072 Programs_unittests_testnetworkrequest_SOURCES = WebKit/gtk/tests/testnetworkrequest.c
1073 Programs_unittests_testnetworkrequest_CFLAGS = $(webkit_tests_cflags)
1074 Programs_unittests_testnetworkrequest_LDADD = $(webkit_tests_ldadd)
1075 Programs_unittests_testnetworkrequest_LDFLAGS = $(webkit_tests_ldflags)
1076
1077 Programs_unittests_testnetworkresponse_SOURCES = WebKit/gtk/tests/testnetworkresponse.c
1078 Programs_unittests_testnetworkresponse_CFLAGS = $(webkit_tests_cflags)
1079 Programs_unittests_testnetworkresponse_LDADD = $(webkit_tests_ldadd)
1080 Programs_unittests_testnetworkresponse_LDFLAGS = $(webkit_tests_ldflags)
1081
1082 Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c
1083 Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags)
1084 Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd)
1085 Programs_unittests_testwebframe_LDFLAGS = $(webkit_tests_ldflags)
1086
1087 Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c
1088 Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags)
1089 Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd)
1090 Programs_unittests_testwebbackforwardlist_LDFLAGS = $(webkit_tests_ldflags)
1091
1092 Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c
1093 Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags)
1094 Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd)
1095 Programs_unittests_testwebhistoryitem_LDFLAGS = $(webkit_tests_ldflags)
1096
1097 Programs_unittests_testwindow_SOURCES = WebKit/gtk/tests/testwindow.c
1098 Programs_unittests_testwindow_CFLAGS = $(webkit_tests_cflags)
1099 Programs_unittests_testwindow_LDADD = $(webkit_tests_ldadd)
1100 Programs_unittests_testwindow_LDFLAGS = $(webkit_tests_ldflags)
1101
1102 Programs_unittests_testdownload_SOURCES = WebKit/gtk/tests/testdownload.c
1103 Programs_unittests_testdownload_CFLAGS = $(webkit_tests_cflags)
1104 Programs_unittests_testdownload_LDADD = $(webkit_tests_ldadd)
1105 Programs_unittests_testdownload_LDFLAGS = $(webkit_tests_ldflags)
1106
1107 Programs_unittests_testatk_SOURCES = WebKit/gtk/tests/testatk.c
1108 Programs_unittests_testatk_CFLAGS = $(webkit_tests_cflags)
1109 Programs_unittests_testatk_LDADD = $(webkit_tests_ldadd)
1110 Programs_unittests_testatk_LDFLAGS = $(webkit_tests_ldflags)
1111
1112 Programs_unittests_testatkroles_SOURCES = WebKit/gtk/tests/testatkroles.c
1113 Programs_unittests_testatkroles_CFLAGS = $(webkit_tests_cflags)
1114 Programs_unittests_testatkroles_LDADD = $(webkit_tests_ldadd)
1115 Programs_unittests_testatkroles_LDFLAGS = $(webkit_tests_ldflags)
1116
1117 Programs_unittests_testwebsettings_SOURCES = WebKit/gtk/tests/testwebsettings.c
1118 Programs_unittests_testwebsettings_CFLAGS = $(webkit_tests_cflags)
1119 Programs_unittests_testwebsettings_LDADD = $(webkit_tests_ldadd)
1120 Programs_unittests_testwebsettings_LDFLAGS = $(webkit_tests_ldflags)
1121
1122 Programs_unittests_testwebresource_SOURCES = WebKit/gtk/tests/testwebresource.c
1123 Programs_unittests_testwebresource_CFLAGS = $(webkit_tests_cflags)
1124 Programs_unittests_testwebresource_LDADD = $(webkit_tests_ldadd)
1125
1126 Programs_unittests_testwebdatasource_SOURCES = WebKit/gtk/tests/testwebdatasource.c
1127 Programs_unittests_testwebdatasource_CFLAGS = $(webkit_tests_cflags)
1128 Programs_unittests_testwebdatasource_LDADD = $(webkit_tests_ldadd)
1129
1130 Programs_unittests_testwebview_SOURCES = WebKit/gtk/tests/testwebview.c WebKit/gtk/tests/test_utils.c
1131 Programs_unittests_testwebview_CFLAGS = $(webkit_tests_cflags)
1132 Programs_unittests_testwebview_LDADD = $(webkit_tests_ldadd)
1133 Programs_unittests_testwebview_LDFLAGS = $(webkit_tests_ldflags)
1134
1135 Programs_unittests_testhittestresult_SOURCES = WebKit/gtk/tests/testhittestresult.c
1136 Programs_unittests_testhittestresult_CFLAGS = $(webkit_tests_cflags)
1137 Programs_unittests_testhittestresult_LDADD = $(webkit_tests_ldadd)
1138
1139 Programs_unittests_testkeyevents_SOURCES = WebKit/gtk/tests/testkeyevents.c
1140 Programs_unittests_testkeyevents_CFLAGS = $(webkit_tests_cflags)
1141 Programs_unittests_testkeyevents_LDADD = $(webkit_tests_ldadd)
1142 Programs_unittests_testkeyevents_LDFLAGS = $(webkit_tests_ldflags)
1143
1144 Programs_unittests_testcopyandpaste_SOURCES = WebKit/gtk/tests/testcopyandpaste.c
1145 Programs_unittests_testcopyandpaste_CFLAGS = $(webkit_tests_cflags)
1146 Programs_unittests_testcopyandpaste_LDADD = $(webkit_tests_ldadd)
1147 Programs_unittests_testcopyandpaste_LDFLAGS = $(webkit_tests_ldflags)
1148
1149 # Autogenerated sources
1150 BUILT_SOURCES += \
1151         $(javascriptcore_built_sources) \
1152         $(javascriptcore_built_nosources) \
1153         $(webcore_built_sources) \
1154         $(webcore_built_nosources) \
1155         $(webkitgtk_built_sources) \
1156         $(webkitgtk_built_nosources)
1157
1158 # Project-wide clean rules
1159 # Files that will be cleaned
1160 CLEANFILES += \
1161         $(BUILT_SOURCES) \
1162         $(top_builddir)/stamp-webkitmarshal.cpp \
1163         $(top_builddir)/stamp-webkitmarshal.h \
1164         $(top_builddir)/stamp-webkitenumtypes.cpp \
1165         $(top_builddir)/stamp-webkitenumtypes.h \
1166         $(top_builddir)/Programs/GtkLauncher
1167
1168 DISTCLEANFILES += \
1169         $(CLEANFILES) \
1170         $(builddir)/doltcompile \
1171         $(builddir)/doltlibtool \
1172         $(top_builddir)/WebKit/gtk/docs/version.xml \
1173         $(top_builddir)/WebKit/gtk/docs/GNUmakefile \
1174         $(top_builddir)/WebKit/gtk/@WEBKITGTK_PC_NAME@-@WEBKITGTK_API_VERSION@.pc \
1175         $(top_builddir)/WebKit/gtk/webkit/webkitversion.h \
1176         $(top_builddir)/WebKit/gtk/org.webkitgtk-@WEBKITGTK_API_VERSION@.gschema.xml
1177
1178 MAINTAINERCLEANFILES += \
1179         $(CLEANFILES) \
1180         $(builddir)/doltcompile \
1181         $(builddir)/doltlibtool \
1182         $(srcdir)/aconfig.h.in \
1183         $(srcdir)/autotools/config.* \
1184         $(srcdir)/autotools/compile \
1185         $(srcdir)/autotools/depcomp \
1186         $(srcdir)/autotools/install-sh \
1187         $(srcdir)/autotools/missing \
1188         $(srcdir)/configure \
1189         $(srcdir)/GNUmakefile.in \
1190         $(srcdir)/INSTALL \
1191         $(srcdir)/README \
1192         $(top_builddir)/config.*
1193
1194 # Older automake versions (1.7) place Plo files in a different place so we need
1195 # to create the output directory manually.
1196 all-local: stamp-po
1197         $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
1198
1199 # remove built sources and program directories
1200 clean-local:
1201         -rm -rf $(GENPROGRAMS)
1202
1203 maintainer-clean-local: distclean-local
1204
1205 distclean-local:
1206         -rm -rf $(GENSOURCES) $(GENPROGRAMS)
1207
1208 dist-hook:
1209         cp $(srcdir)/WebKit/gtk/NEWS $(distdir)
1210
1211 install-data-local: po-install-data-local
1212
1213 installdirs-data-local: po-installdirs-data-local
1214
1215 uninstall-local: po-uninstall-local
1216
1217 # Run all tests in cwd
1218 # FIXME: we should run this under xvfb
1219 test: $(TEST_PROGS)
1220         $(GTESTER) --verbose $(TEST_PROGS);
1221
1222 # test-report: run tests in cwd and generate report
1223 # full-report: run tests in cwd with -m perf and -m slow and generate report
1224 # perf-report: run tests in cwd with -m perf and generate report
1225 test-report full-report perf-report: $(TEST_PROGS)
1226         @ case $@ in \
1227           test-report) test_options="-k";; \
1228           full-report) test_options="-k -m=perf";; \
1229           perf-report) test_options="-k -m=perf -m=slow";; \
1230           esac ; \
1231           $(GTESTER) --verbose $$test_options -o test-report.xml $(TEST_PROGS); \
1232           $(GTESTER_REPORT) test-report.xml > test-report.html ;
1233
1234 .PHONY: test test-report perf-report full-report
1235 check-local: test