summaryrefslogtreecommitdiffstats
path: root/meta/packages/webkit
diff options
context:
space:
mode:
authorChris Lord <chris@openedhand.com>2007-12-06 10:23:27 +0000
committerChris Lord <chris@openedhand.com>2007-12-06 10:23:27 +0000
commit2517420cbef24dd1e9a903a8659d41d083a57e23 (patch)
treed3a718c3a47ec0c746907395ca9c7bd072540ab3 /meta/packages/webkit
parent8ccfa5c993a20c92ef7a2630ed37dea6d1159a89 (diff)
downloadpoky-2517420cbef24dd1e9a903a8659d41d083a57e23.tar.gz
Import files from OE to build WebKit (patch to link icu required)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3317 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/webkit')
-rw-r--r--meta/packages/webkit/files/Makefile22
-rw-r--r--meta/packages/webkit/files/Makefile.shared21
-rw-r--r--meta/packages/webkit/files/WebKit.pri64
-rw-r--r--meta/packages/webkit/files/WebKit.pro11
-rw-r--r--meta/packages/webkit/webkit-gtk_svn.bb24
-rw-r--r--meta/packages/webkit/webkit.inc49
6 files changed, 191 insertions, 0 deletions
diff --git a/meta/packages/webkit/files/Makefile b/meta/packages/webkit/files/Makefile
new file mode 100644
index 0000000000..89344f7a58
--- /dev/null
+++ b/meta/packages/webkit/files/Makefile
@@ -0,0 +1,22 @@
1MODULES = JavaScriptCore JavaScriptGlue WebCore WebKit WebKitTools
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
15universal u:
16 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
17 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
18
19clean:
20 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
21 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
22
diff --git a/meta/packages/webkit/files/Makefile.shared b/meta/packages/webkit/files/Makefile.shared
new file mode 100644
index 0000000000..a036aacc50
--- /dev/null
+++ b/meta/packages/webkit/files/Makefile.shared
@@ -0,0 +1,21 @@
1SCRIPTS_PATH ?= ../WebKitTools/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
15universal u: force
16 ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) 'ARCHS=ppc i386' | grep -v setenv && exit $${PIPESTATUS[0]} )
17
18clean:
19 ( xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
20
21force: ;
diff --git a/meta/packages/webkit/files/WebKit.pri b/meta/packages/webkit/files/WebKit.pri
new file mode 100644
index 0000000000..0c47afe7fd
--- /dev/null
+++ b/meta/packages/webkit/files/WebKit.pri
@@ -0,0 +1,64 @@
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}
15gtk-port:CONFIG += link_pkgconfig
16gtk-port:PKGCONFIG += cairo cairo-ft gdk-2.0 gtk+-2.0 libcurl
17gtk-port:DEFINES += BUILDING_GTK__=1 BUILDING_CAIRO__
18gtk-port:LIBS += -L$$OUTPUT_DIR/lib -lWebKitGtk $$system(icu-config --ldflags) -ljpeg -lpng
19gtk-port:QMAKE_CXXFLAGS += $$system(icu-config --cppflags)
20
21DEFINES += USE_SYSTEM_MALLOC
22CONFIG(release) {
23 DEFINES += NDEBUG
24}
25
26BASE_DIR = $$PWD
27qt-port:INCLUDEPATH += \
28 $$PWD/WebKit/qt/Api
29gtk-port:INCLUDEPATH += \
30 $$BASE_DIR/WebCore/platform/gtk \
31 $$BASE_DIR/WebCore/platform/network/curl \
32 $$BASE_DIR/WebCore/platform/graphics/cairo \
33 $$BASE_DIR/WebCore/loader/gtk \
34 $$BASE_DIR/WebCore/page/gtk \
35 $$BASE_DIR/WebKit/gtk/Api \
36 $$BASE_DIR/WebKit/gtk/WebCoreSupport
37INCLUDEPATH += \
38 $$BASE_DIR/JavaScriptCore/ \
39 $$BASE_DIR/JavaScriptCore/kjs \
40 $$BASE_DIR/JavaScriptCore/bindings \
41 $$BASE_DIR/JavaScriptCore/bindings/c \
42 $$BASE_DIR/JavaScriptCore/wtf \
43 $$BASE_DIR/JavaScriptCore/ForwardingHeaders \
44 $$BASE_DIR/WebCore \
45 $$BASE_DIR/WebCore/ForwardingHeaders \
46 $$BASE_DIR/WebCore/platform \
47 $$BASE_DIR/WebCore/platform/network \
48 $$BASE_DIR/WebCore/platform/graphics \
49 $$BASE_DIR/WebCore/loader \
50 $$BASE_DIR/WebCore/page \
51 $$BASE_DIR/WebCore/css \
52 $$BASE_DIR/WebCore/dom \
53 $$BASE_DIR/WebCore/bridge \
54 $$BASE_DIR/WebCore/editing \
55 $$BASE_DIR/WebCore/rendering \
56 $$BASE_DIR/WebCore/history \
57 $$BASE_DIR/WebCore/xml \
58 $$BASE_DIR/WebCore/html
59
60
61macx {
62 INCLUDEPATH += /usr/include/libxml2
63 LIBS += -lxml2 -lxslt
64}
diff --git a/meta/packages/webkit/files/WebKit.pro b/meta/packages/webkit/files/WebKit.pro
new file mode 100644
index 0000000000..aab0209a93
--- /dev/null
+++ b/meta/packages/webkit/files/WebKit.pro
@@ -0,0 +1,11 @@
1TEMPLATE = subdirs
2CONFIG += ordered
3!gtk-port:CONFIG += qt-port
4qt-port:!win32-*:SUBDIRS += WebKit/qt/Plugins
5SUBDIRS += \
6 WebCore
7
8qt-port:SUBDIRS += \
9 WebKit/qt/QtLauncher
10gtk-port:SUBDIRS += \
11 WebKitTools/GtkLauncher
diff --git a/meta/packages/webkit/webkit-gtk_svn.bb b/meta/packages/webkit/webkit-gtk_svn.bb
new file mode 100644
index 0000000000..262c6820db
--- /dev/null
+++ b/meta/packages/webkit/webkit-gtk_svn.bb
@@ -0,0 +1,24 @@
1DEPENDS = "curl icu libxml2 cairo libxslt libidn gnutls gtk+"
2
3
4WEBKIT_PORT = "gtk-port"
5WEBKIT_EXTRA_OPTIONS = "CONFIG-=qt"
6
7FILES_webkit-gtklauncher = "${bindir}/GtkLauncher"
8FILES_webkit-gtklauncher-dbg = "${bindir}/.debug/GtkLauncher"
9
10require webkit.inc
11
12PR = "r3"
13
14do_install() {
15 install -d ${D}${bindir}
16 install -d ${D}${libdir}
17 install -d ${D}${libdir}/pkgconfig
18
19 install -m 0755 ${S}/WebKitBuilds/Debug/WebKitTools/GtkLauncher/GtkLauncher ${D}${bindir}
20 cd ${S}/WebKitBuilds/Debug
21 PWD=`pwd` ${WEBKIT_QMAKE} WEBKIT_INC_DIR=${D}${prefix}/include WEBKIT_LIB_DIR=${D}${libdir} $PWD/../../WebKit.pro
22 oe_runmake install
23}
24
diff --git a/meta/packages/webkit/webkit.inc b/meta/packages/webkit/webkit.inc
new file mode 100644
index 0000000000..2ff61091c3
--- /dev/null
+++ b/meta/packages/webkit/webkit.inc
@@ -0,0 +1,49 @@
1DEPENDS += "flex-native gperf-native perl-native sqlite3"
2SRCREV_FORMAT = "webcore-rwebkit"
3
4PACKAGES =+ "${PN}launcher-dbg ${PN}launcher"
5
6# Yes, this is wrong...
7PV = "0.1+svnr${SRCREV}"
8
9inherit qmake2 pkgconfig
10
11SRC_URI = "\
12 svn://svn.webkit.org/repository/webkit/trunk/;module=JavaScriptCore;proto=http \
13 svn://svn.webkit.org/repository/webkit/trunk/;module=JavaScriptGlue;proto=http \
14 svn://svn.webkit.org/repository/webkit/trunk/;module=WebCore;proto=http;name=webcore \
15 svn://svn.webkit.org/repository/webkit/trunk/;module=WebKit;proto=http;name=webkit \
16 svn://svn.webkit.org/repository/webkit/trunk/;module=WebKitLibraries;proto=http \
17 svn://svn.webkit.org/repository/webkit/trunk/;module=WebKitTools;proto=http \
18 file://Makefile \
19 file://Makefile.shared \
20 file://WebKit.pri \
21 file://WebKit.pro \
22"
23S = "${WORKDIR}/"
24
25WEBKIT_QMAKE = "qmake2 -spec ${QMAKESPEC} -r OUTPUT_DIR=$PWD/ ${WEBKIT_EXTRA_OPTIONS} CONFIG+=${WEBKIT_PORT}"
26
27do_configure() {
28 qmake2 -spec ${QMAKESPEC} CONFIG+=${WEBKIT_PORT} ${WEBKIT_EXTRA_OPTIONS} CONFIG-=release CONFIG+=debug
29 mkdir -p WebKitBuilds/Debug
30 cd WebKitBuilds/Debug
31 PWD=`pwd` ${WEBKIT_QMAKE} WEBKIT_INC_DIR=${prefix}/include WEBKIT_LIB_DIR=${libdir} $PWD/../../WebKit.pro
32}
33
34do_compile_prepend() {
35 mkdir -p ${S}/WebKitBuilds/Debug/JavaScriptCore/pcre/tmp/
36 cd ${S}/JavaScriptCore/pcre
37 ${BUILD_CC} dftables.c -o dftables -I. -I../wtf
38 cp dftables ${S}/WebKitBuilds/Debug/JavaScriptCore/pcre/tmp/
39 cd ${S}/WebKitBuilds/Debug
40}
41
42do_stage() {
43 install -d ${STAGING_LIBDIR}
44 install -d ${STAGING_INCDIR}
45 cd ${S}/WebKitBuilds/Debug
46 PWD=`pwd` ${WEBKIT_QMAKE} WEBKIT_INC_DIR=${STAGING_INCDIR} WEBKIT_LIB_DIR=${STAGING_LIBDIR} $PWD/../../WebKit.pro
47 oe_runmake install
48}
49