mirror of
https://git.yoctoproject.org/poky
synced 2026-09-20 03:49:32 +02:00
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
This commit is contained in:
22
meta/packages/webkit/files/Makefile
Normal file
22
meta/packages/webkit/files/Makefile
Normal file
@@ -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
|
||||
|
||||
21
meta/packages/webkit/files/Makefile.shared
Normal file
21
meta/packages/webkit/files/Makefile.shared
Normal file
@@ -0,0 +1,21 @@
|
||||
SCRIPTS_PATH ?= ../WebKitTools/Scripts
|
||||
XCODE_OPTIONS = `perl -I$(SCRIPTS_PATH) -Mwebkitdirs -e 'print XcodeOptionString()'` $(ARGS)
|
||||
|
||||
all:
|
||||
( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
|
||||
|
||||
debug d development dev develop: force
|
||||
$(SCRIPTS_PATH)/set-webkit-configuration --debug
|
||||
( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
|
||||
|
||||
release r deployment dep deploy: force
|
||||
$(SCRIPTS_PATH)/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 $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
|
||||
|
||||
force: ;
|
||||
64
meta/packages/webkit/files/WebKit.pri
Normal file
64
meta/packages/webkit/files/WebKit.pri
Normal file
@@ -0,0 +1,64 @@
|
||||
# Include file to make it easy to include WebKit into Qt projects
|
||||
|
||||
|
||||
isEmpty(OUTPUT_DIR) {
|
||||
CONFIG(release):OUTPUT_DIR=$$PWD/WebKitBuild/Release
|
||||
CONFIG(debug):OUTPUT_DIR=$$PWD/WebKitBuild/Debug
|
||||
}
|
||||
|
||||
!gtk-port:CONFIG += qt-port
|
||||
qt-port:DEFINES += BUILDING_QT__=1
|
||||
qt-port:!building-libs {
|
||||
QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR
|
||||
LIBS += -lQtWebKit
|
||||
}
|
||||
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)
|
||||
|
||||
DEFINES += USE_SYSTEM_MALLOC
|
||||
CONFIG(release) {
|
||||
DEFINES += NDEBUG
|
||||
}
|
||||
|
||||
BASE_DIR = $$PWD
|
||||
qt-port:INCLUDEPATH += \
|
||||
$$PWD/WebKit/qt/Api
|
||||
gtk-port:INCLUDEPATH += \
|
||||
$$BASE_DIR/WebCore/platform/gtk \
|
||||
$$BASE_DIR/WebCore/platform/network/curl \
|
||||
$$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/WebCoreSupport
|
||||
INCLUDEPATH += \
|
||||
$$BASE_DIR/JavaScriptCore/ \
|
||||
$$BASE_DIR/JavaScriptCore/kjs \
|
||||
$$BASE_DIR/JavaScriptCore/bindings \
|
||||
$$BASE_DIR/JavaScriptCore/bindings/c \
|
||||
$$BASE_DIR/JavaScriptCore/wtf \
|
||||
$$BASE_DIR/JavaScriptCore/ForwardingHeaders \
|
||||
$$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
|
||||
}
|
||||
11
meta/packages/webkit/files/WebKit.pro
Normal file
11
meta/packages/webkit/files/WebKit.pro
Normal file
@@ -0,0 +1,11 @@
|
||||
TEMPLATE = subdirs
|
||||
CONFIG += ordered
|
||||
!gtk-port:CONFIG += qt-port
|
||||
qt-port:!win32-*:SUBDIRS += WebKit/qt/Plugins
|
||||
SUBDIRS += \
|
||||
WebCore
|
||||
|
||||
qt-port:SUBDIRS += \
|
||||
WebKit/qt/QtLauncher
|
||||
gtk-port:SUBDIRS += \
|
||||
WebKitTools/GtkLauncher
|
||||
24
meta/packages/webkit/webkit-gtk_svn.bb
Normal file
24
meta/packages/webkit/webkit-gtk_svn.bb
Normal file
@@ -0,0 +1,24 @@
|
||||
DEPENDS = "curl icu libxml2 cairo libxslt libidn gnutls gtk+"
|
||||
|
||||
|
||||
WEBKIT_PORT = "gtk-port"
|
||||
WEBKIT_EXTRA_OPTIONS = "CONFIG-=qt"
|
||||
|
||||
FILES_webkit-gtklauncher = "${bindir}/GtkLauncher"
|
||||
FILES_webkit-gtklauncher-dbg = "${bindir}/.debug/GtkLauncher"
|
||||
|
||||
require webkit.inc
|
||||
|
||||
PR = "r3"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -d ${D}${libdir}
|
||||
install -d ${D}${libdir}/pkgconfig
|
||||
|
||||
install -m 0755 ${S}/WebKitBuilds/Debug/WebKitTools/GtkLauncher/GtkLauncher ${D}${bindir}
|
||||
cd ${S}/WebKitBuilds/Debug
|
||||
PWD=`pwd` ${WEBKIT_QMAKE} WEBKIT_INC_DIR=${D}${prefix}/include WEBKIT_LIB_DIR=${D}${libdir} $PWD/../../WebKit.pro
|
||||
oe_runmake install
|
||||
}
|
||||
|
||||
49
meta/packages/webkit/webkit.inc
Normal file
49
meta/packages/webkit/webkit.inc
Normal file
@@ -0,0 +1,49 @@
|
||||
DEPENDS += "flex-native gperf-native perl-native sqlite3"
|
||||
SRCREV_FORMAT = "webcore-rwebkit"
|
||||
|
||||
PACKAGES =+ "${PN}launcher-dbg ${PN}launcher"
|
||||
|
||||
# Yes, this is wrong...
|
||||
PV = "0.1+svnr${SRCREV}"
|
||||
|
||||
inherit qmake2 pkgconfig
|
||||
|
||||
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;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://WebKit.pri \
|
||||
file://WebKit.pro \
|
||||
"
|
||||
S = "${WORKDIR}/"
|
||||
|
||||
WEBKIT_QMAKE = "qmake2 -spec ${QMAKESPEC} -r OUTPUT_DIR=$PWD/ ${WEBKIT_EXTRA_OPTIONS} CONFIG+=${WEBKIT_PORT}"
|
||||
|
||||
do_configure() {
|
||||
qmake2 -spec ${QMAKESPEC} CONFIG+=${WEBKIT_PORT} ${WEBKIT_EXTRA_OPTIONS} CONFIG-=release CONFIG+=debug
|
||||
mkdir -p WebKitBuilds/Debug
|
||||
cd WebKitBuilds/Debug
|
||||
PWD=`pwd` ${WEBKIT_QMAKE} WEBKIT_INC_DIR=${prefix}/include WEBKIT_LIB_DIR=${libdir} $PWD/../../WebKit.pro
|
||||
}
|
||||
|
||||
do_compile_prepend() {
|
||||
mkdir -p ${S}/WebKitBuilds/Debug/JavaScriptCore/pcre/tmp/
|
||||
cd ${S}/JavaScriptCore/pcre
|
||||
${BUILD_CC} dftables.c -o dftables -I. -I../wtf
|
||||
cp dftables ${S}/WebKitBuilds/Debug/JavaScriptCore/pcre/tmp/
|
||||
cd ${S}/WebKitBuilds/Debug
|
||||
}
|
||||
|
||||
do_stage() {
|
||||
install -d ${STAGING_LIBDIR}
|
||||
install -d ${STAGING_INCDIR}
|
||||
cd ${S}/WebKitBuilds/Debug
|
||||
PWD=`pwd` ${WEBKIT_QMAKE} WEBKIT_INC_DIR=${STAGING_INCDIR} WEBKIT_LIB_DIR=${STAGING_LIBDIR} $PWD/../../WebKit.pro
|
||||
oe_runmake install
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user