Webkit update patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
If people want to try a more recent revision of webkit, they should use this patch:
* update to sane-srcrevs.inc to move to the current head
* add midori 0.13 to test the library
* Merge dftables compile fix from poky
* update .pro and .pri files
* add comment in webkit.inc on how to enable HTML5 media support
This patch hasn't been applied yet since openmoko-browser2 and openmoko-feedreader2 still use the old non-WebView API. I asked Holger to update those apps. Once that happens this patch will go in.
happy testing,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFHWmsqMkyGM64RGpERAn3mAJ9Y13h/UoIOSkC+4X2BlZ9AaSnXzwCfQK/x UfQgxLyo9cyQOy8p5N978X0=
=mTyE
-----END PGP SIGNATURE-----
#
# old_revision [e4b084b8f4ff19d7fce5d62b50abc1a6cd0d6347] # # add_file "packages/gtk-webcore/midori_0.0.13.bb" # content [248eb3a40d4c7bdb50c581812cdbeaeb356a89fd] # # patch "conf/distro/include/sane-srcrevs.inc" # from [8cad7fba1595a9a46320eb14f7b63799769241ec] # to [7afe0b40afc79605def10b9b3d1c8d518df12928] # # patch "packages/webkit/files/WebKit.pri" # from [076f1c82b227a8d1472f9fa12e2fee65bd0c833c] # to [2f02fb401cafe257b844462e5cc84a587d1c37fa] # # patch "packages/webkit/files/WebKit.pro" # from [dd444c86e92aeb8c404efbd945a61ec54293c346] # to [ecf886ef5178fc86bdf74101c5bb563cb326002b] # # patch "packages/webkit/webkit-gtk_svn.bb" # from [cda8f2a66ffa21e54d42abd299bfb7e2162a58a5] # to [cd0fdf72f4022613efe91cecfdf8f3a71258fca4] # # patch "packages/webkit/webkit.inc" # from [a9b135977d33b8fecb08b3e6b9ca8bae313ed7e2] # to [1b435431285f60a2f3bb6f118ed12807b76bee80] # ============================================================ --- packages/gtk-webcore/midori_0.0.13.bb 248eb3a40d4c7bdb50c581812cdbeaeb356a89fd +++ packages/gtk-webcore/midori_0.0.13.bb 248eb3a40d4c7bdb50c581812cdbeaeb356a89fd @@ -0,0 +1,11 @@ +DESCRIPTION = "Midori is a lightweight web browser." +LICENSE = "GPLv2" + +DEPENDS = "webkit-gtk libsexy" + +inherit autotools pkgconfig + +SRC_URI = "http://software.twotoasts.de/media/midori/midori-${PV}.tar.gz \ + " + + ============================================================ --- conf/distro/include/sane-srcrevs.inc 8cad7fba1595a9a46320eb14f7b63799769241ec +++ conf/distro/include/sane-srcrevs.inc 7afe0b40afc79605def10b9b3d1c8d518df12928 @@ -121,9 +121,9 @@ SRCREV_pn-tmut ?= "60" SRCREV_pn-sjf2410-linux-native ?= "933" SRCREV_pn-sphyrna ?= "45" SRCREV_pn-tmut ?= "60" -SRCREV_pn-webkit-gtk ?= "27222" -SRCREV_pn-webkit-qt ?= "27222" -SRCREV_pn-webkit-qtopia ?= "27222" +SRCREV_pn-webkit-gtk ?= "28558" +SRCREV_pn-webkit-qt ?= "28558" +SRCREV_pn-webkit-qtopia ?= "28558" SRCREV_pn-wesnoth ?= "22021" SRCREV_pn-xoo ?= "1623" SRCREV_pn-mplayer ?= "24587" ============================================================ --- packages/webkit/files/WebKit.pri 076f1c82b227a8d1472f9fa12e2fee65bd0c833c +++ packages/webkit/files/WebKit.pri 2f02fb401cafe257b844462e5cc84a587d1c37fa @@ -11,13 +11,44 @@ qt-port:!building-libs { qt-port:!building-libs { QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR LIBS += -lQtWebKit + DEPENDPATH += $$PWD/WebKit/qt/Api } -gtk-port:CONFIG += link_pkgconfig -gtk-port:PKGCONFIG += cairo cairo-ft gdk-2.0 gtk+-2.0 libcurl -gtk-port:DEFINES += BUILDING_GTK__=1 BUILDING_CAIRO__ -gtk-port:LIBS += -L$$OUTPUT_DIR/lib -lWebKitGtk $$system(icu-config --ldflags) -ljpeg -lpng -gtk-port:QMAKE_CXXFLAGS += $$system(icu-config --cppflags)
+gtk-port:!building-libs {
+ QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR + LIBS += -lWebKitGtk + DEPENDPATH += $$PWD/WebKit/gtk/WebView $$PWD/WebKit/gtk/WebCoreSupport
+}
+
+gtk-port {
+ CONFIG += link_pkgconfig
+
+ DEFINES += BUILDING_CAIRO__=1 BUILDING_GTK__=1
+
+ # We use FreeType directly with Cairo
+ PKGCONFIG += cairo-ft
+
+ directfb: PKGCONFIG += cairo-directfb gtk+-directfb-2.0
+ else: PKGCONFIG += cairo gtk+-2.0
+
+ # Set a CONFIG flag for the GTK+ target (x11, quartz, win32, directfb)
+ CONFIG += $$system(pkg-config --variable=target $$PKGCONFIG)
+
+ # We use the curl http backend on all platforms
+ PKGCONFIG += libcurl
+
+ LIBS += -lWebKitGtk -ljpeg -lpng
+
+ QMAKE_CXXFLAGS += $$system(icu-config --cppflags)
+ QMAKE_LIBS += $$system(icu-config --ldflags)
+
+ # This set of warnings is borrowed from the Mac build
+ QMAKE_CXXFLAGS += -Wall -W -Wcast-align -Wchar-subscripts -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-format-y2k -Wno-unused-parameter -Wundef
+
+ DEPENDPATH += $$PWD/JavaScriptCore/API
+ INCLUDEPATH += $$PWD
+}
+
DEFINES += USE_SYSTEM_MALLOC
CONFIG(release) {
DEFINES += NDEBUG
@@ -32,7 +63,7 @@ gtk-port:INCLUDEPATH += \
$$BASE_DIR/WebCore/platform/graphics/cairo \
$$BASE_DIR/WebCore/loader/gtk \
$$BASE_DIR/WebCore/page/gtk \
- $$BASE_DIR/WebKit/gtk/Api \
+ $$BASE_DIR/WebKit/gtk/WebView \
$$BASE_DIR/WebKit/gtk/WebCoreSupport
INCLUDEPATH += \
$$BASE_DIR/JavaScriptCore/ \============================================================
webkit/files/WebKit.pro +10 -4
@@ -1,11 +1,17 @@ SUBDIRS += \ TEMPLATE = subdirs CONFIG += ordered !gtk-port:CONFIG += qt-port qt-port:!win32-*:SUBDIRS += WebKit/qt/Plugins SUBDIRS += \ - WebCore + WebCore \ + JavaScriptCore/kjs/testkjs.pro -qt-port:SUBDIRS += \ - WebKit/qt/QtLauncher +qt-port { + SUBDIRS += WebKit/qt/QtLauncher + + !win32-*: SUBDIRS += WebKitTools/DumpRenderTree/qt/DumpRenderTree.pro +} + gtk-port:SUBDIRS += \ + WebKitTools/GtkLauncher \ + WebKitTools/DumpRenderTree/gtk/DumpRenderTree.pro - WebKitTools/GtkLauncher
============================================================
webkit/webkit-gtk_svn.bb +3 -0
@@ -1,6 +1,9 @@ DEPENDS = "curl icu libxml2 cairo libxsl DEPENDS = "curl icu libxml2 cairo libxslt libidn gnutls gtk+" +# If you activate HTML5 media support (ENABLE_VIDEO=1) you'll need: +# DEPENDS += " gstreamer gst-plugins-base gnome-vfs " + WEBKIT_PORT = "gtk-port" WEBKIT_EXTRA_OPTIONS = "CONFIG-=qt"
============================================================
webkit/webkit.inc +7 -1
@@ -34,7 +34,13 @@ do_compile_prepend() { do_compile_prepend() { mkdir -p ${S}/WebKitBuilds/Debug/JavaScriptCore/pcre/tmp/ cd ${S}/JavaScriptCore/pcre - ${BUILD_CC} dftables.c -o dftables -I. -I../wtf + if test -e dftables.c + then + ${BUILD_CC} dftables.c -o dftables -I. -I../wtf + elif test -e dftables.cpp + then + ${BUILD_CXX} dftables.cpp -o dftables -I. -I../wtf + fi cp dftables ${S}/WebKitBuilds/Debug/JavaScriptCore/pcre/tmp/ cd ${S}/WebKitBuilds/Debug }
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Koen Kooi schreef:
Quoted 11 lines
Hi,
If people want to try a more recent revision of webkit, they should use this patch:
* update to sane-srcrevs.inc to move to the current head
* add midori 0.13 to test the library
* Merge dftables compile fix from poky
* update .pro and .pri files
* add comment in webkit.inc on how to enable HTML5 media support
Quoted 3 lines
This patch hasn't been applied yet since openmoko-browser2 and openmoko-feedreader2 still use the old non-WebView API. I asked Holger to update those apps. Once that happens this patch will go in.
Code-master Holger has done so, and this patch is in now, along with a change that makes the webkit ipkg 500kiB smaller[1].
regards,
Koen
[1] http://dominion.thruhere.net/koen/cms/slimming-down-packages
- --
[email protected] will go go away in december 2007, please use [email protected] instead.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFHYDeVMkyGM64RGpERAhtgAJsGn1ZXouou4DZMKoMcab2c9+45sACePae0 X/dFZ3emAaXdEWnPpJh/5w0=
=U9Sd
-----END PGP SIGNATURE-----