summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2012-07-13 15:20:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-17 10:54:06 +0100
commit7765ad4d69bfb6c15fb436e509574629e896f2e6 (patch)
tree2c0d8faef77d56cf28bbce2b90a5619e5e5a3fd6 /meta/recipes-sato
parentc9f855e0400dd8050a459bf34f685159218f7e53 (diff)
downloadpoky-7765ad4d69bfb6c15fb436e509574629e896f2e6.tar.gz
webkit-gtk: remove svn recipe
(From OE-Core rev: ecb18e2b6a8fc16b323f93c62ed5ff5b080c5dd0) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato')
-rw-r--r--meta/recipes-sato/webkit/files/GNUmakefile.am280
-rw-r--r--meta/recipes-sato/webkit/files/Makefile17
-rw-r--r--meta/recipes-sato/webkit/files/Makefile.shared18
-rw-r--r--meta/recipes-sato/webkit/files/WebKit.pri107
-rw-r--r--meta/recipes-sato/webkit/files/WebKit.pro21
-rwxr-xr-xmeta/recipes-sato/webkit/files/autogen.sh23
-rw-r--r--meta/recipes-sato/webkit/files/configure.ac1315
-rw-r--r--meta/recipes-sato/webkit/files/function-scope.patch21
-rw-r--r--meta/recipes-sato/webkit/files/gtk-doc.make173
-rwxr-xr-xmeta/recipes-sato/webkit/files/update-webkit.sh8
-rw-r--r--meta/recipes-sato/webkit/webkit-gtk_svn.bb107
11 files changed, 0 insertions, 2090 deletions
diff --git a/meta/recipes-sato/webkit/files/GNUmakefile.am b/meta/recipes-sato/webkit/files/GNUmakefile.am
deleted file mode 100644
index 4d2785f241..0000000000
--- a/meta/recipes-sato/webkit/files/GNUmakefile.am
+++ /dev/null
@@ -1,280 +0,0 @@
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 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.
24
25srcdir = @srcdir@
26VPATH = @srcdir@
27
28DISTCHECK_CONFIGURE_FLAGS = \
29 --enable-introspection \
30 --enable-gtk-doc \
31 --enable-webkit2
32
33# Directory for autogenerated sources
34GENSOURCES := $(top_builddir)/DerivedSources
35GENSOURCES_JAVASCRIPTCORE := $(top_builddir)/DerivedSources/JavaScriptCore
36GENSOURCES_WEBCORE := $(top_builddir)/DerivedSources/WebCore
37GENSOURCES_WEBKIT := $(top_builddir)/DerivedSources/webkit
38GENSOURCES_WEBKIT2 := $(top_builddir)/DerivedSources/WebKit2
39GENPROGRAMS := $(top_builddir)/Programs
40GENSOURCES_INSPECTOR := $(GENPROGRAMS)/resources/inspector
41WebCore := $(srcdir)/Source/WebCore
42WebKit := $(srcdir)/Source/WebKit/gtk
43WebKit2 := $(srcdir)/Source/WebKit2
44pkgconfigdir := $(libdir)/pkgconfig
45libwebkitgtkincludedir := $(prefix)/include/webkitgtk-@WEBKITGTK_API_VERSION@
46
47# Libraries and support components
48bin_PROGRAMS :=
49noinst_PROGRAMS :=
50libexec_PROGRAMS :=
51noinst_HEADERS :=
52noinst_LTLIBRARIES :=
53lib_LTLIBRARIES :=
54IDL_BINDINGS :=
55TEST_PROGS :=
56POFILES :=
57MOFILES :=
58javascriptcore_h_api :=
59javascriptcore_cppflags:=
60javascriptcore_cflags :=
61javascriptcore_sources :=
62javascriptcore_built_sources :=
63javascriptcore_built_nosources :=
64webcore_cppflags :=
65webcore_sources :=
66webcore_libadd :=
67webcore_built_sources :=
68webcore_built_nosources :=
69webcoregtk_sources :=
70webcoregtk_cppflags :=
71webkitgtk_built_h_api :=
72webkitgtk_static_h_api :=
73webkitgtk_h_api :=
74webkitgtk_sources :=
75webkitgtk_cppflags :=
76webkitgtk_gdom_built_sources :=
77webkitgtk_built_sources :=
78webkitgtk_built_nosources :=
79webkit2_built_sources :=
80webkit2_plugin_process_built_sources :=
81webkittestrunner_built_sources :=
82libwebcoreinternals_built_sources :=
83global_cppflags :=
84global_cflags :=
85global_cxxflags :=
86JSCORE_GIRSOURCES :=
87WEBKIT_GIRSOURCES :=
88FEATURE_DEFINES :=
89typelibsdir :=
90typelibs_DATA :=
91EXTRA_DIST :=
92BUILT_SOURCES :=
93CLEANFILES :=
94DOMAIN :=
95DISTCLEANFILES :=
96MAINTAINERCLEANFILES :=
97pkgconfig_DATA :=
98
99# We do not care at all about this implicit built-in make rules,
100# disable them to save some build time
101%: %.c
102%: %.cpp
103%: %.o
104(%): %
105%.out: %
106%.c: %.w %.ch
107%.tex: %.w %.ch
108%:: %,v
109%:: RCS/%,v
110%:: RCS/%
111%:: s.%
112%:: SCCS/s.%
113
114global_cppflags += \
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 -DENABLE_GLIB_SUPPORT=1
120
121
122global_cxxflags += \
123 -fno-rtti
124
125# -no-undefined required for building DLLs on Windows
126# It breaks the build on other platforms, so we use it conditionally
127if OS_WIN32
128no_undefined = -no-undefined
129version_script = -export-symbols-regex "^(webkit_|k?JS).*"
130endif
131
132if OS_GNU
133version_script = -Wl,--version-script,$(srcdir)/Source/autotools/symbols.filter
134endif
135
136# Extra checks and flags
137global_cppflags += \
138 -DBUILDING_CAIRO__=1 \
139 -DBUILDING_GTK__=1 \
140 -DWTF_CHANGES
141
142# For the Gtk port we want to use XP_UNIX both in X11 and Mac
143if !TARGET_WIN32
144global_cppflags += \
145 -DXP_UNIX
146endif
147
148if USE_ICU_UNICODE
149global_cppflags += \
150 -DWTF_USE_ICU_UNICODE=1
151endif
152
153if USE_GLIB_UNICODE
154global_cppflags += \
155 -DWTF_USE_GLIB_UNICODE=1
156endif
157
158if !ENABLE_FAST_MALLOC
159global_cppflags += \
160 -DUSE_SYSTEM_MALLOC
161endif
162
163if USE_GSTREAMER
164global_cppflags += \
165 -DWTF_USE_GSTREAMER=1
166endif
167
168# ----
169# GTK+ 2.x/3.x support
170# ----
171if GTK_API_VERSION_2
172global_cppflags += \
173 -DGTK_API_VERSION_2=1
174endif
175
176if !ENABLE_DEBUG
177global_cppflags += -DNDEBUG
178else
179global_cppflags += \
180 -DG_DISABLE_DEPRECATED \
181 -DGDK_PIXBUF_DISABLE_DEPRECATED \
182 -DGDK_DISABLE_DEPRECATED \
183 -DGTK_DISABLE_DEPRECATED \
184 -DPANGO_DISABLE_DEPRECATED
185# Might be useful in the future
186# -DGDK_MULTIHEAD_SAFE \
187# -DGTK_MULTIHEAD_SAFE
188endif
189
190if ENABLE_COVERAGE
191global_cppflags += \
192 -DGCC_GENERATE_TEST_COVERAGE_FILES \
193 -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
194endif
195
196EXTRA_DIST += \
197 $(srcdir)/Source/autotools/symbols.filter \
198 $(srcdir)/Source/WebKit/LICENSE
199
200# Include module makefiles
201if USE_JSC
202include Source/JavaScriptCore/GNUmakefile.am
203endif
204
205include Source/WebCore/GNUmakefile.am
206include Source/WebKit/gtk/GNUmakefile.am
207include Source/WebCore/bindings/gobject/GNUmakefile.am
208include Tools/GNUmakefile.am
209include Source/WebKit/gtk/po/GNUmakefile.am
210include Tools/DumpRenderTree/gtk/GNUmakefile.ImageDiff.am
211
212if ENABLE_WEBKIT2
213include Source/WebKit2/GNUmakefile.am
214include Source/WebKit2/UIProcess/API/gtk/tests/GNUmakefile.am
215include Tools/MiniBrowser/gtk/GNUmakefile.am
216include Tools/WebKitTestRunner/GNUmakefile.am
217# [GTK] Refactor the translations now that we have webkit2
218# https://bugs.webkit.org/show_bug.cgi?id=55153
219endif
220
221# Autogenerated sources
222BUILT_SOURCES += \
223 $(webcore_built_sources) \
224 $(webcore_built_nosources) \
225 $(webkitgtk_built_sources) \
226 $(webkitgtk_built_nosources)
227
228if USE_JSC
229BUILT_SOURCES += \
230 $(javascriptcore_built_sources) \
231 $(javascriptcore_built_nosources)
232endif
233
234DISTCLEANFILES += \
235 $(CLEANFILES) \
236 $(builddir)/doltcompile \
237 $(builddir)/doltlibtool
238
239MAINTAINERCLEANFILES += \
240 $(CLEANFILES) \
241 $(builddir)/doltcompile \
242 $(builddir)/doltlibtool \
243 $(srcdir)/aconfig.h.in \
244 $(srcdir)/Source/autotools/config.* \
245 $(srcdir)/Source/autotools/compile \
246 $(srcdir)/Source/autotools/depcomp \
247 $(srcdir)/Source/autotools/install-sh \
248 $(srcdir)/Source/autotools/missing \
249 $(srcdir)/configure \
250 $(srcdir)/GNUmakefile.in \
251 $(srcdir)/INSTALL \
252 $(srcdir)/README \
253 $(top_builddir)/config.*
254
255# Older automake versions (1.7) place Plo files in a different place so we need
256# to create the output directory manually.
257all-local: stamp-po
258 $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
259
260# remove built sources and program directories
261clean-local:
262 -rm -rf $(GENPROGRAMS)
263
264maintainer-clean-local: distclean-local
265distclean-local:
266 -rm -rf $(GENSOURCES) $(GENPROGRAMS)
267
268dist-hook: doc-dist-hook
269doc-dist-hook: docs-build.stamp
270 cp $(WebKit)/NEWS $(distdir)
271 @mkdir -p $(distdir)/Documentation/webkitgtk/html
272 @mkdir -p $(distdir)/Documentation/webkitgtk/tmpl
273 @-cp ./Documentation/webkitgtk/tmpl/*.sgml $(distdir)/Documentation/webkitgtk/tmpl
274 @cp ./Documentation/webkitgtk/html/* $(distdir)/Documentation/webkitgtk/html
275if ENABLE_WEBKIT2
276 @mkdir -p $(distdir)/Documentation/webkit2gtk/html
277 @mkdir -p $(distdir)/Documentation/webkit2gtk/tmpl
278 @-cp ./Documentation/webkit2gtk/tmpl/*.sgml $(distdir)/Documentation/webkit2gtk/tmpl
279 @cp ./Documentation/webkit2gtk/html/* $(distdir)/Documentation/webkit2gtk/html
280endif
diff --git a/meta/recipes-sato/webkit/files/Makefile b/meta/recipes-sato/webkit/files/Makefile
deleted file mode 100644
index 065f88f47f..0000000000
--- a/meta/recipes-sato/webkit/files/Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
1MODULES = Source/JavaScriptCore Source/JavaScriptGlue Source/ThirdParty/ANGLE Source/WebCore Source/WebKit Source/WebKit2 Tools
2
3all:
4 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
5 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
6
7debug d development dev develop:
8 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
9 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
10
11release r deployment dep deploy:
12 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
13 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
14
15clean:
16 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
17 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
diff --git a/meta/recipes-sato/webkit/files/Makefile.shared b/meta/recipes-sato/webkit/files/Makefile.shared
deleted file mode 100644
index 56ed9784ee..0000000000
--- a/meta/recipes-sato/webkit/files/Makefile.shared
+++ /dev/null
@@ -1,18 +0,0 @@
1SCRIPTS_PATH ?= ../Tools/Scripts
2XCODE_OPTIONS = `perl -I$(SCRIPTS_PATH) -Mwebkitdirs -e 'print XcodeOptionString()'` $(ARGS)
3
4all:
5 ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
6
7debug d development dev develop: force
8 $(SCRIPTS_PATH)/set-webkit-configuration --debug
9 ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
10
11release r deployment dep deploy: force
12 $(SCRIPTS_PATH)/set-webkit-configuration --release
13 ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
14
15clean:
16 ( xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
17
18force: ;
diff --git a/meta/recipes-sato/webkit/files/WebKit.pri b/meta/recipes-sato/webkit/files/WebKit.pri
deleted file mode 100644
index d12423beb2..0000000000
--- a/meta/recipes-sato/webkit/files/WebKit.pri
+++ /dev/null
@@ -1,107 +0,0 @@
1# Include file to make it easy to include WebKit into Qt projects
2
3
4isEmpty(OUTPUT_DIR) {
5 CONFIG(release):OUTPUT_DIR=$$PWD/WebKitBuild/Release
6 CONFIG(debug):OUTPUT_DIR=$$PWD/WebKitBuild/Debug
7}
8
9!gtk-port:CONFIG += qt-port
10qt-port:DEFINES += BUILDING_QT__=1
11qt-port:!building-libs {
12 QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR
13 LIBS += -lQtWebKit
14 DEPENDPATH += $$PWD/WebKit/qt/Api
15}
16
17gtk-port:!building-libs {
18 QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR
19 LIBS += -lWebKitGtk
20 DEPENDPATH += $$PWD/WebKit/gtk $$PWD/WebKit/gtk/WebCoreSupport $$PWD/WebKit/gtk/webkit
21}
22
23gtk-port {
24 CONFIG += link_pkgconfig
25
26 DEFINES += BUILDING_CAIRO__=1 BUILDING_GTK__=1
27
28 # We use FreeType directly with Cairo
29 PKGCONFIG += cairo-ft
30
31 directfb: PKGCONFIG += cairo-directfb gtk+-directfb-2.0
32 else: PKGCONFIG += cairo gtk+-2.0
33
34 # Set a CONFIG flag for the GTK+ target (x11, quartz, win32, directfb)
35 CONFIG += $$system(pkg-config --variable=target $$PKGCONFIG)
36
37 # We use the curl http backend on all platforms
38 PKGCONFIG += libcurl
39 DEFINES += WTF_USE_CURL=1
40
41 LIBS += -lWebKitGtk -ljpeg -lpng
42
43 QMAKE_CXXFLAGS += $$system(icu-config --cppflags)
44 QMAKE_LIBS += $$system(icu-config --ldflags)
45
46 # This set of warnings is borrowed from the Mac build
47 QMAKE_CXXFLAGS += -Wall -W -Wcast-align -Wchar-subscripts -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-format-y2k -Wno-unused-parameter -Wundef
48
49 # These flags are based on optimization experience from the Mac port:
50 # Helps code size significantly and speed a little
51 QMAKE_CXXFLAGS += -fno-exceptions -fno-rtti
52
53 DEPENDPATH += $$PWD/JavaScriptCore/API
54 INCLUDEPATH += $$PWD
55}
56
57DEFINES += USE_SYSTEM_MALLOC
58CONFIG(release) {
59 DEFINES += NDEBUG
60}
61
62gtk-port:CONFIG(debug) {
63 DEFINES += G_DISABLE_DEPRECATED GDK_PIXBUF_DISABLE_DEPRECATED GDK_DISABLE_DEPRECATED GTK_DISABLE_DEPRECATED PANGO_DISABLE_DEPRECATED
64# maybe useful for debugging DEFINES += GDK_MULTIHEAD_SAFE GTK_MULTIHEAD_SAFE
65}
66
67BASE_DIR = $$PWD
68qt-port:INCLUDEPATH += \
69 $$PWD/WebKit/qt/Api
70gtk-port:INCLUDEPATH += \
71 $$BASE_DIR/WebCore/platform/gtk \
72 $$BASE_DIR/WebCore/platform/network/curl \
73 $$BASE_DIR/WebCore/platform/graphics/cairo \
74 $$BASE_DIR/WebCore/loader/gtk \
75 $$BASE_DIR/WebCore/page/gtk \
76 $$BASE_DIR/WebKit/gtk \
77 $$BASE_DIR/WebKit/gtk/WebCoreSupport \
78 $$BASE_DIR/WebKit/gtk/webkit
79INCLUDEPATH += \
80 $$BASE_DIR/JavaScriptCore/ \
81 $$BASE_DIR/JavaScriptCore/kjs \
82 $$BASE_DIR/JavaScriptCore/bindings \
83 $$BASE_DIR/JavaScriptCore/bindings/c \
84 $$BASE_DIR/JavaScriptCore/wtf \
85 $$BASE_DIR/JavaScriptCore/ForwardingHeaders \
86 $$BASE_DIR/WebCore \
87 $$BASE_DIR/WebCore/ForwardingHeaders \
88 $$BASE_DIR/WebCore/platform \
89 $$BASE_DIR/WebCore/platform/network \
90 $$BASE_DIR/WebCore/platform/graphics \
91 $$BASE_DIR/WebCore/loader \
92 $$BASE_DIR/WebCore/page \
93 $$BASE_DIR/WebCore/css \
94 $$BASE_DIR/WebCore/dom \
95 $$BASE_DIR/WebCore/bridge \
96 $$BASE_DIR/WebCore/editing \
97 $$BASE_DIR/WebCore/rendering \
98 $$BASE_DIR/WebCore/history \
99 $$BASE_DIR/WebCore/xml \
100 $$BASE_DIR/WebCore/html \
101 $$BASE_DIR/WebCore/plugins
102
103
104macx {
105 INCLUDEPATH += /usr/include/libxml2
106 LIBS += -lxml2 -lxslt
107}
diff --git a/meta/recipes-sato/webkit/files/WebKit.pro b/meta/recipes-sato/webkit/files/WebKit.pro
deleted file mode 100644
index bc14feb5f6..0000000000
--- a/meta/recipes-sato/webkit/files/WebKit.pro
+++ /dev/null
@@ -1,21 +0,0 @@
1TEMPLATE = subdirs
2CONFIG += ordered
3!gtk-port:CONFIG += qt-port
4qt-port {
5 lessThan(QT_MINOR_VERSION, 4) {
6 !win32-*:SUBDIRS += WebKit/qt/Plugins
7 }
8}
9SUBDIRS += \
10 WebCore \
11 JavaScriptCore/kjs/testkjs.pro
12
13qt-port {
14 SUBDIRS += WebKit/qt/QtLauncher
15
16 !win32-*: SUBDIRS += WebKitTools/DumpRenderTree/qt/DumpRenderTree.pro
17}
18
19gtk-port:SUBDIRS += \
20 WebKitTools/GtkLauncher \
21 WebKitTools/DumpRenderTree/gtk/DumpRenderTree.pro
diff --git a/meta/recipes-sato/webkit/files/autogen.sh b/meta/recipes-sato/webkit/files/autogen.sh
deleted file mode 100755
index bb7779d44d..0000000000
--- a/meta/recipes-sato/webkit/files/autogen.sh
+++ /dev/null
@@ -1,23 +0,0 @@
1#! /bin/sh
2
3# Allow invocation from a separate build directory; in that case, we change
4# to the source directory to run the auto*, then change back before running configure
5srcdir=`dirname $0`
6test -z "$srcdir" && srcdir=.
7
8ORIGDIR=`pwd`
9cd $srcdir
10
11rm -f $top_srcdir/autom4te.cache
12
13touch README INSTALL
14
15if test -z `which autoreconf`; then
16 echo "Error: autoreconf not found, please install it."
17 exit 1
18fi
19autoreconf --verbose --install -I Source/autotools $ACLOCAL_FLAGS|| exit $?
20
21cd $ORIGDIR || exit 1
22
23$srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
diff --git a/meta/recipes-sato/webkit/files/configure.ac b/meta/recipes-sato/webkit/files/configure.ac
deleted file mode 100644
index 65176aea2d..0000000000
--- a/meta/recipes-sato/webkit/files/configure.ac
+++ /dev/null
@@ -1,1315 +0,0 @@
1AC_PREREQ(2.59)
2
3m4_define([webkit_major_version], [1])
4m4_define([webkit_minor_version], [7])
5m4_define([webkit_micro_version], [2])
6
7# This is the version we'll be using as part of our User-Agent string
8# e.g., AppleWebKit/$(webkit_user_agent_version) ...
9#
10# Sourced from Source/WebCore/Configurations/Version.xcconfig
11m4_define([webkit_user_agent_major_version], [535])
12m4_define([webkit_user_agent_minor_version], [10])
13
14AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
15
16AC_CONFIG_MACRO_DIR([Source/autotools])
17AC_CONFIG_AUX_DIR([Source/autotools])
18AC_SUBST(ACLOCAL_AMFLAGS, "-I Source/autotools")
19
20AC_CONFIG_HEADERS([autotoolsconfig.h])
21AC_CANONICAL_HOST
22
23WEBKIT_MAJOR_VERSION=webkit_major_version
24WEBKIT_MINOR_VERSION=webkit_minor_version
25WEBKIT_MICRO_VERSION=webkit_micro_version
26WEBKIT_USER_AGENT_MAJOR_VERSION=webkit_user_agent_major_version
27WEBKIT_USER_AGENT_MINOR_VERSION=webkit_user_agent_minor_version
28AC_SUBST(WEBKIT_MAJOR_VERSION)
29AC_SUBST(WEBKIT_MINOR_VERSION)
30AC_SUBST(WEBKIT_MICRO_VERSION)
31AC_SUBST(WEBKIT_USER_AGENT_MAJOR_VERSION)
32AC_SUBST(WEBKIT_USER_AGENT_MINOR_VERSION)
33
34AC_CONFIG_SRCDIR([Source/WebCore/config.h])
35
36dnl # Libtool library version, not to confuse with API version
37dnl # see http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html
38LIBWEBKITGTK_VERSION=11:2:11
39AC_SUBST([LIBWEBKITGTK_VERSION])
40
41AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar])
42
43# Use AM_SILENT_RULES if present
44m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
45
46# host checking - inspired by the GTK+ configure.in
47# TODO: move these to webkit.m4?
48AC_MSG_CHECKING([for native Win32])
49case "$host" in
50 *-*-mingw*)
51 os_win32=yes
52 ;;
53 *)
54 os_win32=no
55 ;;
56esac
57AC_MSG_RESULT([$os_win32])
58
59case "$host" in
60 *-*-linux*)
61 os_linux=yes
62 ;;
63 *-*-freebsd*)
64 os_freebsd=yes
65 ;;
66 *-*-darwin*)
67 os_darwin=yes
68 ;;
69esac
70
71case "$host_os" in
72 gnu* | linux* | k*bsd*-gnu)
73 os_gnu=yes
74 ;;
75 *)
76 os_gnu=no
77 ;;
78esac
79
80# initialize webkit options
81WEBKIT_INIT
82AC_DISABLE_STATIC
83AC_LIBTOOL_WIN32_DLL
84AC_PROG_LIBTOOL
85# use dolt to speedup the build
86DOLT
87
88AC_PATH_PROG(FLEX, flex)
89if test -z "$FLEX"; then
90 AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
91else
92 FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'`
93 AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION],
94 AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly]))
95fi
96
97AC_PATH_PROG(GPERF, gperf)
98if test -z "$GPERF"; then
99 AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
100fi
101
102# Disable C++0x compat warnings for GCC >= 4.6.0 until we build
103# cleanly with that.
104if test "$CXX" = "g++"; then
105 CXX_VERSION=`$CXX -dumpversion`
106 AX_COMPARE_VERSION([$CXX_VERSION],[ge],[4.6.0],CXXFLAGS="$CXXFLAGS -Wno-c++0x-compat")
107fi
108
109# pthread (not needed on Windows)
110if test "$os_win32" = "no"; then
111AC_CHECK_HEADERS([pthread.h],
112 AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
113 AC_MSG_ERROR([pthread support is required to build WebKit]))
114AC_CHECK_LIB(pthread, pthread_rwlock_init,
115 AC_DEFINE([HAVE_PTHREAD_RWLOCK],[1],[Define if pthread rwlock is present]),
116 AC_MSG_WARN([pthread rwlock support is not available]))
117fi
118
119# check for libjpeg the way Gtk does it.
120AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
121 jpeg_ok=yes, jpeg_ok=no
122 AC_MSG_ERROR([JPEG library (libjpeg) not found]))
123if test "$jpeg_ok" = yes; then
124 AC_MSG_CHECKING([for jpeglib])
125 AC_TRY_CPP(
126[#include <stdio.h>
127#undef PACKAGE
128#undef VERSION
129#undef HAVE_STDLIB_H
130#include <jpeglib.h>],
131 jpeg_ok=yes,
132 jpeg_ok=no)
133 AC_MSG_RESULT($jpeg_ok)
134 if test "$jpeg_ok" = yes; then
135 JPEG_LIBS="-ljpeg"
136 # should we check for progressive JPEG like GTK+ as well?
137 else
138 AC_MSG_ERROR([JPEG library (libjpeg) not found])
139 fi
140fi
141AC_SUBST([JPEG_LIBS])
142
143# Check for libpng the way Gtk+ does it
144for l in libpng libpng14 libpng12; do
145 AC_MSG_CHECKING(for $l)
146 if $PKG_CONFIG --exists $l ; then
147 AC_MSG_RESULT(yes)
148 PNG_LIBS=`$PKG_CONFIG --libs $l`
149 png_ok=yes
150 break
151 else
152 AC_MSG_RESULT(no)
153 png_ok=no
154 fi
155done
156if test "$png_ok" != yes; then
157 AC_CHECK_LIB(png, png_read_info,
158 [AC_CHECK_HEADER(png.h,
159 png_ok=yes,
160 png_ok=no)],
161 AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
162 if test "$png_ok" = yes; then
163 AC_MSG_CHECKING([for png_structp in png.h])
164 AC_TRY_COMPILE([#include <png.h>],
165 [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
166 png_ok=yes,
167 png_ok=no)
168 AC_MSG_RESULT($png_ok)
169 if test "$png_ok" = yes; then
170 PNG_LIBS='-lpng -lz'
171 else
172 AC_MSG_ERROR([PNG library (libpng) not found])
173 fi
174 else
175 AC_MSG_ERROR([PNG library (libpng) not found])
176 fi
177fi
178AC_SUBST([PNG_LIBS])
179
180
181if test "$os_win32" = "yes"; then
182 WINMM_LIBS=-lwinmm
183 SHLWAPI_LIBS=-lshlwapi
184 OLE32_LIBS=-lole32
185fi
186AC_SUBST([WINMM_LIBS])
187AC_SUBST([SHLWAPI_LIBS])
188AC_SUBST([OLE32_LIBS])
189
190
191# determine the GTK+ version to use
192AC_MSG_CHECKING([the GTK+ version to use])
193AC_ARG_WITH([gtk],
194 [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 3.0)])],
195 [case "$with_gtk" in
196 2.0|3.0) ;;
197 *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
198 esac],
199 [with_gtk=3.0])
200AC_MSG_RESULT([$with_gtk])
201
202GTK2_REQUIRED_VERSION=2.10
203GAIL2_REQUIRED_VERSION=1.8
204GTK3_REQUIRED_VERSION=3.0
205GAIL3_REQUIRED_VERSION=3.0
206
207case "$with_gtk" in
208 2.0) GTK_REQUIRED_VERSION=$GTK2_REQUIRED_VERSION
209 GTK_API_VERSION=2.0
210 WEBKITGTK_API_MAJOR_VERSION=1
211 WEBKITGTK_API_MINOR_VERSION=0
212 WEBKITGTK_API_VERSION=1.0
213 WEBKITGTK_PC_NAME=webkit
214 GAIL_PC_NAME=gail
215 GAIL_REQUIRED_VERSION=$GAIL2_REQUIRED_VERSION
216 ;;
217 3.0) GTK_REQUIRED_VERSION=$GTK3_REQUIRED_VERSION
218 GTK_API_VERSION=3.0
219 WEBKITGTK_API_MAJOR_VERSION=3
220 WEBKITGTK_API_MINOR_VERSION=0
221 WEBKITGTK_API_VERSION=3.0
222 WEBKITGTK_PC_NAME=webkitgtk
223 GAIL_PC_NAME=gail-3.0
224 GAIL_REQUIRED_VERSION=$GAIL3_REQUIRED_VERSION
225 ;;
226esac
227
228AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
229AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
230AC_SUBST([WEBKITGTK_API_VERSION])
231AC_SUBST([WEBKITGTK_PC_NAME])
232AC_SUBST([GTK_API_VERSION])
233AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
234
235# determine the GDK/GTK+ target
236AC_MSG_CHECKING([the target windowing system])
237AC_ARG_WITH(target,
238 AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
239 [Select webkit target [default=x11]]),
240 [],[with_target="x11"])
241
242case "$with_target" in
243 x11|win32|quartz|directfb) ;;
244 *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
245esac
246
247AC_MSG_RESULT([$with_target])
248
249AC_MSG_CHECKING([for Hildon UI extensions])
250AC_ARG_WITH(hildon,
251 AC_HELP_STRING([--with-hildon],
252 [Use Hildon UI extensions [default=no]]),
253 [],[with_hildon="no"])
254AC_MSG_RESULT([$with_hildon])
255
256if test "$with_hildon" = "yes"; then
257 HILDON_CPPFLAGS="-DMAEMO_CHANGES"
258 PKG_CHECK_MODULES([HILDON], [hildon-1])
259 AC_SUBST([HILDON_CPPFLAGS])
260 AC_SUBST([HILDON_CFLAGS])
261 AC_SUBST([HILDON_LIBS])
262fi
263
264# minimum base dependencies
265LIBSOUP_REQUIRED_VERSION=2.33.6
266CAIRO_REQUIRED_VERSION=1.10
267FONTCONFIG_REQUIRED_VERSION=2.4
268FREETYPE2_REQUIRED_VERSION=9.0
269LIBXML_REQUIRED_VERSION=2.6
270
271# minimum GTK+ base dependencies
272PANGO_REQUIRED_VERSION=1.12
273
274# optional modules
275LIBXSLT_REQUIRED_VERSION=1.1.7
276SQLITE_REQUIRED_VERSION=3.0
277GSTREAMER_REQUIRED_VERSION=0.10
278GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.30
279ENCHANT_REQUIRED_VERSION=0.22
280LIBFFTW_REQUIRED_VERSION=3.2.2
281
282# Available modules
283#
284# glib - glib and includes gthread
285# unicode - check and identify which unicode backend to use
286#
287# todo: webcore gtk
288WEBKIT_CHECK_DEPENDENCIES([glib unicode])
289
290GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
291AC_SUBST(GETTEXT_PACKAGE)
292AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
293 [The gettext catalog name])
294
295PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
296AC_SUBST(LIBXML_CFLAGS)
297AC_SUBST(LIBXML_LIBS)
298
299PKG_CHECK_MODULES(PANGO,
300 [pango >= $PANGO_REQUIRED_VERSION
301 pangoft2])
302AC_SUBST(PANGO_CFLAGS)
303AC_SUBST(PANGO_LIBS)
304
305AC_MSG_CHECKING([whether to enable spellcheck support])
306AC_ARG_ENABLE([spellcheck],
307 [AS_HELP_STRING([--enable-spellcheck],[enable support for spellcheck])],
308 [],[enable_spellcheck="yes"])
309AC_MSG_RESULT([$enable_spellcheck])
310
311if test "$enable_spellcheck" = "yes"; then
312PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION, [], [enable_spellcheck="no"])
313AC_SUBST(ENCHANT_CFLAGS)
314AC_SUBST(ENCHANT_LIBS)
315fi
316
317PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
318AC_SUBST(GAIL_CFLAGS)
319AC_SUBST(GAIL_LIBS)
320
321# check for target-specific dependencies
322if test "$with_target" = "directfb"; then
323 PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
324 PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
325 AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
326else
327 PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
328 PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
329
330 if test "$with_target" = "x11" && test "$os_win32" = "no"; then
331 # check for XT
332 PKG_CHECK_MODULES([XT],
333 [xt],
334 [xt_has_pkg_config=yes],
335 [xt_has_pkg_config=no])
336 # some old versions of Xt do not provide xt.pc, so try to link against Xt
337 # and if it's installed fall back to just adding -lXt
338 if test "$xt_has_pkg_config" = "no"; then
339 # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
340 # we don't care about the XtOpenDisplay symbol but only about the
341 # existence of libXt
342 AC_CHECK_LIB([Xt], [XtOpenDisplay],
343 [XT_CFLAGS=""; XT_LIBS="-lXt"],
344 [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
345 fi
346 AC_SUBST([XT_CFLAGS])
347 AC_SUBST([XT_LIBS])
348 AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
349 fi
350fi
351AC_SUBST(GTK_CFLAGS)
352AC_SUBST(GTK_LIBS)
353AC_SUBST(CAIRO_CFLAGS)
354AC_SUBST(CAIRO_LIBS)
355
356# check whether to build with debugging enabled
357AC_MSG_CHECKING([whether to do a debug build])
358AC_ARG_ENABLE(debug,
359 AC_HELP_STRING([--enable-debug],
360 [turn on debugging [default=no]]),
361 [],[enable_debug="no"])
362AC_MSG_RESULT([$enable_debug])
363
364# check whether to enable optimized builds
365AC_MSG_CHECKING([whether to enable optimized builds])
366AC_ARG_ENABLE(optimizations,
367 AC_HELP_STRING([--enable-optimizations],
368 [turn on optimize builds (GCC only)
369 [default=yes]]),
370 [enable_optimizations=$enableval],
371 [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
372AC_MSG_RESULT([$enable_optimizations])
373
374# check whether to enable 3D rendering support
375AC_MSG_CHECKING([whether to enable support for 3D Rendering])
376AC_ARG_ENABLE(3d_rendering,
377 AC_HELP_STRING([--enable-3d-rendering],
378 [enable support for 3D Rendering (experimental) [default=no]]),
379 [],[enable_3d_rendering="no"])
380AC_MSG_RESULT([$enable_3d_rendering])
381
382# check whether to enable WebGL support
383AC_MSG_CHECKING([whether to enable WebGL support])
384AC_ARG_ENABLE(webgl,
385 AC_HELP_STRING([--enable-webgl], [enable support for WebGL [default=yes]]),
386 [], [if test "$with_target" = "x11"; then enable_webgl="yes"; else enable_webgl="no"; fi])
387AC_MSG_RESULT([$enable_webgl])
388
389if test "$enable_webgl" = "yes"; then
390 AC_CHECK_HEADERS([GL/gl.h], [], AC_MSG_ERROR([OpenGL header not found]))
391 AC_CHECK_HEADERS([GL/glx.h], [], AC_MSG_ERROR([GLX header not found]))
392 OPENGL_LIBS="-lGL -ldl"
393fi
394AC_SUBST([OPENGL_LIBS])
395
396# check whether to enable channel messaging support
397AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
398AC_ARG_ENABLE(channel_messaging,
399 AC_HELP_STRING([--enable-channel-messaging],
400 [enable HTML5 channel messaging support [default=yes]]),
401 [],[enable_channel_messaging="yes"])
402AC_MSG_RESULT([$enable_channel_messaging])
403
404# check whether to enable notifications
405AC_MSG_CHECKING([whether to enable notifications])
406AC_ARG_ENABLE(notifications,
407 AC_HELP_STRING([--enable-notifications],
408 [enable notifications [default=no]]),
409 [],[enable_notifications="no"])
410AC_MSG_RESULT([$enable_notifications])
411
412# check whether to enable the meter tag
413AC_MSG_CHECKING([whether to enable HTML5 meter tag])
414AC_ARG_ENABLE(meter_tag,
415 AC_HELP_STRING([--enable-meter-tag],
416 [enable HTML5 meter [default=yes]]),
417 [],[enable_meter_tag="yes"])
418AC_MSG_RESULT([$enable_meter_tag])
419
420# check whether to enable HTML5 Microdata support
421AC_MSG_CHECKING([whether to enable HTML5 Microdata support])
422AC_ARG_ENABLE(microdata,
423 AC_HELP_STRING([--enable-microdata],
424 [enable HTML5 microdata support [default=no]]),
425 [],[enable_microdata="no"])
426AC_MSG_RESULT([$enable_microdata])
427
428# check whether to enable page visibility API.
429AC_MSG_CHECKING([whether to enable Page Visibility API support])
430AC_ARG_ENABLE(page_visibility_api,
431 AC_HELP_STRING([--enable-page-visibility-api],
432 [enable page visibility api[default=no]]),
433 [],[enable_page_visibility_api="no"])
434AC_MSG_RESULT([$enable_page_visibility_api])
435
436# check whether to enable the progress tag
437AC_MSG_CHECKING([whether to enable HTML5 progress tag])
438AC_ARG_ENABLE(progress_tag,
439 AC_HELP_STRING([--enable-progress-tag],
440 [enable HTML5 progress [default=yes]]),
441 [],[enable_progress_tag="yes"])
442AC_MSG_RESULT([$enable_progress_tag])
443
444# check whether to enable JavaScript debugger/profiler support
445AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
446AC_ARG_ENABLE(javascript_debugger,
447 AC_HELP_STRING([--enable-javascript-debugger],
448 [enable JavaScript debugger/profiler support [default=yes]]),
449 [],[enable_javascript_debugger="yes"])
450AC_MSG_RESULT([$enable_javascript_debugger])
451
452# check whether to enable Gamepad support
453AC_MSG_CHECKING([whether to enable Gamepad support])
454AC_ARG_ENABLE(gamepad,
455 AC_HELP_STRING([--enable-gamepad],
456 [enable Gamepad support [default=no]]),
457 [],[enable_gamepad="no"])
458AC_MSG_RESULT([$enable_gamepad])
459
460# check whether to build with datagrid support
461AC_MSG_CHECKING([whether to enable HTML5 datagrid support])
462AC_ARG_ENABLE(datagrid,
463 AC_HELP_STRING([--enable-datagrid],
464 [enable HTML5 datagrid support [default=no]]),
465 [],[enable_datagrid="no"])
466AC_MSG_RESULT([$enable_datagrid])
467
468# check whether to build with data transfer items support
469AC_MSG_CHECKING([whether to enable HTML5 data transfer items support])
470AC_ARG_ENABLE(data_transfer_items,
471 AC_HELP_STRING([--enable-data-transfer-items],
472 [enable HTML5 data transfer items support [default=no]]),
473 [],[enable_data_transfer_items="no"])
474AC_MSG_RESULT([$enable_data_transfer_items])
475
476# check whether to enable DOM mutation observer support
477AC_MSG_CHECKING([whether to enable DOM mutation observer support])
478AC_ARG_ENABLE(mutation_observers,
479 AC_HELP_STRING([--enable-mutation-observers],
480 [enable DOM mutation observer support [default=no]]),
481 [],[enable_mutation_observers="no"])
482AC_MSG_RESULT([$enable_mutation_observers])
483
484# check whether to enable HTML5 client-side session and persitent storage support
485AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
486AC_ARG_ENABLE(dom_storage,
487 AC_HELP_STRING([--enable-dom-storage],
488 [enable HTML5 client-side session and persistent storage support [default=yes]]),
489 [],[enable_dom_storage="yes"])
490AC_MSG_RESULT([$enable_dom_storage])
491
492# check whether to enable the indexed database API
493AC_MSG_CHECKING([whether to enable the indexed database API])
494AC_ARG_ENABLE(indexed_database,
495 AC_HELP_STRING([--enable-indexed-database],
496 [enable the indexed database API [default=no]]),
497 [],[enable_indexed_database="no"])
498AC_MSG_RESULT([$enable_indexed_database])
499
500# check whether to enable the color input
501AC_MSG_CHECKING([whether to enable the color input])
502AC_ARG_ENABLE(input_color,
503 AC_HELP_STRING([--enable-input-color],
504 [enable the color input [default=no]]),
505 [],[enable_input_color="no"])
506AC_MSG_RESULT([$enable_input_color])
507
508# check whether to enable the speech input API
509AC_MSG_CHECKING([whether to enable the speech input API])
510AC_ARG_ENABLE(input_speech,
511 AC_HELP_STRING([--enable-input-speech],
512 [enable the speech input API [default=no]]),
513 [],[enable_input_speech="no"])
514AC_MSG_RESULT([$enable_input_speech])
515
516# check whether to build with SQL database support
517AC_MSG_CHECKING([whether to enable SQL client-side database storage support])
518AC_ARG_ENABLE(sql_database,
519 AC_HELP_STRING([--enable-sql-database],
520 [enable SQL client-side database storage support [default=yes]]),
521 [],[enable_sql_database="yes"])
522AC_MSG_RESULT([$enable_sql_database])
523
524# check whether to build with icon database support
525AC_MSG_CHECKING([whether to enable icon database support])
526AC_ARG_ENABLE(icon_database,
527 AC_HELP_STRING([--enable-icon-database],
528 [enable icon database [default=yes]]),
529 [],[enable_icon_database="yes"])
530AC_MSG_RESULT([$enable_icon_database])
531
532# check whether to build with image resizer API support
533AC_MSG_CHECKING([whether to enable image resizer API support])
534AC_ARG_ENABLE(image_resizer,
535 AC_HELP_STRING([--enable-image-resizer],
536 [enable image resizer [default=no]]),
537 [],[enable_image_resizer="no"])
538AC_MSG_RESULT([$enable_image_resizer])
539
540# check whether to enable HTML5 datalist support
541AC_MSG_CHECKING([whether to enable HTML5 datalist support])
542AC_ARG_ENABLE(datalist,
543 AC_HELP_STRING([--enable-datalist],
544 [enable HTML5 datalist support [default=yes]]),
545 [],[enable_datalist="yes"])
546AC_MSG_RESULT([$enable_datalist])
547
548# check whether to enable HTML5 sandbox iframe support
549AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
550AC_ARG_ENABLE(sandbox,
551 AC_HELP_STRING([--enable-sandbox],
552 [enable HTML5 sandboxed iframe support [default=yes]]),
553 [],[enable_sandbox="yes"])
554AC_MSG_RESULT([$enable_sandbox])
555
556# check whether to enable HTML5 audio/video support
557AC_MSG_CHECKING([whether to enable HTML5 video support])
558AC_ARG_ENABLE(video,
559 AC_HELP_STRING([--enable-video],
560 [enable HTML5 video support [default=yes]]),
561 [],[enable_video="yes"])
562AC_MSG_RESULT([$enable_video])
563
564# turn off video features if --disable-video is requested
565if test "$enable_video" = "no"; then
566 enable_video_track=no
567fi
568
569# check whether to enable HTML5 video track support
570AC_MSG_CHECKING([whether to enable HTML5 video track support])
571AC_ARG_ENABLE(video_track,
572 AC_HELP_STRING([--enable-video-track],
573 [enable HTML5 video track support [default=no]]),
574 [],[enable_video_track="no"])
575AC_MSG_RESULT([$enable_video_track])
576
577# check whether to enable media source support
578AC_MSG_CHECKING([whether to enable media source support])
579AC_ARG_ENABLE(media_source,
580 AC_HELP_STRING([--enable-media-source],
581 [enable support for media source [default=no]]),
582 [], [enable_media_source="no"])
583AC_MSG_RESULT([$enable_media_source])
584
585# check whether to enable media statistics support
586AC_MSG_CHECKING([whether to enable media statistics support])
587AC_ARG_ENABLE(media_statistics,
588 AC_HELP_STRING([--enable-media-statistics],
589 [enable support for media statistics [default=no]]),
590 [], [enable_media_statistics="no"])
591AC_MSG_RESULT([$enable_media_statistics])
592
593# check whether to enable Javascript Fullscreen API support
594AC_MSG_CHECKING([whether to enable Fullscreen API support])
595AC_ARG_ENABLE(fullscreen_api,
596 AC_HELP_STRING([--enable-fullscreen-api],
597 [enable the Fullscreen API support [default=yes]]),
598 [],[enable_fullscreen_api="yes"])
599AC_MSG_RESULT([$enable_fullscreen_api])
600
601# check whether to enable media stream support
602AC_MSG_CHECKING([whether to enable media stream support])
603AC_ARG_ENABLE(media_stream,
604 AC_HELP_STRING([--enable-media-stream],
605 [enable media stream support (incomplete) [default=no]]),
606 [],[enable_media_stream="no"])
607AC_MSG_RESULT([$enable_media_stream])
608
609# check whether to enable XSLT support
610AC_MSG_CHECKING([whether to enable XSLT support])
611AC_ARG_ENABLE(xslt,
612 AC_HELP_STRING([--enable-xslt],
613 [enable support for XSLT [default=yes]]),
614 [],[enable_xslt="yes"])
615AC_MSG_RESULT([$enable_xslt])
616
617# check whether to enable geolocation support
618AC_MSG_CHECKING([whether to enable geolocation support])
619AC_ARG_ENABLE(geolocation,
620 AC_HELP_STRING([--enable-geolocation],
621 [enable support for geolocation [default=no]]),
622 [],[enable_geolocation="no"])
623AC_MSG_RESULT([$enable_geolocation])
624
625# check whether to enable MathML support
626AC_MSG_CHECKING([whether to enable MathML support])
627AC_ARG_ENABLE(mathml,
628 AC_HELP_STRING([--enable-mathml],
629 [enable support for MathML [default=no]]),
630 [],[enable_mathml="no"])
631AC_MSG_RESULT([$enable_mathml])
632
633# check whether to enable SVG support
634AC_MSG_CHECKING([whether to enable SVG support])
635AC_ARG_ENABLE(svg,
636 AC_HELP_STRING([--enable-svg],
637 [enable support for SVG [default=yes]]),
638 [],[enable_svg="yes"])
639AC_MSG_RESULT([$enable_svg])
640
641# check whether to enable SharedWorkers support
642AC_MSG_CHECKING([whether to enable SharedWorkers support])
643AC_ARG_ENABLE(shared_workers,
644 AC_HELP_STRING([--enable-shared-workers],
645 [enable support for SharedWorkers [default=yes]]),
646 [],[enable_shared_workers="yes"])
647AC_MSG_RESULT([$enable_shared_workers])
648
649# check whether to enable Web Workers support
650AC_MSG_CHECKING([whether to enable Web Workers support])
651AC_ARG_ENABLE(workers,
652 AC_HELP_STRING([--enable-workers],
653 [enable support for Web Workers [default=yes]]),
654 [],[enable_workers="yes"])
655AC_MSG_RESULT([$enable_workers])
656
657# check whether to enable directory upload support
658AC_MSG_CHECKING([whether to enable directory upload support])
659AC_ARG_ENABLE(directory_upload,
660 AC_HELP_STRING([--enable-directory-upload],
661 [enable support for directory upload [default=no]]),
662 [], [enable_directory_upload="no"])
663AC_MSG_RESULT([$enable_directory_upload])
664
665# check whether to enable HTML5 FileSystem API support
666AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
667AC_ARG_ENABLE(file_system,
668 AC_HELP_STRING([--enable-file-system],
669 [enable support for HTML5 FileSystem API [default=no]]),
670 [], [enable_file_system="no"])
671AC_MSG_RESULT([$enable_file_system])
672
673# check whether to enable HTML5 <style scoped> support
674AC_MSG_CHECKING([whether to enable HTML5 <style scoped> support])
675AC_ARG_ENABLE(file_system,
676 AC_HELP_STRING([--enable-style-scoped],
677 [enable support for HTML5 <style scoped> [default=no]]),
678 [], [enable_style_scoped="no"])
679AC_MSG_RESULT([$enable_style_scoped])
680
681# check whether to enable Quota API support
682AC_MSG_CHECKING([whether to enable Quota API support])
683AC_ARG_ENABLE(quota,
684 AC_HELP_STRING([--enable-quota],
685 [enable support for Quota API [default=no]]),
686 [], [enable_quota="no"])
687AC_MSG_RESULT([$enable_quota])
688
689# turn off svg features if --disable-svg is requested
690if test "$enable_svg" = "no"; then
691 enable_svg_fonts=no
692fi
693
694# check whether to enable support for filters
695AC_MSG_CHECKING([whether to enable support for filters])
696AC_ARG_ENABLE(filters,
697 AC_HELP_STRING([--enable-filters],
698 [enable support for filters (experimental) [default=yes]]),
699 [],[enable_filters="yes"])
700AC_MSG_RESULT([$enable_filters])
701
702# check whether to enable support for SVG fonts
703AC_MSG_CHECKING([whether to enable support for SVG fonts])
704AC_ARG_ENABLE(svg_fonts,
705 AC_HELP_STRING([--enable-svg-fonts],
706 [enable support for SVG fonts (experimental) [default=yes]]),
707 [],[enable_svg_fonts="yes"])
708AC_MSG_RESULT([$enable_svg_fonts])
709
710# check for SVG features, enabling SVG if necessary
711if test "$enable_svg_fonts" = "yes"; then
712 svg_flags=yes
713 if test "$enable_svg" = "no"; then
714 AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
715 enable_svg=yes
716 fi
717fi
718
719# check whether to enable Web Socket support
720AC_MSG_CHECKING([whether to enable Web Sockets support])
721AC_ARG_ENABLE(web_sockets,
722 AC_HELP_STRING([--enable-web-sockets],
723 [enable support for Web Sockets [default=yes]]),
724 [],[enable_web_sockets="yes"])
725AC_MSG_RESULT([$enable_web_sockets])
726
727# check whether to enable Web Audio support
728enable_web_audio=no
729AC_MSG_RESULT([$enable_web_audio])
730
731# check whether to enable Web Timing support
732AC_MSG_CHECKING([whether to enable Web Timing support])
733AC_ARG_ENABLE(web_timing,
734 AC_HELP_STRING([--enable-web-timing],
735 [enable support for Web Timing [default=no]]),
736 [],[enable_web_timing="no"])
737AC_MSG_RESULT([$enable_web_timing])
738
739# check whether to enable Blob support
740AC_MSG_CHECKING([whether to enable Blob support])
741AC_ARG_ENABLE(blob,
742 AC_HELP_STRING([--enable-blob],
743 [enable support for Blob [default=yes]]),
744 [],[enable_blob="yes"])
745AC_MSG_RESULT([$enable_blob])
746
747# check whether to enable Fast Mobile Scrolling support
748AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
749AC_ARG_ENABLE(fast_mobile_scrolling,
750 AC_HELP_STRING([--enable-fast-mobile-scrolling],
751 [enable support for Fast Mobile Scrolling [default=no]]),
752 [],[enable_fast_mobile_scrolling="no"])
753AC_MSG_RESULT([$enable_fast_mobile_scrolling])
754
755# check whether to enable code coverage
756AC_MSG_CHECKING([whether to enable code coverage support])
757AC_ARG_ENABLE(coverage,
758 AC_HELP_STRING([--enable-coverage],
759 [enable code coverage support [default=no]]),
760 [],[enable_coverage="no"])
761AC_MSG_RESULT([$enable_coverage])
762
763# check whether to enable FastMalloc
764AC_MSG_CHECKING([whether to enable optimized memory allocator])
765AC_ARG_ENABLE(fast_malloc,
766 AC_HELP_STRING([--enable-fast-malloc],
767 [enable optimized memory allocator default=yes, default=no for debug builds]),
768 [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
769AC_MSG_RESULT([$enable_fast_malloc])
770
771# check whether to enable debug symbols
772AC_MSG_CHECKING([whether to enable debug symbols])
773AC_ARG_ENABLE(debug_symbols,
774 AC_HELP_STRING([--enable-debug-symbols],
775 [enable debug symbols default=no, default=yes for debug builds]),
776 [],[if test "$enable_debug" = "yes"; then enable_debug_symbols="yes"; else enable_debug_symbols="no"; fi])
777AC_MSG_RESULT([$enable_debug_symbols])
778
779# check whether to enable debug features
780AC_MSG_CHECKING([whether to enable debug features])
781AC_ARG_ENABLE(debug_features,
782 AC_HELP_STRING([--enable-debug-features],
783 [enable debug features default=no, default=yes for debug builds]),
784 [],[if test "$enable_debug" = "yes"; then enable_debug_features="yes"; else enable_debug_features="no"; fi])
785AC_MSG_RESULT([$enable_debug_features])
786
787# Determine JavaScript engine to use.
788AC_MSG_CHECKING([Javascript engine])
789AC_ARG_WITH(jsengine,
790 AC_HELP_STRING([--with-jsengine=@<:@jsc@:>@],
791 [Select Javascript engine [default=jsc]]),
792 [],[with_jsengine="jsc"])
793
794case "$with_jsengine" in
795 jsc) ;;
796 *) AC_MSG_ERROR([Invalid JS engine: Must be jsc]) ;;
797esac
798AC_MSG_RESULT([$with_jsengine])
799
800if test "$with_jsengine" = "jsc"; then
801 AC_MSG_CHECKING([whether to enable JIT compilation])
802 AC_ARG_ENABLE([jit],
803 AC_HELP_STRING([--enable-jit],
804 [Enable JIT compilation default=yes]),
805 [],[enable_jit="yes"])
806 if test "$enable_jit" = "yes"; then
807 case "$host_cpu" in
808 arm*)
809 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
810 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
811 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
812 ;;
813 i*86|x86_64)
814 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
815 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
816 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
817 AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
818 AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
819 AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
820 case "$host_cpu" in
821 i*86)
822 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
823 ;;
824 x86_64)
825 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
826 AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
827 ;;
828 esac
829 ;;
830 sh4)
831 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
832 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
833 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
834 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
835 ;;
836 *)
837 enable_jit="no (CPU '$host_cpu' not supported)"
838 ;;
839 esac
840 else
841 AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
842 fi
843else
844 AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
845 enable_jit="no"
846fi
847
848AC_MSG_RESULT([$enable_jit])
849
850# Opcode stats
851AC_MSG_CHECKING([whether to enable opcode stats])
852AC_ARG_ENABLE([opcode-stats],
853 [AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)])],
854 [], [enable_opcode_stats=no])
855AC_MSG_RESULT([$enable_opcode_stats])
856
857if test "$enable_opcode_stats" = "yes"; then
858 if test "$enable_jit" = "yes"; then
859 AC_MSG_ERROR([JIT must be disabled for Opcode stats to work.])
860 fi
861 AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
862fi
863
864# Link prefetch
865AC_MSG_CHECKING([whether to enable link prefetch support])
866AC_ARG_ENABLE([link-prefetch],
867 [AS_HELP_STRING([--enable-link-prefetch], [Enable Link prefetch support (default: disabled)])],
868 [],[enable_link_prefetch=no])
869AC_MSG_RESULT([$enable_link_prefetch])
870
871if test "$enable_link_prefetch" = "yes"; then
872 AC_DEFINE([ENABLE_LINK_PREFETCH], [1], [Define to enable link prefetch support])
873fi
874
875# GObject Introspection
876AC_MSG_CHECKING([whether to enable GObject introspection support])
877AC_ARG_ENABLE([introspection],
878 [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
879 [],[enable_introspection=no])
880AC_MSG_RESULT([$enable_introspection])
881
882# check whether to enable animation API
883AC_MSG_CHECKING([whether to enable Animation API support])
884AC_ARG_ENABLE(animation_api,
885 AC_HELP_STRING([--enable-animation-api],
886 [enable support for Animation API (experimental) [default=no]]),
887 [], [enable_animation_api="no"])
888AC_MSG_RESULT([$enable_animation_api])
889
890# check whether to enable requestAnimationFrame support
891AC_MSG_CHECKING([whether to enable requestAnimationFrame support])
892AC_ARG_ENABLE(request_animation_frame,
893 AC_HELP_STRING([--enable-request-animation-frame],
894 [enable support for requestAnimationFrame (experimental) [default=no]]),
895 [],[enable_request_animation_frame="no"])
896AC_MSG_RESULT([$enable_request_animation_frame])
897
898# check whether to enable touch icon loading
899AC_MSG_CHECKING([whether to enable touch icon loading])
900AC_ARG_ENABLE(touch_icon_loading,
901 AC_HELP_STRING([--enable-touch-icon-loading],
902 [enable support for loading touch icons [default=no]]),
903 [], [enable_touch_icon_loading="no"])
904AC_MSG_RESULT([$enable_touch_icon_loading])
905
906# check whether to enable Register Protocol Handler support
907AC_MSG_CHECKING([whether to enable Register Protocol Handler])
908AC_ARG_ENABLE(register_protocol_handler,
909 AC_HELP_STRING([--enable-register-protocol-handler],
910 [enable support for Register Protocol Handler (experimental) [default=no]]),
911 [],[enable_register_protocol_handler="no"])
912AC_MSG_RESULT([$enable_register_protocol_handler])
913
914# check whether to enable DeviceOrientation support
915AC_MSG_CHECKING([whether to enable DeviceOrientation])
916AC_ARG_ENABLE(device_orientation,
917 AC_HELP_STRING([--enable-device-orientation],
918 [enable support for DeviceOrientation (experimental and incomplete) [default=no]]),
919 [],[enable_device_orientation="no"])
920AC_MSG_RESULT([$enable_device_orientation])
921
922G_IR_SCANNER=
923G_IR_COMPILER=
924G_IR_GENERATE=
925GIRDIR=
926GIRTYPELIBDIR=
927
928if test "$enable_introspection" = "yes"; then
929 GOBJECT_INTROSPECTION_REQUIRED=0.9.5
930 PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
931
932 G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
933 G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
934 G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
935 AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
936fi
937
938AC_SUBST([G_IR_SCANNER])
939AC_SUBST([G_IR_COMPILER])
940AC_SUBST([G_IR_GENERATE])
941
942# determine the font backend
943AC_MSG_CHECKING([the font backend to use])
944AC_ARG_WITH(font_backend,
945 AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
946 [Select font backend [default=freetype]]),
947 [],[with_font_backend="freetype"])
948
949case "$with_font_backend" in
950 freetype|pango) ;;
951 *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
952esac
953AC_MSG_RESULT([$with_font_backend])
954
955if test "$host_cpu" = "sh4"; then
956 CXXFLAGS="$CXXFLAGS -mieee -w"
957 CFLAGS="$CFLAGS -mieee -w"
958fi
959
960# Add '-g' flag to gcc to build with debug symbols
961if test "$enable_debug_symbols" = "yes"; then
962 CXXFLAGS="$CXXFLAGS -g"
963 CFLAGS="$CFLAGS -g"
964fi
965
966if test "$enable_debug_features" = "no"; then
967 AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
968fi
969
970# Add the appropriate 'O' level for optimized builds
971if test "$enable_optimizations" = "yes"; then
972 CXXFLAGS="$CXXFLAGS -O2"
973 CFLAGS="$CFLAGS -O2"
974else
975 CXXFLAGS="$CXXFLAGS -O0"
976 CFLAGS="$CFLAGS -O0"
977fi
978
979PKG_CHECK_MODULES([LIBSOUP],
980 [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
981AC_SUBST([LIBSOUP_CFLAGS])
982AC_SUBST([LIBSOUP_LIBS])
983
984# check if FreeType/FontConfig are available
985if test "$with_font_backend" = "freetype"; then
986 if test "$with_target" = "directfb"; then
987 PKG_CHECK_MODULES([FREETYPE],
988 [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
989 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
990 else
991 PKG_CHECK_MODULES([FREETYPE],
992 [cairo-ft
993 fontconfig >= $FONTCONFIG_REQUIRED_VERSION
994 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
995 fi
996 AC_SUBST([FREETYPE_CFLAGS])
997 AC_SUBST([FREETYPE_LIBS])
998fi
999
1000# check if SQLite3 is available. Error out only if one of the
1001# features hard-depending on it is enabled while SQLite3 is
1002# unavailable.
1003PKG_CHECK_MODULES([SQLITE3],
1004 [sqlite3 >= $SQLITE_REQUIRED_VERSION],
1005 [sqlite3_has_pkg_config=yes],
1006 [sqlite3_has_pkg_config=no])
1007if test "$sqlite3_has_pkg_config" = "no"; then
1008 AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
1009 [sqlite3_found=yes;SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
1010 [sqlite3_found=no])
1011fi
1012AC_SUBST([SQLITE3_CFLAGS])
1013AC_SUBST([SQLITE3_LIBS])
1014
1015if (test "$sqlite3_found" = "no"); then
1016 AC_MSG_ERROR([SQLite3 is required for the Database related features])
1017fi
1018
1019# check if libxslt is available
1020if test "$enable_xslt" = "yes"; then
1021 PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
1022 AC_SUBST([LIBXSLT_CFLAGS])
1023 AC_SUBST([LIBXSLT_LIBS])
1024fi
1025
1026# check if geoclue is available
1027if test "$enable_geolocation" = "yes"; then
1028 PKG_CHECK_MODULES([GEOCLUE], [geoclue])
1029 AC_SUBST([GEOCLUE_CFLAGS])
1030 AC_SUBST([GEOCLUE_LIBS])
1031fi
1032
1033# check for XRender under Linux/Unix. Some linkers require explicit
1034# linkage (like GNU Gold), so we cannot rely on GTK+ pulling XRender
1035if test "$os_win32" = "no"; then
1036 PKG_CHECK_MODULES([XRENDER], [xrender])
1037 AC_SUBST([XRENDER_CFLAGS])
1038 AC_SUBST([XRENDER_LIBS])
1039fi
1040
1041# check if gstreamer is available
1042if test "$enable_video" = "yes" || test "$enable_web_audio" = "yes"; then
1043 PKG_CHECK_MODULES([GSTREAMER],
1044 [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
1045 gstreamer-app-0.10
1046 gstreamer-audio-0.10
1047 gstreamer-base-0.10
1048 gstreamer-interfaces-0.10
1049 gstreamer-pbutils-0.10
1050 gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
1051 gstreamer-video-0.10],
1052 [have_gstreamer=yes])
1053
1054 AC_SUBST([GSTREAMER_CFLAGS])
1055 AC_SUBST([GSTREAMER_LIBS])
1056fi
1057
1058# check if libfftw is available
1059if test "$enable_web_audio" = "yes"; then
1060 PKG_CHECK_MODULES([LIBFFTW],
1061 [fftw3 >= $LIBFFTW_REQUIRED_VERSION
1062 fftw3f >= $LIBFFTW_REQUIRED_VERSION],
1063 [have_fftw=yes])
1064
1065 AC_SUBST([LIBFFTW_CFLAGS])
1066 AC_SUBST([LIBFFTW_LIBS])
1067fi
1068
1069# check for code coverage support
1070if test "$enable_coverage" = "yes"; then
1071 COVERAGE_CFLAGS="-MD"
1072 COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
1073 AC_SUBST([COVERAGE_CFLAGS])
1074 AC_SUBST([COVERAGE_LDFLAGS])
1075fi
1076
1077# check for HTML features
1078if test "$enable_video" = "yes"; then
1079 html_flags=yes
1080fi
1081
1082# WebKit2
1083AC_MSG_CHECKING([whether to build Webkit2])
1084AC_ARG_ENABLE(webkit2,
1085 AC_HELP_STRING([--enable-webkit2], [build webkit2 [default=no]]),
1086 [], [enable_webkit2="no"])
1087AC_MSG_RESULT([$enable_webkit2])
1088if test "$enable_webkit2" = "yes"; then
1089 if test "$GTK_API_VERSION" = "2.0"; then
1090 AC_MSG_ERROR([WebKit2 requires GTK+ 3.x, use --with-gtk=3.0])
1091 fi
1092fi
1093
1094# Plugin Process
1095AC_MSG_CHECKING([whether to build plugin process for WebKit2])
1096AC_ARG_ENABLE(plugin_process,
1097 AC_HELP_STRING([--enable-plugin-process], [build plugin process for WebKit2 [default=yes]]),
1098 [], [enable_plugin_process="yes"])
1099AC_MSG_RESULT([$enable_plugin_process])
1100
1101# Build the plugin process only when building Webkit2.
1102if test "$enable_webkit2" = "no"; then
1103 enable_plugin_process=no
1104fi
1105
1106# Make sure we have GTK+ 2.x to build the plugin process.
1107if test "$enable_plugin_process" = "yes"; then
1108 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= $GTK2_REQUIRED_VERSION gail >= $GAIL2_REQUIRED_VERSION)
1109fi
1110AC_SUBST(GTK2_CFLAGS)
1111AC_SUBST(GTK2_LIBS)
1112
1113GTK_DOC_CHECK([1.10])
1114
1115# OS conditionals
1116AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
1117AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
1118AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
1119AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
1120AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
1121
1122# target conditionals
1123AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
1124AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
1125AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
1126AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
1127
1128# JS engine conditionals
1129AM_CONDITIONAL([USE_JSC], [test "$with_jsengine" = "jsc"])
1130
1131# Unicode backend conditionals
1132AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
1133AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
1134
1135# Font backend conditionals
1136AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
1137AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
1138
1139# GStreamer feature conditional
1140AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
1141
1142# WebKit feature conditionals
1143AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug_features" = "yes"])
1144AM_CONDITIONAL([ENABLE_3D_RENDERING],[test "$enable_3d_rendering" = "yes"])
1145AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
1146AM_CONDITIONAL([ENABLE_BLOB],[test "$enable_blob" = "yes"])
1147AM_CONDITIONAL([ENABLE_METER_TAG],[test "$enable_meter_tag" = "yes"])
1148AM_CONDITIONAL([ENABLE_MICRODATA],[test "$enable_microdata" = "yes"])
1149AM_CONDITIONAL([ENABLE_PAGE_VISIBILITY_API],[test "$enable_page_visibility_api" = "yes"])
1150AM_CONDITIONAL([ENABLE_PROGRESS_TAG],[test "$enable_progress_tag" = "yes"])
1151AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
1152AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
1153AM_CONDITIONAL([ENABLE_GAMEPAD],[test "$enable_gamepad" = "yes"])
1154AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
1155AM_CONDITIONAL([ENABLE_DATAGRID],[test "$enable_datagrid" = "yes"])
1156AM_CONDITIONAL([ENABLE_DATA_TRANSFER_ITEMS],[test "$enable_data_transfer_items" = "yes"])
1157AM_CONDITIONAL([ENABLE_SQL_DATABASE],[test "$enable_sql_database" = "yes"])
1158AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
1159AM_CONDITIONAL([ENABLE_DETAILS],[test "$enable_details" = "yes"])
1160AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
1161AM_CONDITIONAL([ENABLE_FILE_SYSTEM],[test "$enable_file_system" = "yes"])
1162AM_CONDITIONAL([ENABLE_STYLE_SCOPED],[test "$enable_style_scoped" = "yes"])
1163AM_CONDITIONAL([ENABLE_QUOTA],[test "$enable_quota" = "yes"])
1164AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
1165AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
1166AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
1167AM_CONDITIONAL([ENABLE_INPUT_COLOR],[test "$enable_input_color" = "yes"])
1168AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
1169AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
1170AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
1171AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
1172AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
1173AM_CONDITIONAL([ENABLE_MHTML], [test "$enable_mhtml" = "yes"])
1174AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
1175AM_CONDITIONAL([ENABLE_MEDIA_SOURCE],[test "$enable_media_source" = "yes"])
1176AM_CONDITIONAL([ENABLE_MEDIA_STATISTICS],[test "$enable_media_statistics" = "yes"])
1177AM_CONDITIONAL([ENABLE_VIDEO_TRACK],[test "$enable_video_track" = "yes"])
1178AM_CONDITIONAL([ENABLE_FULLSCREEN_API],[test "$enable_fullscreen_api" = "yes"])
1179AM_CONDITIONAL([ENABLE_MEDIA_STREAM],[test "$enable_media_stream" = "yes"])
1180AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
1181AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
1182AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
1183AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
1184AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
1185AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
1186AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
1187AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
1188AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
1189AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
1190AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
1191AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
1192AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
1193AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
1194AM_CONDITIONAL([ENABLE_WEBKIT2],[test "$enable_webkit2" = "yes"])
1195AM_CONDITIONAL([ENABLE_PLUGIN_PROCESS],[test "$enable_plugin_process" = "yes"])
1196AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
1197AM_CONDITIONAL([ENABLE_ANIMATION_API],[test "$enable_animation_api" = "yes"])
1198AM_CONDITIONAL([ENABLE_REQUEST_ANIMATION_FRAME],[test "$enable_request_animation_frame" = "yes"])
1199AM_CONDITIONAL([ENABLE_TOUCH_ICON_LOADING],[test "$enable_touch_icon_loading" = "yes"])
1200AM_CONDITIONAL([ENABLE_REGISTER_PROTOCOL_HANDLER],[test "$enable_register_protocol_handler" = "yes"])
1201AM_CONDITIONAL([ENABLE_DEVICE_ORIENTATION],[test "$enable_device_orientation" = "yes"])
1202AM_CONDITIONAL([ENABLE_MUTATION_OBSERVERS],[test "$enable_mutation_observers" = "yes"])
1203
1204# Gtk conditionals
1205AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
1206
1207AC_CONFIG_FILES([
1208GNUmakefile
1209])
1210
1211
1212AC_CONFIG_FILES([
1213Source/WebKit/gtk/webkit/webkitversion.h
1214])
1215
1216AC_CONFIG_FILES([
1217Source/WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit/gtk/webkit.pc.in
1218Source/WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:Source/WebKit/gtk/JSCore.gir.in
1219Source/WebKit/gtk/org.webkitgtk-${WEBKITGTK_API_VERSION}.gschema.xml:Source/WebKit/gtk/org.webkitgtk.gschema.xml.in
1220Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc:Source/JavaScriptCore/javascriptcoregtk.pc.in
1221]
1222,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1223)
1224
1225
1226if test "$enable_webkit2" = "yes"; then
1227 AC_CONFIG_FILES([
1228 Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/webkit2gtk.pc.in
1229 ]
1230 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1231 )
1232fi
1233
1234AC_OUTPUT
1235
1236echo "
1237WebKit was configured with the following options:
1238
1239Build configuration:
1240 Enable debugging (slow) : $enable_debug
1241 Compile with debug symbols (slow) : $enable_debug_symbols
1242 Enable debug features (slow) : $enable_debug_features
1243 Enable GCC build optimization : $enable_optimizations
1244 Code coverage support : $enable_coverage
1245 Unicode backend : $with_unicode_backend
1246 Font backend : $with_font_backend
1247 Optimized memory allocator : $enable_fast_malloc
1248 JavaScript Engine : $with_jsengine
1249
1250Features:
1251 3D Rendering : $enable_3d_rendering
1252 WebGL : $enable_webgl
1253 Blob support : $enable_blob
1254 DOM mutation observer support : $enable_mutation_observers
1255 DeviceOrientation support : $enable_device_orientation
1256 Directory upload : $enable_directory_upload
1257 Fast Mobile Scrolling : $enable_fast_mobile_scrolling
1258 JIT compilation : $enable_jit
1259 Filters support : $enable_filters
1260 Geolocation support : $enable_geolocation
1261 JavaScript debugger/profiler support : $enable_javascript_debugger
1262 Gamepad support : $enable_gamepad
1263 MathML support : $enable_mathml
1264 Media source : $enable_media_source
1265 Media statistics : $enable_media_statistics
1266 HTML5 channel messaging support : $enable_channel_messaging
1267 HTML5 meter element support : $enable_meter_tag
1268 HTML5 microdata support : $enable_microdata
1269 Page Visibility API support : $enable_page_visibility_api
1270 HTML5 progress element support : $enable_progress_tag
1271 HTML5 client-side session and persistent storage support : $enable_dom_storage
1272 SQL client-side database storage support : $enable_sql_database
1273 HTML5 datagrid support : $enable_datagrid
1274 HTML5 data transfer items support : $enable_data_transfer_items
1275 HTML5 FileSystem API support : $enable_file_system
1276 Quota API support : $enable_quota
1277 HTML5 sandboxed iframe support : $enable_sandbox
1278 HTML5 video element support : $enable_video
1279 HTML5 track element support : $enable_video_track
1280 Fullscreen API support : $enable_fullscreen_api
1281 Media stream support : $enable_media_stream
1282 Icon database support : $enable_icon_database
1283 Image resizer support : $enable_image_resizer
1284 Link prefetch support : $enable_link_prefetch
1285 Opcode stats : $enable_opcode_stats
1286 SharedWorkers support : $enable_shared_workers
1287 Color input support : $enable_input_color
1288 Speech input support : $enable_input_speech
1289 SVG support : $enable_svg
1290 SVG fonts support : $enable_svg_fonts
1291 Web Audio support : $enable_web_audio
1292 Web Sockets support : $enable_web_sockets
1293 Web Timing support : $enable_web_timing
1294 Web Workers support : $enable_workers
1295 XSLT support : $enable_xslt
1296 Spellcheck support : $enable_spellcheck
1297 Animation API : $enable_animation_api
1298 RequestAnimationFrame support : $enable_request_animation_frame
1299 Touch Icon Loading support : $enable_touch_icon_loading
1300 Register Protocol Handler support : $enable_register_protocol_handler
1301 WebKit2 support : $enable_webkit2
1302 WebKit2 plugin process : $enable_plugin_process
1303
1304GTK+ configuration:
1305 GTK+ version : $with_gtk
1306 GDK target : $with_target
1307 Hildon UI extensions : $with_hildon
1308 Introspection support : $enable_introspection
1309 Generate documentation : $enable_gtk_doc
1310"
1311if test "$with_unicode_backend" = "glib"; then
1312 echo " >> WARNING: the glib-based unicode backend is slow and incomplete <<"
1313 echo
1314 echo
1315fi
diff --git a/meta/recipes-sato/webkit/files/function-scope.patch b/meta/recipes-sato/webkit/files/function-scope.patch
deleted file mode 100644
index a20a80501f..0000000000
--- a/meta/recipes-sato/webkit/files/function-scope.patch
+++ /dev/null
@@ -1,21 +0,0 @@
1we need to include unistd.h on all linux platforms therefore
2extend the conditional inclusion accordingly
3
4This gets proper declation of sleep() into the source file
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8Upstream-Status: Pending
9Index: webkit-gtk-1.7.2+svnr101488-r3/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp
10===================================================================
11--- webkit-gtk-1.7.2+svnr101488-r3.orig/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp 2012-03-30 12:11:04.912613223 -0700
12+++ webkit-gtk-1.7.2+svnr101488-r3/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp 2012-03-30 12:14:21.840622752 -0700
13@@ -29,7 +29,7 @@
14 #include <assert.h>
15 #include <string.h>
16
17-#if defined(ANDROID)
18+#if defined(__linux__)
19 #include <unistd.h>
20 #endif
21
diff --git a/meta/recipes-sato/webkit/files/gtk-doc.make b/meta/recipes-sato/webkit/files/gtk-doc.make
deleted file mode 100644
index 354ffb7c66..0000000000
--- a/meta/recipes-sato/webkit/files/gtk-doc.make
+++ /dev/null
@@ -1,173 +0,0 @@
1# -*- mode: makefile -*-
2
3####################################
4# Everything below here is generic #
5####################################
6
7if GTK_DOC_USE_LIBTOOL
8GTKDOC_CC = $(LIBTOOL) --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
9GTKDOC_LD = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
10else
11GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
12GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
13endif
14
15# We set GPATH here; this gives us semantics for GNU make
16# which are more like other make's VPATH, when it comes to
17# whether a source that is a target of one rule is then
18# searched for in VPATH/GPATH.
19#
20GPATH = $(srcdir)
21
22TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
23
24EXTRA_DIST = \
25 $(content_files) \
26 $(HTML_IMAGES) \
27 $(DOC_MAIN_SGML_FILE) \
28 $(DOC_MODULE)-sections.txt \
29 $(DOC_MODULE)-overrides.txt
30
31DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \
32 $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp
33
34SCANOBJ_FILES = \
35 $(DOC_MODULE).args \
36 $(DOC_MODULE).hierarchy \
37 $(DOC_MODULE).interfaces \
38 $(DOC_MODULE).prerequisites \
39 $(DOC_MODULE).signals
40
41REPORT_FILES = \
42 $(DOC_MODULE)-undocumented.txt \
43 $(DOC_MODULE)-undeclared.txt \
44 $(DOC_MODULE)-unused.txt
45
46CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS)
47
48if ENABLE_GTK_DOC
49all-local: html-build.stamp
50else
51all-local:
52endif
53
54docs: html-build.stamp
55
56#### scan ####
57
58scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
59 @echo 'gtk-doc: Scanning header files'
60 @-chmod -R u+w $(srcdir)
61 cd $(srcdir) && \
62 gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES)
63 if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \
64 CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \
65 else \
66 cd $(srcdir) ; \
67 for i in $(SCANOBJ_FILES) ; do \
68 test -f $$i || touch $$i ; \
69 done \
70 fi
71 touch scan-build.stamp
72
73$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
74 @true
75
76#### templates ####
77
78tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
79 @echo 'gtk-doc: Rebuilding template files'
80 @-chmod -R u+w $(srcdir)
81 cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS)
82 touch tmpl-build.stamp
83
84tmpl.stamp: tmpl-build.stamp
85 @true
86
87tmpl/*.sgml:
88 @true
89
90
91#### xml ####
92
93sgml-build.stamp: tmpl.stamp $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files)
94 @echo 'gtk-doc: Building XML'
95 @-chmod -R u+w $(srcdir)
96 cd $(srcdir) && \
97 gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $(MKDB_OPTIONS)
98 touch sgml-build.stamp
99
100sgml.stamp: sgml-build.stamp
101 @true
102
103#### html ####
104
105html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
106 @echo 'gtk-doc: Building HTML'
107 @-chmod -R u+w $(srcdir)
108 rm -rf $(srcdir)/html
109 mkdir $(srcdir)/html
110 cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
111 test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
112 @echo 'gtk-doc: Fixing cross-references'
113 cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
114 touch html-build.stamp
115
116##############
117
118clean-local:
119 rm -f *~ *.bak
120 rm -rf .libs
121
122distclean-local:
123 cd $(srcdir) && \
124 rm -rf xml $(REPORT_FILES) \
125 $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
126
127maintainer-clean-local: clean
128 cd $(srcdir) && rm -rf xml html
129
130install-data-local:
131 -installfiles=`echo $(srcdir)/html/*`; \
132 if test "$$installfiles" = '$(srcdir)/html/*'; \
133 then echo '-- Nothing to install' ; \
134 else \
135 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \
136 for i in $$installfiles; do \
137 echo '-- Installing '$$i ; \
138 $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
139 done; \
140 echo '-- Installing $(srcdir)/html/index.sgml' ; \
141 $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) || :; \
142 which gtkdoc-rebase >/dev/null && \
143 gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \
144 fi
145
146
147uninstall-local:
148 rm -f $(DESTDIR)$(TARGET_DIR)/*
149
150#
151# Require gtk-doc when making dist
152#
153if ENABLE_GTK_DOC
154dist-check-gtkdoc:
155else
156dist-check-gtkdoc:
157 @echo "*** gtk-doc must be installed and enabled in order to make dist"
158 @false
159endif
160
161dist-hook: dist-check-gtkdoc dist-hook-local
162 mkdir $(distdir)/tmpl
163 mkdir $(distdir)/xml
164 mkdir $(distdir)/html
165 -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
166 -cp $(srcdir)/xml/*.xml $(distdir)/xml
167 cp $(srcdir)/html/* $(distdir)/html
168 -cp $(srcdir)/$(DOC_MODULE).types $(distdir)/
169 -cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/
170 cd $(distdir) && rm -f $(DISTCLEANFILES)
171 -gtkdoc-rebase --online --relative --html-dir=$(distdir)/html
172
173.PHONY : dist-hook-local docs
diff --git a/meta/recipes-sato/webkit/files/update-webkit.sh b/meta/recipes-sato/webkit/files/update-webkit.sh
deleted file mode 100755
index 723c45a4fb..0000000000
--- a/meta/recipes-sato/webkit/files/update-webkit.sh
+++ /dev/null
@@ -1,8 +0,0 @@
1#!/bin/sh
2# usage: sh update-webkit.sh <revision>
3
4export rev=$1
5
6for i in autogen.sh configure.ac GNUmakefile.am Makefile Makefile.shared ; do
7 wget "http://trac.webkit.org/browser/trunk/$i?rev=$rev&format=raw" -O $i
8done
diff --git a/meta/recipes-sato/webkit/webkit-gtk_svn.bb b/meta/recipes-sato/webkit/webkit-gtk_svn.bb
deleted file mode 100644
index b455759f36..0000000000
--- a/meta/recipes-sato/webkit/webkit-gtk_svn.bb
+++ /dev/null
@@ -1,107 +0,0 @@
1DESCRIPTION = "WebKitGTK+ is the port of the portable web rendering engine WebKitK to the GTK+ platform."
2HOMEPAGE = "http://www.webkitgtk.org/"
3BUGTRACKER = "http://bugs.webkit.org/"
4
5LICENSE = "BSD & LGPLv2+"
6LIC_FILES_CHKSUM = "file://Source/WebCore/rendering/RenderApplet.h;endline=22;md5=fb9694013ad71b78f8913af7a5959680 \
7 file://Source/WebKit/gtk/webkit/webkit.h;endline=21;md5=b4fbe9f4a944f1d071dba1d2c76b3351 \
8 file://Source/JavaScriptCore/parser/Parser.h;endline=23;md5=2f3cff0ad0a9c486da5a376928973a90"
9
10# Choice of language backends - icu has issues on Big Endian machines so use pango
11ICU_LIB = "icu"
12ICU_LIB_powerpc = "pango"
13
14DEPENDS = "zlib enchant gnome-keyring libsoup-2.4 curl libxml2 cairo libxslt libxt libidn gnutls \
15 gtk+ gstreamer gst-plugins-base flex-native gperf-native perl-native-runtime sqlite3 ${ICU_LIB}"
16DEPENDS += " ${@base_contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)}"
17
18SRCREV_FORMAT = "source"
19
20SRCREV = "101488"
21PV = "1.7.2+svnr${SRCPV}"
22PR = "r6"
23
24SRC_URI = "\
25 svn://svn.webkit.org/repository/webkit/trunk/;module=Source;protocol=http;name=source \
26 svn://svn.webkit.org/repository/webkit/trunk/;module=WebKitLibraries;protocol=http \
27 svn://svn.webkit.org/repository/webkit/trunk/;module=Tools;protocol=http \
28 file://Makefile \
29 file://Makefile.shared \
30 file://autogen.sh \
31 file://configure.ac \
32 file://GNUmakefile.am \
33 file://gtk-doc.make \
34 file://nodolt.patch \
35 file://function-scope.patch \
36 file://webgit-gtk_fix_build_with_automake_1.12.patch \
37 "
38
39S = "${WORKDIR}/"
40
41inherit autotools lib_package pkgconfig
42
43EXTRA_OECONF = "\
44 --enable-debug=no \
45 --enable-svg \
46 --enable-icon-database=yes \
47 --enable-fullscreen-api \
48 --enable-image-resizer \
49 --enable-link-prefetch \
50 --with-gtk=2.0 \
51 ${@base_contains('DISTRO_FEATURES', 'opengl', '--enable-webgl', '--disable-webgl', d)} \
52 UNICODE_CFLAGS=-D_REENTRANT \
53 "
54
55#default unicode backend icu breaks in cross-compile when target and host are different endian type
56EXTRA_OECONF_append_powerpc += "--with-unicode-backend=glib"
57
58CPPFLAGS_append_powerpc += "-I${STAGING_INCDIR}/pango-1.0 \
59 -I${STAGING_LIBDIR}/glib-2.0/include \
60 -I${STAGING_INCDIR}/glib-2.0"
61
62EXTRA_AUTORECONF = " -I Source/autotools "
63
64
65#| ./Source/JavaScriptCore/heap/HandleTypes.h: In static member function 'static T* JSC::HandleTypes<T>::getFromSlot(JSC::HandleSlot) [with T = JSC::Structure, JSC::HandleTypes<T>::ExternalType = JSC::Structure*, JSC::HandleSlot = JSC::JSValue*]':
66#| ./Source/JavaScriptCore/heap/Handle.h:141:79: instantiated from 'JSC::Handle<T>::ExternalType JSC::Handle<T>::get() const [with T = JSC::Structure, JSC::Handle<T>::ExternalType = JSC::Structure*]'
67#| ./Source/JavaScriptCore/runtime/ScopeChain.h:39:75: instantiated from here
68#| ./Source/JavaScriptCore/heap/HandleTypes.h:38:130: warning: cast from 'JSC::JSCell*' to 'JSC::HandleTypes<JSC::Structure>::ExternalType {aka JSC::Structure*}' increases required alignment of target type [-Wcast-align]
69#| {standard input}: Assembler messages:
70#| {standard input}:28873: Error: invalid immediate: 983040 is out of range
71#| {standard input}:28873: Error: value of 983040 too large for field of 2 bytes at 15110
72#| /OE/shr-core/tmp/sysroots/x86_64-linux/usr/libexec/armv4t-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.6.2/as: BFD (GNU Binutils) 2.21.1 assertion fail /OE/shr-core/tmp/work/armv4t-oe-linux-gnueabi/binutils-cross-2.21.1a-r0/binutils-2.21.1/bfd/elf.c:2819
73#| arm-oe-linux-gnueabi-g++: internal compiler error: Segmentation fault (program as)
74#| Please submit a full bug report,
75#| with preprocessed source if appropriate.
76#| See <http://gcc.gnu.org/bugs.html> for instructions.
77#| make[1]: *** [Source/JavaScriptCore/jit/libjavascriptcoregtk_1_0_la-JIT.lo] Error 1
78#| make[1]: Leaving directory `/OE/shr-core/tmp/work/armv4t-oe-linux-gnueabi/webkit-gtk-1.5.1+svnr90727-r0'
79ARM_INSTRUCTION_SET = "arm"
80
81CONFIGUREOPT_DEPTRACK = ""
82
83do_configure_append() {
84 # somethings wrong with icu, fix it up manually
85 for makefile in $(find ${S} -name "GNUmakefile") ; do
86 sed -i s:-I/usr/include::g $makefile
87 done
88}
89
90do_install_prepend() {
91 cp ${S}/Programs/.libs/jsc ${S}/Programs/jsc-1 || true
92}
93
94do_install_append() {
95 rmdir ${D}${libexecdir}
96}
97
98PACKAGES =+ "${PN}-webinspector ${PN}launcher-dbg ${PN}launcher libjavascriptcore"
99FILES_${PN}launcher = "${bindir}/GtkLauncher"
100FILES_${PN}launcher-dbg = "${bindir}/.debug/GtkLauncher"
101FILES_libjavascriptcore = "${libdir}/libjavascriptcoregtk-1.0.so.*"
102FILES_${PN}-webinspector = "${datadir}/webkitgtk-*/webinspector/"
103FILES_${PN} += "${datadir}/webkitgtk-*/resources/error.html \
104 ${datadir}/webkitgtk-*/images \
105 ${datadir}/glib-2.0/schemas"
106
107