webkit: upgraded to rev 31467, enabled SVG fonts

http://bugs.webkit.org/show_bug.cgi?id=18239 was reported as SVG fonts
support is required to make Webkit built.


git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4151 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Marcin Juszkiewicz
2008-03-31 18:34:18 +00:00
parent 544fa41378
commit 133a314a4f
7 changed files with 126 additions and 64 deletions

View File

@@ -52,11 +52,7 @@ EXTRA_DIST :=
global_cppflags := global_cppflags :=
global_cppflags += \ global_cppflags += \
-I$(srcdir)/JavaScriptCore \ -DWTF_USE_ICU_UNICODE=1
-I$(srcdir)/JavaScriptCore/ForwardingHeaders \
-I$(srcdir)/JavaScriptCore/wtf \
-I$(srcdir)/JavaScriptCore/kjs \
-I$(top_builddir)/DerivedSources
# Default compiler flags # Default compiler flags
global_cflags := \ global_cflags := \
@@ -94,6 +90,13 @@ javascriptcore_sources :=
javascriptcore_built_sources := javascriptcore_built_sources :=
javascriptcore_built_nosources := javascriptcore_built_nosources :=
javascriptcore_cppflags += \
-I$(srcdir)/JavaScriptCore \
-I$(srcdir)/JavaScriptCore/ForwardingHeaders \
-I$(srcdir)/JavaScriptCore/wtf \
-I$(srcdir)/JavaScriptCore/kjs \
-I$(top_builddir)/DerivedSources
# 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-1.0/JavaScriptCore libJavaScriptCore_ladir = $(prefix)/include/webkit-1.0/JavaScriptCore
@@ -104,7 +107,7 @@ libJavaScriptCore_la_SOURCES = \
$(javascriptcore_sources) $(javascriptcore_sources)
libJavaScriptCore_la_LIBADD = \ libJavaScriptCore_la_LIBADD = \
$(ICU_LIBS) \ $(UNICODE_LIBS) \
$(GLOBALDEPS_LIBS) \ $(GLOBALDEPS_LIBS) \
-lpthread -lpthread
@@ -112,17 +115,18 @@ libJavaScriptCore_la_CXXFLAGS = \
$(global_cxxflags) \ $(global_cxxflags) \
$(global_cflags) \ $(global_cflags) \
$(GLOBALDEPS_CFLAGS) \ $(GLOBALDEPS_CFLAGS) \
$(UNICODE_CFLAGS) \
-fstrict-aliasing -fstrict-aliasing
libJavaScriptCore_la_CFLAGS = \ libJavaScriptCore_la_CFLAGS = \
$(global_cflags) \ $(global_cflags) \
$(GLOBALDEPS_CFLAGS) \ $(GLOBALDEPS_CFLAGS) \
$(UNICODE_CFLAGS) \
-fstrict-aliasing -fstrict-aliasing
libJavaScriptCore_la_CPPFLAGS = \ libJavaScriptCore_la_CPPFLAGS = \
$(global_cppflags) \ $(global_cppflags) \
$(javascriptcore_cppflags) \ $(javascriptcore_cppflags)
$(ICU_CPPFLAGS)
# #
# WebCore # WebCore
@@ -154,8 +158,10 @@ libWebCore_la_CXXFLAGS = \
$(global_cxxflags) \ $(global_cxxflags) \
$(global_cflags) \ $(global_cflags) \
$(GLOBALDEPS_CFLAGS) \ $(GLOBALDEPS_CFLAGS) \
$(UNICODE_CFLAGS) \
$(WEBKITDEPS_CFLAGS) \ $(WEBKITDEPS_CFLAGS) \
$(LIBCURL_CFLAGS) \ $(LIBCURL_CFLAGS) \
$(LIBSOUP_CFLAGS) \
$(SQLITE3_CFLAGS) \ $(SQLITE3_CFLAGS) \
$(GSTREAMER_CFLAGS) \ $(GSTREAMER_CFLAGS) \
$(LIBXSLT_CFLAGS) \ $(LIBXSLT_CFLAGS) \
@@ -166,8 +172,10 @@ libWebCore_la_CFLAGS = \
-fno-strict-aliasing \ -fno-strict-aliasing \
$(global_cflags) \ $(global_cflags) \
$(GLOBALDEPS_CFLAGS) \ $(GLOBALDEPS_CFLAGS) \
$(UNICODE_CFLAGS) \
$(WEBKITDEPS_CFLAGS) \ $(WEBKITDEPS_CFLAGS) \
$(LIBCURL_CFLAGS) \ $(LIBCURL_CFLAGS) \
$(LIBSOUP_CFLAGS) \
$(SQLITE3_CFLAGS) \ $(SQLITE3_CFLAGS) \
$(GSTREAMER_CFLAGS) \ $(GSTREAMER_CFLAGS) \
$(LIBXSLT_CFLAGS) \ $(LIBXSLT_CFLAGS) \
@@ -175,9 +183,9 @@ libWebCore_la_CFLAGS = \
$(HILDON_CFLAGS) $(HILDON_CFLAGS)
libWebCore_la_CPPFLAGS = \ libWebCore_la_CPPFLAGS = \
$(ICU_CPPFLAGS) \
$(global_cppflags) \ $(global_cppflags) \
$(webcore_cppflags) \ $(webcore_cppflags) \
$(javascriptcore_cppflags) \
$(webkitgtk_cppflags) $(webkitgtk_cppflags)
libWebCore_la_LIBADD = \ libWebCore_la_LIBADD = \
@@ -186,7 +194,8 @@ libWebCore_la_LIBADD = \
$(GLOBALDEPS_LIBS) \ $(GLOBALDEPS_LIBS) \
$(WEBKITDEPS_LIBS) \ $(WEBKITDEPS_LIBS) \
$(LIBCURL_LIBS) \ $(LIBCURL_LIBS) \
$(ICU_LIBS) \ $(LIBSOUP_LIBS) \
$(UNICODE_LIBS) \
$(SQLITE3_LIBS) \ $(SQLITE3_LIBS) \
$(GSTREAMER_LIBS) \ $(GSTREAMER_LIBS) \
$(LIBXSLT_LIBS) \ $(LIBXSLT_LIBS) \

