webkit: update to 30762 from OE

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3919 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Marcin Juszkiewicz
2008-03-05 13:19:52 +00:00
parent a31ec3d0f6
commit 5ab50f9ba2
9 changed files with 394 additions and 159 deletions

View File

@@ -139,7 +139,7 @@ SRCREV_pn-gaku ?= "365"
SRCREV_pn-gypsy ?= "39" SRCREV_pn-gypsy ?= "39"
SRCDATE_yaffs2-utils = "20071107" SRCDATE_yaffs2-utils = "20071107"
SRCDATE_yaffs2-utils-native = "20071107" SRCDATE_yaffs2-utils-native = "20071107"
SRCREV_pn-webkit-gtk ?= "28656" SRCREV_pn-webkit-gtk ?= "30762"
SRCREV_pn-clipboard-manager ?= "14994" SRCREV_pn-clipboard-manager ?= "14994"
# Previously floating revisions # Previously floating revisions

View File

@@ -21,8 +21,10 @@
# #
# global_cppflags = CPPFLAGS that apply to JSC, WebCore, and to any # global_cppflags = CPPFLAGS that apply to JSC, WebCore, and to any
# specific port # specific port
# global_cflags = CFLAGS and CXXFLAGS that apply to JSC, WebCore, and to # global_cflags = CFLAGS that apply to JSC, WebCore, and to
# any specific port # any specific port
# global_cxxflags = CXXFLAGS that apply to JSC, WebCore, and to any
# specific port
srcdir = @srcdir@ srcdir = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
@@ -34,8 +36,6 @@ GENSOURCES := $(top_builddir)/DerivedSources
CREATE_HASH_TABLE = $(srcdir)/JavaScriptCore/kjs/create_hash_table CREATE_HASH_TABLE = $(srcdir)/JavaScriptCore/kjs/create_hash_table
# Libraries and support components # Libraries and support components
noinst_LTLIBRARIES :=
noinst_HEADERS := noinst_HEADERS :=
noinst_PROGRAMS := noinst_PROGRAMS :=
@@ -52,21 +52,39 @@ EXTRA_DIST :=
global_cppflags := global_cppflags :=
global_cppflags += \ global_cppflags += \
-I $(srcdir)/JavaScriptCore \ -I$(srcdir)/JavaScriptCore \
-I $(srcdir)/JavaScriptCore/ForwardingHeaders \ -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
-I $(srcdir)/JavaScriptCore/wtf \ -I$(srcdir)/JavaScriptCore/wtf \
-I $(srcdir)/JavaScriptCore/kjs \ -I$(srcdir)/JavaScriptCore/kjs \
-I $(top_builddir)/DerivedSources -I$(top_builddir)/DerivedSources
# Default compiler flags # Default compiler flags
global_cflags := \ global_cflags := \
-Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \ -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
-Wformat -Wformat-security -Wno-format-y2k -Wundef \ -Wformat -Wformat-security -Wno-format-y2k -Wundef \
-Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \ -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \
-Wno-unused-parameter -fno-exceptions -fno-strict-aliasing -Wno-unused-parameter
# Libraries global_cxxflags := \
lib_LTLIBRARIES = libJavaScriptCore.la libWebKitGtk.la $(SYMBOL_VISIBILITY_INLINES)
if !ENABLE_DEBUG
global_cflags += \
-fno-exceptions \
$(SYMBOL_VISIBILITY)
global_cxxflags += \
-fno-rtti
endif
# Shared libraries
lib_LTLIBRARIES = \
libwebkit-1.0.la
# Convenience libraries
noinst_LTLIBRARIES = \
libJavaScriptCore.la \
libWebCore.la
# #
# JavaScriptCore # JavaScriptCore
@@ -78,96 +96,139 @@ javascriptcore_built_nosources :=
# The variables above are already included below so no need to touch # The variables above are already included below so no need to touch
# these variables unless you really have to # these variables unless you really have to
libJavaScriptCore_ladir = $(prefix)/include/WebKit/JavaScriptCore libJavaScriptCore_ladir = $(prefix)/include/webkit-1.0/JavaScriptCore
libJavaScriptCore_la_HEADERS := $(javascriptcore_h_api) libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
libJavaScriptCore_la_SOURCES := \ libJavaScriptCore_la_SOURCES = \
$(javascriptcore_built_sources) \ $(javascriptcore_built_sources) \
$(javascriptcore_sources) $(javascriptcore_sources)
libJavaScriptCore_la_LDFLAGS := -lpthread libJavaScriptCore_la_LIBADD = \
$(ICU_LIBS) \
$(GLOBALDEPS_LIBS) \
-lpthread
libJavaScriptCore_la_CXXFLAGS := $(global_cflags) libJavaScriptCore_la_CXXFLAGS = \
$(global_cxxflags) \
$(global_cflags) \
$(GLOBALDEPS_CFLAGS) \
-fstrict-aliasing
libJavaScriptCore_la_CFLAGS := $(global_cflags) libJavaScriptCore_la_CFLAGS = \
$(global_cflags) \
$(GLOBALDEPS_CFLAGS) \
-fstrict-aliasing
libJavaScriptCore_la_CPPFLAGS := $(global_cppflags) $(javascriptcore_cppflags) libJavaScriptCore_la_CPPFLAGS = \
$(global_cppflags) \
$(javascriptcore_cppflags) \
$(ICU_CPPFLAGS)
# #
# WebCore # WebCore
webcore_cppflags := webcore_cppflags :=
webcore_sources := webcore_sources :=
webcore_headers := webcore_headers :=
webcore_libadd :=
webcore_built_sources := webcore_built_sources :=
webcore_built_nosources := webcore_built_nosources :=
# WebKitGtk webcore_cppflags += $(HILDON_CPPFLAGS)
# WebKit
webkitgtk_h_api := webkitgtk_h_api :=
webkitgtk_headers := webkitgtk_headers :=
webkitgtk_sources := webkitgtk_sources :=
webkitgtk_cppflags := webkitgtk_cppflags :=
webkitgtk_ldflags :=
webkitgtk_built_sources := webkitgtk_built_sources :=
webkitgtk_built_nosources := webkitgtk_built_nosources :=
webkitgtk_cleanfiles := webkitgtk_cleanfiles :=
# No need to touch the following variables unless you have to. If you need to change the values libWebCore_la_SOURCES = \
# for the following variables, use the "webkitgtk_" variables above
libWebKitGtk_ladir := $(prefix)/include/WebKit
libWebKitGtk_la_HEADERS := $(webkitgtk_h_api)
libWebKitGtk_la_SOURCES := \
$(webcore_built_sources) \ $(webcore_built_sources) \
$(webcore_headers) \ $(webcore_headers) \
$(webcore_sources) \ $(webcore_sources)
$(webkitgtk_built_sources) \
$(webkitgtk_headers) \
$(webkitgtk_sources)
libWebKitGtk_la_CXXFLAGS := \ libWebCore_la_CXXFLAGS = \
-fno-rtti \ -fno-strict-aliasing \
$(global_cxxflags) \
$(global_cflags) \ $(global_cflags) \
$(DEPENDENCIES_CFLAGS) \ $(GLOBALDEPS_CFLAGS) \
$(WEBKITDEPS_CFLAGS) \
$(LIBCURL_CFLAGS) \
$(SQLITE3_CFLAGS) \ $(SQLITE3_CFLAGS) \
$(GSTREAMER_CFLAGS) \ $(GSTREAMER_CFLAGS) \
$(LIBXSLT_CFLAGS) \ $(LIBXSLT_CFLAGS) \
$(COVERAGE_CFLAGS) $(COVERAGE_CFLAGS) \
$(HILDON_CFLAGS)
libWebKitGtk_la_CFLAGS := \ libWebCore_la_CFLAGS = \
-fno-strict-aliasing \
$(global_cflags) \ $(global_cflags) \
$(DEPENDENCIES_CFLAGS) \ $(GLOBALDEPS_CFLAGS) \
$(WEBKITDEPS_CFLAGS) \
$(LIBCURL_CFLAGS) \
$(SQLITE3_CFLAGS) \ $(SQLITE3_CFLAGS) \
$(GSTREAMER_CFLAGS) \ $(GSTREAMER_CFLAGS) \
$(LIBXSLT_CFLAGS) \ $(LIBXSLT_CFLAGS) \
$(COVERAGE_CFLAGS) $(COVERAGE_CFLAGS) \
$(HILDON_CFLAGS)
libWebKitGtk_la_CPPFLAGS := \ libWebCore_la_CPPFLAGS = \
$(ICU_CPPFLAGS) \
$(global_cppflags) \ $(global_cppflags) \
$(webcore_cppflags) \ $(webcore_cppflags) \
$(webkitgtk_cppflags) $(webkitgtk_cppflags)
libWebKitGtk_la_LIBADD := @LTLIBOBJS@ libJavaScriptCore.la libWebCore_la_LIBADD = \
libJavaScriptCore.la \
libWebKitGtk_la_LDFLAGS := \ $(webcore_libadd) \
$(webkitgtk_ldflags) \ $(GLOBALDEPS_LIBS) \
$(DEPENDENCIES_LIBS) \ $(WEBKITDEPS_LIBS) \
$(LIBCURL_LIBS) \
$(ICU_LIBS) \ $(ICU_LIBS) \
$(SQLITE3_LIBS) \ $(SQLITE3_LIBS) \
$(GSTREAMER_LIBS) \ $(GSTREAMER_LIBS) \
$(LIBXSLT_LIBS) \ $(LIBXSLT_LIBS) \
$(COVERAGE_LDFLAGS) \ $(HILDON_LIBS) \
-lpthread \ -lpthread \
-ljpeg \ -ljpeg
libwebkit_1_0_ladir = $(prefix)/include/webkit-1.0/webkit
libwebkit_1_0_la_HEADERS = $(webkitgtk_h_api)
libwebkit_1_0_la_SOURCES = \
$(webkitgtk_built_sources) \
$(webkitgtk_headers) \
$(webkitgtk_sources)
libwebkit_1_0_la_CXXFLAGS = \
$(libWebCore_la_CXXFLAGS)
libwebkit_1_0_la_CFLAGS = \
$(libWebCore_la_CFLAGS)
libwebkit_1_0_la_CPPFLAGS = \
$(libWebCore_la_CPPFLAGS)
libwebkit_1_0_la_LDFLAGS = \
$(COVERAGE_LDFLAGS) \
-version-info @LIBWEBKITGTK_VERSION@ -version-info @LIBWEBKITGTK_VERSION@
libwebkit_1_0_la_LIBADD = \
libWebCore.la
# #
# Extra checks and flags # Extra checks and flags
global_cppflags += \ global_cppflags += \
-DBUILDING_GTK__=1 \ -DBUILDING_GTK__=1 \
-DUSE_SYSTEM_MALLOC \
-DWTF_CHANGES -DWTF_CHANGES
if !ENABLE_FAST_MALLOC
global_cppflags += \
-DUSE_SYSTEM_MALLOC
endif
if TARGET_X11 if TARGET_X11
global_cppflags += -DXP_UNIX global_cppflags += -DXP_UNIX
endif endif
@@ -180,9 +241,11 @@ webkitgtk_cppflags += \
-DGDK_PIXBUF_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \ -DGTK_DISABLE_DEPRECATED \
-DPANGO_DISABLE_DEPRECATED \ -DPANGO_DISABLE_DEPRECATED
-DGDK_MULTIHEAD_SAFE \
-DGTK_MULTIHEAD_SAFE # Might be useful in the future
# -DGDK_MULTIHEAD_SAFE \
# -DGTK_MULTIHEAD_SAFE
endif endif
if !ENABLE_DATABASE if !ENABLE_DATABASE
@@ -200,30 +263,30 @@ global_cppflags += \
endif endif
if ENABLE_VIDEO if ENABLE_VIDEO
webkitgtk_ldflags += -lgstinterfaces-0.10 -lgstvideo-0.10 webcore_libadd += -lgstinterfaces-0.10 -lgstvideo-0.10
endif endif
#
# WEBKIT GTK+
webkitgtk_cppflags += \ webkitgtk_cppflags += \
-I $(top_builddir)/WebKit/gtk/WebView \ -I$(top_builddir)/WebKit/gtk/webkit \
-DBUILDING_CAIRO__=1 \ -DBUILDING_CAIRO__=1 \
-DBUILD_WEBKIT -DBUILD_WEBKIT
webkitgtk_h_api += \ webkitgtk_h_api += \
WebKit/gtk/WebView/webkit.h \ WebKit/gtk/webkit/webkit.h \
WebKit/gtk/WebView/webkitdefines.h \ WebKit/gtk/webkit/webkitdefines.h \
WebKit/gtk/WebView/webkitnetworkrequest.h \ WebKit/gtk/webkit/webkitnetworkrequest.h \
WebKit/gtk/WebView/webkitwebframe.h \ WebKit/gtk/webkit/webkitwebbackforwardlist.h \
WebKit/gtk/WebView/webkitwebview.h WebKit/gtk/webkit/webkitwebframe.h \
WebKit/gtk/webkit/webkitwebhistoryitem.h \
WebKit/gtk/webkit/webkitwebsettings.h \
WebKit/gtk/webkit/webkitwebview.h
webkitgtk_built_sources += \ webkitgtk_built_sources += \
WebKit/gtk/WebView/webkit-marshal.h \ WebKit/gtk/webkit/webkit-marshal.h \
WebKit/gtk/WebView/webkit-marshal.cpp WebKit/gtk/webkit/webkit-marshal.cpp
webkitgtk_headers += \ webkitgtk_headers += \
WebKit/gtk/WebView/webkitprivate.h \ WebKit/gtk/webkit/webkitprivate.h \
WebKit/gtk/WebView/webkitsettings.h \
WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \ WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \ WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
WebKit/gtk/WebCoreSupport/DragClientGtk.h \ WebKit/gtk/WebCoreSupport/DragClientGtk.h \
@@ -233,11 +296,13 @@ webkitgtk_headers += \
WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h
webkitgtk_sources += \ webkitgtk_sources += \
WebKit/gtk/WebView/webkitnetworkrequest.cpp \ WebKit/gtk/webkit/webkitnetworkrequest.cpp \
WebKit/gtk/WebView/webkitprivate.cpp \ WebKit/gtk/webkit/webkitprivate.cpp \
WebKit/gtk/WebView/webkitsettings.cpp \ WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \
WebKit/gtk/WebView/webkitwebframe.cpp \ WebKit/gtk/webkit/webkitwebframe.cpp \
WebKit/gtk/WebView/webkitwebview.cpp \ WebKit/gtk/webkit/webkitwebhistoryitem.cpp \
WebKit/gtk/webkit/webkitwebsettings.cpp \
WebKit/gtk/webkit/webkitwebview.cpp \
WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \ WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \ WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \ WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
@@ -248,22 +313,22 @@ webkitgtk_sources += \
webkitgtk_cleanfiles += \ webkitgtk_cleanfiles += \
$(top_builddir)/Programs/GtkLauncher \ $(top_builddir)/Programs/GtkLauncher \
$(top_builddir)/WebKit/gtk/WebKitGtk.pc $(top_builddir)/WebKit/gtk/webkit-1.0.pc
pkgconfigdir = $(libdir)/pkgconfig pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = WebKit/gtk/WebKitGtk.pc pkgconfig_DATA = WebKit/gtk/webkit-1.0.pc
WEBKIT_MARSHAL = $(CURDIR)/WebKit/gtk/WebView/webkit-marshal WEBKIT_MARSHAL = $(CURDIR)/WebKit/gtk/webkit/webkit-marshal
WEBKIT_MARSHAL_LIST = $(srcdir)/WebKit/gtk/WebView/webkit-marshal.list WEBKIT_MARSHAL_LIST = $(srcdir)/WebKit/gtk/webkit/webkit-marshal.list
stamp_files := \ stamp_files := \
stamp-webkit-marshal.cpp \ stamp-webkit-marshal.cpp \
stamp-webkit-marshal.h stamp-webkit-marshal.h
WebKit/gtk/WebView/webkit-marshal.cpp: stamp-webkit-marshal.cpp WebKit/gtk/webkit/webkit-marshal.cpp: stamp-webkit-marshal.cpp
@true @true
WebKit/gtk/WebView/webkit-marshal.h: stamp-webkit-marshal.h WebKit/gtk/webkit/webkit-marshal.h: stamp-webkit-marshal.h
@true @true
stamp-webkit-marshal.cpp: $(WEBKIT_MARSHAL_LIST) stamp-webkit-marshal.cpp: $(WEBKIT_MARSHAL_LIST)
@@ -289,7 +354,7 @@ include WebKitTools/GNUmakefile.am
# Autogenerated sources # Autogenerated sources
BUILT_SOURCES := \ BUILT_SOURCES = \
$(javascriptcore_built_sources) \ $(javascriptcore_built_sources) \
$(javascriptcore_built_nosources) \ $(javascriptcore_built_nosources) \
$(webcore_built_sources) \ $(webcore_built_sources) \
@@ -302,7 +367,6 @@ CLEANFILES += \
$(webkitgtk_cleanfiles) \ $(webkitgtk_cleanfiles) \
$(top_builddir)/Programs/DumpRenderTree \ $(top_builddir)/Programs/DumpRenderTree \
$(top_builddir)/Programs/testkjs \ $(top_builddir)/Programs/testkjs \
$(top_builddir)/Programs/dftables \
$(GENSOURCES) $(GENSOURCES)
MAINTAINERCLEANFILES += \ MAINTAINERCLEANFILES += \

