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