Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into...
[openembedded.git] / recipes / webkit / webkit-gtk / GNUmakefile.am
1 # Top-level Makefile rule for automake
2 #
3 # Variable conventions:
4 #
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
11 #                     _SOURCES primary
12 # _cleanfiles       = files that will be removed by the clean target
13 #
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
18 # below.
19 #
20 # Global Variables
21 #
22 # global_cppflags   = CPPFLAGS that apply to JSC, WebCore, and to any
23 #                     specific port
24 # global_cflags     = CFLAGS that apply to JSC, WebCore, and to
25 #                     any specific port
26 # global_cxxflags   = CXXFLAGS that apply to JSC, WebCore, and to any
27 #                     specific port
28
29 srcdir = @srcdir@
30 VPATH = @srcdir@
31
32 # Directory for autogenerated sources
33 GENSOURCES := $(top_builddir)/DerivedSources
34 GENPROGRAMS := $(top_builddir)/Programs
35
36 # Script for creating hash tables
37 CREATE_HASH_TABLE = $(srcdir)/JavaScriptCore/create_hash_table
38
39 # Programs to run the WebKitGtk unit tests
40 GTESTER = gtester
41 GTESTER_REPORT = gtester-report
42
43 # Libraries and support components
44 bin_PROGRAMS :=
45 noinst_PROGRAMS :=
46 noinst_HEADERS :=
47 lib_LIBRARIES :=
48 IDL_BINDINGS :=
49 TEST_PROGS :=
50 POFILES :=
51 MOFILES :=
52 javascriptcore_h_api :=
53 javascriptcore_cppflags:=
54 javascriptcore_sources :=
55 javascriptcore_built_sources :=
56 javascriptcore_built_nosources :=
57 javascriptcore_dist :=
58 webcore_cppflags :=
59 webcore_sources :=
60 webcore_libadd :=
61 webcore_built_sources :=
62 webcore_built_nosources :=
63 webcore_dist :=
64 webcoregtk_cppflags :=
65 webcoregtk_sources :=
66 webkitgtk_h_api :=
67 webkitgtk_sources :=
68 webkitgtk_cppflags :=
69 webkitgtk_built_sources :=
70 webkitgtk_built_nosources :=
71 webkitgtk_cleanfiles :=
72 global_cppflags :=
73 global_cflags :=
74 global_cxxflags :=
75 corekit_cflags :=
76 corekit_cppflags :=
77
78 # CFLAGS/CXXFLAGS used by WebCore and WebKit
79 #
80 # gtk+.pc already include glib, cairo, freetype and pango CFLAGS
81 # Don't include them for now to reduce the noise when compiling
82 # $(GLIB_CFLAGS) $(CAIRO_CFLAGS) $(PANGO_CFLAGS)  $(FREETYPE_CFLAGS)
83 corekit_cflags += \
84         -fno-strict-aliasing \
85         $(COVERAGE_CFLAGS) \
86         $(ENCHANT_CFLAGS) \
87         $(GEOCLUE_CFLAGS) \
88         $(GLIB_CFLAGS) \
89         $(GNOMEKEYRING_CFLAGS) \
90         $(GSTREAMER_CFLAGS) \
91         $(GTK_CFLAGS) \
92         $(HILDON_CFLAGS) \
93         $(LIBSOUP_CFLAGS) \
94         $(LIBXML_CFLAGS) \
95         $(LIBXSLT_CFLAGS) \
96         $(SQLITE3_CFLAGS) \
97         $(UNICODE_CFLAGS) \
98         $(XT_CFLAGS)
99
100 # When building webcore/webkit, we want WebCore/config.h and NOT
101 # JavaScriptCore/config.h, hence, it's important that WebCore/ should come first
102 # before JavaScriptCore in the include path.
103 corekit_cppflags += \
104         $(global_cppflags) \
105         $(webcore_cppflags) \
106         $(webcoregtk_cppflags) \
107         $(javascriptcore_cppflags)
108
109 if TARGET_X11
110 corekit_cppflags += -DXP_UNIX
111 endif
112
113 # Default compiler flags
114 global_cflags += \
115         -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
116         -Wformat -Wformat-security -Wno-format-y2k -Wundef \
117         -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \
118         -Wno-unused-parameter -Wno-parentheses \
119         -fno-exceptions
120
121 global_cxxflags += \
122         $(global_cflags) \
123         $(SYMBOL_VISIBILITY_INLINES) \
124         -fno-rtti
125
126 # -no-undefined required for building DLLs on Windows
127 # It breaks the build on other platforms, so we use it conditionally
128 if OS_WIN32
129 no_undefined = -no-undefined
130 endif
131
132 if OS_GNU
133 version_script = -Wl,--version-script,$(srcdir)/autotools/symbols.filter
134 endif
135
136 # Shared libraries
137 lib_LTLIBRARIES = \
138         libwebkit-1.0.la
139
140 # Convenience libraries
141 noinst_LTLIBRARIES = \
142         libJavaScriptCore.la \
143         libWebCore.la
144
145 # JavaScriptCore
146 javascriptcore_cppflags += \
147         -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
148         -I$(srcdir)/JavaScriptCore/parser \
149         -I$(srcdir)/JavaScriptCore/wtf \
150         -I$(top_builddir)/DerivedSources
151
152 nodist_EXTRA_libJavaScriptCore_la_SOURCES = \
153         $(javascriptcore_built_nosources)
154
155 nodist_libJavaScriptCore_la_SOURCES = \
156         $(javascriptcore_built_sources)
157
158 libJavaScriptCore_ladir = $(prefix)/include/webkit-1.0/JavaScriptCore
159 libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
160
161 libJavaScriptCore_la_SOURCES = \
162         $(javascriptcore_sources)
163
164 libJavaScriptCore_la_LIBADD = \
165         $(UNICODE_LIBS) \
166         $(GLIB_LIBS) \
167         -lpthread
168
169 libJavaScriptCore_la_CXXFLAGS = \
170         $(global_cxxflags) \
171         $(libJavaScriptCore_la_CFLAGS)
172
173 libJavaScriptCore_la_CFLAGS = \
174         -fstrict-aliasing \
175         -O3 \
176         $(global_cflags) \
177         $(GLIB_CFLAGS) \
178         $(UNICODE_CFLAGS)
179
180 libJavaScriptCore_la_CPPFLAGS = \
181         $(global_cppflags) \
182         $(javascriptcore_cppflags)
183
184 # WebCore
185 nodist_EXTRA_libWebCore_la_SOURCES = \
186         $(webcore_built_nosources)
187
188 nodist_libWebCore_la_SOURCES = \
189         $(webcore_built_sources)
190
191 libWebCore_la_SOURCES = \
192         $(webcore_sources) \
193         $(webcoregtk_sources)
194
195 libWebCore_la_CXXFLAGS = \
196         $(global_cxxflags) \
197         $(corekit_cflags)
198
199 libWebCore_la_CFLAGS = \
200         $(global_cflags) \
201         $(corekit_cflags)
202
203 libWebCore_la_CPPFLAGS = \
204         $(corekit_cppflags)
205
206 # WebKit
207 nodist_libwebkit_1_0_la_SOURCES = \
208         $(webkitgtk_built_sources)
209
210 libwebkit_1_0_ladir = $(prefix)/include/webkit-1.0/webkit
211 libwebkit_1_0_la_HEADERS = \
212         $(webkitgtk_h_api) \
213         WebKit/gtk/webkit/webkitenumtypes.h
214
215 libwebkit_1_0_la_SOURCES = \
216         $(webkitgtk_sources)
217
218 libwebkit_1_0_la_CXXFLAGS = \
219         $(global_cxxflags) \
220         $(corekit_cflags)
221
222 libwebkit_1_0_la_CFLAGS = \
223         $(global_cflags) \
224         $(corekit_cflags)
225
226 libwebkit_1_0_la_CPPFLAGS = \
227         $(corekit_cppflags) \
228         $(webkitgtk_cppflags) \
229         $(HILDON_CPPFLAGS)
230
231 libwebkit_1_0_la_LDFLAGS = \
232         -version-info @LIBWEBKITGTK_VERSION@ \
233         $(version_script) \
234         $(no_undefined)
235
236 libwebkit_1_0_la_LIBADD = \
237         -lpthread \
238         libJavaScriptCore.la \
239         libWebCore.la \
240         libWebCoreJS.la \
241         $(webcore_ldflags) \
242         $(CAIRO_LIBS) \
243         $(COVERAGE_LDFLAGS) \
244         $(ENCHANT_LIBS) \
245         $(FREETYPE_LIBS) \
246         $(GEOCLUE_LIBS) \
247         $(GLIB_LIBS) \
248         $(GNOMEKEYRING_LIBS) \
249         $(GSTREAMER_LIBS) \
250         $(GTK_LIBS) \
251         $(HILDON_LIBS) \
252         $(JPEG_LIBS) \
253         $(LIBSOUP_LIBS) \
254         $(LIBXML_LIBS) \
255         $(LIBXSLT_LIBS) \
256         $(PANGO_LIBS) \
257         $(PNG_LIBS) \
258         $(SQLITE3_LIBS) \
259         $(UNICODE_LIBS) \
260         $(XT_LIBS)
261
262 #
263 # Extra checks and flags
264 global_cppflags += \
265         -DBUILDING_CAIRO__=1 \
266         -DBUILDING_GTK__=1 \
267         -DWTF_CHANGES
268
269 if USE_ICU_UNICODE
270 global_cppflags += \
271         -DWTF_USE_ICU_UNICODE=1
272 endif
273
274 if USE_GLIB_UNICODE
275 # https://bugs.webkit.org/show_bug.cgi?id=15914
276 # In patch 1/4 we are compiling a hybrid version of GLib WTF Unicode
277 # functionality mixed with ICU-based text codecs and TextBreakIterator.
278 # For the transition, introducing an interim HYBRID macro.
279 # This macro is required for compiling WTF with GLib Unicode backend,
280 # but at the same time keeping ICU dependency for codecs and break iterator.
281 # It will be removed with patch 3/4 of the above bug.
282 global_cppflags += \
283         -DWTF_USE_GLIB_UNICODE=1 \
284         -DWTF_USE_GLIB_ICU_UNICODE_HYBRID=1
285 endif
286
287 if !ENABLE_FAST_MALLOC
288 global_cppflags += \
289         -DUSE_SYSTEM_MALLOC
290 endif
291
292 if !ENABLE_DEBUG
293 global_cppflags += -DNDEBUG
294 global_cflags += $(SYMBOL_VISIBILITY)
295
296 else
297 webcoregtk_cppflags += \
298         -DG_DISABLE_DEPRECATED \
299         -DGDK_PIXBUF_DISABLE_DEPRECATED \
300         -DGDK_DISABLE_DEPRECATED \
301         -DGTK_DISABLE_DEPRECATED \
302         -DPANGO_DISABLE_DEPRECATED
303
304 # Might be useful in the future
305 #       -DGDK_MULTIHEAD_SAFE \
306 #       -DGTK_MULTIHEAD_SAFE
307 endif
308
309 if ENABLE_COVERAGE
310 global_cppflags += \
311         -DGCC_GENERATE_TEST_COVERAGE_FILES \
312         -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
313 endif
314
315 webkitgtk_h_api += \
316         WebKit/gtk/webkit/webkit.h \
317         WebKit/gtk/webkit/webkitdefines.h \
318         WebKit/gtk/webkit/webkitdownload.h \
319         WebKit/gtk/webkit/webkiterror.h \
320         WebKit/gtk/webkit/webkitnetworkrequest.h \
321         WebKit/gtk/webkit/webkitsoupauthdialog.h \
322         WebKit/gtk/webkit/webkitversion.h \
323         WebKit/gtk/webkit/webkitwebbackforwardlist.h \
324         WebKit/gtk/webkit/webkitwebframe.h \
325         WebKit/gtk/webkit/webkitwebhistoryitem.h \
326         WebKit/gtk/webkit/webkitwebinspector.h \
327         WebKit/gtk/webkit/webkitwebnavigationaction.h \
328         WebKit/gtk/webkit/webkitwebpolicydecision.h \
329         WebKit/gtk/webkit/webkitwebsettings.h \
330         WebKit/gtk/webkit/webkitwebwindowfeatures.h \
331         WebKit/gtk/webkit/webkitwebview.h
332
333 webkitgtk_built_sources += \
334         DerivedSources/webkitenumtypes.cpp \
335         DerivedSources/webkitmarshal.cpp \
336         DerivedSources/webkitmarshal.h \
337         WebKit/gtk/webkit/webkitenumtypes.h
338
339 webkitgtk_sources += \
340         WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
341         WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
342         WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
343         WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
344         WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
345         WebKit/gtk/WebCoreSupport/DragClientGtk.h \
346         WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
347         WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
348         WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
349         WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
350         WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \
351         WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
352         WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp \
353         WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h \
354         WebKit/gtk/webkit/webkitdownload.cpp \
355         WebKit/gtk/webkit/webkiterror.cpp \
356         WebKit/gtk/webkit/webkitnetworkrequest.cpp \
357         WebKit/gtk/webkit/webkitprivate.cpp \
358         WebKit/gtk/webkit/webkitprivate.h \
359         WebKit/gtk/webkit/webkitsoupauthdialog.c \
360         WebKit/gtk/webkit/webkitversion.cpp \
361         WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \
362         WebKit/gtk/webkit/webkitwebframe.cpp \
363         WebKit/gtk/webkit/webkitwebhistoryitem.cpp \
364         WebKit/gtk/webkit/webkitwebinspector.cpp \
365         WebKit/gtk/webkit/webkitwebnavigationaction.cpp \
366         WebKit/gtk/webkit/webkitwebpolicydecision.cpp \
367         WebKit/gtk/webkit/webkitwebsettings.cpp \
368         WebKit/gtk/webkit/webkitwebview.cpp \
369         WebKit/gtk/webkit/webkitwebwindowfeatures.cpp
370
371 webkitgtk_cppflags += \
372         -DBUILDING_WEBKIT \
373         -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
374         -DDATA_DIR=\"${datadir}\" \
375         -I$(srcdir)/WebKit/gtk \
376         -I$(srcdir)/WebKit/gtk/WebCoreSupport \
377         -I$(srcdir)/WebKit/gtk/webkit \
378         -I$(top_builddir)/WebKit/gtk/webkit
379
380 if USE_GNOMEKEYRING
381 webkitgtk_cppflags += \
382         -DWTF_USE_GNOMEKEYRING=1
383 endif
384
385 webkitgtk_cleanfiles += \
386         $(top_builddir)/WebKit/gtk/docs/version.xml \
387         $(top_builddir)/WebKit/gtk/docs/GNUmakefile \
388         $(top_builddir)/Programs/GtkLauncher \
389         $(top_builddir)/WebKit/gtk/webkit-1.0.pc \
390         $(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h \
391         $(top_builddir)/WebKit/gtk/webkit/webkitversion.h
392
393 pkgconfigdir = $(libdir)/pkgconfig
394 pkgconfig_DATA = WebKit/gtk/webkit-1.0.pc
395
396 stamp_files := \
397         stamp-webkitmarshal.cpp \
398         stamp-webkitmarshal.h \
399         stamp-webkitenumtypes.cpp \
400         stamp-webkitenumtypes.h
401
402 WEBKIT_MARSHAL = $(GENSOURCES)/webkitmarshal
403 WEBKIT_MARSHAL_LIST = $(top_srcdir)/WebKit/gtk/webkitmarshal.list
404
405 $(WEBKIT_MARSHAL).cpp: stamp-webkitmarshal.cpp
406         @true
407
408 $(WEBKIT_MARSHAL).h: stamp-webkitmarshal.h
409         @true
410
411 stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST)
412         echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
413         $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
414         echo timestamp > $(@F)
415
416 stamp-webkitmarshal.h: $(WEBKIT_MARSHAL_LIST)
417         $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
418         echo timestamp > $(@F)
419
420 WebKit/gtk/webkit/webkitenumtypes.h: stamp-webkitenumtypes.h
421         @true
422 stamp-webkitenumtypes.h: $(webkitgtk_h_api) GNUmakefile
423         (cd $(srcdir) \
424         && glib-mkenums \
425                         --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
426                         --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
427                         --fhead "#include <glib-object.h>\n\n" \
428                         --fhead "#include <webkit/webkitdefines.h>\n\n" \
429                         --fhead "G_BEGIN_DECLS\n\n" \
430                         --ftail "G_END_DECLS\n\n" \
431                         --ftail "#endif\n" \
432                         --fprod "#include <@filename@>\n\n" \
433                         --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
434                         --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
435                 $(webkitgtk_h_api) | \
436                 sed 's,WebKit/gtk/,,' | \
437                 sed 's,web_kit,webkit,' | \
438                 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
439                 ) > xgen-gth \
440         && (cmp -s xgen-gth WebKit/gtk/webkit/webkitenumtypes.h || cp xgen-gth WebKit/gtk/webkit/webkitenumtypes.h) \
441         && rm -f xgen-gth \
442         && echo timestamp > $(@F)
443
444 DerivedSources/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile
445         (cd $(srcdir) \
446         && glib-mkenums \
447                         --fhead "#include <config.h>\n" \
448                         --fhead "#include <glib-object.h>\n" \
449                         --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h\"\n\n" \
450                         --fhead "extern \"C\" {\n\n" \
451                         --fprod "\n/* enumerations from \"@filename@\" */" \
452                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
453                         --vprod "    { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
454                         --vtail "    { 0, NULL, NULL }\n};\n\n" \
455                         --vtail "GType @enum_name@_get_type(void)\n{\n" \
456                         --vtail "    static GType type = 0;\n\n" \
457                         --vtail "    if (!type)\n" \
458                         --vtail "        type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
459                         --vtail "    return type;\n}\n\n" \
460                         --ftail "}\n" \
461                 $(webkitgtk_h_api) | \
462                 sed 's,web_kit,webkit,' \
463                 ) > xgen-gtc \
464         && cp xgen-gtc $@ \
465         && rm -f xgen-gtc
466
467 # Files that will be distributed
468 EXTRA_DIST = \
469         $(srcdir)/gtk-doc.make \
470         WebKit/LICENSE \
471         $(javascriptcore_dist) \
472         $(webcore_dist) \
473         $(srcdir)/autotools/symbols.filter \
474         $(srcdir)/WebKit/gtk/ChangeLog \
475         $(srcdir)/WebKit/gtk/NEWS \
476         $(srcdir)/WebKit/gtk/webkitmarshal.list \
477         $(srcdir)/WebKit/gtk/docs/GNUmakefile.* \
478         $(srcdir)/WebKit/gtk/docs/webkitenvironment.xml \
479         $(srcdir)/WebKit/gtk/docs/webkitgtk-docs.sgml \
480         $(srcdir)/WebKit/gtk/docs/webkitgtk-sections.txt \
481         $(srcdir)/WebKit/gtk/docs/version.xml.in \
482         $(srcdir)/WebKit/gtk/po/* \
483         $(srcdir)/WebKit/gtk/resources/*
484
485 # extra resource files
486 resourcesdir = ${datadir}/webkit-1.0/resources
487 dist_resources_DATA = \
488         $(shell ls $(srcdir)/WebKit/gtk/resources/*.html)
489
490 # END WEBKIT GTK+
491
492 # Files that will be cleaned
493 MAINTAINERCLEANFILES := $(stamp_files) $(BUILT_SOURCES) doltcompile doltlibtool
494 DISTCLEANFILES := $(stamp_files) $(BUILT_SOURCES) doltcompile doltlibtool
495 CLEANFILES := $(stamp_files) $(BUILT_SOURCES)
496
497 # Include module makefiles
498 include JavaScriptCore/GNUmakefile.am
499 include WebCore/GNUmakefile.am
500 include WebKitTools/GNUmakefile.am
501 include WebKit/gtk/po/GNUmakefile.am
502
503 # Build unit tests
504 noinst_PROGRAMS += $(TEST_PROGS)
505
506 webkit_tests_cflags = \
507         -fno-strict-aliasing \
508         -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
509         -I$(srcdir)/WebKit/gtk \
510         -I$(top_builddir)/WebKit/gtk \
511         $(global_cflags) \
512         $(GLIB_CFLAGS) \
513         $(GTK_CFLAGS) \
514         $(LIBSOUP_CFLAGS)
515
516 webkit_tests_ldadd = \
517         libwebkit-1.0.la \
518         $(GTK_LIBS)     \
519         $(GLIB_LIBS) \
520         $(LIBSOUP_LIBS)
521
522 webkit_tests_ldflags = \
523         -no-install \
524         -no-fast-install
525
526 TEST_PROGS += Programs/unittests/testhttpbackend \
527         Programs/unittests/testwebframe \
528         Programs/unittests/testwebbackforwardlist \
529         Programs/unittests/testwebhistoryitem \
530         Programs/unittests/testdownload \
531         Programs/unittests/testatk
532
533 # Add additional tests here
534 Programs_unittests_testhttpbackend_SOURCES = WebKit/gtk/tests/testhttpbackend.c
535 Programs_unittests_testhttpbackend_CFLAGS = $(webkit_tests_cflags)
536 Programs_unittests_testhttpbackend_LDADD = $(webkit_tests_ldadd)
537 Programs_unittests_testhttpbackend_LDFLAGS = $(webkit_tests_ldflags)
538
539 Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c
540 Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags)
541 Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd)
542 Programs_unittests_testwebframe_LDFLAGS = $(webkit_tests_ldflags)
543
544 Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c
545 Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags)
546 Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd)
547 Programs_unittests_testwebbackforwardlist_LDFLAGS = $(webkit_tests_ldflags)
548
549 Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c
550 Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags)
551 Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd)
552 Programs_unittests_testwebhistoryitem_LDFLAGS = $(webkit_tests_ldflags)
553
554 Programs_unittests_testdownload_SOURCES = WebKit/gtk/tests/testdownload.c
555 Programs_unittests_testdownload_CFLAGS = $(webkit_tests_cflags)
556 Programs_unittests_testdownload_LDADD = $(webkit_tests_ldadd)
557 Programs_unittests_testdownload_LDFLAGS = $(webkit_tests_ldflags)
558
559 Programs_unittests_testatk_SOURCES = WebKit/gtk/tests/testatk.c
560 Programs_unittests_testatk_CFLAGS = $(webkit_tests_cflags)
561 Programs_unittests_testatk_LDADD = $(webkit_tests_ldadd)
562 Programs_unittests_testatk_LDFLAGS = $(webkit_tests_ldflags)
563
564 # Autogenerated sources
565 BUILT_SOURCES := \
566         $(javascriptcore_built_sources) \
567         $(javascriptcore_built_nosources) \
568         $(webcore_built_sources) \
569         $(webcore_built_nosources) \
570         $(webkitgtk_built_sources) \
571         $(webkitgtk_built_nosources)
572
573 # Project-wide clean rules
574 CLEANFILES += \
575         $(webkitgtk_cleanfiles)
576
577 MAINTAINERCLEANFILES += \
578         $(srcdir)/aconfig.h.in \
579         $(srcdir)/autotools/config.* \
580         $(srcdir)/autotools/compile \
581         $(srcdir)/autotools/depcomp \
582         $(srcdir)/autotools/install-sh \
583         $(srcdir)/autotools/missing \
584         $(srcdir)/configure \
585         $(srcdir)/GNUmakefile.in \
586         $(srcdir)/INSTALL \
587         $(srcdir)/README \
588         $(top_builddir)/config.*
589
590 # Older automake versions (1.7) place Plo files in a different place so we need
591 # to create the output directory manually.
592 all-local: stamp-po
593         $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
594
595 # remove built sources and program directories
596 clean-local:
597         -rm -rf $(GENPROGRAMS)
598
599 maintainer-clean-local: distclean-local
600
601 distclean-local:
602         -rm -rf $(GENSOURCES) $(GENPROGRAMS)
603
604 install-data-local: po-install-data-local
605
606 installdirs-data-local: po-installdirs-data-local
607
608 uninstall-local: po-uninstall-local
609
610 # Run all tests in cwd
611 # FIXME: we should run this under xvfb
612 test: $(TEST_PROGS)
613         $(GTESTER) --verbose $(TEST_PROGS);
614
615 # test-report: run tests in cwd and generate report
616 # full-report: run tests in cwd with -m perf and -m slow and generate report
617 # perf-report: run tests in cwd with -m perf and generate report
618 test-report full-report perf-report: $(TEST_PROGS)
619         @ case $@ in \
620           test-report) test_options="-k";; \
621           full-report) test_options="-k -m=perf";; \
622           perf-report) test_options="-k -m=perf -m=slow";; \
623           esac ; \
624           $(GTESTER) --verbose $$test_options -o test-report.xml $(TEST_PROGS); \
625           $(GTESTER_REPORT) test-report.xml > test-report.html ;
626
627 .PHONY: test test-report perf-report full-report
628 check-local: test