View File

@@ -16,7 +16,14 @@ universal u:
@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
clean: 64:
@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
64u:
@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
clean:
@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done

View File

@@ -15,6 +15,12 @@ release r deployment dep deploy: force
universal u: force universal u: force
( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) 'ARCHS=ppc i386' | grep -v setenv && exit $${PIPESTATUS[0]} ) ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) 'ARCHS=ppc i386' | grep -v setenv && exit $${PIPESTATUS[0]} )
64: force
( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) 'ARCHS=i386 x86_64' | grep -v setenv && exit $${PIPESTATUS[0]} )
64u: force
( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) 'ARCHS=ppc ppc64 i386 x86_64' | grep -v setenv && exit $${PIPESTATUS[0]} )
clean: clean:
( xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} ) ( xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )

View File

@@ -58,6 +58,11 @@ CONFIG(release) {
DEFINES += NDEBUG DEFINES += NDEBUG
} }
gtk-port:CONFIG(debug) {
DEFINES += G_DISABLE_DEPRECATED GDK_PIXBUF_DISABLE_DEPRECATED GDK_DISABLE_DEPRECATED GTK_DISABLE_DEPRECATED PANGO_DISABLE_DEPRECATED
# maybe useful for debugging DEFINES += GDK_MULTIHEAD_SAFE GTK_MULTIHEAD_SAFE
}
BASE_DIR = $$PWD BASE_DIR = $$PWD
qt-port:INCLUDEPATH += \ qt-port:INCLUDEPATH += \
$$PWD/WebKit/qt/Api $$PWD/WebKit/qt/Api

