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