From 1b6b1358bf2b3597747688332afc893ece2e0cfb Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Mon, 12 Dec 2011 10:26:22 +1000 Subject: 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 --- src/v8/v8base.pri | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/v8') 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) } -- cgit v1.2.3