v8: give sensible error message if v8 sources are not checked out

A common error for developers attempting to build qtbase for the first
time is to miss cloning the v8 submodule.

Let qmake check for existence of the sources so we get a sensible error
at qmake time, rather than a relatively inscrutable error at make time.

Change-Id: I70b478e63c962263dac4f2ddccb377b4c9777ceb
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
bb10
Rohan McGovern 2011-12-12 10:26:22 +10:00 committed by Qt by Nokia
parent cdacf0918e
commit 1b6b1358bf
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,11 @@
V8DIR = $$(V8DIR)
isEmpty(V8DIR) {
V8DIR = $$PWD/../3rdparty/v8
!exists($$V8DIR/src):error("$$V8DIR/src does not exist! $$escape_expand(\\n)\
If you are building from git, please ensure you have the v8 submodule available, e.g. $$escape_expand(\\n\\n)\
git submodule update --init src/3rdparty/v8 $$escape_expand(\\n\\n)\
Alternatively, Qt may be configured with -no-v8 to disable v8.\
")
} else {
message(using external V8 from $$V8DIR)
}