diff options
author | Koen Kooi <koen@openembedded.org> | 2007-05-29 19:52:33 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-05-29 19:52:33 +0000 |
commit | e7a5b245b9d2ea2fe4675028ff729ea1ac4a36f5 (patch) | |
tree | e266f09a65f28b082006a248df65944c655ed729 /packages/webkit | |
parent | 4718993d8fb5bd0ee58d7de3c47cefd6b055cdf1 (diff) |
WebKit: add WIP recipe to build the webkit-gdk port
Diffstat (limited to 'packages/webkit')
-rw-r--r-- | packages/webkit/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/webkit/webkit/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/webkit/webkit/Makefile | 22 | ||||
-rw-r--r-- | packages/webkit/webkit/Makefile.shared | 20 | ||||
-rw-r--r-- | packages/webkit/webkit/WebKit.pri | 55 | ||||
-rw-r--r-- | packages/webkit/webkit/WebKit.pro | 12 | ||||
-rw-r--r-- | packages/webkit/webkit_svn.bb | 35 |
7 files changed, 144 insertions, 0 deletions
diff --git a/packages/webkit/.mtn2git_empty b/packages/webkit/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/webkit/.mtn2git_empty diff --git a/packages/webkit/webkit/.mtn2git_empty b/packages/webkit/webkit/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/webkit/webkit/.mtn2git_empty diff --git a/packages/webkit/webkit/Makefile b/packages/webkit/webkit/Makefile new file mode 100644 index 0000000000..89344f7a58 --- /dev/null +++ b/packages/webkit/webkit/Makefile @@ -0,0 +1,22 @@ +MODULES = JavaScriptCore JavaScriptGlue WebCore WebKit WebKitTools + +all: + @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ + if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done + +debug d development dev develop: + @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ + if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done + +release r deployment dep deploy: + @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ + if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done + +universal u: + @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 + diff --git a/packages/webkit/webkit/Makefile.shared b/packages/webkit/webkit/Makefile.shared new file mode 100644 index 0000000000..df3389ca3b --- /dev/null +++ b/packages/webkit/webkit/Makefile.shared @@ -0,0 +1,20 @@ +XCODE_OPTIONS = `perl -I../WebKitTools/Scripts -Mwebkitdirs -e 'print XcodeOptionString()'` $(ARGS) + +all: + ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} ) + +debug d development dev develop: force + ../WebKitTools/Scripts/set-webkit-configuration --debug + ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} ) + +release r deployment dep deploy: force + ../WebKitTools/Scripts/set-webkit-configuration --release + ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} ) + +universal u: force + ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) 'ARCHS=ppc i386' | grep -v setenv && exit $${PIPESTATUS[0]} ) + +clean: + ( xcodebuild -alltargets clean $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} ) + +force: ; diff --git a/packages/webkit/webkit/WebKit.pri b/packages/webkit/webkit/WebKit.pri new file mode 100644 index 0000000000..168e5558b6 --- /dev/null +++ b/packages/webkit/webkit/WebKit.pri @@ -0,0 +1,55 @@ +# Include file to make it easy to include WebKit into Qt projects + + +isEmpty(OUTPUT_DIR):OUTPUT_DIR=$$PWD/WebKitBuild/Release + +!gdk-port:CONFIG += qt-port +qt-port:DEFINES += BUILDING_QT__=1 +qt-port:LIBS += -L$$OUTPUT_DIR/lib -lWebKitQt +gdk-port:CONFIG += link_pkgconfig +gdk-port:PKGCONFIG += cairo gdk-2.0 gtk+-2.0 libcurl +gdk-port:DEFINES += BUILDING_GDK__=1 BUILDING_CAIRO__ +gdk-port:LIBS += -L$$OUTPUT_DIR/lib -lWebKitGdk $$system(icu-config --ldflags) +gdk-port:QMAKE_CXXFLAGS += $$system(icu-config --cppflags) + +DEFINES += USE_SYSTEM_MALLOC +CONFIG(release) { + DEFINES += NDEBUG +} + +BASE_DIR = $$PWD +qt-port:INCLUDEPATH += \ + $$PWD/WebKitQt/Api +gdk-port:INCLUDEPATH += \ + $$BASE_DIR/WebCore/platform/gdk \ + $$BASE_DIR/WebCore/platform/network/gdk \ + $$BASE_DIR/WebCore/platform/graphics/cairo \ + $$BASE_DIR/WebCore/loader/gdk \ + $$BASE_DIR/WebCore/page/gdk +INCLUDEPATH += \ + $$BASE_DIR/JavaScriptCore/ \ + $$BASE_DIR/JavaScriptCore/kjs \ + $$BASE_DIR/JavaScriptCore/bindings \ + $$BASE_DIR/JavaScriptCore/bindings/c \ + $$BASE_DIR/JavaScriptCore/wtf \ + $$BASE_DIR/WebCore \ + $$BASE_DIR/WebCore/ForwardingHeaders \ + $$BASE_DIR/WebCore/platform \ + $$BASE_DIR/WebCore/platform/network \ + $$BASE_DIR/WebCore/platform/graphics \ + $$BASE_DIR/WebCore/loader \ + $$BASE_DIR/WebCore/page \ + $$BASE_DIR/WebCore/css \ + $$BASE_DIR/WebCore/dom \ + $$BASE_DIR/WebCore/bridge \ + $$BASE_DIR/WebCore/editing \ + $$BASE_DIR/WebCore/rendering \ + $$BASE_DIR/WebCore/history \ + $$BASE_DIR/WebCore/xml \ + $$BASE_DIR/WebCore/html + + +macx { + INCLUDEPATH += /usr/include/libxml2 + LIBS += -lxml2 -lxslt +} diff --git a/packages/webkit/webkit/WebKit.pro b/packages/webkit/webkit/WebKit.pro new file mode 100644 index 0000000000..eae6a46180 --- /dev/null +++ b/packages/webkit/webkit/WebKit.pro @@ -0,0 +1,12 @@ +TEMPLATE = subdirs +CONFIG += ordered +!gdk-port:CONFIG += qt-port +SUBDIRS = \ + WebCore \ + JavaScriptCore/kjs/testkjs.pro + +qt-port:SUBDIRS += \ + WebKitQt/QtLauncher \ + WebKitTools/DumpRenderTree/DumpRenderTree.qtproj/DumpRenderTree.pro +gdk-port:SUBDIRS += \ + WebKitTools/GdkLauncher diff --git a/packages/webkit/webkit_svn.bb b/packages/webkit/webkit_svn.bb new file mode 100644 index 0000000000..7e221f4113 --- /dev/null +++ b/packages/webkit/webkit_svn.bb @@ -0,0 +1,35 @@ +DEPENDS = "flex-native icu uicmoc4-native qmake2-native libxml2 sqlite3 cairo gtk+" + +# Yes, this is wrong... +PV = "0.0+svn${SRCDATE}" + +inherit qmake + +SRC_URI = "\ + 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 \ + svn://svn.webkit.org/repository/webkit/trunk/;module=WebKit;proto=http \ + svn://svn.webkit.org/repository/webkit/trunk/;module=WebKitLibraries;proto=http \ +# svn://svn.webkit.org/repository/webkit/trunk/;module=WebKitQt;proto=http \ + svn://svn.webkit.org/repository/webkit/trunk/;module=WebKitTools;proto=http \ + file://Makefile \ + file://Makefile.shared \ + file://WebKit.pri \ + file://WebKit.pro \ +" + +S = "${WORKDIR}/" + + +do_configure() { + qmake2 CONFIG+=gdk-port CONFIG-=qt CONFIG-=release CONFIG+=debug + mkdir -p WebKitBuilds/Debug + cd WebKitBuilds/Debug + PWD=`pwd` qmake2 -r OUTPUT_DIR=$PWD/ CONFIG-=qt CONFIG+=gdk-port $PWD/../../WebKit.pro +} + +do_compile() { + cd ${S}/WebKitBuilds/Debug + oe_runmake +} |