1 # Top-level Makefile rule for automake
3 # Variable conventions:
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
12 # _cleanfiles = files that will be removed by the clean target
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
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.
28 DISTCHECK_CONFIGURE_FLAGS = \
29 --enable-introspection \
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
41 # Programs to run the WebKitGtk unit tests
43 GTESTER_REPORT = gtester-report
45 # Libraries and support components
55 javascriptcore_h_api :=
56 javascriptcore_cppflags:=
57 javascriptcore_sources :=
58 javascriptcore_built_sources :=
59 javascriptcore_built_nosources :=
63 webcore_built_sources :=
64 webcore_built_nosources :=
66 webcoregtk_cppflags :=
67 webkitgtk_built_h_api :=
68 webkitgtk_static_h_api :=
72 webkitgtk_gdom_built_sources :=
73 webkitgtk_built_sources :=
74 webkitgtk_built_nosources :=
87 MAINTAINERCLEANFILES :=
90 -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
91 -Wformat -Wformat-security -Wno-format-y2k -Wundef \
92 -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \
93 -Wno-unused-parameter -Wno-parentheses \
94 -fno-exceptions -DENABLE_GLIB_SUPPORT=1
98 $(SYMBOL_VISIBILITY_INLINES) \
101 # -no-undefined required for building DLLs on Windows
102 # It breaks the build on other platforms, so we use it conditionally
104 no_undefined = -no-undefined
105 version_script = -export-symbols-regex "^(webkit_|k?JS).*"
109 version_script = -Wl,--version-script,$(srcdir)/autotools/symbols.filter
114 libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
116 # Convenience libraries
117 noinst_LTLIBRARIES += \
120 nodist_EXTRA_libJavaScriptCore_la_SOURCES = \
121 $(javascriptcore_built_nosources)
123 nodist_libJavaScriptCore_la_SOURCES = \
124 $(javascriptcore_built_sources)
126 libJavaScriptCore_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/JavaScriptCore
127 libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
129 libJavaScriptCore_la_SOURCES = \
130 $(javascriptcore_sources)
132 libJavaScriptCore_la_LIBADD = \
137 libJavaScriptCore_la_CXXFLAGS = \
139 $(libJavaScriptCore_la_CFLAGS)
141 libJavaScriptCore_la_CFLAGS = \
148 libJavaScriptCore_la_CPPFLAGS = \
150 $(javascriptcore_cppflags)
153 nodist_EXTRA_libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
154 $(webcore_built_nosources)
156 nodist_libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
157 $(webcore_built_sources) \
158 $(webkitgtk_built_sources)
160 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/webkit
161 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = \
162 $(webkitgtk_static_h_api)
164 nodist_libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = \
165 $(webkitgtk_built_h_api) \
166 WebKit/gtk/webkit/webkitenumtypes.h
168 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
170 $(webcoregtk_sources) \
173 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \
176 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
179 # When building WebCore/WebKit, we want WebCore/config.h and NOT JavaScriptCore/config.h,
180 # hence, it's important that WebCore/ should come first before JavaScriptCore in the
182 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
184 -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
185 -DDATA_DIR=\"${datadir}\" \
186 -I$(top_builddir)/DerivedSources/webkit \
187 -I$(srcdir)/WebCore/bindings \
188 -I$(srcdir)/WebCore/bindings/gobject \
189 -I$(srcdir)/WebKit/gtk \
190 -I$(srcdir)/WebKit/gtk/WebCoreSupport \
191 -I$(srcdir)/WebKit/gtk/webkit \
192 -I$(top_builddir)/WebKit/gtk \
193 -I$(top_builddir)/WebKit/gtk/webkit \
194 -I$(GENSOURCES_WEBKIT) \
196 $(webcore_cppflags) \
197 $(webcoregtk_cppflags) \
198 $(javascriptcore_cppflags) \
199 -fno-strict-aliasing \
206 $(GSTREAMER_CFLAGS) \
216 # For the Gtk port we want to use XP_UNIX both in X11 and Mac
218 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS += \
222 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
223 -version-info @LIBWEBKITGTK_VERSION@ \
227 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD = \
229 libJavaScriptCore.la \
232 $(COVERAGE_LDFLAGS) \
255 # Extra checks and flags
257 -DBUILDING_CAIRO__=1 \
263 -DWTF_USE_ICU_UNICODE=1
268 -DWTF_USE_GLIB_UNICODE=1
271 if !ENABLE_FAST_MALLOC
278 -DWTF_USE_GSTREAMER=1
282 # GTK+ 2.x/3.x support
286 -DGTK_API_VERSION_2=1
290 global_cppflags += -DNDEBUG
291 global_cflags += $(SYMBOL_VISIBILITY)
294 -DG_DISABLE_DEPRECATED \
295 -DGDK_PIXBUF_DISABLE_DEPRECATED \
296 -DGDK_DISABLE_DEPRECATED \
297 -DGTK_DISABLE_DEPRECATED \
298 -DPANGO_DISABLE_DEPRECATED
299 # Might be useful in the future
300 # -DGDK_MULTIHEAD_SAFE \
301 # -DGTK_MULTIHEAD_SAFE
306 -DGCC_GENERATE_TEST_COVERAGE_FILES \
307 -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
310 webkitgtk_static_h_api += \
311 $(srcdir)/WebCore/platform/network/soup/cache/webkit/soup-cache.h \
312 $(srcdir)/WebKit/gtk/webkit/webkit.h \
313 $(srcdir)/WebKit/gtk/webkit/webkitdefines.h \
314 $(srcdir)/WebKit/gtk/webkit/webkitdownload.h \
315 $(srcdir)/WebKit/gtk/webkit/webkiterror.h \
316 $(srcdir)/WebKit/gtk/webkit/webkitgeolocationpolicydecision.h \
317 $(srcdir)/WebKit/gtk/webkit/webkithittestresult.h \
318 $(srcdir)/WebKit/gtk/webkit/webkitnetworkrequest.h \
319 $(srcdir)/WebKit/gtk/webkit/webkitnetworkresponse.h \
320 $(srcdir)/WebKit/gtk/webkit/webkitsecurityorigin.h \
321 $(srcdir)/WebKit/gtk/webkit/webkitsoupauthdialog.h \
322 $(srcdir)/WebKit/gtk/webkit/webkitwebbackforwardlist.h \
323 $(srcdir)/WebKit/gtk/webkit/webkitwebdatabase.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/webkitwebresource.h \
331 $(srcdir)/WebKit/gtk/webkit/webkitwebsettings.h \
332 $(srcdir)/WebKit/gtk/webkit/webkitwebwindowfeatures.h \
333 $(srcdir)/WebKit/gtk/webkit/webkitwebview.h
335 webkitgtk_built_h_api += \
336 WebKit/gtk/webkit/webkitversion.h
339 $(webkitgtk_built_h_api) \
340 $(webkitgtk_static_h_api)
342 # webkitenumtypes.{h,cpp} cannot be in webkitgtk_built_h_api, because
343 # the rule that builds it depends on webkitgtk_built_h_api (circular dependency).
344 webkitgtk_built_sources += \
345 $(webkitgtk_built_h_api) \
346 $(webkitgtk_gdom_built_sources) \
347 DerivedSources/webkit/webkitmarshal.cpp \
348 DerivedSources/webkit/webkitmarshal.h \
349 WebKit/gtk/webkit/webkitenumtypes.cpp \
350 WebKit/gtk/webkit/webkitenumtypes.h
352 webkitgtk_sources += \
353 WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
354 WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
355 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
356 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
357 WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.cpp \
358 WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.h \
359 WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
360 WebKit/gtk/WebCoreSupport/DragClientGtk.h \
361 WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
362 WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
363 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
364 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
365 WebKit/gtk/WebCoreSupport/FrameNetworkingContextGtk.h \
366 WebKit/gtk/WebCoreSupport/FullscreenVideoController.cpp \
367 WebKit/gtk/WebCoreSupport/FullscreenVideoController.h \
368 WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \
369 WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
370 WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp \
371 WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h \
372 WebKit/gtk/webkit/webkitapplicationcache.cpp \
373 WebKit/gtk/webkit/webkitdownload.cpp \
374 WebKit/gtk/webkit/webkiterror.cpp \
375 WebKit/gtk/webkit/webkithittestresult.cpp \
376 WebKit/gtk/webkit/webkitnetworkrequest.cpp \
377 WebKit/gtk/webkit/webkitnetworkresponse.cpp \
378 WebKit/gtk/webkit/webkitprivate.cpp \
379 WebKit/gtk/webkit/webkitprivate.h \
380 WebKit/gtk/webkit/webkitsoupauthdialog.c \
381 WebKit/gtk/webkit/webkitversion.cpp \
382 WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \
383 WebKit/gtk/webkit/webkitwebdatasource.cpp \
384 WebKit/gtk/webkit/webkitwebframe.cpp \
385 WebKit/gtk/webkit/webkitwebhistoryitem.cpp \
386 WebKit/gtk/webkit/webkitwebinspector.cpp \
387 WebKit/gtk/webkit/webkitwebnavigationaction.cpp \
388 WebKit/gtk/webkit/webkitwebpolicydecision.cpp \
389 WebKit/gtk/webkit/webkitgeolocationpolicydecision.cpp \
390 WebKit/gtk/webkit/webkitwebresource.cpp \
391 WebKit/gtk/webkit/webkitwebdatabase.cpp \
392 WebKit/gtk/webkit/webkitsecurityorigin.cpp \
393 WebKit/gtk/webkit/webkitwebsettings.cpp \
394 WebKit/gtk/webkit/webkitwebview.cpp \
395 WebKit/gtk/webkit/webkitwebwindowfeatures.cpp \
396 WebKit/gtk/webkit/webkitworkers.cpp
398 pkgconfigdir = $(libdir)/pkgconfig
399 pkgconfig_DATA = WebKit/gtk/@WEBKITGTK_PC_NAME@-@WEBKITGTK_API_VERSION@.pc
401 if ENABLE_INTROSPECTION
403 JSCore-@WEBKITGTK_API_VERSION@.gir: $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir
404 $(AM_V_GEN)cp $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir $(builddir)/
406 JSCORE_GIRSOURCES += JSCore-@WEBKITGTK_API_VERSION@.gir
407 WEBKIT_GIRSOURCES += WebKit-@WEBKITGTK_API_VERSION@.gir
409 $(WEBKIT_GIRSOURCES): $(G_IR_SCANNER) $(JSCORE_GIRSOURCES) libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
410 $(AM_V_GEN)$(G_IR_SCANNER) -v --warn-all \
411 --symbol-prefix=webkit \
412 --identifier-prefix=WebKit \
414 --nsversion=@WEBKITGTK_API_VERSION@ \
415 --include=GObject-2.0 \
416 --include=Gtk-@GTK_API_VERSION@ \
417 --include=JSCore-@WEBKITGTK_API_VERSION@ \
419 --library=webkitgtk-@WEBKITGTK_API_VERSION@ \
420 --libtool="$(LIBTOOL)" \
422 --pkg=gtk+-@GTK_API_VERSION@ \
425 --add-include-path=$(top_srcdir)/WebKit/gtk \
426 --add-include-path=$(builddir) \
427 -I$(top_srcdir)/WebKit/gtk \
428 -I$(top_builddir)/WebKit/gtk \
429 -I$(top_builddir)/DerivedSources \
430 -I$(top_builddir)/DerivedSources/webkit \
431 -I$(top_builddir)/WebKit/gtk/webkit \
432 -I$(top_srcdir)/JavaScriptCore/ForwardingHeaders \
434 $(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h \
436 $(top_srcdir)/WebKit/gtk/webkit/*.cpp \
437 $(top_srcdir)/WebKit/gtk/webkit/*.c
439 girdir = $(datadir)/gir-1.0
440 gir_DATA = $(WEBKIT_GIRSOURCES) $(JSCORE_GIRSOURCES)
442 typelibsdir += $(libdir)/girepository-1.0
443 typelibs_DATA += $(JSCORE_GIRSOURCES:.gir=.typelib) $(WEBKIT_GIRSOURCES:.gir=.typelib)
445 %.typelib: %.gir $(G_IR_COMPILER)
446 $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(top_srcdir)/WebKit/gtk --includedir $(builddir) $< -o $@
448 CLEANFILES += $(JSCORE_GIRSOURCES) $(WEBKIT_GIRSOURCES) $(typelibs_DATA)
452 EXTRA_DIST += $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir
454 WEBKIT_MARSHAL = $(GENSOURCES_WEBKIT)/webkitmarshal
455 WEBKIT_MARSHAL_LIST = $(top_srcdir)/WebKit/gtk/webkitmarshal.list
456 $(WEBKIT_MARSHAL).cpp: stamp-webkitmarshal.cpp
459 $(WEBKIT_MARSHAL).h: stamp-webkitmarshal.h
462 stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST)
463 $(AM_V_GEN) echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
464 $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
465 echo timestamp > $(@F)
467 stamp-webkitmarshal.h: $(WEBKIT_MARSHAL_LIST)
468 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
469 echo timestamp > $(@F)
471 WebKit/gtk/webkit/webkitenumtypes.h: stamp-webkitenumtypes.h
473 stamp-webkitenumtypes.h: $(webkitgtk_h_api) GNUmakefile
474 $(AM_V_GEN)glib-mkenums \
475 --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
476 --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
477 --fhead "#include <glib-object.h>\n\n" \
478 --fhead "#include <webkit/webkitdefines.h>\n\n" \
479 --fhead "G_BEGIN_DECLS\n\n" \
480 --ftail "G_END_DECLS\n\n" \
482 --fprod "#include <webkit/@basename@>\n\n" \
483 --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
484 --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
485 $(webkitgtk_h_api) | \
486 sed 's,web_kit,webkit,' | \
487 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
489 && (cmp -s xgen-gth WebKit/gtk/webkit/webkitenumtypes.h || cp xgen-gth WebKit/gtk/webkit/webkitenumtypes.h) \
491 && echo timestamp > $(@F)
493 WebKit/gtk/webkit/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile
494 $(AM_V_GEN)glib-mkenums \
495 --fhead "#include <config.h>\n" \
496 --fhead "#include <glib-object.h>\n" \
497 --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h\"\n\n" \
498 --fhead "extern \"C\" {\n\n" \
499 --fprod "\n/* enumerations from \"@filename@\" */" \
500 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
501 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
502 --vtail " { 0, NULL, NULL }\n};\n\n" \
503 --vtail "GType @enum_name@_get_type(void)\n{\n" \
504 --vtail " static GType type = 0;\n\n" \
505 --vtail " if (!type)\n" \
506 --vtail " type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
507 --vtail " return type;\n}\n\n" \
509 $(webkitgtk_h_api) | \
510 sed 's,web_kit,webkit,' \
517 gsettings_SCHEMAS = $(top_builddir)/WebKit/gtk/org.webkitgtk-@WEBKITGTK_API_VERSION@.gschema.xml
522 # Files that will be distributed
524 $(srcdir)/gtk-doc.make \
526 $(srcdir)/autotools/symbols.filter \
527 $(srcdir)/WebKit/gtk/ChangeLog \
528 $(srcdir)/WebKit/gtk/NEWS \
529 $(srcdir)/WebKit/gtk/webkitmarshal.list \
530 $(srcdir)/WebKit/gtk/docs/GNUmakefile.* \
531 $(srcdir)/WebKit/gtk/docs/webkitenvironment.xml \
532 $(srcdir)/WebKit/gtk/docs/webkitgtk-docs.sgml \
533 $(srcdir)/WebKit/gtk/docs/webkitgtk-sections.txt \
534 $(srcdir)/WebKit/gtk/docs/version.xml.in \
535 $(srcdir)/WebKit/gtk/po/* \
536 $(srcdir)/WebKit/gtk/resources/* \
537 $(srcdir)/WebKit/gtk/tests/resources/* \
538 $(srcdir)/WebKit/gtk/tests/test_utils.h \
539 $(srcdir)/WebKit/gtk/org.webkitgtk.gschema.xml.in
541 # extra resource files
542 resourcesdir = ${datadir}/webkit-@WEBKITGTK_API_VERSION@/resources
543 dist_resources_DATA = \
544 $(shell ls $(srcdir)/WebKit/gtk/resources/*.html)
548 # Include module makefiles
549 include JavaScriptCore/GNUmakefile.am
550 include WebCore/GNUmakefile.am
551 include WebCore/bindings/gobject/GNUmakefile.am
552 include WebKitTools/GNUmakefile.am
553 include WebKit/gtk/po/GNUmakefile.am
556 noinst_PROGRAMS += $(TEST_PROGS)
558 webkit_tests_cflags = \
559 -fno-strict-aliasing \
560 -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
561 -I$(srcdir)/WebCore/platform/network/soup/cache \
562 -I$(srcdir)/WebKit/gtk \
563 -I$(top_builddir)/WebKit/gtk \
564 -I$(top_builddir)/DerivedSources \
565 -I$(top_srcdir)/WebCore/bindings \
566 -I$(top_srcdir)/WebCore/bindings/gobject \
573 webkit_tests_ldadd = \
574 libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
579 webkit_tests_ldflags = \
584 Programs/unittests/testdomdocument \
585 Programs/unittests/testdomdomwindow \
586 Programs/unittests/testdomnode \
587 Programs/unittests/testhttpbackend \
588 Programs/unittests/testloading \
589 Programs/unittests/testglobals \
590 Programs/unittests/testmimehandling \
591 Programs/unittests/testnetworkrequest \
592 Programs/unittests/testnetworkresponse \
593 Programs/unittests/testwebframe \
594 Programs/unittests/testwebbackforwardlist \
595 Programs/unittests/testwebhistoryitem \
596 Programs/unittests/testwindow \
597 Programs/unittests/testdownload \
598 Programs/unittests/testatk \
599 Programs/unittests/testatkroles \
600 Programs/unittests/testhittestresult \
601 Programs/unittests/testwebsettings \
602 Programs/unittests/testwebresource \
603 Programs/unittests/testwebdatasource \
604 Programs/unittests/testwebview \
605 Programs/unittests/testkeyevents \
606 Programs/unittests/testcopyandpaste
608 # Add additional tests here
609 Programs_unittests_testdomdocument_SOURCES = WebKit/gtk/tests/testdomdocument.c
610 Programs_unittests_testdomdocument_CFLAGS = $(webkit_tests_cflags)
611 Programs_unittests_testdomdocument_LDADD = $(webkit_tests_ldadd)
612 Programs_unittests_testdomdocument_LDFLAGS = $(webkit_tests_ldflags)
614 Programs_unittests_testdomdomwindow_SOURCES = WebKit/gtk/tests/testdomdomwindow.c
615 Programs_unittests_testdomdomwindow_CFLAGS = $(webkit_tests_cflags)
616 Programs_unittests_testdomdomwindow_LDADD = $(webkit_tests_ldadd)
617 Programs_unittests_testdomdomwindow_LDFLAGS = $(webkit_tests_ldflags)
619 Programs_unittests_testdomnode_SOURCES = WebKit/gtk/tests/testdomnode.c
620 Programs_unittests_testdomnode_CFLAGS = $(webkit_tests_cflags)
621 Programs_unittests_testdomnode_LDADD = $(webkit_tests_ldadd)
622 Programs_unittests_testdomnode_LDFLAGS = $(webkit_tests_ldflags)
624 Programs_unittests_testhttpbackend_SOURCES = WebKit/gtk/tests/testhttpbackend.c
625 Programs_unittests_testhttpbackend_CFLAGS = $(webkit_tests_cflags)
626 Programs_unittests_testhttpbackend_LDADD = $(webkit_tests_ldadd)
627 Programs_unittests_testhttpbackend_LDFLAGS = $(webkit_tests_ldflags)
629 Programs_unittests_testglobals_SOURCES = WebKit/gtk/tests/testglobals.c
630 Programs_unittests_testglobals_CFLAGS = $(webkit_tests_cflags)
631 Programs_unittests_testglobals_LDADD = $(webkit_tests_ldadd)
632 Programs_unittests_testglobals_LDFLAGS = $(webkit_tests_ldflags)
634 Programs_unittests_testloading_SOURCES = WebKit/gtk/tests/testloading.c
635 Programs_unittests_testloading_CFLAGS = $(webkit_tests_cflags)
636 Programs_unittests_testloading_LDADD = $(webkit_tests_ldadd)
637 Programs_unittests_testloading_LDFLAGS = $(webkit_tests_ldflags)
639 Programs_unittests_testmimehandling_SOURCES = WebKit/gtk/tests/testmimehandling.c WebKit/gtk/tests/test_utils.c
640 Programs_unittests_testmimehandling_CFLAGS = $(webkit_tests_cflags)
641 Programs_unittests_testmimehandling_LDADD = $(webkit_tests_ldadd)
642 Programs_unittests_testmimehandling_LDFLAGS = $(webkit_tests_ldflags)
644 Programs_unittests_testnetworkrequest_SOURCES = WebKit/gtk/tests/testnetworkrequest.c
645 Programs_unittests_testnetworkrequest_CFLAGS = $(webkit_tests_cflags)
646 Programs_unittests_testnetworkrequest_LDADD = $(webkit_tests_ldadd)
647 Programs_unittests_testnetworkrequest_LDFLAGS = $(webkit_tests_ldflags)
649 Programs_unittests_testnetworkresponse_SOURCES = WebKit/gtk/tests/testnetworkresponse.c
650 Programs_unittests_testnetworkresponse_CFLAGS = $(webkit_tests_cflags)
651 Programs_unittests_testnetworkresponse_LDADD = $(webkit_tests_ldadd)
652 Programs_unittests_testnetworkresponse_LDFLAGS = $(webkit_tests_ldflags)
654 Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c
655 Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags)
656 Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd)
657 Programs_unittests_testwebframe_LDFLAGS = $(webkit_tests_ldflags)
659 Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c
660 Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags)
661 Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd)
662 Programs_unittests_testwebbackforwardlist_LDFLAGS = $(webkit_tests_ldflags)
664 Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c
665 Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags)
666 Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd)
667 Programs_unittests_testwebhistoryitem_LDFLAGS = $(webkit_tests_ldflags)
669 Programs_unittests_testwindow_SOURCES = WebKit/gtk/tests/testwindow.c
670 Programs_unittests_testwindow_CFLAGS = $(webkit_tests_cflags)
671 Programs_unittests_testwindow_LDADD = $(webkit_tests_ldadd)
672 Programs_unittests_testwindow_LDFLAGS = $(webkit_tests_ldflags)
674 Programs_unittests_testdownload_SOURCES = WebKit/gtk/tests/testdownload.c
675 Programs_unittests_testdownload_CFLAGS = $(webkit_tests_cflags)
676 Programs_unittests_testdownload_LDADD = $(webkit_tests_ldadd)
677 Programs_unittests_testdownload_LDFLAGS = $(webkit_tests_ldflags)
679 Programs_unittests_testatk_SOURCES = WebKit/gtk/tests/testatk.c
680 Programs_unittests_testatk_CFLAGS = $(webkit_tests_cflags)
681 Programs_unittests_testatk_LDADD = $(webkit_tests_ldadd)
682 Programs_unittests_testatk_LDFLAGS = $(webkit_tests_ldflags)
684 Programs_unittests_testatkroles_SOURCES = WebKit/gtk/tests/testatkroles.c
685 Programs_unittests_testatkroles_CFLAGS = $(webkit_tests_cflags)
686 Programs_unittests_testatkroles_LDADD = $(webkit_tests_ldadd)
687 Programs_unittests_testatkroles_LDFLAGS = $(webkit_tests_ldflags)
689 Programs_unittests_testwebsettings_SOURCES = WebKit/gtk/tests/testwebsettings.c
690 Programs_unittests_testwebsettings_CFLAGS = $(webkit_tests_cflags)
691 Programs_unittests_testwebsettings_LDADD = $(webkit_tests_ldadd)
692 Programs_unittests_testwebsettings_LDFLAGS = $(webkit_tests_ldflags)
694 Programs_unittests_testwebresource_SOURCES = WebKit/gtk/tests/testwebresource.c
695 Programs_unittests_testwebresource_CFLAGS = $(webkit_tests_cflags)
696 Programs_unittests_testwebresource_LDADD = $(webkit_tests_ldadd)
698 Programs_unittests_testwebdatasource_SOURCES = WebKit/gtk/tests/testwebdatasource.c
699 Programs_unittests_testwebdatasource_CFLAGS = $(webkit_tests_cflags)
700 Programs_unittests_testwebdatasource_LDADD = $(webkit_tests_ldadd)
702 Programs_unittests_testwebview_SOURCES = WebKit/gtk/tests/testwebview.c WebKit/gtk/tests/test_utils.c
703 Programs_unittests_testwebview_CFLAGS = $(webkit_tests_cflags)
704 Programs_unittests_testwebview_LDADD = $(webkit_tests_ldadd)
705 Programs_unittests_testwebview_LDFLAGS = $(webkit_tests_ldflags)
707 Programs_unittests_testhittestresult_SOURCES = WebKit/gtk/tests/testhittestresult.c
708 Programs_unittests_testhittestresult_CFLAGS = $(webkit_tests_cflags)
709 Programs_unittests_testhittestresult_LDADD = $(webkit_tests_ldadd)
711 Programs_unittests_testkeyevents_SOURCES = WebKit/gtk/tests/testkeyevents.c
712 Programs_unittests_testkeyevents_CFLAGS = $(webkit_tests_cflags)
713 Programs_unittests_testkeyevents_LDADD = $(webkit_tests_ldadd)
714 Programs_unittests_testkeyevents_LDFLAGS = $(webkit_tests_ldflags)
716 Programs_unittests_testcopyandpaste_SOURCES = WebKit/gtk/tests/testcopyandpaste.c \
717 WebCore/platform/gtk/GtkVersioning.c
718 Programs_unittests_testcopyandpaste_CFLAGS = $(webkit_tests_cflags) \
719 -I$(srcdir)/WebCore/platform/gtk \
721 Programs_unittests_testcopyandpaste_LDADD = $(webkit_tests_ldadd)
722 Programs_unittests_testcopyandpaste_LDFLAGS = $(webkit_tests_ldflags)
724 # Autogenerated sources
726 $(javascriptcore_built_sources) \
727 $(javascriptcore_built_nosources) \
728 $(webcore_built_sources) \
729 $(webcore_built_nosources) \
730 $(webkitgtk_built_sources) \
731 $(webkitgtk_built_nosources)
733 # Project-wide clean rules
734 # Files that will be cleaned
737 $(top_builddir)/stamp-webkitmarshal.cpp \
738 $(top_builddir)/stamp-webkitmarshal.h \
739 $(top_builddir)/stamp-webkitenumtypes.cpp \
740 $(top_builddir)/stamp-webkitenumtypes.h \
741 $(top_builddir)/Programs/GtkLauncher
745 $(builddir)/doltcompile \
746 $(builddir)/doltlibtool \
747 $(top_builddir)/WebKit/gtk/docs/version.xml \
748 $(top_builddir)/WebKit/gtk/docs/GNUmakefile \
749 $(top_builddir)/WebKit/gtk/@WEBKITGTK_PC_NAME@-@WEBKITGTK_API_VERSION@.pc \
750 $(top_builddir)/WebKit/gtk/webkit/webkitversion.h \
751 $(top_builddir)/WebKit/gtk/org.webkitgtk-@WEBKITGTK_API_VERSION@.gschema.xml
753 MAINTAINERCLEANFILES += \
755 $(builddir)/doltcompile \
756 $(builddir)/doltlibtool \
757 $(srcdir)/aconfig.h.in \
758 $(srcdir)/autotools/config.* \
759 $(srcdir)/autotools/compile \
760 $(srcdir)/autotools/depcomp \
761 $(srcdir)/autotools/install-sh \
762 $(srcdir)/autotools/missing \
763 $(srcdir)/configure \
764 $(srcdir)/GNUmakefile.in \
767 $(top_builddir)/config.*
769 # Older automake versions (1.7) place Plo files in a different place so we need
770 # to create the output directory manually.
772 $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
774 # remove built sources and program directories
776 -rm -rf $(GENPROGRAMS)
778 maintainer-clean-local: distclean-local
781 -rm -rf $(GENSOURCES) $(GENPROGRAMS)
784 cp $(srcdir)/WebKit/gtk/NEWS $(distdir)
786 install-data-local: po-install-data-local
788 installdirs-data-local: po-installdirs-data-local
790 uninstall-local: po-uninstall-local
792 # Run all tests in cwd
793 # FIXME: we should run this under xvfb
795 $(GTESTER) --verbose $(TEST_PROGS);
797 # test-report: run tests in cwd and generate report
798 # full-report: run tests in cwd with -m perf and -m slow and generate report
799 # perf-report: run tests in cwd with -m perf and generate report
800 test-report full-report perf-report: $(TEST_PROGS)
802 test-report) test_options="-k";; \
803 full-report) test_options="-k -m=perf";; \
804 perf-report) test_options="-k -m=perf -m=slow";; \
806 $(GTESTER) --verbose $$test_options -o test-report.xml $(TEST_PROGS); \
807 $(GTESTER_REPORT) test-report.xml > test-report.html ;
809 .PHONY: test test-report perf-report full-report