View File

@@ -17,7 +17,7 @@ qt-port:!building-libs {
gtk-port:!building-libs { gtk-port:!building-libs {
QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR
LIBS += -lWebKitGtk LIBS += -lWebKitGtk
DEPENDPATH += $$PWD/WebKit/gtk/WebView $$PWD/WebKit/gtk/WebCoreSupport DEPENDPATH += $$PWD/WebKit/gtk $$PWD/WebKit/gtk/WebCoreSupport $$PWD/WebKit/gtk/webkit
} }
gtk-port { gtk-port {
@@ -36,6 +36,7 @@ gtk-port {
# We use the curl http backend on all platforms # We use the curl http backend on all platforms
PKGCONFIG += libcurl PKGCONFIG += libcurl
DEFINES += WTF_USE_CURL=1
LIBS += -lWebKitGtk -ljpeg -lpng LIBS += -lWebKitGtk -ljpeg -lpng
@@ -72,8 +73,9 @@ gtk-port:INCLUDEPATH += \
$$BASE_DIR/WebCore/platform/graphics/cairo \ $$BASE_DIR/WebCore/platform/graphics/cairo \
$$BASE_DIR/WebCore/loader/gtk \ $$BASE_DIR/WebCore/loader/gtk \
$$BASE_DIR/WebCore/page/gtk \ $$BASE_DIR/WebCore/page/gtk \
$$BASE_DIR/WebKit/gtk/WebView \ $$BASE_DIR/WebKit/gtk \
$$BASE_DIR/WebKit/gtk/WebCoreSupport $$BASE_DIR/WebKit/gtk/WebCoreSupport \
$$BASE_DIR/WebKit/gtk/webkit
INCLUDEPATH += \ INCLUDEPATH += \
$$BASE_DIR/JavaScriptCore/ \ $$BASE_DIR/JavaScriptCore/ \
$$BASE_DIR/JavaScriptCore/kjs \ $$BASE_DIR/JavaScriptCore/kjs \
@@ -95,7 +97,8 @@ INCLUDEPATH += \
$$BASE_DIR/WebCore/rendering \ $$BASE_DIR/WebCore/rendering \
$$BASE_DIR/WebCore/history \ $$BASE_DIR/WebCore/history \
$$BASE_DIR/WebCore/xml \ $$BASE_DIR/WebCore/xml \
$$BASE_DIR/WebCore/html $$BASE_DIR/WebCore/html \
$$BASE_DIR/WebCore/plugins
macx { macx {

View File

@@ -1,7 +1,11 @@
TEMPLATE = subdirs TEMPLATE = subdirs
CONFIG += ordered CONFIG += ordered
!gtk-port:CONFIG += qt-port !gtk-port:CONFIG += qt-port
qt-port:!win32-*:SUBDIRS += WebKit/qt/Plugins qt-port {
lessThan(QT_MINOR_VERSION, 4) {
!win32-*:SUBDIRS += WebKit/qt/Plugins
}
}
SUBDIRS += \ SUBDIRS += \
WebCore \ WebCore \
JavaScriptCore/kjs/testkjs.pro JavaScriptCore/kjs/testkjs.pro

View File

@@ -11,23 +11,35 @@ cd $srcdir
DIE=0 DIE=0
(autoconf --version) < /dev/null > /dev/null 2>&1 || { (autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo echo
echo "You must have autoconf installed to compile $PROJECT." echo "You must have autoconf installed to compile $PROJECT."
echo "Install the appropriate package for your distribution," echo "Install the appropriate package for your distribution,"
echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/" echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
DIE=1 DIE=1
} }
(automake --version) < /dev/null > /dev/null 2>&1 || { (automake --version) < /dev/null > /dev/null 2>&1 || {
echo echo
echo "You must have automake installed to compile $PROJECT." echo "You must have automake installed to compile $PROJECT."
echo "Install the appropriate package for your distribution," echo "Install the appropriate package for your distribution,"
echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/" echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
DIE=1 DIE=1
}
LIBTOOLIZE=libtoolize
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
LIBTOOLIZE=glibtoolize
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have libtool installed to compile $PROJECT."
echo "Install the appropriate package for your distribution,"
echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
DIE=1
}
} }
if test "$DIE" -eq 1; then if test "$DIE" -eq 1; then
exit 1 exit 1
fi fi
rm -rf $top_srcdir/autom4te.cache rm -rf $top_srcdir/autom4te.cache
@@ -35,7 +47,7 @@ rm -rf $top_srcdir/autom4te.cache
touch README INSTALL touch README INSTALL
aclocal || exit $? aclocal || exit $?
libtoolize --force || exit $? $LIBTOOLIZE --force || exit $?
autoheader || exit $? autoheader || exit $?
automake --foreign --add-missing || exit $? automake --foreign --add-missing || exit $?
autoconf || exit $? autoconf || exit $?

View File

@@ -129,24 +129,41 @@ if test "$PKG_CONFIG" = "no"; then
AC_MSG_ERROR([Cannot find pkg-config, make sure it is installed in your PATH]) AC_MSG_ERROR([Cannot find pkg-config, make sure it is installed in your PATH])
fi fi
# check for icu-config # determine the Unicode backend
if test "$os_darwin" = "yes"; then AC_MSG_CHECKING([the Unicode backend to use])
ICU_CPPFLAGS="-I\$(srcdir)/JavaScriptCore/icu -I\$(srcdir)/WebCore/icu" AC_ARG_WITH(unicode_backend,
ICU_LIBS="-licucore" AC_HELP_STRING([--with-unicode-backend=@<:@icu@:>@],
else [Select Unicode backend [default=icu]]),
AC_PATH_PROG(icu_config, icu-config, no) [],[unicode_backend="icu"])
if test "$icu_config" = "no"; then
AC_MSG_ERROR([Cannot find icu-config. ICU library is needed.]) case "$unicode_backend" in
icu) ;;
*) AC_MSG_ERROR([Invalid Unicode backend: must be icu.]) ;;
esac
AC_MSG_RESULT([$unicode_backend])
if test "$unicode_backend" = "icu"; then
# check for icu-config
if test "$os_darwin" = "yes"; then
UNICODE_CFLAGS="-I\$(srcdir)/JavaScriptCore/icu -I\$(srcdir)/WebCore/icu"
UNICODE_LIBS="-licucore"
else
AC_PATH_PROG(icu_config, icu-config, no)
if test "$icu_config" = "no"; then
AC_MSG_ERROR([Cannot find icu-config. The ICU library is needed.])
fi
# 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.
UNICODE_CFLAGS=`$icu_config --cppflags`
UNICODE_LIBS=`$icu_config --ldflags`
fi
fi fi
# We don't use --cflags as this gives us a lot of things that we don't AC_SUBST([UNICODE_CFLAGS])
# necessarily want, like debugging and optimization flags AC_SUBST([UNICODE_LIBS])
# See man (1) icu-config for more info.
ICU_CPPFLAGS=`$icu_config --cppflags`
ICU_LIBS=`$icu_config --ldflags`
AC_SUBST([ICU_CPPFLAGS])
AC_SUBST([ICU_LIBS])
fi
# determine the GDK/GTK+ target # determine the GDK/GTK+ target
AC_MSG_CHECKING([the target windowing system]) AC_MSG_CHECKING([the target windowing system])
@@ -180,16 +197,16 @@ fi
# determine the http backend # determine the http backend
AC_MSG_CHECKING([the HTTP backend to use]) AC_MSG_CHECKING([the HTTP backend to use])
AC_ARG_WITH(http_backend, AC_ARG_WITH(http_backend,
AC_HELP_STRING([--with-http-backend=@<:@curl@:>@], AC_HELP_STRING([--with-http-backend=@<:@curl/soup@:>@],
[Select HTTP backend [default=curl]]), [Select HTTP backend [default=curl]]),
[],[http_backend="curl"]) [],[with_http_backend="curl"])
case "$http_backend" in case "$with_http_backend" in
curl) ;; curl|soup) ;;
*) AC_MSG_ERROR([Invalid HTTP backend: must be curl.]) ;; *) AC_MSG_ERROR([Invalid HTTP backend: must be curl, soup.]) ;;
esac esac
AC_MSG_RESULT([$http_backend]) AC_MSG_RESULT([$with_http_backend])
# minimum base dependencies # minimum base dependencies
CAIRO_REQUIRED_VERSION=1.4 CAIRO_REQUIRED_VERSION=1.4
@@ -206,6 +223,7 @@ GTK_REQUIRED_VERSION=2.8
# optional modules # optional modules
LIBCURL_REQUIRED_VERSION=7.15 LIBCURL_REQUIRED_VERSION=7.15
LIBSOUP_REQUIRED_VERSION=2.4
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
@@ -376,6 +394,19 @@ AC_ARG_ENABLE(fast_malloc,
[],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi]) [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
AC_MSG_RESULT([$enable_fast_malloc]) AC_MSG_RESULT([$enable_fast_malloc])
# determine the font backend
AC_MSG_CHECKING([the font backend to use])
AC_ARG_WITH(font_backend,
AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
[Select font backend [default=freetype]]),
[],[with_font_backend="freetype"])
case "$with_font_backend" in
freetype|pango) ;;
*) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
esac
AC_MSG_RESULT([$with_font_backend])
# 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"
@@ -383,13 +414,20 @@ if test "$enable_debug" = "yes"; then
fi fi
# check if curl is available # check if curl is available
if test "$http_backend" = "curl"; then if test "$with_http_backend" = "curl"; then
PKG_CHECK_MODULES([LIBCURL], PKG_CHECK_MODULES([LIBCURL],
[libcurl >= $LIBCURL_REQUIRED_VERSION]) [libcurl >= $LIBCURL_REQUIRED_VERSION])
AC_SUBST([LIBCURL_CFLAGS]) AC_SUBST([LIBCURL_CFLAGS])
AC_SUBST([LIBCURL_LIBS]) AC_SUBST([LIBCURL_LIBS])
fi fi
if test "$with_http_backend" = "soup"; then
PKG_CHECK_MODULES([LIBSOUP],
[libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
AC_SUBST([LIBSOUP_CFLAGS])
AC_SUBST([LIBSOUP_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])
@@ -450,7 +488,12 @@ AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"]) AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
# HTTP backend conditionals # HTTP backend conditionals
AM_CONDITIONAL([USE_CURL], [test "$http_backend" = "curl"]) AM_CONDITIONAL([USE_CURL], [test "$with_http_backend" = "curl"])
AM_CONDITIONAL([USE_SOUP], [test "$with_http_backend" = "soup"])
# Font backend conditionals
AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
# WebKit feature conditionals # WebKit feature conditionals
AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"]) AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
@@ -485,7 +528,9 @@ WebKit was configured with the following options:
Build configuration: Build configuration:
Enable debugging (slow) : $enable_debug Enable debugging (slow) : $enable_debug
Code coverage support : $enable_coverage Code coverage support : $enable_coverage
HTTP backend : $http_backend Unicode backend : $unicode_backend
HTTP backend : $with_http_backend
Font backend : $with_font_backend
Optimized memory allocator : $enable_fast_malloc Optimized memory allocator : $enable_fast_malloc
Features: Features:
HTML5 cross-document messaging : $enable_cross_document_messaging HTML5 cross-document messaging : $enable_cross_document_messaging

View File

@@ -1,12 +0,0 @@
Index: webkit-gtk-0.1+svnr28656-r4/WebKit/gtk/WebView/webkitwebview.cpp
===================================================================
--- webkit-gtk-0.1+svnr28656-r4.orig/WebKit/gtk/WebView/webkitwebview.cpp 2008-02-08 17:41:55.000000000 +0000
+++ webkit-gtk-0.1+svnr28656-r4/WebKit/gtk/WebView/webkitwebview.cpp 2008-02-08 17:42:17.000000000 +0000
@@ -183,6 +183,7 @@
hildon_gtk_im_context_filter_event(webViewData->imContext, (GdkEvent*)event);
hildon_gtk_im_context_show(webViewData->imContext);
#endif
+ gtk_im_context_focus_in(webViewData->imContext);
}
return frame->eventHandler()->handleMouseReleaseEvent(PlatformMouseEvent(event));

View File

@@ -27,6 +27,7 @@ inherit autotools pkgconfig
EXTRA_OECONF = "\ EXTRA_OECONF = "\
--enable-debug=no \ --enable-debug=no \
--enable-svg \ --enable-svg \
--enable-svg-fonts \
--enable-icon-database=yes \ --enable-icon-database=yes \
" "