View File

@@ -1,8 +1,11 @@
#! /bin/sh #! /bin/sh
# Allow invocation from a separate build directory; in that case, we change
# to the source directory to run the auto*, then change back before running configure
srcdir=`dirname $0` srcdir=`dirname $0`
test -z "$srcdir" && srcdir=. test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir cd $srcdir
DIE=0 DIE=0
@@ -37,4 +40,6 @@ autoheader || exit $?
automake --foreign --add-missing || exit $? automake --foreign --add-missing || exit $?
autoconf || exit $? autoconf || exit $?
./configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $? cd $ORIGDIR || exit 1
$srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?

View File

@@ -9,9 +9,7 @@ AC_CONFIG_SRCDIR([WebCore/config.h])
LIBWEBKITGTK_VERSION=1:0:0 LIBWEBKITGTK_VERSION=1:0:0
AC_SUBST([LIBWEBKITGTK_VERSION]) AC_SUBST([LIBWEBKITGTK_VERSION])
AM_INIT_AUTOMAKE([1.9 foreign tar-ustar subdir-objects]) AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_MAINTAINER_MODE
AC_CANONICAL_HOST AC_CANONICAL_HOST
@@ -35,6 +33,9 @@ case "$host" in
*-*-freebsd*) *-*-freebsd*)
os_freebsd=yes os_freebsd=yes
;; ;;
*-*-darwin*)
os_darwin=yes
;;
esac esac
# If CXXFLAGS and CFLAGS are unset, default to -O2 # If CXXFLAGS and CFLAGS are unset, default to -O2
@@ -53,9 +54,20 @@ AM_PROG_LIBTOOL
AC_PROG_INSTALL AC_PROG_INSTALL
AM_PROG_CC_STDC AM_PROG_CC_STDC
AC_PROG_CXX AC_PROG_CXX
AC_PROG_CXX_C_O
AM_PROG_CC_C_O AM_PROG_CC_C_O
# check for -fvisibility=hidden compiler support (GCC >= 4)
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
AC_MSG_CHECKING([if ${CXX} supports -fvisibility=hidden -fvisibility-inlines-hidden])
AC_COMPILE_IFELSE([char foo;],
[ AC_MSG_RESULT([yes])
SYMBOL_VISIBILITY="-fvisibility=hidden" SYMBOL_VISIBILITY_INLINES="-fvisibility-inlines-hidden" ],
AC_MSG_RESULT([no]))
CFLAGS="$saved_CFLAGS"
AC_SUBST(SYMBOL_VISIBILITY)
AC_SUBST(SYMBOL_VISIBILITY_INLINES)
AC_PATH_PROG(PERL, perl) AC_PATH_PROG(PERL, perl)
if test -z "$PERL"; then if test -z "$PERL"; then
AC_MSG_ERROR([You need 'perl' to compile WebKit]) AC_MSG_ERROR([You need 'perl' to compile WebKit])
@@ -101,10 +113,12 @@ AC_C_VOLATILE
AC_HEADER_STDC AC_HEADER_STDC
AC_HEADER_STDBOOL AC_HEADER_STDBOOL
# pthread # pthread (not needed on Windows)
if test "$os_win32" = "no"; then
AC_CHECK_HEADERS([pthread.h], AC_CHECK_HEADERS([pthread.h],
AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exist]), AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exist]),
AC_MSG_ERROR([pthread support is required to build WebKit])) AC_MSG_ERROR([pthread support is required to build WebKit]))
fi
# libjpeg headers # libjpeg headers
AC_CHECK_HEADERS([jpeglib.h]) AC_CHECK_HEADERS([jpeglib.h])
@@ -116,75 +130,126 @@ if test "$PKG_CONFIG" = "no"; then
fi fi
# check for icu-config # check for icu-config
if test "$os_darwin" = "yes"; then
ICU_CPPFLAGS="-I\$(srcdir)/JavaScriptCore/icu -I\$(srcdir)/WebCore/icu"
ICU_LIBS="-licucore"
else
AC_PATH_PROG(icu_config, icu-config, no) AC_PATH_PROG(icu_config, icu-config, no)
if test "$icu_config" = "no"; then if test "$icu_config" = "no"; then
AC_MSG_ERROR([Cannot find icu-config. ICU library is needed.]) AC_MSG_ERROR([Cannot find icu-config. ICU library is needed.])
fi fi
ICU_CFLAGS=`$icu_config --cflags`
# We don't use --cflags as this gives us a lot of things that we don't
# necessarily want, like debugging and optimization flags
# See man (1) icu-config for more info.
ICU_CPPFLAGS=`$icu_config --cppflags`
ICU_LIBS=`$icu_config --ldflags` ICU_LIBS=`$icu_config --ldflags`
AC_SUBST([ICU_CFLAGS]) AC_SUBST([ICU_CPPFLAGS])
AC_SUBST([ICU_LIBS]) AC_SUBST([ICU_LIBS])
fi
# determine the GDK/GTK+ target # determine the GDK/GTK+ target
AC_MSG_CHECKING([the target for WebKit GTK+]) AC_MSG_CHECKING([the target windowing system])
AC_ARG_WITH(webkit_target, AC_ARG_WITH(target,
AC_HELP_STRING([--with-webkit-target=@<:@x11/win32/quartz/directfb@:>@], AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
[Select webkit target [default=x11]]), [Select webkit target [default=x11]]),
[],[with_webkit_target="x11"]) [],[with_target="x11"])
case "$with_webkit_target" in case "$with_target" in
x11|win32|quartz|directfb) ;; x11|win32|quartz|directfb) ;;
*) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;; *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
esac esac
AC_MSG_RESULT([$with_webkit_target]) AC_MSG_RESULT([$with_target])
AC_MSG_CHECKING([for Hildon UI extensions])
AC_ARG_WITH(hildon,
AC_HELP_STRING([--with-hildon],
[Use Hildon UI extensions [default=no]]),
[],[with_hildon="no"])
AC_MSG_RESULT([$with_hildon])
if test "$with_hildon" = "yes"; then
HILDON_CPPFLAGS="-DMAEMO_CHANGES"
PKG_CHECK_MODULES([HILDON], [hildon-1])
AC_SUBST([HILDON_CPPFLAGS])
AC_SUBST([HILDON_CFLAGS])
AC_SUBST([HILDON_LIBS])
fi
# determine the http backend
AC_MSG_CHECKING([the HTTP backend to use])
AC_ARG_WITH(http_backend,
AC_HELP_STRING([--with-http-backend=@<:@curl@:>@],
[Select HTTP backend [default=curl]]),
[],[http_backend="curl"])
case "$http_backend" in
curl) ;;
*) AC_MSG_ERROR([Invalid HTTP backend: must be curl.]) ;;
esac
AC_MSG_RESULT([$http_backend])
# minimum base dependencies # minimum base dependencies
CAIRO_REQUIRED_VERSION=1.4
FONTCONFIG_REQUIRED_VERSION=2.4
FREETYPE2_REQUIRED_VERSION=9.0
LIBXML_REQUIRED_VERSION=2.6
# minimum GTK+ base dependencies
GLIB_REQUIRED_VERSION=2.0 GLIB_REQUIRED_VERSION=2.0
GOBJECT_REQUIRED_VERSION=2.0 GOBJECT_REQUIRED_VERSION=2.0
GTHREAD_REQUIRED_VERSION=2.0 GTHREAD_REQUIRED_VERSION=2.0
PANGO_REQUIRED_VERSION=1.0 PANGO_REQUIRED_VERSION=1.0
CAIRO_REQUIRED_VERSION=1.2 GTK_REQUIRED_VERSION=2.8
FONTCONFIG_REQUIRED_VERSION=2.4
FREETYPE2_REQUIRED_VERSION=9.0
LIBCURL_REQUIRED_VERSION=7.15
LIBXML_REQUIRED_VERSION=2.6
# optional modules # optional modules
GTK_REQUIRED_VERSION=2.0 LIBCURL_REQUIRED_VERSION=7.15
LIBXSLT_REQUIRED_VERSION=1.1.7 LIBXSLT_REQUIRED_VERSION=1.1.7
SQLITE_REQUIRED_VERSION=3.0 SQLITE_REQUIRED_VERSION=3.0
GSTREAMER_REQUIRED_VERSION=0.10 GSTREAMER_REQUIRED_VERSION=0.10
GNOME_VFS_REQUIRED_VERSION=2.0 GNOME_VFS_REQUIRED_VERSION=2.0
PKG_CHECK_MODULES([DEPENDENCIES], PKG_CHECK_MODULES([GLOBALDEPS],
[glib-2.0 >= $GLIB_REQUIRED_VERSION [glib-2.0 >= $GLIB_REQUIRED_VERSION
gobject-2.0 >= $GOBJECT_REQUIRED_VERSION gobject-2.0 >= $GOBJECT_REQUIRED_VERSION
gthread-2.0 >= $GTHREAD_REQUIRED_VERSION gthread-2.0 >= $GTHREAD_REQUIRED_VERSION])
gtk+-2.0 >= $GTK_REQUIRED_VERSION AC_SUBST([GLOBALDEPS_CFLAGS])
AC_SUBST([GLOBALDEPS_LIBS])
PKG_CHECK_MODULES([WEBKITDEPS],
[gtk+-2.0 >= $GTK_REQUIRED_VERSION
pango >= $PANGO_REQUIRED_VERSION pango >= $PANGO_REQUIRED_VERSION
libcurl >= $LIBCURL_REQUIRED_VERSION
cairo >= $CAIRO_REQUIRED_VERSION cairo >= $CAIRO_REQUIRED_VERSION
cairo-ft, cairo-ft,
fontconfig >= $FONTCONFIG_REQUIRED_VERSION fontconfig >= $FONTCONFIG_REQUIRED_VERSION
freetype2 >= $FREETYPE2_REQUIRED_VERSION freetype2 >= $FREETYPE2_REQUIRED_VERSION
libxml-2.0 >= $LIBXML_REQUIRED_VERSION]) libxml-2.0 >= $LIBXML_REQUIRED_VERSION])
AC_SUBST([DEPENDENCIES_CFLAGS]) AC_SUBST([WEBKITDEPS_CFLAGS])
AC_SUBST([DEPENDENCIES_LIBS]) AC_SUBST([WEBKITDEPS_LIBS])
# check whether to build with debugging enabled # check whether to build with debugging enabled
AC_MSG_CHECKING([whether to do a debug build]) AC_MSG_CHECKING([whether to do a debug build])
AC_ARG_ENABLE(debug, AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug], AC_HELP_STRING([--enable-debug],
[turn on debugging [default=no]]), [turn on debugging [default=no]]),
[enable_debug="yes"],[enable_debug="no"]) [],[enable_debug="no"])
AC_MSG_RESULT([$enable_debug]) AC_MSG_RESULT([$enable_debug])
# check whether to build with cross-document messaging support
AC_MSG_CHECKING([whether to enable HTML5 cross-document messaging support])
AC_ARG_ENABLE(cross_document_messaging,
AC_HELP_STRING([--enable-cross-document-messaging],
[enable HTML5 cross-document messaging support [default=yes]]),
[],[enable_cross_document_messaging="yes"])
AC_MSG_RESULT([$enable_cross_document_messaging])
# check whether to build with database support # check whether to build with database support
AC_MSG_CHECKING([whether to enable HTML5 client-side storage support]) AC_MSG_CHECKING([whether to enable HTML5 client-side storage support])
AC_ARG_ENABLE(database, AC_ARG_ENABLE(database,
AC_HELP_STRING([--enable-database], AC_HELP_STRING([--enable-database],
[enable HTML5 client-side storage support [default=no]]), [enable HTML5 client-side storage support [default=yes]]),
[],[enable_database="yes"]) [],[enable_database="yes"])
AC_MSG_RESULT([$enable_database]) AC_MSG_RESULT([$enable_database])
@@ -201,14 +266,14 @@ AC_MSG_CHECKING([whether to enable HTML5 video support])
AC_ARG_ENABLE(video, AC_ARG_ENABLE(video,
AC_HELP_STRING([--enable-video], AC_HELP_STRING([--enable-video],
[enable HTML5 video support [default=no]]), [enable HTML5 video support [default=no]]),
[enable_video="yes"],[enable_video="no"]) [],[enable_video="no"])
AC_MSG_RESULT([$enable_video]) AC_MSG_RESULT([$enable_video])
# check whether to enable XPath support # check whether to enable XPath support
AC_MSG_CHECKING([whether to enable XPath support]) AC_MSG_CHECKING([whether to enable XPath support])
AC_ARG_ENABLE(xpath, AC_ARG_ENABLE(xpath,
AC_HELP_STRING([--enable-xpath], AC_HELP_STRING([--enable-xpath],
[enable support for XPath [default=no]]), [enable support for XPath [default=yes]]),
[],[enable_xpath="yes"]) [],[enable_xpath="yes"])
AC_MSG_RESULT([$enable_xpath]) AC_MSG_RESULT([$enable_xpath])
@@ -216,10 +281,29 @@ AC_MSG_RESULT([$enable_xpath])
AC_MSG_CHECKING([whether to enable XSLT support]) AC_MSG_CHECKING([whether to enable XSLT support])
AC_ARG_ENABLE(xslt, AC_ARG_ENABLE(xslt,
AC_HELP_STRING([--enable-xslt], AC_HELP_STRING([--enable-xslt],
[enable support for XSLT [default=no]]), [enable support for XSLT [default=yes]]),
[],[enable_xslt="yes"]) [],[enable_xslt="yes"])
AC_MSG_RESULT([$enable_xslt]) AC_MSG_RESULT([$enable_xslt])
# check whether to enable SVG experimental features
# Enable all SVG if it is
AC_MSG_CHECKING([whether to enable SVG experimental features])
AC_ARG_ENABLE(svg_experimental,
AC_HELP_STRING([--enable-svg-experimental],
[enable support for SVG experimental features [default=no]]),
[],[enable_svg_experimental="no"])
AC_MSG_RESULT([$enable_svg_experimental])
if test "$enable_svg_experimental" = "yes"; then
enable_svg=yes
enable_svg_animation=yes
# enable_svg_filters=yes
enable_svg_fonts=yes
enable_svg_foreign_object=yes
enable_svg_as_image=yes
enable_svg_use_element=yes
fi
# check whether to enable SVG support # check whether to enable SVG support
AC_MSG_CHECKING([whether to enable SVG support]) AC_MSG_CHECKING([whether to enable SVG support])
AC_ARG_ENABLE(svg, AC_ARG_ENABLE(svg,
@@ -229,10 +313,10 @@ AC_ARG_ENABLE(svg,
AC_MSG_RESULT([$enable_svg]) AC_MSG_RESULT([$enable_svg])
# check whether to enable support for SVG animation # check whether to enable support for SVG animation
AC_MSG_CHECKING([whether to enable support for SVG animataion]) AC_MSG_CHECKING([whether to enable support for SVG animation])
AC_ARG_ENABLE(svg_animation, AC_ARG_ENABLE(svg_animation,
AC_HELP_STRING([--enable-svg-animation], AC_HELP_STRING([--enable-svg-animation],
[enable support for SVG animation feature (experimental) [default=no]]), [enable support for SVG animation (experimental) [default=no]]),
[],[enable_svg_animation="no"]) [],[enable_svg_animation="no"])
AC_MSG_RESULT([$enable_svg_animation]) AC_MSG_RESULT([$enable_svg_animation])
@@ -252,6 +336,14 @@ AC_ARG_ENABLE(svg_fonts,
[],[enable_svg_fonts="no"]) [],[enable_svg_fonts="no"])
AC_MSG_RESULT([$enable_svg_fonts]) AC_MSG_RESULT([$enable_svg_fonts])
# check whether to enable foreign objects support for SVG
AC_MSG_CHECKING([whether to enable support for SVG foreign objects])
AC_ARG_ENABLE(svg_foreign_object,
AC_HELP_STRING([--enable-svg-foreign-object],
[enable support for SVG foreign objects (experimental) [default=no]]),
[],[enable_svg_foreign_object="no"])
AC_MSG_RESULT([$enable_svg_foreign_object])
# check whether to enable SVG As Image support # check whether to enable SVG As Image support
AC_MSG_CHECKING([whether to enable SVG as Image support]) AC_MSG_CHECKING([whether to enable SVG as Image support])
AC_ARG_ENABLE(svg_as_image, AC_ARG_ENABLE(svg_as_image,
@@ -276,12 +368,28 @@ AC_ARG_ENABLE(coverage,
[],[enable_coverage="no"]) [],[enable_coverage="no"])
AC_MSG_RESULT([$enable_coverage]) AC_MSG_RESULT([$enable_coverage])
# check whether to enable FastMalloc
AC_MSG_CHECKING([whether to enable optimized memory allocator])
AC_ARG_ENABLE(fast_malloc,
AC_HELP_STRING([--enable-fast-malloc],
[enable optimized memory allocator default=yes, default=no for debug builds]),
[],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
AC_MSG_RESULT([$enable_fast_malloc])
# Add '-g' flag to gcc if it's debug build # Add '-g' flag to gcc if it's debug build
if test "$enable_debug" = "yes"; then if test "$enable_debug" = "yes"; then
CXXFLAGS="$CXXFLAGS -g" CXXFLAGS="$CXXFLAGS -g"
CFLAGS="$CFLAGS -g" CFLAGS="$CFLAGS -g"
fi fi
# check if curl is available
if test "$http_backend" = "curl"; then
PKG_CHECK_MODULES([LIBCURL],
[libcurl >= $LIBCURL_REQUIRED_VERSION])
AC_SUBST([LIBCURL_CFLAGS])
AC_SUBST([LIBCURL_LIBS])
fi
# check if sqlite 3 is available # check if sqlite 3 is available
if test "$enable_icon_database" = "yes" || test "$enable_database" = "yes"; then if test "$enable_icon_database" = "yes" || test "$enable_database" = "yes"; then
PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= $SQLITE_REQUIRED_VERSION]) PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= $SQLITE_REQUIRED_VERSION])
@@ -316,16 +424,17 @@ if test "$enable_coverage" = "yes"; then
fi fi
# check for SVG features, enabling SVG if necessary # check for SVG features, enabling SVG if necessary
if test "$enable_svg" = "no" && (\ if test "$enable_svg_animation" = "yes" || \
test "$enable_svg_animation" = "yes" || \
test "$enable_svg_filters" = "yes" || \ test "$enable_svg_filters" = "yes" || \
test "$enable_svg_fonts" = "yes" || \ test "$enable_svg_fonts" = "yes" || \
test "$enable_svg_foreign_object" = "yes" || \
test "$enable_svg_as_image" = "yes" || \ test "$enable_svg_as_image" = "yes" || \
test "$enable_svg_use_element" = "yes"); then test "$enable_svg_use_element" = "yes"; then
svg_flags=yes
AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support]) if test "$enable_svg" = "no"; then
enable_svg = yes AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
svg_flags = yes enable_svg=yes
fi
fi fi
# OS conditionals # OS conditionals
@@ -335,13 +444,17 @@ AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"]) AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
# target conditionals # target conditionals
AM_CONDITIONAL([TARGET_X11], [test "$with_webkit_target" = "x11"]) AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
AM_CONDITIONAL([TARGET_WIN32], [test "$with_webkit_target" = "win32"]) AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_webkit_target" = "quartz"]) AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_webkit_target" = "directfb"]) AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
# HTTP backend conditionals
AM_CONDITIONAL([USE_CURL], [test "$http_backend" = "curl"])
# WebKit feature conditionals # WebKit feature conditionals
AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"]) AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
AM_CONDITIONAL([ENABLE_CROSS_DOCUMENT_MESSAGING],[test "$enable_cross_document_messaging" = "yes"])
AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"]) AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"])
AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"]) AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"]) AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
@@ -351,14 +464,16 @@ AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"]) AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"])
AM_CONDITIONAL([ENABLE_SVG_FILTERS],[test "$enable_svg_filters" = "yes"]) AM_CONDITIONAL([ENABLE_SVG_FILTERS],[test "$enable_svg_filters" = "yes"])
AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"]) AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
AM_CONDITIONAL([ENABLE_SVG_FOREIGN_OBJECT],[test "$enable_svg_foreign_object" = "yes"])
AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"]) AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"])
AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use_element" = "yes"]) AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use_element" = "yes"])
AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"]) AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"]) AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
AC_CONFIG_FILES([ AC_CONFIG_FILES([
GNUmakefile GNUmakefile
WebKit/gtk/WebKitGtk.pc:WebKit/gtk/WebKitGtk.pc.in WebKit/gtk/webkit-1.0.pc:WebKit/gtk/webkit.pc.in
] ]
) )
@@ -367,9 +482,13 @@ AC_OUTPUT
echo " echo "
WebKit was configured with the following options: WebKit was configured with the following options:
Target : $with_webkit_target Build configuration:
Enable debug : $enable_debug Enable debugging (slow) : $enable_debug
Code coverage support : $enable_coverage Code coverage support : $enable_coverage
HTTP backend : $http_backend
Optimized memory allocator : $enable_fast_malloc
Features:
HTML5 cross-document messaging : $enable_cross_document_messaging
HTML5 client-side storage support : $enable_database HTML5 client-side storage support : $enable_database
HTML5 video element support : $enable_video HTML5 video element support : $enable_video
Icon database support : $enable_icon_database Icon database support : $enable_icon_database
@@ -377,8 +496,12 @@ WebKit was configured with the following options:
SVG animation support : $enable_svg_animation SVG animation support : $enable_svg_animation
SVG filters support : $enable_svg_filters SVG filters support : $enable_svg_filters
SVG fonts support : $enable_svg_fonts SVG fonts support : $enable_svg_fonts
SVG foreign object support : $enable_svg_foreign_object
SVG as image support : $enable_svg_as_image SVG as image support : $enable_svg_as_image
SVG use element support : $enable_svg_use_element SVG use element support : $enable_svg_use_element
XPATH support : $enable_xpath XPATH support : $enable_xpath
XSLT support : $enable_xslt XSLT support : $enable_xslt
GTK+ configuration:
GDK target : $with_target
Hildon UI extensions : $with_hildon
" "

