summaryrefslogtreecommitdiffstats
path: root/tools/configure/main.cpp
diff options
context:
space:
mode:
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>2012-06-14 16:17:11 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-28 12:35:14 +0200
commit693df71e0f1faea94f2b39658cfc3fb8bb5ee2a6 (patch)
treee6167d7e7432587fb94d019b56fa5c7d27bacf14 /tools/configure/main.cpp
parentbbb15b4612946851d7d81940a9cd6e3a3753c3f2 (diff)
Fix configure.exe to build qmake before tests
qmake is needed by autoDetection()/tryCompileProject() to be able to build the tests. This patch also add a new method - generateQConfigCpp() - which generates qconfig.cpp, needed to build qmake. Change-Id: Ic304a364a13a2b3c28433f2a299df222a56fed67 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'tools/configure/main.cpp')
-rw-r--r--tools/configure/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/configure/main.cpp b/tools/configure/main.cpp
index 794793b52f..e153cf1eb0 100644
--- a/tools/configure/main.cpp
+++ b/tools/configure/main.cpp
@@ -68,6 +68,12 @@ int runConfigure( int argc, char** argv )
if (!app.isOk())
return 3;
+ app.generateQConfigCpp();
+
+ app.buildQmake();
+ if (!app.isOk())
+ return 3;
+
// Auto-detect modules and settings.
app.autoDetection();
@@ -88,8 +94,6 @@ int runConfigure( int argc, char** argv )
app.generateConfigfiles();
if( !app.isDone() )
app.generateHeaders();
- if( !app.isDone() )
- app.buildQmake();
// must be done after buildQmake()
if (!app.isDone())
app.detectArch();