diff options
author | Steve Block <steveblock@google.com> | 2009-12-15 10:12:09 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2009-12-17 17:41:10 +0000 |
commit | 643ca7872b450ea4efacab6188849e5aac2ba161 (patch) | |
tree | 6982576c228bcd1a7efe98afed544d840751094c /WebKitTools/wx | |
parent | d026980fde6eb3b01c1fe49441174e89cd1be298 (diff) | |
download | external_webkit-643ca7872b450ea4efacab6188849e5aac2ba161.zip external_webkit-643ca7872b450ea4efacab6188849e5aac2ba161.tar.gz external_webkit-643ca7872b450ea4efacab6188849e5aac2ba161.tar.bz2 |
Merge webkit.org at r51976 : Initial merge by git.
Change-Id: Ib0e7e2f0fb4bee5a186610272edf3186f0986b43
Diffstat (limited to 'WebKitTools/wx')
-rw-r--r-- | WebKitTools/wx/browser/wscript | 2 | ||||
-rw-r--r-- | WebKitTools/wx/build/build_utils.py | 2 | ||||
-rw-r--r-- | WebKitTools/wx/build/settings.py | 2 | ||||
-rw-r--r-- | WebKitTools/wx/packaging/build-debian-installer.py | 36 | ||||
-rw-r--r-- | WebKitTools/wx/packaging/debian/changelog | 1 | ||||
-rw-r--r-- | WebKitTools/wx/packaging/debian/compat | 1 | ||||
-rw-r--r-- | WebKitTools/wx/packaging/debian/control | 29 | ||||
-rw-r--r-- | WebKitTools/wx/packaging/debian/copyright | 18 | ||||
-rw-r--r-- | WebKitTools/wx/packaging/debian/python-webkitwx.install | 1 | ||||
-rw-r--r-- | WebKitTools/wx/packaging/debian/rules | 75 |
10 files changed, 164 insertions, 3 deletions
diff --git a/WebKitTools/wx/browser/wscript b/WebKitTools/wx/browser/wscript index d5246c1..a2a24e0 100644 --- a/WebKitTools/wx/browser/wscript +++ b/WebKitTools/wx/browser/wscript @@ -45,7 +45,7 @@ def build(bld): includes = ' '.join(include_paths), source = 'browser.cpp', target = 'wxBrowser', - uselib = 'WXWEBKIT WX ' + get_config(), + uselib = 'WX CURL ICU XSLT XML WXWEBKIT ' + get_config(), libpath = [output_dir], uselib_local = '', install_path = output_dir) diff --git a/WebKitTools/wx/build/build_utils.py b/WebKitTools/wx/build/build_utils.py index b767d9f..a6962e2 100644 --- a/WebKitTools/wx/build/build_utils.py +++ b/WebKitTools/wx/build/build_utils.py @@ -176,7 +176,7 @@ def get_config(wk_root): return config def svn_revision(): - if os.system("git info") == 0: + if os.system("git-svn info") == 0: info = commands.getoutput("git-svn info ../..") else: info = commands.getoutput("svn info") diff --git a/WebKitTools/wx/build/settings.py b/WebKitTools/wx/build/settings.py index 652a880..f7f75b6 100644 --- a/WebKitTools/wx/build/settings.py +++ b/WebKitTools/wx/build/settings.py @@ -337,7 +337,7 @@ def common_configure(conf): # common win libs conf.env.append_value('LIB', [ 'kernel32', 'user32','gdi32','comdlg32','winspool','winmm', - 'shell32', 'comctl32', 'ole32', 'oleaut32', 'uuid', 'advapi32', + 'shell32', 'shlwapi', 'comctl32', 'ole32', 'oleaut32', 'uuid', 'advapi32', 'wsock32', 'gdiplus', 'version']) conf.env['LIB_ICU'] = ['icudt', 'icule', 'iculx', 'icuuc', 'icuin', 'icuio', 'icutu'] diff --git a/WebKitTools/wx/packaging/build-debian-installer.py b/WebKitTools/wx/packaging/build-debian-installer.py new file mode 100644 index 0000000..5c6795d --- /dev/null +++ b/WebKitTools/wx/packaging/build-debian-installer.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python + +import os +import shutil +import sys + +sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "build"))) + +import build_utils + +script_dir = os.path.abspath(os.path.dirname(__file__)) +wxwebkit_dir = os.path.abspath(os.path.join(script_dir, "..", "..", "..", "WebKitBuild", "Debug" + build_utils.git_branch_name())) +wxwk_root = os.path.abspath(os.path.join(script_dir, "..", "..", "..")) + +try: + os.chdir(wxwk_root) + deb_dir = os.path.join(wxwk_root, 'wxwebkit') + if os.path.exists(deb_dir): + shutil.rmtree(deb_dir) + os.makedirs(deb_dir) + print "Archiving git tree..." + os.system('git archive --format=tar HEAD | gzip > %s/webkitwx_0.1.orig.tar.gz' % deb_dir) + src_root = os.path.join(deb_dir, 'webkitwx-0.1') + print "Extracting tree..." + os.makedirs(src_root) + os.chdir(src_root) + os.system('tar xzvf ../webkitwx_0.1.orig.tar.gz') + + shutil.copytree(os.path.join(script_dir, 'debian'), os.path.join(src_root, 'debian')) + + print "Building package..." + os.system('fakeroot debian/rules clean') + os.system('fakeroot debian/rules build') + os.system('debuild -i -rfakeroot -us -uc') +finally: + shutil.rmtree(os.path.join(src_root, 'debian')) diff --git a/WebKitTools/wx/packaging/debian/changelog b/WebKitTools/wx/packaging/debian/changelog new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/WebKitTools/wx/packaging/debian/changelog @@ -0,0 +1 @@ + diff --git a/WebKitTools/wx/packaging/debian/compat b/WebKitTools/wx/packaging/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/WebKitTools/wx/packaging/debian/compat @@ -0,0 +1 @@ +5 diff --git a/WebKitTools/wx/packaging/debian/control b/WebKitTools/wx/packaging/debian/control new file mode 100644 index 0000000..57d8407 --- /dev/null +++ b/WebKitTools/wx/packaging/debian/control @@ -0,0 +1,29 @@ +Source: webkitwx +Section: Python +Priority: extra +Maintainer: Kevin Ollivier <kevino@theolliviers.com> +Build-Depends: debhelper (>= 5.0.38), python-central (>= 0.6), python-all-dev, + libwxgtk2.8-dev (>= 2.8.9.2-1), python-wxgtk2.8, python-wxtools (>= 2.8.9.2-1), + wx2.8-headers (>= 2.8.9.2-1), wx2.8-i18n (>= 2.8.9.2-1), + flex, bison, gperf, automake, autoconf, libtool, dpatch, + libxslt1-dev, libcurl4-openssl-dev, + libicu-dev, libjpeg62-dev, libpng12-dev, libsqlite3-dev, libgtk2.0-dev +Build-Conflicts: python-setuptools +XS-Python-Version: all +Standards-Version: 3.7.3 + +Package: python-webkitwx +Section: python +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends} +Provides: ${python:Provides}, webkitwx +XB-Python-Version: ${python:Versions} +Description: Python binding of wxwebkit + This is an experimental packaged release of webkit for wxpython + +Package: webkitwx-headers +Architecture: all +Description: Python binding of wxwebkit + This is an experimental packaged release of webkit for wxpython + These are the header files + diff --git a/WebKitTools/wx/packaging/debian/copyright b/WebKitTools/wx/packaging/debian/copyright new file mode 100644 index 0000000..c2244ec --- /dev/null +++ b/WebKitTools/wx/packaging/debian/copyright @@ -0,0 +1,18 @@ +This package was debianized by Chris Willing c.willing@uq.edu.au on +Thu, Sat, 11 Apr 2009 12:54:52 +1000 + +Upstream Author: Kevin Ollivier kevino@theolliviers.com and others + +Copyright: 2009 Kevin Ollivier, Apple Inc., and others + +License: + LGPL + + +The Debian packaging is (C) 2009, Chris Willing <c.willing@uq.edu.au> and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. + diff --git a/WebKitTools/wx/packaging/debian/python-webkitwx.install b/WebKitTools/wx/packaging/debian/python-webkitwx.install new file mode 100644 index 0000000..dff51ce --- /dev/null +++ b/WebKitTools/wx/packaging/debian/python-webkitwx.install @@ -0,0 +1 @@ +WebKitBuild/Debug.master/libwxwebkit.so usr/lib/ diff --git a/WebKitTools/wx/packaging/debian/rules b/WebKitTools/wx/packaging/debian/rules new file mode 100644 index 0000000..6840731 --- /dev/null +++ b/WebKitTools/wx/packaging/debian/rules @@ -0,0 +1,75 @@ +#! /usr/bin/make -f + +SHELL = /bin/bash + +PYVERS := $(shell /usr/bin/python -c 'import sys; print sys.version[:3]') +VER := $(shell /usr/bin/python -c 'import sys; print sys.version[:3]') +BIULD_DIR := WebKitBuild/Debug.master +build: build-stamp +build-stamp: $(PYVERS:%=build-python%) + touch $@ +build-python%: + touch $@ + +clean: + rm -rf *-stamp build-python* build + rm -rf $(addprefix debian/,$(packages)) debian/files debian/substvars + rm -rf _trial_temp test.log + find . -name "*.pyc" |xargs -r rm + dh_clean + +install: build-stamp install-prereq $(PYVERS:%=install-python%) install-libs install-nover + +install-prereq: build-stamp + dh_testdir + dh_testroot + dh_clean -k + +install-python%: install-prereq + dh_install -ppython-webkitwx \ + $(BUILD_DIR)/webview.py \ + $(BUILD_DIR)/Debug.master/_webview.so \ + usr/lib/python$*/site-packages/wx-2.8-gtk2-unicode/wx/ + +install-nover: install-prereq + dh_install -pwebkitwx-headers \ + $(BUILD_DIR)/JavaScriptCore \ + usr/include/wxwebkit-1.0/ + +install-libs: install-prereq + dh_install + + +binary-indep: + (cd WebKitTools/Scripts && ./build-webkit --wx --makeargs="--wxpython") + dh_testdir + dh_testroot + dh_installchangelogs -i + dh_installdocs -i + dh_strip -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: + dh_testdir + dh_testroot + echo $(shell pwd) + echo $(shell ls -l) + dh_installchangelogs -a + dh_installdocs -a WebKit/wx/bindings/python/samples/simple.py + dh_strip -a + dh_compress -a -Xsimple.py + dh_fixperms -a + dh_pycentral -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install install-nover install-prereq install-libs |