Skip to content

Commit d2a3d8b

Browse files
torarnvicefox
authored andcommitted
Allow building against a shadow-built WebKit trunk
1 parent 866cfe3 commit d2a3d8b

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

webkittrunk.pri

+19-13
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,38 @@
1+
# To build Arora against WebKit trunk:
2+
# export QT_WEBKIT=webkit_trunk
3+
# export WEBKITDIR=$HOME/dev/webkit
14
#
2-
# export QT_WEBKIT=webkit_trunk
3-
# export WEBKITDIR=$HOME/dev/webkit
4-
# export WEBKITBRANCH=some_cool_git_branch_of_webkit
5+
# Optional:
6+
# export WEBKITOUTPUTDIR=$HOME/build/webkit
7+
# export WEBKITBRANCH=some_cool_git_branch_of_webkit
58
#
69
CONFIG += $$(QT_WEBKIT)
710
webkit_trunk {
811
WEBKITDIR = $$(WEBKITDIR)
12+
isEmpty(WEBKITDIR): error(Please point WEBKITDIR at the root of your WebKit source tree)
13+
14+
OUTPUT_DIR = $$(WEBKITOUTPUTDIR)
15+
isEmpty(OUTPUT_DIR): OUTPUT_DIR = $$WEBKITDIR/WebKitBuild
16+
917
WEBKITBRANCH = $$(WEBKITBRANCH)
10-
BASEDIR = $$WEBKITDIR/WebKitBuild
1118
!isEmpty(WEBKITBRANCH) {
12-
BASEDIR = $$WEBKITDIR/WebKitBuild/$$WEBKITBRANCH
19+
OUTPUT_DIR = $$OUTPUT_DIR/$$WEBKITBRANCH
1320
}
1421

1522
# When building in debug try to link to the debug version of webkit
1623
# and vice versa in release, but when they can not be paired up
1724
# because webkit only has release or debug libs fall back to the other one
1825
CONFIG(debug) {
19-
exists($$BASEDIR/Debug) {
20-
OUTPUT_DIR = $$BASEDIR/Debug
26+
exists($$OUTPUT_DIR/Debug) {
27+
OUTPUT_DIR = $$OUTPUT_DIR/Debug
2128
} else {
22-
OUTPUT_DIR = $$BASEDIR/Release
29+
OUTPUT_DIR = $$OUTPUT_DIR/Release
2330
}
24-
}
25-
CONFIG(release) {
26-
exists($$BASEDIR/Release) {
27-
OUTPUT_DIR = $$BASEDIR/Release
31+
} else:CONFIG(release) {
32+
exists($$OUTPUT_DIR/Release) {
33+
OUTPUT_DIR = $$OUTPUT_DIR/Release
2834
} else {
29-
OUTPUT_DIR = $$BASEDIR/Debug
35+
OUTPUT_DIR = $$OUTPUT_DIR/Debug
3036
}
3137
}
3238

0 commit comments

Comments
 (0)