|
| 1 | +# To build Arora against WebKit trunk: |
| 2 | +# export QT_WEBKIT=webkit_trunk |
| 3 | +# export WEBKITDIR=$HOME/dev/webkit |
1 | 4 | #
|
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 |
5 | 8 | #
|
6 | 9 | CONFIG += $$(QT_WEBKIT)
|
7 | 10 | webkit_trunk {
|
8 | 11 | 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 | + |
9 | 17 | WEBKITBRANCH = $$(WEBKITBRANCH)
|
10 |
| - BASEDIR = $$WEBKITDIR/WebKitBuild |
11 | 18 | !isEmpty(WEBKITBRANCH) {
|
12 |
| - BASEDIR = $$WEBKITDIR/WebKitBuild/$$WEBKITBRANCH |
| 19 | + OUTPUT_DIR = $$OUTPUT_DIR/$$WEBKITBRANCH |
13 | 20 | }
|
14 | 21 |
|
15 | 22 | # When building in debug try to link to the debug version of webkit
|
16 | 23 | # and vice versa in release, but when they can not be paired up
|
17 | 24 | # because webkit only has release or debug libs fall back to the other one
|
18 | 25 | CONFIG(debug) {
|
19 |
| - exists($$BASEDIR/Debug) { |
20 |
| - OUTPUT_DIR = $$BASEDIR/Debug |
| 26 | + exists($$OUTPUT_DIR/Debug) { |
| 27 | + OUTPUT_DIR = $$OUTPUT_DIR/Debug |
21 | 28 | } else {
|
22 |
| - OUTPUT_DIR = $$BASEDIR/Release |
| 29 | + OUTPUT_DIR = $$OUTPUT_DIR/Release |
23 | 30 | }
|
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 |
28 | 34 | } else {
|
29 |
| - OUTPUT_DIR = $$BASEDIR/Debug |
| 35 | + OUTPUT_DIR = $$OUTPUT_DIR/Debug |
30 | 36 | }
|
31 | 37 | }
|
32 | 38 |
|
|
0 commit comments