Skip to content

Commit

Permalink
Allow building against a shadow-built WebKit trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
torarnv authored and icefox committed Sep 30, 2009
1 parent 866cfe3 commit d2a3d8b
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions webkittrunk.pri
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
# To build Arora against WebKit trunk:
# export QT_WEBKIT=webkit_trunk
# export WEBKITDIR=$HOME/dev/webkit
#
# export QT_WEBKIT=webkit_trunk
# export WEBKITDIR=$HOME/dev/webkit
# export WEBKITBRANCH=some_cool_git_branch_of_webkit
# Optional:
# export WEBKITOUTPUTDIR=$HOME/build/webkit
# export WEBKITBRANCH=some_cool_git_branch_of_webkit
#
CONFIG += $$(QT_WEBKIT)
webkit_trunk {
WEBKITDIR = $$(WEBKITDIR)
isEmpty(WEBKITDIR): error(Please point WEBKITDIR at the root of your WebKit source tree)

OUTPUT_DIR = $$(WEBKITOUTPUTDIR)
isEmpty(OUTPUT_DIR): OUTPUT_DIR = $$WEBKITDIR/WebKitBuild

WEBKITBRANCH = $$(WEBKITBRANCH)
BASEDIR = $$WEBKITDIR/WebKitBuild
!isEmpty(WEBKITBRANCH) {
BASEDIR = $$WEBKITDIR/WebKitBuild/$$WEBKITBRANCH
OUTPUT_DIR = $$OUTPUT_DIR/$$WEBKITBRANCH
}

# When building in debug try to link to the debug version of webkit
# and vice versa in release, but when they can not be paired up
# because webkit only has release or debug libs fall back to the other one
CONFIG(debug) {
exists($$BASEDIR/Debug) {
OUTPUT_DIR = $$BASEDIR/Debug
exists($$OUTPUT_DIR/Debug) {
OUTPUT_DIR = $$OUTPUT_DIR/Debug
} else {
OUTPUT_DIR = $$BASEDIR/Release
OUTPUT_DIR = $$OUTPUT_DIR/Release
}
}
CONFIG(release) {
exists($$BASEDIR/Release) {
OUTPUT_DIR = $$BASEDIR/Release
} else:CONFIG(release) {
exists($$OUTPUT_DIR/Release) {
OUTPUT_DIR = $$OUTPUT_DIR/Release
} else {
OUTPUT_DIR = $$BASEDIR/Debug
OUTPUT_DIR = $$OUTPUT_DIR/Debug
}
}

Expand Down

0 comments on commit d2a3d8b

Please sign in to comment.