summaryrefslogtreecommitdiff
path: root/recipes/webkit/webkit-gtk/GNUmakefile.am
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-05-30 09:41:16 +0200
committerKoen Kooi <koen@openembedded.org>2010-05-31 08:13:12 +0200
commit91eefa1e3f6c362887a87839cc157d397376f336 (patch)
treef327888659cf5443d82f3c7f40838d1ac736ffff /recipes/webkit/webkit-gtk/GNUmakefile.am
parent9e1bfaca7c0f11db87e6dfe2c32b376254ce6a77 (diff)
webkit-gtk: bump SRCREV
Diffstat (limited to 'recipes/webkit/webkit-gtk/GNUmakefile.am')
-rw-r--r--recipes/webkit/webkit-gtk/GNUmakefile.am119
1 files changed, 112 insertions, 7 deletions
diff --git a/recipes/webkit/webkit-gtk/GNUmakefile.am b/recipes/webkit/webkit-gtk/GNUmakefile.am
index 399f7a4125..a662290fd5 100644
--- a/recipes/webkit/webkit-gtk/GNUmakefile.am
+++ b/recipes/webkit/webkit-gtk/GNUmakefile.am
@@ -35,11 +35,15 @@ DISTCHECK_CONFIGURE_FLAGS = \
# Directory for autogenerated sources
GENSOURCES := $(top_builddir)/DerivedSources
+GENSOURCESWEBKITDOM := $(top_builddir)/DerivedSources/webkit
GENPROGRAMS := $(top_builddir)/Programs
# Script for creating hash tables
CREATE_HASH_TABLE = $(srcdir)/JavaScriptCore/create_hash_table
+# Script for creating regexp tables
+CREATE_REGEXP_TABLES = $(srcdir)/JavaScriptCore/create_regex_tables
+
# Programs to run the WebKitGtk unit tests
GTESTER = gtester
GTESTER_REPORT = gtester-report
@@ -68,6 +72,14 @@ webcore_built_nosources :=
webcore_dist :=
webcoregtk_cppflags :=
webcoregtk_sources :=
+IDL_BINDINGS_GDOM :=
+GDOM_AUTO_CLASSES :=
+GDOM_FIXED_CLASSES :=
+GDOM_CLASSES :=
+GDOM_HEADERS_BUILT :=
+GDOM_HEADERS_FIXED :=
+libgdom_h_api :=
+libgdom_cleanfiles :=
webkitgtk_h_api :=
webkitgtk_sources :=
webkitgtk_cppflags :=
@@ -89,6 +101,11 @@ CLEANFILES :=
DISTCLEANFILES :=
MAINTAINERCLEANFILES :=
+webcoregtk_cppflags += \
+ -I$(top_builddir)/DerivedSources/webkit \
+ -I$(srcdir)/WebCore/bindings \
+ -I$(srcdir)/WebCore/bindings/gobject
+
# CFLAGS/CXXFLAGS used by WebCore and WebKit
#
# gtk+.pc already include glib, cairo, freetype and pango CFLAGS
@@ -238,6 +255,7 @@ libwebkit_1_0_la_LIBADD = \
-lpthread \
libJavaScriptCore.la \
libWebCoreJS.la \
+ libgdom.la \
$(webcore_ldflags) \
$(CAIRO_LIBS) \
$(COVERAGE_LDFLAGS) \
@@ -259,6 +277,15 @@ libwebkit_1_0_la_LIBADD = \
$(UNICODE_LIBS) \
$(XT_LIBS)
+libgdom_ladir = $(prefix)/include/webkit-1.0/webkit
+nodist_libgdom_la_HEADERS = \
+ $(libgdom_h_api)
+
+libgdom_cleanfiles += \
+ $(top_builddir)/WebKit/gtk/webkit/webkitdomenumtypes.h \
+ $(top_builddir)/libgdom.la \
+ $(top_builddir)/stamp-webkitdomenumtypes.h
+
#
# Extra checks and flags
global_cppflags += \
@@ -331,6 +358,7 @@ webkitgtk_h_api += \
webkitgtk_built_sources += \
DerivedSources/webkitenumtypes.cpp \
+ DerivedSources/webkitdomenumtypes.cpp \
DerivedSources/webkitmarshal.cpp \
DerivedSources/webkitmarshal.h \
WebKit/gtk/webkit/webkitenumtypes.h
@@ -385,7 +413,9 @@ webkitgtk_cppflags += \
-I$(srcdir)/WebKit/gtk \
-I$(srcdir)/WebKit/gtk/WebCoreSupport \
-I$(srcdir)/WebKit/gtk/webkit \
- -I$(top_builddir)/WebKit/gtk/webkit
+ -I$(top_builddir)/WebKit/gtk \
+ -I$(top_builddir)/WebKit/gtk/webkit \
+ -I$(GENSOURCESWEBKITDOM)
webkitgtk_cleanfiles += \
$(top_builddir)/stamp-webkitmarshal.cpp \
@@ -426,14 +456,16 @@ $(WEBKIT_GIRSOURCES): $(JSCORE_GIRSOURCES) $(G_IR_SCANNER) libwebkit-1.0.la
--add-include-path $(top_srcdir)/WebKit/gtk \
-I$(top_srcdir)/WebKit/gtk \
-I$(top_builddir)/WebKit/gtk \
+ -I$(top_builddir)/DerivedSources \
-I$(top_srcdir)/JavaScriptCore/ForwardingHeaders \
-I$(top_srcdir) \
- $(webkitgtk_h_api)
+ $(webkitgtk_h_api) \
+ $(libgdom_h_api)
-girdir = $(GIRDIR)
+girdir = $(datadir)/gir-1.0
gir_DATA = $(WEBKIT_GIRSOURCES) $(JSCORE_GIRSOURCES)
-typelibsdir += $(GIRTYPELIBDIR)
+typelibsdir += $(libdir)/girepository-1.0
typelibs_DATA += $(JSCORE_GIRSOURCES:.gir=.typelib) $(WEBKIT_GIRSOURCES:.gir=.typelib)
%.typelib: %.gir $(G_IR_COMPILER)
@@ -507,6 +539,49 @@ DerivedSources/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile
&& cp xgen-gtc $@ \
&& rm -f xgen-gtc
+WebKit/gtk/webkit/webkitdomenumtypes.h: stamp-webkitdomenumtypes.h
+ @true
+stamp-webkitdomenumtypes.h: $(libgdom_h_api) GNUmakefile
+ $(AM_V_GEN)glib-mkenums \
+ --fhead "#ifndef WEBKIT_DOM_ENUM_TYPES_H\n" \
+ --fhead "#define WEBKIT_DOM_ENUM_TYPES_H\n\n" \
+ --fhead "#include <glib-object.h>\n\n" \
+ --fhead "G_BEGIN_DECLS\n\n" \
+ --ftail "G_END_DECLS\n\n" \
+ --ftail "#endif\n" \
+ --fprod "#include <webkit/@basename@>\n\n" \
+ --eprod "#define WEBKIT_DOM_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
+ --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);n\n" \
+ $(libgdom_h_api) | \
+ sed 's,web_kit,webkit_dom,' | \
+ sed 's,WEBKIT_DOM_TYPE_KIT,WEBKIT_DOM_TYPE,' \
+ > xgen-cgth \
+ && (cmp -s xgen-cgth WebKit/gtk/webkit/webkitdomenumtypes.h || cp xgen-cgth WebKit/gtk/webkit/webkitdomenumtypes.h) \
+ && rm -f xgen-cgth \
+ && echo timestamp > $(@F)
+
+DerivedSources/webkitdomenumtypes.cpp: $(top_builddir)/WebKit/gtk/webkit/webkitdomenumtypes.h $(libgdom_h_api) GNUmakefile
+ $(AM_V_GEN)glib-mkenums \
+ --fhead "#include <config.h>\n" \
+ --fhead "#include <glib-object.h>\n" \
+ --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitdomenumtypes.h\"\n\n" \
+ --fhead "extern \"C\" {\n\n" \
+ --fprod "\n/* enumerations from \"@filename@\" */" \
+ --vhead "static const G@Type@Value _@enum_name@_values] = {" \
+ --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
+ --vtail " { 0, NULL, NULL }\n};\n\n" \
+ --vtail "GType @enum_name@_get_type(void)\n{\n" \
+ --vtail " static GType type = 0;\n\n" \
+ --vtail " if (!type)\n" \
+ --vtail " type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
+ --vtail " return type;\n}\n\n" \
+ --ftail "}\n" \
+ $(libgdom_h_api) | \
+ sed 's,web_kit,webkitdom,' \
+ > xgen-cgtc \
+ && cp xgen-cgtc $@ \
+ && rm -f xgen-cgtc
+
# Files that will be distributed
EXTRA_DIST += \
$(srcdir)/gtk-doc.make \
@@ -548,6 +623,9 @@ webkit_tests_cflags = \
-I$(srcdir)/JavaScriptCore/ForwardingHeaders \
-I$(srcdir)/WebKit/gtk \
-I$(top_builddir)/WebKit/gtk \
+ -I$(top_builddir)/DerivedSources \
+ -I$(top_srcdir)/WebCore/bindings \
+ -I$(top_srcdir)/WebCore/bindings/gobject \
$(global_cflags) \
$(GLIB_CFLAGS) \
$(GTK_CFLAGS) \
@@ -563,8 +641,12 @@ webkit_tests_ldflags = \
-no-install \
-no-fast-install
-TEST_PROGS += Programs/unittests/testhttpbackend \
+TEST_PROGS += \
+ Programs/unittests/testdomdocument \
+ Programs/unittests/testdomdomwindow \
+ Programs/unittests/testhttpbackend \
Programs/unittests/testloading \
+ Programs/unittests/testglobals \
Programs/unittests/testmimehandling \
Programs/unittests/testnetworkrequest \
Programs/unittests/testnetworkresponse \
@@ -574,6 +656,7 @@ TEST_PROGS += Programs/unittests/testhttpbackend \
Programs/unittests/testwindow \
Programs/unittests/testdownload \
Programs/unittests/testatk \
+ Programs/unittests/testatkroles \
Programs/unittests/testhittestresult \
Programs/unittests/testwebsettings \
Programs/unittests/testwebresource \
@@ -582,11 +665,26 @@ TEST_PROGS += Programs/unittests/testhttpbackend \
Programs/unittests/testkeyevents
# Add additional tests here
+Programs_unittests_testdomdocument_SOURCES = WebKit/gtk/tests/testdomdocument.c
+Programs_unittests_testdomdocument_CFLAGS = $(webkit_tests_cflags)
+Programs_unittests_testdomdocument_LDADD = $(webkit_tests_ldadd)
+Programs_unittests_testdomdocument_LDFLAGS = $(webkit_tests_ldflags)
+
+Programs_unittests_testdomdomwindow_SOURCES = WebKit/gtk/tests/testdomdomwindow.c
+Programs_unittests_testdomdomwindow_CFLAGS = $(webkit_tests_cflags)
+Programs_unittests_testdomdomwindow_LDADD = $(webkit_tests_ldadd)
+Programs_unittests_testdomdomwindow_LDFLAGS = $(webkit_tests_ldflags)
+
Programs_unittests_testhttpbackend_SOURCES = WebKit/gtk/tests/testhttpbackend.c
Programs_unittests_testhttpbackend_CFLAGS = $(webkit_tests_cflags)
Programs_unittests_testhttpbackend_LDADD = $(webkit_tests_ldadd)
Programs_unittests_testhttpbackend_LDFLAGS = $(webkit_tests_ldflags)
+Programs_unittests_testglobals_SOURCES = WebKit/gtk/tests/testglobals.c
+Programs_unittests_testglobals_CFLAGS = $(webkit_tests_cflags)
+Programs_unittests_testglobals_LDADD = $(webkit_tests_ldadd)
+Programs_unittests_testglobals_LDFLAGS = $(webkit_tests_ldflags)
+
Programs_unittests_testloading_SOURCES = WebKit/gtk/tests/testloading.c
Programs_unittests_testloading_CFLAGS = $(webkit_tests_cflags)
Programs_unittests_testloading_LDADD = $(webkit_tests_ldadd)
@@ -637,6 +735,11 @@ Programs_unittests_testatk_CFLAGS = $(webkit_tests_cflags)
Programs_unittests_testatk_LDADD = $(webkit_tests_ldadd)
Programs_unittests_testatk_LDFLAGS = $(webkit_tests_ldflags)
+Programs_unittests_testatkroles_SOURCES = WebKit/gtk/tests/testatkroles.c
+Programs_unittests_testatkroles_CFLAGS = $(webkit_tests_cflags)
+Programs_unittests_testatkroles_LDADD = $(webkit_tests_ldadd)
+Programs_unittests_testatkroles_LDFLAGS = $(webkit_tests_ldflags)
+
Programs_unittests_testwebsettings_SOURCES = WebKit/gtk/tests/testwebsettings.c
Programs_unittests_testwebsettings_CFLAGS = $(webkit_tests_cflags)
Programs_unittests_testwebsettings_LDADD = $(webkit_tests_ldadd)
@@ -671,13 +774,15 @@ BUILT_SOURCES += \
$(webcore_built_sources) \
$(webcore_built_nosources) \
$(webkitgtk_built_sources) \
- $(webkitgtk_built_nosources)
+ $(webkitgtk_built_nosources) \
+ $(gdom_built_nosources)
# Project-wide clean rules
# Files that will be cleaned
CLEANFILES += \
$(BUILT_SOURCES) \
- $(webkitgtk_cleanfiles)
+ $(webkitgtk_cleanfiles) \
+ $(libgdom_cleanfiles)
DISTCLEANFILES += \
$(CLEANFILES) \