View File

@@ -1,33 +1,59 @@
DEPENDS = "curl icu libxml2 cairo libxslt libidn gnutls gtk+" DEPENDS = "curl icu libxml2 cairo libxslt libidn gnutls gtk+ gstreamer gst-plugins-base gnome-vfs flex-native gperf-native perl-native sqlite3"
# If you activate HTML5 media support (ENABLE_VIDEO=1) you'll need: SRCREV_FORMAT = "webcore-rwebkit"
# DEPENDS += " gstreamer gst-plugins-base gnome-vfs "
# Yes, this is wrong...
PV = "0.1+svnr${SRCREV}"
PR = "r4"
WEBKIT_PORT = "gtk-port" SRC_URI = "\
WEBKIT_EXTRA_OPTIONS = "CONFIG-=qt" svn://svn.webkit.org/repository/webkit/trunk/;module=JavaScriptCore;proto=http \
svn://svn.webkit.org/repository/webkit/trunk/;module=JavaScriptGlue;proto=http \
svn://svn.webkit.org/repository/webkit/trunk/;module=WebCore;proto=http;name=webcore \
svn://svn.webkit.org/repository/webkit/trunk/;module=WebKit;proto=http;name=webkit \
svn://svn.webkit.org/repository/webkit/trunk/;module=WebKitLibraries;proto=http \
svn://svn.webkit.org/repository/webkit/trunk/;module=WebKitTools;proto=http \
file://Makefile \
file://Makefile.shared \
file://autogen.sh \
file://configure.ac \
file://GNUmakefile.am \
"
FILES_webkit-gtklauncher = "${bindir}/GtkLauncher" S = "${WORKDIR}/"
FILES_webkit-gtklauncher-dbg += "${bindir}/.debug/GtkLauncher"
require webkit.inc inherit autotools pkgconfig
SRC_URI += "file://autogen.sh \ EXTRA_OECONF = "\
file://configure.ac \ --enable-debug=no \
file://GNUmakefile.am \ --enable-svg \
file://fix_im.patch;patch=1 \ --enable-icon-database=yes \
" "
PR = "r5" do_compile_prepend() {
mkdir -p ${S}/WebKitBuilds/Debug/JavaScriptCore/pcre/tmp/
do_install() { mkdir -p ${S}/Programs/
install -d ${D}${bindir} cd ${S}/JavaScriptCore/pcre
install -d ${D}${libdir} if test -e dftables.c
install -d ${D}${libdir}/pkgconfig then
${BUILD_CC} dftables.c -o dftables -I. -I../wtf
install -m 0755 ${S}/WebKitBuilds/Debug/WebKitTools/GtkLauncher/GtkLauncher ${D}${bindir} elif test -e dftables.cpp
cd ${S}/WebKitBuilds/Debug then
PWD=`pwd` ${WEBKIT_QMAKE} WEBKIT_INC_DIR=${D}${prefix}/include WEBKIT_LIB_DIR=${D}${libdir} $PWD/../../WebKit.pro ${BUILD_CXX} dftables.cpp -o dftables -I. -I../wtf
oe_runmake install fi
cp dftables ${S}/WebKitBuilds/Debug/JavaScriptCore/pcre/tmp/
cp dftables ${S}/Programs/
cd ${S}
} }
do_stage() {
autotools_stage_all
}
PACKAGES =+ "${PN}launcher-dbg ${PN}launcher libjavascriptcore"
FILES_${PN}launcher = "${bindir}/GtkLauncher"
FILES_${PN}launcher-dbg = "${bindir}/.debug/GtkLauncher"
FILES_libjavascriptcore = "${libdir}/libJavaScriptCore.so.*"

