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
145 version_script = -export-symbols-regex "^(webkit_|JS).*"
149 version_script = -Wl,--version-script,$(srcdir)/autotools/symbols.filter
156 # Convenience libraries
157 noinst_LTLIBRARIES += \
161 javascriptcore_cppflags += \
162 -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
163 -I$(srcdir)/JavaScriptCore/parser \
164 -I$(srcdir)/JavaScriptCore/wtf \
165 -I$(srcdir)/JavaScriptCore/wtf/gtk \
166 -I$(srcdir)/JavaScriptCore/wtf/gobject \
167 -I$(top_builddir)/DerivedSources
169 nodist_EXTRA_libJavaScriptCore_la_SOURCES = \
170 $(javascriptcore_built_nosources)
172 nodist_libJavaScriptCore_la_SOURCES = \
173 $(javascriptcore_built_sources)
175 libJavaScriptCore_ladir = $(prefix)/include/webkit-1.0/JavaScriptCore
176 libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
178 libJavaScriptCore_la_SOURCES = \
179 $(javascriptcore_sources)
181 libJavaScriptCore_la_LIBADD = \
186 libJavaScriptCore_la_CXXFLAGS = \
188 $(libJavaScriptCore_la_CFLAGS)
190 libJavaScriptCore_la_CFLAGS = \
197 libJavaScriptCore_la_CPPFLAGS = \
199 $(javascriptcore_cppflags)
202 nodist_EXTRA_libwebkit_1_0_la_SOURCES = \
203 $(webcore_built_nosources)
205 nodist_libwebkit_1_0_la_SOURCES = \
206 $(webcore_built_sources) \
207 $(webkitgtk_built_sources)
209 libwebkit_1_0_ladir = $(prefix)/include/webkit-1.0/webkit
210 libwebkit_1_0_la_HEADERS = \
212 WebKit/gtk/webkit/webkitenumtypes.h
214 libwebkit_1_0_la_SOURCES = \
216 $(webcoregtk_sources) \
219 libwebkit_1_0_la_CXXFLAGS = \
223 libwebkit_1_0_la_CFLAGS = \
227 libwebkit_1_0_la_CPPFLAGS = \
228 $(corekit_cppflags) \
229 $(webkitgtk_cppflags) \
232 libwebkit_1_0_la_LDFLAGS = \
233 -version-info @LIBWEBKITGTK_VERSION@ \
237 libwebkit_1_0_la_LIBADD = \
239 libJavaScriptCore.la \
243 $(COVERAGE_LDFLAGS) \
263 # Extra checks and flags
265 -DBUILDING_CAIRO__=1 \
271 -DWTF_USE_ICU_UNICODE=1
276 -DWTF_USE_GLIB_UNICODE=1
279 if !ENABLE_FAST_MALLOC
285 global_cppflags += -DNDEBUG
286 global_cflags += $(SYMBOL_VISIBILITY)
289 webcoregtk_cppflags += \
290 -DG_DISABLE_DEPRECATED \
291 -DGDK_PIXBUF_DISABLE_DEPRECATED \
292 -DGDK_DISABLE_DEPRECATED \
293 -DGTK_DISABLE_DEPRECATED \
294 -DPANGO_DISABLE_DEPRECATED
296 # Might be useful in the future
297 # -DGDK_MULTIHEAD_SAFE \
298 # -DGTK_MULTIHEAD_SAFE
303 -DGCC_GENERATE_TEST_COVERAGE_FILES \
304 -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
308 $(srcdir)/WebKit/gtk/webkit/webkit.h \
309 $(srcdir)/WebKit/gtk/webkit/webkitdefines.h \
310 $(srcdir)/WebKit/gtk/webkit/webkitdownload.h \
311 $(srcdir)/WebKit/gtk/webkit/webkiterror.h \
312 $(srcdir)/WebKit/gtk/webkit/webkithittestresult.h \
313 $(srcdir)/WebKit/gtk/webkit/webkitnetworkrequest.h \
314 $(srcdir)/WebKit/gtk/webkit/webkitnetworkresponse.h \
315 $(srcdir)/WebKit/gtk/webkit/webkitsoupauthdialog.h \
316 $(srcdir)/WebKit/gtk/webkit/webkitwebbackforwardlist.h \
317 $(srcdir)/WebKit/gtk/webkit/webkitwebdatasource.h \
318 $(srcdir)/WebKit/gtk/webkit/webkitwebframe.h \
319 $(srcdir)/WebKit/gtk/webkit/webkitwebhistoryitem.h \
320 $(srcdir)/WebKit/gtk/webkit/webkitwebinspector.h \
321 $(srcdir)/WebKit/gtk/webkit/webkitwebnavigationaction.h \
322 $(srcdir)/WebKit/gtk/webkit/webkitwebpolicydecision.h \
323 $(srcdir)/WebKit/gtk/webkit/webkitgeolocationpolicydecision.h \
324 $(srcdir)/WebKit/gtk/webkit/webkitwebresource.h \
325 $(srcdir)/WebKit/gtk/webkit/webkitwebsettings.h \
326 $(srcdir)/WebKit/gtk/webkit/webkitwebwindowfeatures.h \
327 $(srcdir)/WebKit/gtk/webkit/webkitwebview.h \
328 $(srcdir)/WebKit/gtk/webkit/webkitwebdatabase.h \
329 $(srcdir)/WebKit/gtk/webkit/webkitsecurityorigin.h \
330 $(top_builddir)/WebKit/gtk/webkit/webkitversion.h
332 webkitgtk_built_sources += \
333 DerivedSources/webkitenumtypes.cpp \
334 DerivedSources/webkitmarshal.cpp \
335 DerivedSources/webkitmarshal.h \
336 WebKit/gtk/webkit/webkitenumtypes.h
338 webkitgtk_sources += \
339 WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
340 WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
341 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
342 WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
343 WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.cpp \
344 WebKit/gtk/WebCoreSupport/DocumentLoaderGtk.h \
345 WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
346 WebKit/gtk/WebCoreSupport/DragClientGtk.h \
347 WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
348 WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
349 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
350 WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
351 WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \
352 WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
353 WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp \
354 WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h \
355 WebKit/gtk/webkit/webkitapplicationcache.cpp \
356 WebKit/gtk/webkit/webkitdownload.cpp \
357 WebKit/gtk/webkit/webkiterror.cpp \
358 WebKit/gtk/webkit/webkithittestresult.cpp \
359 WebKit/gtk/webkit/webkitnetworkrequest.cpp \
360 WebKit/gtk/webkit/webkitnetworkresponse.cpp \
361 WebKit/gtk/webkit/webkitprivate.cpp \
362 WebKit/gtk/webkit/webkitprivate.h \
363 WebKit/gtk/webkit/webkitsoupauthdialog.c \
364 WebKit/gtk/webkit/webkitversion.cpp \
365 WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \
366 WebKit/gtk/webkit/webkitwebdatasource.cpp \
367 WebKit/gtk/webkit/webkitwebframe.cpp \
368 WebKit/gtk/webkit/webkitwebhistoryitem.cpp \
369 WebKit/gtk/webkit/webkitwebinspector.cpp \
370 WebKit/gtk/webkit/webkitwebnavigationaction.cpp \
371 WebKit/gtk/webkit/webkitwebpolicydecision.cpp \
372 WebKit/gtk/webkit/webkitgeolocationpolicydecision.cpp \
373 WebKit/gtk/webkit/webkitwebresource.cpp \
374 WebKit/gtk/webkit/webkitwebdatabase.cpp \
375 WebKit/gtk/webkit/webkitsecurityorigin.cpp \
376 WebKit/gtk/webkit/webkitwebsettings.cpp \
377 WebKit/gtk/webkit/webkitwebview.cpp \
378 WebKit/gtk/webkit/webkitwebwindowfeatures.cpp \
379 WebKit/gtk/webkit/webkitworkers.cpp
381 webkitgtk_cppflags += \
383 -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
384 -DDATA_DIR=\"${datadir}\" \
385 -I$(srcdir)/WebKit/gtk \
386 -I$(srcdir)/WebKit/gtk/WebCoreSupport \
387 -I$(srcdir)/WebKit/gtk/webkit \
388 -I$(top_builddir)/WebKit/gtk/webkit
390 webkitgtk_cleanfiles += \
391 $(top_builddir)/stamp-webkitmarshal.cpp \
392 $(top_builddir)/stamp-webkitmarshal.h \
393 $(top_builddir)/stamp-webkitenumtypes.cpp \
394 $(top_builddir)/stamp-webkitenumtypes.h \
395 $(top_builddir)/Programs/GtkLauncher \
396 $(top_builddir)/WebKit/gtk/docs/version.xml \
397 $(top_builddir)/WebKit/gtk/docs/GNUmakefile \
398 $(top_builddir)/WebKit/gtk/webkit-1.0.pc \
399 $(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h \
400 $(top_builddir)/WebKit/gtk/webkit/webkitversion.h
402 pkgconfigdir = $(libdir)/pkgconfig
403 pkgconfig_DATA = WebKit/gtk/webkit-1.0.pc
405 if ENABLE_INTROSPECTION
406 JSCORE_GIRSOURCES += JSCore-1.0.gir
407 WEBKIT_GIRSOURCES += WebKit-1.0.gir
409 # JSCore-1.0.gir is handwritten - this is a hack to make the typelib
410 # generation work during make dist
411 JSCore-1.0.gir: $(srcdir)/WebKit/gtk/JSCore-1.0.gir
412 cp $(srcdir)/WebKit/gtk/JSCore-1.0.gir $(builddir)/
414 $(WEBKIT_GIRSOURCES): $(JSCORE_GIRSOURCES) $(G_IR_SCANNER) libwebkit-1.0.la
415 $(AM_V_GEN)$(G_IR_SCANNER) -v --namespace WebKit --nsversion=1.0 \
416 --include=GObject-2.0 \
418 --include=JSCore-1.0 \
420 --library=webkit-1.0 \
421 --libtool="$(LIBTOOL)" \
426 --add-include-path $(top_srcdir)/WebKit/gtk \
427 -I$(top_srcdir)/WebKit/gtk \
428 -I$(top_builddir)/WebKit/gtk \
429 -I$(top_srcdir)/JavaScriptCore/ForwardingHeaders \
434 gir_DATA = $(WEBKIT_GIRSOURCES) $(JSCORE_GIRSOURCES)
436 typelibsdir += $(GIRTYPELIBDIR)
437 typelibs_DATA += $(JSCORE_GIRSOURCES:.gir=.typelib) $(WEBKIT_GIRSOURCES:.gir=.typelib)
439 %.typelib: %.gir $(G_IR_COMPILER)
440 $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(top_srcdir)/WebKit/gtk $< -o $@
442 CLEANFILES += $(JSCORE_GIRSOURCES) $(WEBKIT_GIRSOURCES) $(typelibs_DATA)
446 EXTRA_DIST += WebKit/gtk/JSCore-1.0.gir
448 WEBKIT_MARSHAL = $(GENSOURCES)/webkitmarshal
449 WEBKIT_MARSHAL_LIST = $(top_srcdir)/WebKit/gtk/webkitmarshal.list
451 $(WEBKIT_MARSHAL).cpp: stamp-webkitmarshal.cpp
454 $(WEBKIT_MARSHAL).h: stamp-webkitmarshal.h
457 stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST)
458 $(AM_V_GEN) echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
459 $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
460 echo timestamp > $(@F)
462 stamp-webkitmarshal.h: $(WEBKIT_MARSHAL_LIST)
463 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
464 echo timestamp > $(@F)
466 WebKit/gtk/webkit/webkitenumtypes.h: stamp-webkitenumtypes.h
468 stamp-webkitenumtypes.h: $(webkitgtk_h_api) GNUmakefile
469 $(AM_V_GEN)glib-mkenums \
470 --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
471 --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
472 --fhead "#include <glib-object.h>\n\n" \
473 --fhead "#include <webkit/webkitdefines.h>\n\n" \
474 --fhead "G_BEGIN_DECLS\n\n" \
475 --ftail "G_END_DECLS\n\n" \
477 --fprod "#include <webkit/@basename@>\n\n" \
478 --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
479 --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
480 $(webkitgtk_h_api) | \
481 sed 's,web_kit,webkit,' | \
482 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
484 && (cmp -s xgen-gth WebKit/gtk/webkit/webkitenumtypes.h || cp xgen-gth WebKit/gtk/webkit/webkitenumtypes.h) \
486 && echo timestamp > $(@F)
488 DerivedSources/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile
489 $(AM_V_GEN)glib-mkenums \
490 --fhead "#include <config.h>\n" \
491 --fhead "#include <glib-object.h>\n" \
492 --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h\"\n\n" \
493 --fhead "extern \"C\" {\n\n" \
494 --fprod "\n/* enumerations from \"@filename@\" */" \
495 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
496 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
497 --vtail " { 0, NULL, NULL }\n};\n\n" \
498 --vtail "GType @enum_name@_get_type(void)\n{\n" \
499 --vtail " static GType type = 0;\n\n" \
500 --vtail " if (!type)\n" \
501 --vtail " type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
502 --vtail " return type;\n}\n\n" \
504 $(webkitgtk_h_api) | \
505 sed 's,web_kit,webkit,' \
510 # Files that will be distributed
512 $(srcdir)/gtk-doc.make \
514 $(javascriptcore_dist) \
516 $(srcdir)/autotools/symbols.filter \
517 $(srcdir)/WebKit/gtk/ChangeLog \
518 $(srcdir)/WebKit/gtk/NEWS \
519 $(srcdir)/WebKit/gtk/webkitmarshal.list \
520 $(srcdir)/WebKit/gtk/docs/GNUmakefile.* \
521 $(srcdir)/WebKit/gtk/docs/webkitenvironment.xml \
522 $(srcdir)/WebKit/gtk/docs/webkitgtk-docs.sgml \
523 $(srcdir)/WebKit/gtk/docs/webkitgtk-sections.txt \
524 $(srcdir)/WebKit/gtk/docs/version.xml.in \
525 $(srcdir)/WebKit/gtk/po/* \
526 $(srcdir)/WebKit/gtk/resources/* \
527 $(srcdir)/WebKit/gtk/tests/resources/* \
528 $(srcdir)/WebKit/gtk/tests/test_utils.h
530 # extra resource files
531 resourcesdir = ${datadir}/webkit-1.0/resources
532 dist_resources_DATA = \
533 $(shell ls $(srcdir)/WebKit/gtk/resources/*.html)
537 # Include module makefiles
538 include JavaScriptCore/GNUmakefile.am
539 include WebCore/GNUmakefile.am
540 include WebKitTools/GNUmakefile.am
541 include WebKit/gtk/po/GNUmakefile.am
544 noinst_PROGRAMS += $(TEST_PROGS)
546 webkit_tests_cflags = \
547 -fno-strict-aliasing \
548 -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
549 -I$(srcdir)/WebKit/gtk \
550 -I$(top_builddir)/WebKit/gtk \
556 webkit_tests_ldadd = \
562 webkit_tests_ldflags = \
566 TEST_PROGS += Programs/unittests/testhttpbackend \
567 Programs/unittests/testloading \
568 Programs/unittests/testmimehandling \
569 Programs/unittests/testnetworkrequest \
570 Programs/unittests/testnetworkresponse \
571 Programs/unittests/testwebframe \
572 Programs/unittests/testwebbackforwardlist \
573 Programs/unittests/testwebhistoryitem \
574 Programs/unittests/testwindow \
575 Programs/unittests/testdownload \
576 Programs/unittests/testatk \
577 Programs/unittests/testhittestresult \
578 Programs/unittests/testwebsettings \
579 Programs/unittests/testwebresource \
580 Programs/unittests/testwebdatasource \
581 Programs/unittests/testwebview \
582 Programs/unittests/testkeyevents
584 # Add additional tests here
585 Programs_unittests_testhttpbackend_SOURCES = WebKit/gtk/tests/testhttpbackend.c
586 Programs_unittests_testhttpbackend_CFLAGS = $(webkit_tests_cflags)
587 Programs_unittests_testhttpbackend_LDADD = $(webkit_tests_ldadd)
588 Programs_unittests_testhttpbackend_LDFLAGS = $(webkit_tests_ldflags)
590 Programs_unittests_testloading_SOURCES = WebKit/gtk/tests/testloading.c
591 Programs_unittests_testloading_CFLAGS = $(webkit_tests_cflags)
592 Programs_unittests_testloading_LDADD = $(webkit_tests_ldadd)
593 Programs_unittests_testloading_LDFLAGS = $(webkit_tests_ldflags)
595 Programs_unittests_testmimehandling_SOURCES = WebKit/gtk/tests/testmimehandling.c WebKit/gtk/tests/test_utils.c
596 Programs_unittests_testmimehandling_CFLAGS = $(webkit_tests_cflags)
597 Programs_unittests_testmimehandling_LDADD = $(webkit_tests_ldadd)
598 Programs_unittests_testmimehandling_LDFLAGS = $(webkit_tests_ldflags)
600 Programs_unittests_testnetworkrequest_SOURCES = WebKit/gtk/tests/testnetworkrequest.c
601 Programs_unittests_testnetworkrequest_CFLAGS = $(webkit_tests_cflags)
602 Programs_unittests_testnetworkrequest_LDADD = $(webkit_tests_ldadd)
603 Programs_unittests_testnetworkrequest_LDFLAGS = $(webkit_tests_ldflags)
605 Programs_unittests_testnetworkresponse_SOURCES = WebKit/gtk/tests/testnetworkresponse.c
606 Programs_unittests_testnetworkresponse_CFLAGS = $(webkit_tests_cflags)
607 Programs_unittests_testnetworkresponse_LDADD = $(webkit_tests_ldadd)
608 Programs_unittests_testnetworkresponse_LDFLAGS = $(webkit_tests_ldflags)
610 Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c
611 Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags)
612 Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd)
613 Programs_unittests_testwebframe_LDFLAGS = $(webkit_tests_ldflags)
615 Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c
616 Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags)
617 Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd)
618 Programs_unittests_testwebbackforwardlist_LDFLAGS = $(webkit_tests_ldflags)
620 Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c
621 Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags)
622 Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd)
623 Programs_unittests_testwebhistoryitem_LDFLAGS = $(webkit_tests_ldflags)
625 Programs_unittests_testwindow_SOURCES = WebKit/gtk/tests/testwindow.c
626 Programs_unittests_testwindow_CFLAGS = $(webkit_tests_cflags)
627 Programs_unittests_testwindow_LDADD = $(webkit_tests_ldadd)
628 Programs_unittests_testwindow_LDFLAGS = $(webkit_tests_ldflags)
630 Programs_unittests_testdownload_SOURCES = WebKit/gtk/tests/testdownload.c
631 Programs_unittests_testdownload_CFLAGS = $(webkit_tests_cflags)
632 Programs_unittests_testdownload_LDADD = $(webkit_tests_ldadd)
633 Programs_unittests_testdownload_LDFLAGS = $(webkit_tests_ldflags)
635 Programs_unittests_testatk_SOURCES = WebKit/gtk/tests/testatk.c
636 Programs_unittests_testatk_CFLAGS = $(webkit_tests_cflags)
637 Programs_unittests_testatk_LDADD = $(webkit_tests_ldadd)
638 Programs_unittests_testatk_LDFLAGS = $(webkit_tests_ldflags)
640 Programs_unittests_testwebsettings_SOURCES = WebKit/gtk/tests/testwebsettings.c
641 Programs_unittests_testwebsettings_CFLAGS = $(webkit_tests_cflags)
642 Programs_unittests_testwebsettings_LDADD = $(webkit_tests_ldadd)
643 Programs_unittests_testwebsettings_LDFLAGS = $(webkit_tests_ldflags)
645 Programs_unittests_testwebresource_SOURCES = WebKit/gtk/tests/testwebresource.c
646 Programs_unittests_testwebresource_CFLAGS = $(webkit_tests_cflags)
647 Programs_unittests_testwebresource_LDADD = $(webkit_tests_ldadd)
649 Programs_unittests_testwebdatasource_SOURCES = WebKit/gtk/tests/testwebdatasource.c
650 Programs_unittests_testwebdatasource_CFLAGS = $(webkit_tests_cflags)
651 Programs_unittests_testwebdatasource_LDADD = $(webkit_tests_ldadd)
653 Programs_unittests_testwebview_SOURCES = WebKit/gtk/tests/testwebview.c WebKit/gtk/tests/test_utils.c
654 Programs_unittests_testwebview_CFLAGS = $(webkit_tests_cflags)
655 Programs_unittests_testwebview_LDADD = $(webkit_tests_ldadd)
656 Programs_unittests_testwebview_LDFLAGS = $(webkit_tests_ldflags)
658 Programs_unittests_testhittestresult_SOURCES = WebKit/gtk/tests/testhittestresult.c
659 Programs_unittests_testhittestresult_CFLAGS = $(webkit_tests_cflags)
660 Programs_unittests_testhittestresult_LDADD = $(webkit_tests_ldadd)
662 Programs_unittests_testkeyevents_SOURCES = WebKit/gtk/tests/testkeyevents.c
663 Programs_unittests_testkeyevents_CFLAGS = $(webkit_tests_cflags)
664 Programs_unittests_testkeyevents_LDADD = $(webkit_tests_ldadd)
665 Programs_unittests_testkeyevents_LDFLAGS = $(webkit_tests_ldflags)
667 # Autogenerated sources
669 $(javascriptcore_built_sources) \
670 $(javascriptcore_built_nosources) \
671 $(webcore_built_sources) \
672 $(webcore_built_nosources) \
673 $(webkitgtk_built_sources) \
674 $(webkitgtk_built_nosources)
676 # Project-wide clean rules
677 # Files that will be cleaned
680 $(webkitgtk_cleanfiles)
684 $(builddir)/doltcompile \
685 $(builddir)/doltlibtool
687 MAINTAINERCLEANFILES += \
689 $(builddir)/doltcompile \
690 $(builddir)/doltlibtool \
691 $(srcdir)/aconfig.h.in \
692 $(srcdir)/autotools/config.* \
693 $(srcdir)/autotools/compile \
694 $(srcdir)/autotools/depcomp \
695 $(srcdir)/autotools/install-sh \
696 $(srcdir)/autotools/missing \
697 $(srcdir)/configure \
698 $(srcdir)/GNUmakefile.in \
701 $(top_builddir)/config.*
703 # Older automake versions (1.7) place Plo files in a different place so we need
704 # to create the output directory manually.
706 $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
708 # remove built sources and program directories
710 -rm -rf $(GENPROGRAMS)
712 maintainer-clean-local: distclean-local
715 -rm -rf $(GENSOURCES) $(GENPROGRAMS)
717 install-data-local: po-install-data-local
719 installdirs-data-local: po-installdirs-data-local
721 uninstall-local: po-uninstall-local
723 # Run all tests in cwd
724 # FIXME: we should run this under xvfb
726 $(GTESTER) --verbose $(TEST_PROGS);
728 # test-report: run tests in cwd and generate report
729 # full-report: run tests in cwd with -m perf and -m slow and generate report
730 # perf-report: run tests in cwd with -m perf and generate report
731 test-report full-report perf-report: $(TEST_PROGS)
733 test-report) test_options="-k";; \
734 full-report) test_options="-k -m=perf";; \
735 perf-report) test_options="-k -m=perf -m=slow";; \
737 $(GTESTER) --verbose $$test_options -o test-report.xml $(TEST_PROGS); \
738 $(GTESTER_REPORT) test-report.xml > test-report.html ;
740 .PHONY: test test-report perf-report full-report