summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2009-07-01 00:29:09 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2009-07-01 00:57:45 (GMT)
commitbb8e25a5074a378d5003577fefbeabb1de846a81 (patch)
tree62050094cc5c744a062914d7e1d7d710002662ec /tools
parent436a71e8950ea5a050f95b5889b85e5fafb2e716 (diff)
downloadQt-bb8e25a5074a378d5003577fefbeabb1de846a81.zip
Qt-bb8e25a5074a378d5003577fefbeabb1de846a81.tar.gz
Qt-bb8e25a5074a378d5003577fefbeabb1de846a81.tar.bz2
Fixes configure.exe silently disabling cetest even if you asked for it
when paths to the ActiveSync headers/libraries are not set up. Reviewed-by: Michael Goddard
Diffstat (limited to 'tools')
-rw-r--r--tools/configure/configureapp.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index 8780c62..597cd0e 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -604,10 +604,13 @@ void Configure::parseCmdLine()
// cetest ---------------------------------------------------
else if (configCmdLine.at(i) == "-no-cetest") {
dictionary[ "CETEST" ] = "no";
+ dictionary[ "CETEST_REQUESTED" ] = "no";
} else if (configCmdLine.at(i) == "-cetest") {
// although specified to use it, we stay at "auto" state
// this is because checkAvailability() adds variables
- // we need for crosscompilation
+ // we need for crosscompilation; but remember if we asked
+ // for it.
+ dictionary[ "CETEST_REQUESTED" ] = "yes";
}
// Qt/CE - signing tool -------------------------------------
else if( configCmdLine.at(i) == "-signature") {
@@ -1824,6 +1827,11 @@ bool Configure::checkAvailability(const QString &part)
dictionary[ "QT_CE_RAPI_INC" ] += QLatin1String("\"") + rapiHeader + QLatin1String("\"");
dictionary[ "QT_CE_RAPI_LIB" ] += QLatin1String("\"") + rapiLib + QLatin1String("\"");
}
+ else if (dictionary[ "CETEST_REQUESTED" ] == "yes") {
+ cout << "cetest could not be enabled: rapi.h and rapi.lib could not be found." << endl;
+ cout << "Make sure the environment is set up for compiling with ActiveSync." << endl;
+ dictionary[ "DONE" ] = "error";
+ }
}
else if (part == "INCREDIBUILD_XGE")
available = findFile("BuildConsole.exe") && findFile("xgConsole.exe");