View File

@@ -1,3 +1,4 @@
DESCRIPTION = "WebKit browser engine, GTK+ edition"
DEPENDS += "flex-native gperf-native perl-native sqlite3" DEPENDS += "flex-native gperf-native perl-native sqlite3"
SRCREV_FORMAT = "webcore-rwebkit" SRCREV_FORMAT = "webcore-rwebkit"
@@ -6,7 +7,7 @@ PACKAGES =+ "${PN}launcher-dbg ${PN}launcher"
# Yes, this is wrong... # Yes, this is wrong...
PV = "0.1+svnr${SRCREV}" PV = "0.1+svnr${SRCREV}"
inherit qmake2 inherit qmake2 pkgconfig
SRC_URI = "\ SRC_URI = "\
svn://svn.webkit.org/repository/webkit/trunk/;module=JavaScriptCore;proto=http \ svn://svn.webkit.org/repository/webkit/trunk/;module=JavaScriptCore;proto=http \
@@ -51,7 +52,5 @@ do_stage() {
cd ${S}/WebKitBuilds/Debug cd ${S}/WebKitBuilds/Debug
PWD=`pwd` ${WEBKIT_QMAKE} WEBKIT_INC_DIR=${STAGING_INCDIR} WEBKIT_LIB_DIR=${STAGING_LIBDIR} $PWD/../../WebKit.pro PWD=`pwd` ${WEBKIT_QMAKE} WEBKIT_INC_DIR=${STAGING_INCDIR} WEBKIT_LIB_DIR=${STAGING_LIBDIR} $PWD/../../WebKit.pro
oe_runmake install oe_runmake install
#sed -i -e "s:${WORKDIR}/image/::g" ${PKG_CONFIG_DIR}/WebKitGtk.pc
} }