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 \
97 $(SYMBOL_VISIBILITY_INLINES) \
100 # -no-undefined required for building DLLs on Windows
101 # It breaks the build on other platforms, so we use it conditionally
103 no_undefined = -no-undefined
104 version_script = -export-symbols-regex "^(webkit_|JS).*"
108 version_script = -Wl,--version-script,$(srcdir)/autotools/symbols.filter
113 libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
115 # Convenience libraries
116 noinst_LTLIBRARIES += \
119 nodist_EXTRA_libJavaScriptCore_la_SOURCES = \
120 $(javascriptcore_built_nosources)
122 nodist_libJavaScriptCore_la_SOURCES = \
123 $(javascriptcore_built_sources)
125 libJavaScriptCore_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/JavaScriptCore
126 libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
128 libJavaScriptCore_la_SOURCES = \
129 $(javascriptcore_sources)
131 libJavaScriptCore_la_LIBADD = \
136 libJavaScriptCore_la_CXXFLAGS = \
138 $(libJavaScriptCore_la_CFLAGS)
140 libJavaScriptCore_la_CFLAGS = \
147 libJavaScriptCore_la_CPPFLAGS = \
149 $(javascriptcore_cppflags)
152 nodist_EXTRA_libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
153 $(webcore_built_nosources)
155 nodist_libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
156 $(webcore_built_sources) \
157 $(webkitgtk_built_sources)
159 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/webkit
160 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = \
161 $(webkitgtk_static_h_api)
163 nodist_libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = \
164 $(webkitgtk_built_h_api) \
165 WebKit/gtk/webkit/webkitenumtypes.h
167 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
169 $(webcoregtk_sources) \
172 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \
175 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
178 # When building WebCore/WebKit, we want WebCore/config.h and NOT JavaScriptCore/config.h,
179 # hence, it's important that WebCore/ should come first before JavaScriptCore in the
181 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
183 -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
184 -DDATA_DIR=\"${datadir}\" \
185 -I$(top_builddir)/DerivedSources/webkit \
186 -I$(srcdir)/WebCore/bindings \
187 -I$(srcdir)/WebCore/bindings/gobject \
188 -I$(srcdir)/WebKit/gtk \
189 -I$(srcdir)/WebKit/gtk/WebCoreSupport \
190 -I$(srcdir)/WebKit/gtk/webkit \
191 -I$(top_builddir)/WebKit/gtk \
192 -I$(top_builddir)/WebKit/gtk/webkit \
193 -I$(GENSOURCES_WEBKIT) \
195 $(webcore_cppflags) \
196 $(webcoregtk_cppflags) \
197 $(javascriptcore_cppflags) \
198 -fno-strict-aliasing \
205 $(GSTREAMER_CFLAGS) \
215 # For the Gtk port we want to use XP_UNIX both in X11 and Mac
217 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS += \
221 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
222 -version-info @LIBWEBKITGTK_VERSION@ \
226 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD = \
228 libJavaScriptCore.la \
231 $(COVERAGE_LDFLAGS) \
251 # Extra checks and flags
253 -DBUILDING_CAIRO__=1 \
259 -DWTF_USE_ICU_UNICODE=1
264 -DWTF_USE_GLIB_UNICODE=1
267 if !ENABLE_FAST_MALLOC
273 # GTK+ 2.x/3.x support
277 -DGTK_API_VERSION_2=1
281 global_cppflags += -DNDEBUG
282 global_cflags += $(SYMBOL_VISIBILITY)
285 -DG_DISABLE_DEPRECATED \
286 -DGDK_PIXBUF_DISABLE_DEPRECATED \
287 -DGDK_DISABLE_DEPRECATED \
288 -DGTK_DISABLE_DEPRECATED \
289 -DPANGO_DISABLE_DEPRECATED
290 # Might be useful in the future
291 # -DGDK_MULTIHEAD_SAFE \
292 # -DGTK_MULTIHEAD_SAFE
297 -DGCC_GENERATE_TEST_COVERAGE_FILES \
298 -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
301 webkitgtk_static_h_api += \
302 $(srcdir)/WebKit/gtk/webkit/webkit.h \
303 $(srcdir)/WebKit/gtk/webkit/webkitdefines.h \
304 $(srcdir)/WebKit/gtk/webkit/webkitdownload.h \
305 $(srcdir)/WebKit/gtk/webkit/webkiterror.h \
306 $(srcdir)/WebKit/gtk/webkit/webkithittestresult.h \
307 $(srcdir)/WebKit/gtk/webkit/webkitnetworkrequest.h \
308 $(srcdir)/WebKit/gtk/webkit/webkitnetworkresponse.h \
309 $(srcdir)/WebKit/gtk/webkit/webkitsoupauthdialog.h \
310 $(srcdir)/WebKit/gtk/webkit/webkitwebbackforwardlist.h \
311 $(srcdir)/WebKit/gtk/webkit/webkitwebdatasource.h \
312 $(srcdir)/WebKit/gtk/webkit/webkitwebframe.h \
313 $(srcdir)/WebKit/gtk/webkit/webkitwebhistoryitem.h \
314 $(srcdir)/WebKit/gtk/webkit/webkitwebinspector.h \
315 $(srcdir)/WebKit/gtk/webkit/webkitwebnavigationaction.h \
316 $(srcdir)/WebKit/gtk/webkit/webkitwebpolicydecision.h \
317 $(srcdir)/WebKit/gtk/webkit/webkitgeolocationpolicydecision.h \
318 $(srcdir)/WebKit/gtk/webkit/webkitwebresource.h \
319 $(srcdir)/WebKit/gtk/webkit/webkitwebsettings.h \
320 $(srcdir)/WebKit/gtk/webkit/webkitwebwindowfeatures.h \
321 $(srcdir)/WebKit/gtk/webkit/webkitwebview.h \
322 $(srcdir)/WebKit/gtk/webkit/webkitwebdatabase.h \
323 $(srcdir)/WebKit/gtk/webkit/webkitsecurityorigin.h
325 webkitgtk_built_h_api += \
326 WebKit/gtk/webkit/webkitversion.h
329 $(webkitgtk_built_h_api) \
330 $(webkitgtk_static_h_api)
332 # webkitenumtypes.{h,cpp} cannot be in webkitgtk_built_h_api, because
333 # the rule that builds it depends on webkitgtk_built_h_api (circular dependency).
334 webkitgtk_built_sources += \
335 $(webkitgtk_built_h_api) \
336 $(webkitgtk_gdom_built_sources) \
337 DerivedSources/webkit/webkitmarshal.cpp \
338 DerivedSources/webkit/webkitmarshal.h \
339 WebKit/gtk/webkit/webkitenumtypes.cpp \
340 WebKit/gtk/webkit/webkitenumtypes.h
342 webkitgtk_sources += \
343 WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
344 WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
345 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
346 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
347 WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.cpp \
348 WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.h \
349 WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
350 WebKit/gtk/WebCoreSupport/DragClientGtk.h \
351 WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
352 WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
353 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
354 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
355 WebKit/gtk/WebCoreSupport/FrameNetworkingContextGtk.h \
356 WebKit/gtk/WebCoreSupport/FullscreenVideoController.cpp \
357 WebKit/gtk/WebCoreSupport/FullscreenVideoController.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 pkgconfigdir = $(libdir)/pkgconfig
389 pkgconfig_DATA = WebKit/gtk/@WEBKITGTK_PC_NAME@-@WEBKITGTK_API_VERSION@.pc
391 if ENABLE_INTROSPECTION
393 JSCore-@WEBKITGTK_API_VERSION@.gir: $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir
394 $(AM_V_GEN)cp $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir $(builddir)/
396 JSCORE_GIRSOURCES += JSCore-@WEBKITGTK_API_VERSION@.gir
397 WEBKIT_GIRSOURCES += WebKit-@WEBKITGTK_API_VERSION@.gir
399 $(WEBKIT_GIRSOURCES): $(G_IR_SCANNER) $(JSCORE_GIRSOURCES) libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
400 $(AM_V_GEN)$(G_IR_SCANNER) -v --warn-all \
401 --symbol-prefix=webkit \
402 --identifier-prefix=WebKit \
404 --nsversion=@WEBKITGTK_API_VERSION@ \
405 --include=GObject-2.0 \
406 --include=Gtk-@GTK_API_VERSION@ \
407 --include=JSCore-@WEBKITGTK_API_VERSION@ \
409 --library=webkitgtk-@WEBKITGTK_API_VERSION@ \
410 --libtool="$(LIBTOOL)" \
412 --pkg=gtk+-@GTK_API_VERSION@ \
415 --add-include-path=$(top_srcdir)/WebKit/gtk \
416 --add-include-path=$(builddir) \
417 -I$(top_srcdir)/WebKit/gtk \
418 -I$(top_builddir)/WebKit/gtk \
419 -I$(top_builddir)/DerivedSources \
420 -I$(top_builddir)/DerivedSources/webkit \
421 -I$(top_srcdir)/JavaScriptCore/ForwardingHeaders \
424 $(top_srcdir)/WebKit/gtk/webkit/*.cpp
426 girdir = $(datadir)/gir-1.0
427 gir_DATA = $(WEBKIT_GIRSOURCES) $(JSCORE_GIRSOURCES)
429 typelibsdir += $(libdir)/girepository-1.0
430 typelibs_DATA += $(JSCORE_GIRSOURCES:.gir=.typelib) $(WEBKIT_GIRSOURCES:.gir=.typelib)
432 %.typelib: %.gir $(G_IR_COMPILER)
433 $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(top_srcdir)/WebKit/gtk --includedir $(builddir) $< -o $@
435 CLEANFILES += $(JSCORE_GIRSOURCES) $(WEBKIT_GIRSOURCES) $(typelibs_DATA)
439 EXTRA_DIST += $(builddir)/WebKit/gtk/JSCore-@WEBKITGTK_API_VERSION@.gir
441 WEBKIT_MARSHAL = $(GENSOURCES_WEBKIT)/webkitmarshal
442 WEBKIT_MARSHAL_LIST = $(top_srcdir)/WebKit/gtk/webkitmarshal.list
443 $(WEBKIT_MARSHAL).cpp: stamp-webkitmarshal.cpp
446 $(WEBKIT_MARSHAL).h: stamp-webkitmarshal.h
449 stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST)
450 $(AM_V_GEN) echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
451 $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
452 echo timestamp > $(@F)
454 stamp-webkitmarshal.h: $(WEBKIT_MARSHAL_LIST)
455 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
456 echo timestamp > $(@F)
458 WebKit/gtk/webkit/webkitenumtypes.h: stamp-webkitenumtypes.h
460 stamp-webkitenumtypes.h: $(webkitgtk_h_api) GNUmakefile
461 $(AM_V_GEN)glib-mkenums \
462 --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
463 --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
464 --fhead "#include <glib-object.h>\n\n" \
465 --fhead "#include <webkit/webkitdefines.h>\n\n" \
466 --fhead "G_BEGIN_DECLS\n\n" \
467 --ftail "G_END_DECLS\n\n" \
469 --fprod "#include <webkit/@basename@>\n\n" \
470 --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
471 --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
472 $(webkitgtk_h_api) | \
473 sed 's,web_kit,webkit,' | \
474 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
476 && (cmp -s xgen-gth WebKit/gtk/webkit/webkitenumtypes.h || cp xgen-gth WebKit/gtk/webkit/webkitenumtypes.h) \
478 && echo timestamp > $(@F)
480 WebKit/gtk/webkit/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile
481 $(AM_V_GEN)glib-mkenums \
482 --fhead "#include <config.h>\n" \
483 --fhead "#include <glib-object.h>\n" \
484 --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h\"\n\n" \
485 --fhead "extern \"C\" {\n\n" \
486 --fprod "\n/* enumerations from \"@filename@\" */" \
487 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
488 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
489 --vtail " { 0, NULL, NULL }\n};\n\n" \
490 --vtail "GType @enum_name@_get_type(void)\n{\n" \
491 --vtail " static GType type = 0;\n\n" \
492 --vtail " if (!type)\n" \
493 --vtail " type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
494 --vtail " return type;\n}\n\n" \
496 $(webkitgtk_h_api) | \
497 sed 's,web_kit,webkit,' \
504 gsettings_SCHEMAS = $(top_builddir)/WebKit/gtk/org.webkitgtk-@WEBKITGTK_API_VERSION@.gschema.xml
509 # Files that will be distributed
511 $(srcdir)/gtk-doc.make \
513 $(srcdir)/autotools/symbols.filter \
514 $(srcdir)/WebKit/gtk/ChangeLog \
515 $(srcdir)/WebKit/gtk/NEWS \
516 $(srcdir)/WebKit/gtk/webkitmarshal.list \
517 $(srcdir)/WebKit/gtk/docs/GNUmakefile.* \
518 $(srcdir)/WebKit/gtk/docs/webkitenvironment.xml \
519 $(srcdir)/WebKit/gtk/docs/webkitgtk-docs.sgml \
520 $(srcdir)/WebKit/gtk/docs/webkitgtk-sections.txt \
521 $(srcdir)/WebKit/gtk/docs/version.xml.in \
522 $(srcdir)/WebKit/gtk/po/* \
523 $(srcdir)/WebKit/gtk/resources/* \
524 $(srcdir)/WebKit/gtk/tests/resources/* \
525 $(srcdir)/WebKit/gtk/tests/test_utils.h \
526 $(srcdir)/WebKit/gtk/org.webkitgtk.gschema.xml.in
528 # extra resource files
529 resourcesdir = ${datadir}/webkit-@WEBKITGTK_API_VERSION@/resources
530 dist_resources_DATA = \
531 $(shell ls $(srcdir)/WebKit/gtk/resources/*.html)
535 # Include module makefiles
536 include JavaScriptCore/GNUmakefile.am
537 include WebCore/GNUmakefile.am
538 include WebCore/bindings/gobject/GNUmakefile.am
539 include WebKitTools/GNUmakefile.am
540 include WebKit/gtk/po/GNUmakefile.am
543 noinst_PROGRAMS += $(TEST_PROGS)
545 webkit_tests_cflags = \
546 -fno-strict-aliasing \
547 -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
548 -I$(srcdir)/WebKit/gtk \
549 -I$(top_builddir)/WebKit/gtk \
550 -I$(top_builddir)/DerivedSources \
551 -I$(top_srcdir)/WebCore/bindings \
552 -I$(top_srcdir)/WebCore/bindings/gobject \
559 webkit_tests_ldadd = \
560 libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
565 webkit_tests_ldflags = \
570 Programs/unittests/testdomdocument \
571 Programs/unittests/testdomdomwindow \
572 Programs/unittests/testdomnode \
573 Programs/unittests/testhttpbackend \
574 Programs/unittests/testloading \
575 Programs/unittests/testglobals \
576 Programs/unittests/testmimehandling \
577 Programs/unittests/testnetworkrequest \
578 Programs/unittests/testnetworkresponse \
579 Programs/unittests/testwebframe \
580 Programs/unittests/testwebbackforwardlist \
581 Programs/unittests/testwebhistoryitem \
582 Programs/unittests/testwindow \
583 Programs/unittests/testdownload \
584 Programs/unittests/testatk \
585 Programs/unittests/testatkroles \
586 Programs/unittests/testhittestresult \
587 Programs/unittests/testwebsettings \
588 Programs/unittests/testwebresource \
589 Programs/unittests/testwebdatasource \
590 Programs/unittests/testwebview \
591 Programs/unittests/testkeyevents \
592 Programs/unittests/testcopyandpaste
594 # Add additional tests here
595 Programs_unittests_testdomdocument_SOURCES = WebKit/gtk/tests/testdomdocument.c
596 Programs_unittests_testdomdocument_CFLAGS = $(webkit_tests_cflags)
597 Programs_unittests_testdomdocument_LDADD = $(webkit_tests_ldadd)
598 Programs_unittests_testdomdocument_LDFLAGS = $(webkit_tests_ldflags)
600 Programs_unittests_testdomdomwindow_SOURCES = WebKit/gtk/tests/testdomdomwindow.c
601 Programs_unittests_testdomdomwindow_CFLAGS = $(webkit_tests_cflags)
602 Programs_unittests_testdomdomwindow_LDADD = $(webkit_tests_ldadd)
603 Programs_unittests_testdomdomwindow_LDFLAGS = $(webkit_tests_ldflags)
605 Programs_unittests_testdomnode_SOURCES = WebKit/gtk/tests/testdomnode.c
606 Programs_unittests_testdomnode_CFLAGS = $(webkit_tests_cflags)
607 Programs_unittests_testdomnode_LDADD = $(webkit_tests_ldadd)
608 Programs_unittests_testdomnode_LDFLAGS = $(webkit_tests_ldflags)
610 Programs_unittests_testhttpbackend_SOURCES = WebKit/gtk/tests/testhttpbackend.c
611 Programs_unittests_testhttpbackend_CFLAGS = $(webkit_tests_cflags)
612 Programs_unittests_testhttpbackend_LDADD = $(webkit_tests_ldadd)
613 Programs_unittests_testhttpbackend_LDFLAGS = $(webkit_tests_ldflags)
615 Programs_unittests_testglobals_SOURCES = WebKit/gtk/tests/testglobals.c
616 Programs_unittests_testglobals_CFLAGS = $(webkit_tests_cflags)
617 Programs_unittests_testglobals_LDADD = $(webkit_tests_ldadd)
618 Programs_unittests_testglobals_LDFLAGS = $(webkit_tests_ldflags)
620 Programs_unittests_testloading_SOURCES = WebKit/gtk/tests/testloading.c
621 Programs_unittests_testloading_CFLAGS = $(webkit_tests_cflags)
622 Programs_unittests_testloading_LDADD = $(webkit_tests_ldadd)
623 Programs_unittests_testloading_LDFLAGS = $(webkit_tests_ldflags)
625 Programs_unittests_testmimehandling_SOURCES = WebKit/gtk/tests/testmimehandling.c WebKit/gtk/tests/test_utils.c
626 Programs_unittests_testmimehandling_CFLAGS = $(webkit_tests_cflags)
627 Programs_unittests_testmimehandling_LDADD = $(webkit_tests_ldadd)
628 Programs_unittests_testmimehandling_LDFLAGS = $(webkit_tests_ldflags)
630 Programs_unittests_testnetworkrequest_SOURCES = WebKit/gtk/tests/testnetworkrequest.c
631 Programs_unittests_testnetworkrequest_CFLAGS = $(webkit_tests_cflags)
632 Programs_unittests_testnetworkrequest_LDADD = $(webkit_tests_ldadd)
633 Programs_unittests_testnetworkrequest_LDFLAGS = $(webkit_tests_ldflags)
635 Programs_unittests_testnetworkresponse_SOURCES = WebKit/gtk/tests/testnetworkresponse.c
636 Programs_unittests_testnetworkresponse_CFLAGS = $(webkit_tests_cflags)
637 Programs_unittests_testnetworkresponse_LDADD = $(webkit_tests_ldadd)
638 Programs_unittests_testnetworkresponse_LDFLAGS = $(webkit_tests_ldflags)
640 Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c
641 Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags)
642 Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd)
643 Programs_unittests_testwebframe_LDFLAGS = $(webkit_tests_ldflags)
645 Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c
646 Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags)
647 Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd)
648 Programs_unittests_testwebbackforwardlist_LDFLAGS = $(webkit_tests_ldflags)
650 Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c
651 Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags)
652 Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd)
653 Programs_unittests_testwebhistoryitem_LDFLAGS = $(webkit_tests_ldflags)
655 Programs_unittests_testwindow_SOURCES = WebKit/gtk/tests/testwindow.c
656 Programs_unittests_testwindow_CFLAGS = $(webkit_tests_cflags)
657 Programs_unittests_testwindow_LDADD = $(webkit_tests_ldadd)
658 Programs_unittests_testwindow_LDFLAGS = $(webkit_tests_ldflags)
660 Programs_unittests_testdownload_SOURCES = WebKit/gtk/tests/testdownload.c
661 Programs_unittests_testdownload_CFLAGS = $(webkit_tests_cflags)
662 Programs_unittests_testdownload_LDADD = $(webkit_tests_ldadd)
663 Programs_unittests_testdownload_LDFLAGS = $(webkit_tests_ldflags)
665 Programs_unittests_testatk_SOURCES = WebKit/gtk/tests/testatk.c
666 Programs_unittests_testatk_CFLAGS = $(webkit_tests_cflags)
667 Programs_unittests_testatk_LDADD = $(webkit_tests_ldadd)
668 Programs_unittests_testatk_LDFLAGS = $(webkit_tests_ldflags)
670 Programs_unittests_testatkroles_SOURCES = WebKit/gtk/tests/testatkroles.c
671 Programs_unittests_testatkroles_CFLAGS = $(webkit_tests_cflags)
672 Programs_unittests_testatkroles_LDADD = $(webkit_tests_ldadd)
673 Programs_unittests_testatkroles_LDFLAGS = $(webkit_tests_ldflags)
675 Programs_unittests_testwebsettings_SOURCES = WebKit/gtk/tests/testwebsettings.c
676 Programs_unittests_testwebsettings_CFLAGS = $(webkit_tests_cflags)
677 Programs_unittests_testwebsettings_LDADD = $(webkit_tests_ldadd)
678 Programs_unittests_testwebsettings_LDFLAGS = $(webkit_tests_ldflags)
680 Programs_unittests_testwebresource_SOURCES = WebKit/gtk/tests/testwebresource.c
681 Programs_unittests_testwebresource_CFLAGS = $(webkit_tests_cflags)
682 Programs_unittests_testwebresource_LDADD = $(webkit_tests_ldadd)
684 Programs_unittests_testwebdatasource_SOURCES = WebKit/gtk/tests/testwebdatasource.c
685 Programs_unittests_testwebdatasource_CFLAGS = $(webkit_tests_cflags)
686 Programs_unittests_testwebdatasource_LDADD = $(webkit_tests_ldadd)
688 Programs_unittests_testwebview_SOURCES = WebKit/gtk/tests/testwebview.c WebKit/gtk/tests/test_utils.c
689 Programs_unittests_testwebview_CFLAGS = $(webkit_tests_cflags)
690 Programs_unittests_testwebview_LDADD = $(webkit_tests_ldadd)
691 Programs_unittests_testwebview_LDFLAGS = $(webkit_tests_ldflags)
693 Programs_unittests_testhittestresult_SOURCES = WebKit/gtk/tests/testhittestresult.c
694 Programs_unittests_testhittestresult_CFLAGS = $(webkit_tests_cflags)
695 Programs_unittests_testhittestresult_LDADD = $(webkit_tests_ldadd)
697 Programs_unittests_testkeyevents_SOURCES = WebKit/gtk/tests/testkeyevents.c
698 Programs_unittests_testkeyevents_CFLAGS = $(webkit_tests_cflags)
699 Programs_unittests_testkeyevents_LDADD = $(webkit_tests_ldadd)
700 Programs_unittests_testkeyevents_LDFLAGS = $(webkit_tests_ldflags)
702 Programs_unittests_testcopyandpaste_SOURCES = WebKit/gtk/tests/testcopyandpaste.c \
703 WebCore/platform/gtk/GtkVersioning.c
704 Programs_unittests_testcopyandpaste_CFLAGS = $(webkit_tests_cflags) \
705 -I$(srcdir)/WebCore/platform/gtk \
707 Programs_unittests_testcopyandpaste_LDADD = $(webkit_tests_ldadd)
708 Programs_unittests_testcopyandpaste_LDFLAGS = $(webkit_tests_ldflags)
710 # Autogenerated sources
712 $(javascriptcore_built_sources) \
713 $(javascriptcore_built_nosources) \
714 $(webcore_built_sources) \
715 $(webcore_built_nosources) \
716 $(webkitgtk_built_sources) \
717 $(webkitgtk_built_nosources)
719 # Project-wide clean rules
720 # Files that will be cleaned
723 $(top_builddir)/stamp-webkitmarshal.cpp \
724 $(top_builddir)/stamp-webkitmarshal.h \
725 $(top_builddir)/stamp-webkitenumtypes.cpp \
726 $(top_builddir)/stamp-webkitenumtypes.h \
727 $(top_builddir)/Programs/GtkLauncher
731 $(builddir)/doltcompile \
732 $(builddir)/doltlibtool \
733 $(top_builddir)/WebKit/gtk/docs/version.xml \
734 $(top_builddir)/WebKit/gtk/docs/GNUmakefile \
735 $(top_builddir)/WebKit/gtk/@WEBKITGTK_PC_NAME@-@WEBKITGTK_API_VERSION@.pc \
736 $(top_builddir)/WebKit/gtk/webkit/webkitversion.h \
737 $(top_builddir)/WebKit/gtk/org.webkitgtk-@WEBKITGTK_API_VERSION@.gschema.xml
739 MAINTAINERCLEANFILES += \
741 $(builddir)/doltcompile \
742 $(builddir)/doltlibtool \
743 $(srcdir)/aconfig.h.in \
744 $(srcdir)/autotools/config.* \
745 $(srcdir)/autotools/compile \
746 $(srcdir)/autotools/depcomp \
747 $(srcdir)/autotools/install-sh \
748 $(srcdir)/autotools/missing \
749 $(srcdir)/configure \
750 $(srcdir)/GNUmakefile.in \
753 $(top_builddir)/config.*
755 # Older automake versions (1.7) place Plo files in a different place so we need
756 # to create the output directory manually.
758 $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
760 # remove built sources and program directories
762 -rm -rf $(GENPROGRAMS)
764 maintainer-clean-local: distclean-local
767 -rm -rf $(GENSOURCES) $(GENPROGRAMS)
770 cp $(srcdir)/WebKit/gtk/NEWS $(distdir)
772 install-data-local: po-install-data-local
774 installdirs-data-local: po-installdirs-data-local
776 uninstall-local: po-uninstall-local
778 # Run all tests in cwd
779 # FIXME: we should run this under xvfb
781 $(GTESTER) --verbose $(TEST_PROGS);
783 # test-report: run tests in cwd and generate report
784 # full-report: run tests in cwd with -m perf and -m slow and generate report
785 # perf-report: run tests in cwd with -m perf and generate report
786 test-report full-report perf-report: $(TEST_PROGS)
788 test-report) test_options="-k";; \
789 full-report) test_options="-k -m=perf";; \
790 perf-report) test_options="-k -m=perf -m=slow";; \
792 $(GTESTER) --verbose $$test_options -o test-report.xml $(TEST_PROGS); \
793 $(GTESTER_REPORT) test-report.xml > test-report.html ;
795 .PHONY: test test-report perf-report full-report