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 GENSOURCESWEBKITDOM := $(top_builddir)/DerivedSources/webkit
39 GENPROGRAMS := $(top_builddir)/Programs
41 # Script for creating hash tables
42 CREATE_HASH_TABLE = $(srcdir)/JavaScriptCore/create_hash_table
44 # Programs to run the WebKitGtk unit tests
46 GTESTER_REPORT = gtester-report
48 # Libraries and support components
58 javascriptcore_h_api :=
59 javascriptcore_cppflags:=
60 javascriptcore_sources :=
61 javascriptcore_built_sources :=
62 javascriptcore_built_nosources :=
63 javascriptcore_dist :=
67 webcore_built_sources :=
68 webcore_built_nosources :=
70 webcoregtk_cppflags :=
75 webkitgtk_built_sources :=
76 webkitgtk_built_nosources :=
77 webkitgtk_cleanfiles :=
91 MAINTAINERCLEANFILES :=
93 webcoregtk_cppflags += \
94 -I$(top_builddir)/DerivedSources/webkit \
95 -I$(srcdir)/WebCore/bindings \
96 -I$(srcdir)/WebCore/bindings/gobject
98 # CFLAGS/CXXFLAGS used by WebCore and WebKit
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)
104 -fno-strict-aliasing \
110 $(GSTREAMER_CFLAGS) \
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 += \
125 $(webcore_cppflags) \
126 $(webcoregtk_cppflags) \
127 $(javascriptcore_cppflags)
129 # For the Gtk port we want to use XP_UNIX both in X11 and Mac
131 corekit_cppflags += -DXP_UNIX
134 # Default compiler flags
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 \
144 $(SYMBOL_VISIBILITY_INLINES) \
147 # -no-undefined required for building DLLs on Windows
148 # It breaks the build on other platforms, so we use it conditionally
150 no_undefined = -no-undefined
151 version_script = -export-symbols-regex "^(webkit_|JS).*"
155 version_script = -Wl,--version-script,$(srcdir)/autotools/symbols.filter
162 # Convenience libraries
163 noinst_LTLIBRARIES += \
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
175 nodist_EXTRA_libJavaScriptCore_la_SOURCES = \
176 $(javascriptcore_built_nosources)
178 nodist_libJavaScriptCore_la_SOURCES = \
179 $(javascriptcore_built_sources)
181 libJavaScriptCore_ladir = $(prefix)/include/webkit-1.0/JavaScriptCore
182 libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
184 libJavaScriptCore_la_SOURCES = \
185 $(javascriptcore_sources)
187 libJavaScriptCore_la_LIBADD = \
192 libJavaScriptCore_la_CXXFLAGS = \
194 $(libJavaScriptCore_la_CFLAGS)
196 libJavaScriptCore_la_CFLAGS = \
203 libJavaScriptCore_la_CPPFLAGS = \
205 $(javascriptcore_cppflags)
208 nodist_EXTRA_libwebkit_1_0_la_SOURCES = \
209 $(webcore_built_nosources)
211 nodist_libwebkit_1_0_la_SOURCES = \
212 $(webcore_built_sources) \
213 $(webkitgtk_built_sources)
215 libwebkit_1_0_ladir = $(prefix)/include/webkit-1.0/webkit
216 libwebkit_1_0_la_HEADERS = \
218 WebKit/gtk/webkit/webkitenumtypes.h
220 libwebkit_1_0_la_SOURCES = \
222 $(webcoregtk_sources) \
225 libwebkit_1_0_la_CXXFLAGS = \
229 libwebkit_1_0_la_CFLAGS = \
233 libwebkit_1_0_la_CPPFLAGS = \
234 $(corekit_cppflags) \
235 $(webkitgtk_cppflags) \
238 libwebkit_1_0_la_LDFLAGS = \
239 -version-info @LIBWEBKITGTK_VERSION@ \
243 libwebkit_1_0_la_LIBADD = \
245 libJavaScriptCore.la \
250 $(COVERAGE_LDFLAGS) \
269 libgdom_ladir = $(prefix)/include/webkit-1.0/webkit
270 libgdom_la_HEADERS = \
274 # Extra checks and flags
276 -DBUILDING_CAIRO__=1 \
282 -DWTF_USE_ICU_UNICODE=1
287 -DWTF_USE_GLIB_UNICODE=1
290 if !ENABLE_FAST_MALLOC
296 global_cppflags += -DNDEBUG
297 global_cflags += $(SYMBOL_VISIBILITY)
300 webcoregtk_cppflags += \
301 -DG_DISABLE_DEPRECATED \
302 -DGDK_PIXBUF_DISABLE_DEPRECATED \
303 -DGDK_DISABLE_DEPRECATED \
304 -DGTK_DISABLE_DEPRECATED \
305 -DPANGO_DISABLE_DEPRECATED
307 # Might be useful in the future
308 # -DGDK_MULTIHEAD_SAFE \
309 # -DGTK_MULTIHEAD_SAFE
314 -DGCC_GENERATE_TEST_COVERAGE_FILES \
315 -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
319 $(srcdir)/WebKit/gtk/webkit/webkit.h \
320 $(srcdir)/WebKit/gtk/webkit/webkitdefines.h \
321 $(srcdir)/WebKit/gtk/webkit/webkitdownload.h \
322 $(srcdir)/WebKit/gtk/webkit/webkiterror.h \
323 $(srcdir)/WebKit/gtk/webkit/webkithittestresult.h \
324 $(srcdir)/WebKit/gtk/webkit/webkitnetworkrequest.h \
325 $(srcdir)/WebKit/gtk/webkit/webkitnetworkresponse.h \
326 $(srcdir)/WebKit/gtk/webkit/webkitsoupauthdialog.h \
327 $(srcdir)/WebKit/gtk/webkit/webkitwebbackforwardlist.h \
328 $(srcdir)/WebKit/gtk/webkit/webkitwebdatasource.h \
329 $(srcdir)/WebKit/gtk/webkit/webkitwebframe.h \
330 $(srcdir)/WebKit/gtk/webkit/webkitwebhistoryitem.h \
331 $(srcdir)/WebKit/gtk/webkit/webkitwebinspector.h \
332 $(srcdir)/WebKit/gtk/webkit/webkitwebnavigationaction.h \
333 $(srcdir)/WebKit/gtk/webkit/webkitwebpolicydecision.h \
334 $(srcdir)/WebKit/gtk/webkit/webkitgeolocationpolicydecision.h \
335 $(srcdir)/WebKit/gtk/webkit/webkitwebresource.h \
336 $(srcdir)/WebKit/gtk/webkit/webkitwebsettings.h \
337 $(srcdir)/WebKit/gtk/webkit/webkitwebwindowfeatures.h \
338 $(srcdir)/WebKit/gtk/webkit/webkitwebview.h \
339 $(srcdir)/WebKit/gtk/webkit/webkitwebdatabase.h \
340 $(srcdir)/WebKit/gtk/webkit/webkitsecurityorigin.h \
341 $(top_builddir)/WebKit/gtk/webkit/webkitversion.h
343 webkitgtk_built_sources += \
344 DerivedSources/webkitenumtypes.cpp \
345 DerivedSources/webkitdomenumtypes.cpp \
346 DerivedSources/webkitmarshal.cpp \
347 DerivedSources/webkitmarshal.h \
348 WebKit/gtk/webkit/webkitenumtypes.h
350 webkitgtk_sources += \
351 WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
352 WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
353 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
354 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
355 WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.cpp \
356 WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.h \
357 WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
358 WebKit/gtk/WebCoreSupport/DragClientGtk.h \
359 WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
360 WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
361 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
362 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
363 WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \
364 WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
365 WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp \
366 WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h \
367 WebKit/gtk/webkit/webkitapplicationcache.cpp \
368 WebKit/gtk/webkit/webkitdownload.cpp \
369 WebKit/gtk/webkit/webkiterror.cpp \
370 WebKit/gtk/webkit/webkithittestresult.cpp \
371 WebKit/gtk/webkit/webkitnetworkrequest.cpp \
372 WebKit/gtk/webkit/webkitnetworkresponse.cpp \
373 WebKit/gtk/webkit/webkitprivate.cpp \
374 WebKit/gtk/webkit/webkitprivate.h \
375 WebKit/gtk/webkit/webkitsoupauthdialog.c \
376 WebKit/gtk/webkit/webkitversion.cpp \
377 WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \
378 WebKit/gtk/webkit/webkitwebdatasource.cpp \
379 WebKit/gtk/webkit/webkitwebframe.cpp \
380 WebKit/gtk/webkit/webkitwebhistoryitem.cpp \
381 WebKit/gtk/webkit/webkitwebinspector.cpp \
382 WebKit/gtk/webkit/webkitwebnavigationaction.cpp \
383 WebKit/gtk/webkit/webkitwebpolicydecision.cpp \
384 WebKit/gtk/webkit/webkitgeolocationpolicydecision.cpp \
385 WebKit/gtk/webkit/webkitwebresource.cpp \
386 WebKit/gtk/webkit/webkitwebdatabase.cpp \
387 WebKit/gtk/webkit/webkitsecurityorigin.cpp \
388 WebKit/gtk/webkit/webkitwebsettings.cpp \
389 WebKit/gtk/webkit/webkitwebview.cpp \
390 WebKit/gtk/webkit/webkitwebwindowfeatures.cpp \
391 WebKit/gtk/webkit/webkitworkers.cpp
393 webkitgtk_cppflags += \
395 -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
396 -DDATA_DIR=\"${datadir}\" \
397 -I$(srcdir)/WebKit/gtk \
398 -I$(srcdir)/WebKit/gtk/WebCoreSupport \
399 -I$(srcdir)/WebKit/gtk/webkit \
400 -I$(top_builddir)/WebKit/gtk/webkit \
401 -I$(GENSOURCESWEBKITDOM)
403 webkitgtk_cleanfiles += \
404 $(top_builddir)/stamp-webkitmarshal.cpp \
405 $(top_builddir)/stamp-webkitmarshal.h \
406 $(top_builddir)/stamp-webkitenumtypes.cpp \
407 $(top_builddir)/stamp-webkitenumtypes.h \
408 $(top_builddir)/Programs/GtkLauncher \
409 $(top_builddir)/WebKit/gtk/docs/version.xml \
410 $(top_builddir)/WebKit/gtk/docs/GNUmakefile \
411 $(top_builddir)/WebKit/gtk/webkit-1.0.pc \
412 $(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h \
413 $(top_builddir)/WebKit/gtk/webkit/webkitversion.h
415 pkgconfigdir = $(libdir)/pkgconfig
416 pkgconfig_DATA = WebKit/gtk/webkit-1.0.pc
418 if ENABLE_INTROSPECTION
419 JSCORE_GIRSOURCES += JSCore-1.0.gir
420 WEBKIT_GIRSOURCES += WebKit-1.0.gir
422 # JSCore-1.0.gir is handwritten - this is a hack to make the typelib
423 # generation work during make dist
424 JSCore-1.0.gir: $(srcdir)/WebKit/gtk/JSCore-1.0.gir
425 cp $(srcdir)/WebKit/gtk/JSCore-1.0.gir $(builddir)/
427 $(WEBKIT_GIRSOURCES): $(JSCORE_GIRSOURCES) $(G_IR_SCANNER) libwebkit-1.0.la
428 $(AM_V_GEN)$(G_IR_SCANNER) -v --namespace WebKit --nsversion=1.0 \
429 --include=GObject-2.0 \
431 --include=JSCore-1.0 \
433 --library=webkit-1.0 \
434 --libtool="$(LIBTOOL)" \
439 --add-include-path $(top_srcdir)/WebKit/gtk \
440 -I$(top_srcdir)/WebKit/gtk \
441 -I$(top_builddir)/WebKit/gtk \
442 -I$(top_srcdir)/JavaScriptCore/ForwardingHeaders \
447 gir_DATA = $(WEBKIT_GIRSOURCES) $(JSCORE_GIRSOURCES)
449 typelibsdir += $(GIRTYPELIBDIR)
450 typelibs_DATA += $(JSCORE_GIRSOURCES:.gir=.typelib) $(WEBKIT_GIRSOURCES:.gir=.typelib)
452 %.typelib: %.gir $(G_IR_COMPILER)
453 $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(top_srcdir)/WebKit/gtk $< -o $@
455 CLEANFILES += $(JSCORE_GIRSOURCES) $(WEBKIT_GIRSOURCES) $(typelibs_DATA)
459 EXTRA_DIST += WebKit/gtk/JSCore-1.0.gir
461 WEBKIT_MARSHAL = $(GENSOURCES)/webkitmarshal
462 WEBKIT_MARSHAL_LIST = $(top_srcdir)/WebKit/gtk/webkitmarshal.list
464 $(WEBKIT_MARSHAL).cpp: stamp-webkitmarshal.cpp
467 $(WEBKIT_MARSHAL).h: stamp-webkitmarshal.h
470 stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST)
471 $(AM_V_GEN) echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
472 $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
473 echo timestamp > $(@F)
475 stamp-webkitmarshal.h: $(WEBKIT_MARSHAL_LIST)
476 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
477 echo timestamp > $(@F)
479 WebKit/gtk/webkit/webkitenumtypes.h: stamp-webkitenumtypes.h
481 stamp-webkitenumtypes.h: $(webkitgtk_h_api) GNUmakefile
482 $(AM_V_GEN)glib-mkenums \
483 --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
484 --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
485 --fhead "#include <glib-object.h>\n\n" \
486 --fhead "#include <webkit/webkitdefines.h>\n\n" \
487 --fhead "G_BEGIN_DECLS\n\n" \
488 --ftail "G_END_DECLS\n\n" \
490 --fprod "#include <webkit/@basename@>\n\n" \
491 --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
492 --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
493 $(webkitgtk_h_api) | \
494 sed 's,web_kit,webkit,' | \
495 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
497 && (cmp -s xgen-gth WebKit/gtk/webkit/webkitenumtypes.h || cp xgen-gth WebKit/gtk/webkit/webkitenumtypes.h) \
499 && echo timestamp > $(@F)
501 DerivedSources/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile
502 $(AM_V_GEN)glib-mkenums \
503 --fhead "#include <config.h>\n" \
504 --fhead "#include <glib-object.h>\n" \
505 --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h\"\n\n" \
506 --fhead "extern \"C\" {\n\n" \
507 --fprod "\n/* enumerations from \"@filename@\" */" \
508 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
509 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
510 --vtail " { 0, NULL, NULL }\n};\n\n" \
511 --vtail "GType @enum_name@_get_type(void)\n{\n" \
512 --vtail " static GType type = 0;\n\n" \
513 --vtail " if (!type)\n" \
514 --vtail " type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
515 --vtail " return type;\n}\n\n" \
517 $(webkitgtk_h_api) | \
518 sed 's,web_kit,webkit,' \
523 WebKit/gtk/webkit/webkitdomenumtypes.h: stamp-webkitdomenumtypes.h
525 stamp-webkitdomenumtypes.h: $(libgdom_h_api) GNUmakefile
526 $(AM_V_GEN)glib-mkenums \
527 --fhead "#ifndef WEBKIT_DOM_ENUM_TYPES_H\n" \
528 --fhead "#define WEBKIT_DOM_ENUM_TYPES_H\n\n" \
529 --fhead "#include <glib-object.h>\n\n" \
530 --fhead "G_BEGIN_DECLS\n\n" \
531 --ftail "G_END_DECLS\n\n" \
533 --fprod "#include <webkit/@basename@>\n\n" \
534 --eprod "#define WEBKIT_DOM_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
535 --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);n\n" \
537 sed 's,web_kit,webkit_dom,' | \
538 sed 's,WEBKIT_DOM_TYPE_KIT,WEBKIT_DOM_TYPE,' \
540 && (cmp -s xgen-cgth WebKit/gtk/webkit/webkitdomenumtypes.h || cp xgen-cgth WebKit/gtk/webkit/webkitdomenumtypes.h) \
542 && echo timestamp > $(@F)
544 DerivedSources/webkitdomenumtypes.cpp: $(top_builddir)/WebKit/gtk/webkit/webkitdomenumtypes.h $(libgdom_h_api) GNUmakefile
545 $(AM_V_GEN)glib-mkenums \
546 --fhead "#include <config.h>\n" \
547 --fhead "#include <glib-object.h>\n" \
548 --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitdomenumtypes.h\"\n\n" \
549 --fhead "extern \"C\" {\n\n" \
550 --fprod "\n/* enumerations from \"@filename@\" */" \
551 --vhead "static const G@Type@Value _@enum_name@_values] = {" \
552 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
553 --vtail " { 0, NULL, NULL }\n};\n\n" \
554 --vtail "GType @enum_name@_get_type(void)\n{\n" \
555 --vtail " static GType type = 0;\n\n" \
556 --vtail " if (!type)\n" \
557 --vtail " type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
558 --vtail " return type;\n}\n\n" \
561 sed 's,web_kit,webkitdom,' \
566 # Files that will be distributed
568 $(srcdir)/gtk-doc.make \
570 $(javascriptcore_dist) \
572 $(srcdir)/autotools/symbols.filter \
573 $(srcdir)/WebKit/gtk/ChangeLog \
574 $(srcdir)/WebKit/gtk/NEWS \
575 $(srcdir)/WebKit/gtk/webkitmarshal.list \
576 $(srcdir)/WebKit/gtk/docs/GNUmakefile.* \
577 $(srcdir)/WebKit/gtk/docs/webkitenvironment.xml \
578 $(srcdir)/WebKit/gtk/docs/webkitgtk-docs.sgml \
579 $(srcdir)/WebKit/gtk/docs/webkitgtk-sections.txt \
580 $(srcdir)/WebKit/gtk/docs/version.xml.in \
581 $(srcdir)/WebKit/gtk/po/* \
582 $(srcdir)/WebKit/gtk/resources/* \
583 $(srcdir)/WebKit/gtk/tests/resources/* \
584 $(srcdir)/WebKit/gtk/tests/test_utils.h
586 # extra resource files
587 resourcesdir = ${datadir}/webkit-1.0/resources
588 dist_resources_DATA = \
589 $(shell ls $(srcdir)/WebKit/gtk/resources/*.html)
593 # Include module makefiles
594 include JavaScriptCore/GNUmakefile.am
595 include WebCore/GNUmakefile.am
596 include WebKitTools/GNUmakefile.am
597 include WebKit/gtk/po/GNUmakefile.am
600 noinst_PROGRAMS += $(TEST_PROGS)
602 webkit_tests_cflags = \
603 -fno-strict-aliasing \
604 -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
605 -I$(srcdir)/WebKit/gtk \
606 -I$(top_builddir)/WebKit/gtk \
607 -I$(top_builddir)/DerivedSources \
608 -I$(top_srcdir)/WebCore/bindings \
609 -I$(top_srcdir)/WebCore/bindings/gobject \
615 webkit_tests_ldadd = \
621 webkit_tests_ldflags = \
626 Programs/unittests/testdomdocument \
627 Programs/unittests/testhttpbackend \
628 Programs/unittests/testloading \
629 Programs/unittests/testglobals \
630 Programs/unittests/testmimehandling \
631 Programs/unittests/testnetworkrequest \
632 Programs/unittests/testnetworkresponse \
633 Programs/unittests/testwebframe \
634 Programs/unittests/testwebbackforwardlist \
635 Programs/unittests/testwebhistoryitem \
636 Programs/unittests/testwindow \
637 Programs/unittests/testdownload \
638 Programs/unittests/testatk \
639 Programs/unittests/testatkroles \
640 Programs/unittests/testhittestresult \
641 Programs/unittests/testwebsettings \
642 Programs/unittests/testwebresource \
643 Programs/unittests/testwebdatasource \
644 Programs/unittests/testwebview \
645 Programs/unittests/testkeyevents
647 # Add additional tests here
648 Programs_unittests_testdomdocument_SOURCES = WebKit/gtk/tests/testdomdocument.c
649 Programs_unittests_testdomdocument_CFLAGS = $(webkit_tests_cflags)
650 Programs_unittests_testdomdocument_LDADD = $(webkit_tests_ldadd)
651 Programs_unittests_testdomdocument_LDFLAGS = $(webkit_tests_ldflags)
653 Programs_unittests_testhttpbackend_SOURCES = WebKit/gtk/tests/testhttpbackend.c
654 Programs_unittests_testhttpbackend_CFLAGS = $(webkit_tests_cflags)
655 Programs_unittests_testhttpbackend_LDADD = $(webkit_tests_ldadd)
656 Programs_unittests_testhttpbackend_LDFLAGS = $(webkit_tests_ldflags)
658 Programs_unittests_testglobals_SOURCES = WebKit/gtk/tests/testglobals.c
659 Programs_unittests_testglobals_CFLAGS = $(webkit_tests_cflags)
660 Programs_unittests_testglobals_LDADD = $(webkit_tests_ldadd)
661 Programs_unittests_testglobals_LDFLAGS = $(webkit_tests_ldflags)
663 Programs_unittests_testloading_SOURCES = WebKit/gtk/tests/testloading.c
664 Programs_unittests_testloading_CFLAGS = $(webkit_tests_cflags)
665 Programs_unittests_testloading_LDADD = $(webkit_tests_ldadd)
666 Programs_unittests_testloading_LDFLAGS = $(webkit_tests_ldflags)
668 Programs_unittests_testmimehandling_SOURCES = WebKit/gtk/tests/testmimehandling.c WebKit/gtk/tests/test_utils.c
669 Programs_unittests_testmimehandling_CFLAGS = $(webkit_tests_cflags)
670 Programs_unittests_testmimehandling_LDADD = $(webkit_tests_ldadd)
671 Programs_unittests_testmimehandling_LDFLAGS = $(webkit_tests_ldflags)
673 Programs_unittests_testnetworkrequest_SOURCES = WebKit/gtk/tests/testnetworkrequest.c
674 Programs_unittests_testnetworkrequest_CFLAGS = $(webkit_tests_cflags)
675 Programs_unittests_testnetworkrequest_LDADD = $(webkit_tests_ldadd)
676 Programs_unittests_testnetworkrequest_LDFLAGS = $(webkit_tests_ldflags)
678 Programs_unittests_testnetworkresponse_SOURCES = WebKit/gtk/tests/testnetworkresponse.c
679 Programs_unittests_testnetworkresponse_CFLAGS = $(webkit_tests_cflags)
680 Programs_unittests_testnetworkresponse_LDADD = $(webkit_tests_ldadd)
681 Programs_unittests_testnetworkresponse_LDFLAGS = $(webkit_tests_ldflags)
683 Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c
684 Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags)
685 Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd)
686 Programs_unittests_testwebframe_LDFLAGS = $(webkit_tests_ldflags)
688 Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c
689 Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags)
690 Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd)
691 Programs_unittests_testwebbackforwardlist_LDFLAGS = $(webkit_tests_ldflags)
693 Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c
694 Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags)
695 Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd)
696 Programs_unittests_testwebhistoryitem_LDFLAGS = $(webkit_tests_ldflags)
698 Programs_unittests_testwindow_SOURCES = WebKit/gtk/tests/testwindow.c
699 Programs_unittests_testwindow_CFLAGS = $(webkit_tests_cflags)
700 Programs_unittests_testwindow_LDADD = $(webkit_tests_ldadd)
701 Programs_unittests_testwindow_LDFLAGS = $(webkit_tests_ldflags)
703 Programs_unittests_testdownload_SOURCES = WebKit/gtk/tests/testdownload.c
704 Programs_unittests_testdownload_CFLAGS = $(webkit_tests_cflags)
705 Programs_unittests_testdownload_LDADD = $(webkit_tests_ldadd)
706 Programs_unittests_testdownload_LDFLAGS = $(webkit_tests_ldflags)
708 Programs_unittests_testatk_SOURCES = WebKit/gtk/tests/testatk.c
709 Programs_unittests_testatk_CFLAGS = $(webkit_tests_cflags)
710 Programs_unittests_testatk_LDADD = $(webkit_tests_ldadd)
711 Programs_unittests_testatk_LDFLAGS = $(webkit_tests_ldflags)
713 Programs_unittests_testatkroles_SOURCES = WebKit/gtk/tests/testatkroles.c
714 Programs_unittests_testatkroles_CFLAGS = $(webkit_tests_cflags)
715 Programs_unittests_testatkroles_LDADD = $(webkit_tests_ldadd)
716 Programs_unittests_testatkroles_LDFLAGS = $(webkit_tests_ldflags)
718 Programs_unittests_testwebsettings_SOURCES = WebKit/gtk/tests/testwebsettings.c
719 Programs_unittests_testwebsettings_CFLAGS = $(webkit_tests_cflags)
720 Programs_unittests_testwebsettings_LDADD = $(webkit_tests_ldadd)
721 Programs_unittests_testwebsettings_LDFLAGS = $(webkit_tests_ldflags)
723 Programs_unittests_testwebresource_SOURCES = WebKit/gtk/tests/testwebresource.c
724 Programs_unittests_testwebresource_CFLAGS = $(webkit_tests_cflags)
725 Programs_unittests_testwebresource_LDADD = $(webkit_tests_ldadd)
727 Programs_unittests_testwebdatasource_SOURCES = WebKit/gtk/tests/testwebdatasource.c
728 Programs_unittests_testwebdatasource_CFLAGS = $(webkit_tests_cflags)
729 Programs_unittests_testwebdatasource_LDADD = $(webkit_tests_ldadd)
731 Programs_unittests_testwebview_SOURCES = WebKit/gtk/tests/testwebview.c WebKit/gtk/tests/test_utils.c
732 Programs_unittests_testwebview_CFLAGS = $(webkit_tests_cflags)
733 Programs_unittests_testwebview_LDADD = $(webkit_tests_ldadd)
734 Programs_unittests_testwebview_LDFLAGS = $(webkit_tests_ldflags)
736 Programs_unittests_testhittestresult_SOURCES = WebKit/gtk/tests/testhittestresult.c
737 Programs_unittests_testhittestresult_CFLAGS = $(webkit_tests_cflags)
738 Programs_unittests_testhittestresult_LDADD = $(webkit_tests_ldadd)
740 Programs_unittests_testkeyevents_SOURCES = WebKit/gtk/tests/testkeyevents.c
741 Programs_unittests_testkeyevents_CFLAGS = $(webkit_tests_cflags)
742 Programs_unittests_testkeyevents_LDADD = $(webkit_tests_ldadd)
743 Programs_unittests_testkeyevents_LDFLAGS = $(webkit_tests_ldflags)
745 # Autogenerated sources
747 $(javascriptcore_built_sources) \
748 $(javascriptcore_built_nosources) \
749 $(webcore_built_sources) \
750 $(webcore_built_nosources) \
751 $(webkitgtk_built_sources) \
752 $(webkitgtk_built_nosources) \
753 $(gdom_built_nosources)
755 # Project-wide clean rules
756 # Files that will be cleaned
759 $(webkitgtk_cleanfiles)
763 $(builddir)/doltcompile \
764 $(builddir)/doltlibtool
766 MAINTAINERCLEANFILES += \
768 $(builddir)/doltcompile \
769 $(builddir)/doltlibtool \
770 $(srcdir)/aconfig.h.in \
771 $(srcdir)/autotools/config.* \
772 $(srcdir)/autotools/compile \
773 $(srcdir)/autotools/depcomp \
774 $(srcdir)/autotools/install-sh \
775 $(srcdir)/autotools/missing \
776 $(srcdir)/configure \
777 $(srcdir)/GNUmakefile.in \
780 $(top_builddir)/config.*
782 # Older automake versions (1.7) place Plo files in a different place so we need
783 # to create the output directory manually.
785 $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
787 # remove built sources and program directories
789 -rm -rf $(GENPROGRAMS)
791 maintainer-clean-local: distclean-local
794 -rm -rf $(GENSOURCES) $(GENPROGRAMS)
796 install-data-local: po-install-data-local
798 installdirs-data-local: po-installdirs-data-local
800 uninstall-local: po-uninstall-local
802 # Run all tests in cwd
803 # FIXME: we should run this under xvfb
805 $(GTESTER) --verbose $(TEST_PROGS);
807 # test-report: run tests in cwd and generate report
808 # full-report: run tests in cwd with -m perf and -m slow and generate report
809 # perf-report: run tests in cwd with -m perf and generate report
810 test-report full-report perf-report: $(TEST_PROGS)
812 test-report) test_options="-k";; \
813 full-report) test_options="-k -m=perf";; \
814 perf-report) test_options="-k -m=perf -m=slow";; \
816 $(GTESTER) --verbose $$test_options -o test-report.xml $(TEST_PROGS); \
817 $(GTESTER_REPORT) test-report.xml > test-report.html ;
819 .PHONY: test test-report perf-report full-report