diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-12-12 10:26:22 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-12 17:27:19 +0100 |
commit | 1b6b1358bf2b3597747688332afc893ece2e0cfb (patch) | |
tree | ae7025d6397a8dc4fbf454ee730cf997153225be /src | |
parent | cdacf0918e784f6dd3bd82659b23d6deaaef7766 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/v8/v8base.pri | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/v8/v8base.pri b/src/v8/v8base.pri index f0d7c00451..8a7d18cc49 100644 --- a/src/v8/v8base.pri +++ b/src/v8/v8base.pri @@ -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) } |