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
22 # global_cppflags = CPPFLAGS that apply to JSC, WebCore, and to any
24 # global_cflags = CFLAGS that apply to JSC, WebCore, and to
26 # global_cxxflags = CXXFLAGS that apply to JSC, WebCore, and to any
32 DISTCHECK_CONFIGURE_FLAGS = \
33 --enable-introspection \
36 # Directory for autogenerated sources
37 GENSOURCES := $(top_builddir)/DerivedSources
38 GENPROGRAMS := $(top_builddir)/Programs
40 # Script for creating hash tables
41 CREATE_HASH_TABLE = $(srcdir)/JavaScriptCore/create_hash_table
43 # Programs to run the WebKitGtk unit tests
45 GTESTER_REPORT = gtester-report
47 # Libraries and support components
57 javascriptcore_h_api :=
58 javascriptcore_cppflags:=
59 javascriptcore_sources :=
60 javascriptcore_built_sources :=
61 javascriptcore_built_nosources :=
62 javascriptcore_dist :=
66 webcore_built_sources :=
67 webcore_built_nosources :=
69 webcoregtk_cppflags :=
74 webkitgtk_built_sources :=
75 webkitgtk_built_nosources :=
76 webkitgtk_cleanfiles :=
90 MAINTAINERCLEANFILES :=
92 # CFLAGS/CXXFLAGS used by WebCore and WebKit
94 # gtk+.pc already include glib, cairo, freetype and pango CFLAGS
95 # Don't include them for now to reduce the noise when compiling
96 # $(GLIB_CFLAGS) $(CAIRO_CFLAGS) $(PANGO_CFLAGS) $(FREETYPE_CFLAGS)
98 -fno-strict-aliasing \
104 $(GSTREAMER_CFLAGS) \
114 # When building webcore/webkit, we want WebCore/config.h and NOT
115 # JavaScriptCore/config.h, hence, it's important that WebCore/ should come first
116 # before JavaScriptCore in the include path.
117 corekit_cppflags += \
119 $(webcore_cppflags) \
120 $(webcoregtk_cppflags) \
121 $(javascriptcore_cppflags)
123 # For the Gtk port we want to use XP_UNIX both in X11 and Mac
125 corekit_cppflags += -DXP_UNIX
128 # Default compiler flags
130 -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
131 -Wformat -Wformat-security -Wno-format-y2k -Wundef \
132 -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \
133 -Wno-unused-parameter -Wno-parentheses \
138 $(SYMBOL_VISIBILITY_INLINES) \
141 # -no-undefined required for building DLLs on Windows
142 # It breaks the build on other platforms, so we use it conditionally
144 no_undefined = -no-undefined
148 version_script = -Wl,--version-script,$(srcdir)/autotools/symbols.filter
155 # Convenience libraries
156 noinst_LTLIBRARIES += \
160 javascriptcore_cppflags += \
161 -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
162 -I$(srcdir)/JavaScriptCore/parser \
163 -I$(srcdir)/JavaScriptCore/wtf \
164 -I$(srcdir)/JavaScriptCore/wtf/gtk \
165 -I$(srcdir)/JavaScriptCore/wtf/gobject \
166 -I$(top_builddir)/DerivedSources
168 nodist_EXTRA_libJavaScriptCore_la_SOURCES = \
169 $(javascriptcore_built_nosources)
171 nodist_libJavaScriptCore_la_SOURCES = \
172 $(javascriptcore_built_sources)
174 libJavaScriptCore_ladir = $(prefix)/include/webkit-1.0/JavaScriptCore
175 libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
177 libJavaScriptCore_la_SOURCES = \
178 $(javascriptcore_sources)
180 libJavaScriptCore_la_LIBADD = \
185 libJavaScriptCore_la_CXXFLAGS = \
187 $(libJavaScriptCore_la_CFLAGS)
189 libJavaScriptCore_la_CFLAGS = \
196 libJavaScriptCore_la_CPPFLAGS = \
198 $(javascriptcore_cppflags)
201 nodist_EXTRA_libwebkit_1_0_la_SOURCES = \
202 $(webcore_built_nosources)
204 nodist_libwebkit_1_0_la_SOURCES = \
205 $(webcore_built_sources) \
206 $(webkitgtk_built_sources)
208 libwebkit_1_0_ladir = $(prefix)/include/webkit-1.0/webkit
209 libwebkit_1_0_la_HEADERS = \
211 WebKit/gtk/webkit/webkitenumtypes.h
213 libwebkit_1_0_la_SOURCES = \
215 $(webcoregtk_sources) \
218 libwebkit_1_0_la_CXXFLAGS = \
222 libwebkit_1_0_la_CFLAGS = \
226 libwebkit_1_0_la_CPPFLAGS = \
227 $(corekit_cppflags) \
228 $(webkitgtk_cppflags) \
231 libwebkit_1_0_la_LDFLAGS = \
232 -version-info @LIBWEBKITGTK_VERSION@ \
236 libwebkit_1_0_la_LIBADD = \
238 libJavaScriptCore.la \
242 $(COVERAGE_LDFLAGS) \
262 # Extra checks and flags
264 -DBUILDING_CAIRO__=1 \
270 -DWTF_USE_ICU_UNICODE=1
274 # https://bugs.webkit.org/show_bug.cgi?id=15914
275 # In patch 1/4 we are compiling a hybrid version of GLib WTF Unicode
276 # functionality mixed with ICU-based text codecs and TextBreakIterator.
277 # For the transition, introducing an interim HYBRID macro.
278 # This macro is required for compiling WTF with GLib Unicode backend,
279 # but at the same time keeping ICU dependency for codecs and break iterator.
280 # It will be removed with patch 3/4 of the above bug.
282 -DWTF_USE_GLIB_UNICODE=1 \
283 -DWTF_USE_GLIB_ICU_UNICODE_HYBRID=1
286 if !ENABLE_FAST_MALLOC
292 global_cppflags += -DNDEBUG
293 global_cflags += $(SYMBOL_VISIBILITY)
296 webcoregtk_cppflags += \
297 -DG_DISABLE_DEPRECATED \
298 -DGDK_PIXBUF_DISABLE_DEPRECATED \
299 -DGDK_DISABLE_DEPRECATED \
300 -DGTK_DISABLE_DEPRECATED \
301 -DPANGO_DISABLE_DEPRECATED
303 # Might be useful in the future
304 # -DGDK_MULTIHEAD_SAFE \
305 # -DGTK_MULTIHEAD_SAFE
310 -DGCC_GENERATE_TEST_COVERAGE_FILES \
311 -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
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 $(top_builddir)/WebKit/gtk/webkit/webkitversion.h
339 webkitgtk_built_sources += \
340 DerivedSources/webkitenumtypes.cpp \
341 DerivedSources/webkitmarshal.cpp \
342 DerivedSources/webkitmarshal.h \
343 WebKit/gtk/webkit/webkitenumtypes.h
345 webkitgtk_sources += \
346 WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
347 WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
348 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
349 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
350 WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.cpp \
351 WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.h \
352 WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
353 WebKit/gtk/WebCoreSupport/DragClientGtk.h \
354 WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
355 WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
356 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
357 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
358 WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \
359 WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
360 WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp \
361 WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h \
362 WebKit/gtk/webkit/webkitapplicationcache.cpp \
363 WebKit/gtk/webkit/webkitdownload.cpp \
364 WebKit/gtk/webkit/webkiterror.cpp \
365 WebKit/gtk/webkit/webkithittestresult.cpp \
366 WebKit/gtk/webkit/webkitnetworkrequest.cpp \
367 WebKit/gtk/webkit/webkitnetworkresponse.cpp \
368 WebKit/gtk/webkit/webkitprivate.cpp \
369 WebKit/gtk/webkit/webkitprivate.h \
370 WebKit/gtk/webkit/webkitsoupauthdialog.c \
371 WebKit/gtk/webkit/webkitversion.cpp \
372 WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \
373 WebKit/gtk/webkit/webkitwebdatasource.cpp \
374 WebKit/gtk/webkit/webkitwebframe.cpp \
375 WebKit/gtk/webkit/webkitwebhistoryitem.cpp \
376 WebKit/gtk/webkit/webkitwebinspector.cpp \
377 WebKit/gtk/webkit/webkitwebnavigationaction.cpp \
378 WebKit/gtk/webkit/webkitwebpolicydecision.cpp \
379 WebKit/gtk/webkit/webkitgeolocationpolicydecision.cpp \
380 WebKit/gtk/webkit/webkitwebresource.cpp \
381 WebKit/gtk/webkit/webkitwebdatabase.cpp \
382 WebKit/gtk/webkit/webkitsecurityorigin.cpp \
383 WebKit/gtk/webkit/webkitwebsettings.cpp \
384 WebKit/gtk/webkit/webkitwebview.cpp \
385 WebKit/gtk/webkit/webkitwebwindowfeatures.cpp \
386 WebKit/gtk/webkit/webkitworkers.cpp
388 webkitgtk_cppflags += \
390 -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
391 -DDATA_DIR=\"${datadir}\" \
392 -I$(srcdir)/WebKit/gtk \
393 -I$(srcdir)/WebKit/gtk/WebCoreSupport \
394 -I$(srcdir)/WebKit/gtk/webkit \
395 -I$(top_builddir)/WebKit/gtk/webkit
397 webkitgtk_cleanfiles += \
398 $(top_builddir)/stamp-webkitmarshal.cpp \
399 $(top_builddir)/stamp-webkitmarshal.h \
400 $(top_builddir)/stamp-webkitenumtypes.cpp \
401 $(top_builddir)/stamp-webkitenumtypes.h \
402 $(top_builddir)/Programs/GtkLauncher \
403 $(top_builddir)/WebKit/gtk/docs/version.xml \
404 $(top_builddir)/WebKit/gtk/docs/GNUmakefile \
405 $(top_builddir)/WebKit/gtk/webkit-1.0.pc \
406 $(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h \
407 $(top_builddir)/WebKit/gtk/webkit/webkitversion.h
409 pkgconfigdir = $(libdir)/pkgconfig
410 pkgconfig_DATA = WebKit/gtk/webkit-1.0.pc
412 if ENABLE_INTROSPECTION
413 JSCORE_GIRSOURCES += JSCore-1.0.gir
414 WEBKIT_GIRSOURCES += WebKit-1.0.gir
416 # JSCore-1.0.gir is handwritten - this is a hack to make the typelib
417 # generation work during make dist
418 JSCore-1.0.gir: $(srcdir)/WebKit/gtk/JSCore-1.0.gir
419 cp $(srcdir)/WebKit/gtk/JSCore-1.0.gir $(builddir)/
421 $(WEBKIT_GIRSOURCES): $(JSCORE_GIRSOURCES) $(G_IR_SCANNER) libwebkit-1.0.la
422 $(AM_V_GEN)$(G_IR_SCANNER) -v --namespace WebKit --nsversion=1.0 \
423 --include=GObject-2.0 \
425 --include=JSCore-1.0 \
427 --library=webkit-1.0 \
428 --libtool="$(LIBTOOL)" \
433 --add-include-path $(top_srcdir)/WebKit/gtk \
434 -I$(top_srcdir)/WebKit/gtk \
435 -I$(top_builddir)/WebKit/gtk \
436 -I$(top_srcdir)/JavaScriptCore/ForwardingHeaders \
441 gir_DATA = $(WEBKIT_GIRSOURCES) $(JSCORE_GIRSOURCES)
443 typelibsdir += $(GIRTYPELIBDIR)
444 typelibs_DATA += $(JSCORE_GIRSOURCES:.gir=.typelib) $(WEBKIT_GIRSOURCES:.gir=.typelib)
446 %.typelib: %.gir $(G_IR_COMPILER)
447 $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(top_srcdir)/WebKit/gtk $< -o $@
449 CLEANFILES += $(JSCORE_GIRSOURCES) $(WEBKIT_GIRSOURCES) $(typelibs_DATA)
453 EXTRA_DIST += WebKit/gtk/JSCore-1.0.gir
455 WEBKIT_MARSHAL = $(GENSOURCES)/webkitmarshal
456 WEBKIT_MARSHAL_LIST = $(top_srcdir)/WebKit/gtk/webkitmarshal.list
458 $(WEBKIT_MARSHAL).cpp: stamp-webkitmarshal.cpp
461 $(WEBKIT_MARSHAL).h: stamp-webkitmarshal.h
464 stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST)
465 $(AM_V_GEN) echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
466 $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
467 echo timestamp > $(@F)
469 stamp-webkitmarshal.h: $(WEBKIT_MARSHAL_LIST)
470 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
471 echo timestamp > $(@F)
473 WebKit/gtk/webkit/webkitenumtypes.h: stamp-webkitenumtypes.h
475 stamp-webkitenumtypes.h: $(webkitgtk_h_api) GNUmakefile
476 $(AM_V_GEN)glib-mkenums \
477 --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
478 --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
479 --fhead "#include <glib-object.h>\n\n" \
480 --fhead "#include <webkit/webkitdefines.h>\n\n" \
481 --fhead "G_BEGIN_DECLS\n\n" \
482 --ftail "G_END_DECLS\n\n" \
484 --fprod "#include <webkit/@basename@>\n\n" \
485 --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
486 --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
487 $(webkitgtk_h_api) | \
488 sed 's,web_kit,webkit,' | \
489 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
491 && (cmp -s xgen-gth WebKit/gtk/webkit/webkitenumtypes.h || cp xgen-gth WebKit/gtk/webkit/webkitenumtypes.h) \
493 && echo timestamp > $(@F)
495 DerivedSources/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile
496 $(AM_V_GEN)glib-mkenums \
497 --fhead "#include <config.h>\n" \
498 --fhead "#include <glib-object.h>\n" \
499 --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h\"\n\n" \
500 --fhead "extern \"C\" {\n\n" \
501 --fprod "\n/* enumerations from \"@filename@\" */" \
502 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
503 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
504 --vtail " { 0, NULL, NULL }\n};\n\n" \
505 --vtail "GType @enum_name@_get_type(void)\n{\n" \
506 --vtail " static GType type = 0;\n\n" \
507 --vtail " if (!type)\n" \
508 --vtail " type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
509 --vtail " return type;\n}\n\n" \
511 $(webkitgtk_h_api) | \
512 sed 's,web_kit,webkit,' \
517 # Files that will be distributed
519 $(srcdir)/gtk-doc.make \
521 $(javascriptcore_dist) \
523 $(srcdir)/autotools/symbols.filter \
524 $(srcdir)/WebKit/gtk/ChangeLog \
525 $(srcdir)/WebKit/gtk/NEWS \
526 $(srcdir)/WebKit/gtk/webkitmarshal.list \
527 $(srcdir)/WebKit/gtk/docs/GNUmakefile.* \
528 $(srcdir)/WebKit/gtk/docs/webkitenvironment.xml \
529 $(srcdir)/WebKit/gtk/docs/webkitgtk-docs.sgml \
530 $(srcdir)/WebKit/gtk/docs/webkitgtk-sections.txt \
531 $(srcdir)/WebKit/gtk/docs/version.xml.in \
532 $(srcdir)/WebKit/gtk/po/* \
533 $(srcdir)/WebKit/gtk/resources/* \
534 $(srcdir)/WebKit/gtk/tests/resources/*
536 # extra resource files
537 resourcesdir = ${datadir}/webkit-1.0/resources
538 dist_resources_DATA = \
539 $(shell ls $(srcdir)/WebKit/gtk/resources/*.html)
543 # Include module makefiles
544 include JavaScriptCore/GNUmakefile.am
545 include WebCore/GNUmakefile.am
546 include WebKitTools/GNUmakefile.am
547 include WebKit/gtk/po/GNUmakefile.am
550 noinst_PROGRAMS += $(TEST_PROGS)
552 webkit_tests_cflags = \
553 -fno-strict-aliasing \
554 -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
555 -I$(srcdir)/WebKit/gtk \
556 -I$(top_builddir)/WebKit/gtk \
562 webkit_tests_ldadd = \
568 webkit_tests_ldflags = \
572 TEST_PROGS += Programs/unittests/testhttpbackend \
573 Programs/unittests/testloading \
574 Programs/unittests/testmimehandling \
575 Programs/unittests/testnetworkrequest \
576 Programs/unittests/testnetworkresponse \
577 Programs/unittests/testwebframe \
578 Programs/unittests/testwebbackforwardlist \
579 Programs/unittests/testwebhistoryitem \
580 Programs/unittests/testwindow \
581 Programs/unittests/testdownload \
582 Programs/unittests/testatk \
583 Programs/unittests/testhittestresult \
584 Programs/unittests/testwebsettings \
585 Programs/unittests/testwebresource \
586 Programs/unittests/testwebdatasource \
587 Programs/unittests/testwebview \
588 Programs/unittests/testkeyevents
590 # Add additional tests here
591 Programs_unittests_testhttpbackend_SOURCES = WebKit/gtk/tests/testhttpbackend.c
592 Programs_unittests_testhttpbackend_CFLAGS = $(webkit_tests_cflags)
593 Programs_unittests_testhttpbackend_LDADD = $(webkit_tests_ldadd)
594 Programs_unittests_testhttpbackend_LDFLAGS = $(webkit_tests_ldflags)
596 Programs_unittests_testloading_SOURCES = WebKit/gtk/tests/testloading.c
597 Programs_unittests_testloading_CFLAGS = $(webkit_tests_cflags)
598 Programs_unittests_testloading_LDADD = $(webkit_tests_ldadd)
599 Programs_unittests_testloading_LDFLAGS = $(webkit_tests_ldflags)
601 Programs_unittests_testmimehandling_SOURCES = WebKit/gtk/tests/testmimehandling.c WebKit/gtk/tests/test_utils.c
602 Programs_unittests_testmimehandling_CFLAGS = $(webkit_tests_cflags)
603 Programs_unittests_testmimehandling_LDADD = $(webkit_tests_ldadd)
604 Programs_unittests_testmimehandling_LDFLAGS = $(webkit_tests_ldflags)
606 Programs_unittests_testnetworkrequest_SOURCES = WebKit/gtk/tests/testnetworkrequest.c
607 Programs_unittests_testnetworkrequest_CFLAGS = $(webkit_tests_cflags)
608 Programs_unittests_testnetworkrequest_LDADD = $(webkit_tests_ldadd)
609 Programs_unittests_testnetworkrequest_LDFLAGS = $(webkit_tests_ldflags)
611 Programs_unittests_testnetworkresponse_SOURCES = WebKit/gtk/tests/testnetworkresponse.c
612 Programs_unittests_testnetworkresponse_CFLAGS = $(webkit_tests_cflags)
613 Programs_unittests_testnetworkresponse_LDADD = $(webkit_tests_ldadd)
614 Programs_unittests_testnetworkresponse_LDFLAGS = $(webkit_tests_ldflags)
616 Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c
617 Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags)
618 Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd)
619 Programs_unittests_testwebframe_LDFLAGS = $(webkit_tests_ldflags)
621 Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c
622 Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags)
623 Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd)
624 Programs_unittests_testwebbackforwardlist_LDFLAGS = $(webkit_tests_ldflags)
626 Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c
627 Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags)
628 Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd)
629 Programs_unittests_testwebhistoryitem_LDFLAGS = $(webkit_tests_ldflags)
631 Programs_unittests_testwindow_SOURCES = WebKit/gtk/tests/testwindow.c
632 Programs_unittests_testwindow_CFLAGS = $(webkit_tests_cflags)
633 Programs_unittests_testwindow_LDADD = $(webkit_tests_ldadd)
634 Programs_unittests_testwindow_LDFLAGS = $(webkit_tests_ldflags)
636 Programs_unittests_testdownload_SOURCES = WebKit/gtk/tests/testdownload.c
637 Programs_unittests_testdownload_CFLAGS = $(webkit_tests_cflags)
638 Programs_unittests_testdownload_LDADD = $(webkit_tests_ldadd)
639 Programs_unittests_testdownload_LDFLAGS = $(webkit_tests_ldflags)
641 Programs_unittests_testatk_SOURCES = WebKit/gtk/tests/testatk.c
642 Programs_unittests_testatk_CFLAGS = $(webkit_tests_cflags)
643 Programs_unittests_testatk_LDADD = $(webkit_tests_ldadd)
644 Programs_unittests_testatk_LDFLAGS = $(webkit_tests_ldflags)
646 Programs_unittests_testwebsettings_SOURCES = WebKit/gtk/tests/testwebsettings.c
647 Programs_unittests_testwebsettings_CFLAGS = $(webkit_tests_cflags)
648 Programs_unittests_testwebsettings_LDADD = $(webkit_tests_ldadd)
649 Programs_unittests_testwebsettings_LDFLAGS = $(webkit_tests_ldflags)
651 Programs_unittests_testwebresource_SOURCES = WebKit/gtk/tests/testwebresource.c
652 Programs_unittests_testwebresource_CFLAGS = $(webkit_tests_cflags)
653 Programs_unittests_testwebresource_LDADD = $(webkit_tests_ldadd)
655 Programs_unittests_testwebdatasource_SOURCES = WebKit/gtk/tests/testwebdatasource.c
656 Programs_unittests_testwebdatasource_CFLAGS = $(webkit_tests_cflags)
657 Programs_unittests_testwebdatasource_LDADD = $(webkit_tests_ldadd)
659 Programs_unittests_testwebview_SOURCES = WebKit/gtk/tests/testwebview.c WebKit/gtk/tests/test_utils.c
660 Programs_unittests_testwebview_CFLAGS = $(webkit_tests_cflags)
661 Programs_unittests_testwebview_LDADD = $(webkit_tests_ldadd)
662 Programs_unittests_testwebview_LDFLAGS = $(webkit_tests_ldflags)
664 Programs_unittests_testhittestresult_SOURCES = WebKit/gtk/tests/testhittestresult.c
665 Programs_unittests_testhittestresult_CFLAGS = $(webkit_tests_cflags)
666 Programs_unittests_testhittestresult_LDADD = $(webkit_tests_ldadd)
668 Programs_unittests_testkeyevents_SOURCES = WebKit/gtk/tests/testkeyevents.c
669 Programs_unittests_testkeyevents_CFLAGS = $(webkit_tests_cflags)
670 Programs_unittests_testkeyevents_LDADD = $(webkit_tests_ldadd)
671 Programs_unittests_testkeyevents_LDFLAGS = $(webkit_tests_ldflags)
673 # Autogenerated sources
675 $(javascriptcore_built_sources) \
676 $(javascriptcore_built_nosources) \
677 $(webcore_built_sources) \
678 $(webcore_built_nosources) \
679 $(webkitgtk_built_sources) \
680 $(webkitgtk_built_nosources)
682 # Project-wide clean rules
683 # Files that will be cleaned
686 $(webkitgtk_cleanfiles)
690 $(builddir)/doltcompile \
691 $(builddir)/doltlibtool
693 MAINTAINERCLEANFILES += \
695 $(builddir)/doltcompile \
696 $(builddir)/doltlibtool \
697 $(srcdir)/aconfig.h.in \
698 $(srcdir)/autotools/config.* \
699 $(srcdir)/autotools/compile \
700 $(srcdir)/autotools/depcomp \
701 $(srcdir)/autotools/install-sh \
702 $(srcdir)/autotools/missing \
703 $(srcdir)/configure \
704 $(srcdir)/GNUmakefile.in \
707 $(top_builddir)/config.*
709 # Older automake versions (1.7) place Plo files in a different place so we need
710 # to create the output directory manually.
712 $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
714 # remove built sources and program directories
716 -rm -rf $(GENPROGRAMS)
718 maintainer-clean-local: distclean-local
721 -rm -rf $(GENSOURCES) $(GENPROGRAMS)
723 install-data-local: po-install-data-local
725 installdirs-data-local: po-installdirs-data-local
727 uninstall-local: po-uninstall-local
729 # Run all tests in cwd
730 # FIXME: we should run this under xvfb
732 $(GTESTER) --verbose $(TEST_PROGS);
734 # test-report: run tests in cwd and generate report
735 # full-report: run tests in cwd with -m perf and -m slow and generate report
736 # perf-report: run tests in cwd with -m perf and generate report
737 test-report full-report perf-report: $(TEST_PROGS)
739 test-report) test_options="-k";; \
740 full-report) test_options="-k -m=perf";; \
741 perf-report) test_options="-k -m=perf -m=slow";; \
743 $(GTESTER) --verbose $$test_options -o test-report.xml $(TEST_PROGS); \
744 $(GTESTER_REPORT) test-report.xml > test-report.html ;
746 .PHONY: test test-report perf-report full-report