summaryrefslogtreecommitdiffstats
path: root/qmake/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmake/main.cpp')
-rw-r--r--qmake/main.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/qmake/main.cpp b/qmake/main.cpp
index 91c8146c08..59e6f6794d 100644
--- a/qmake/main.cpp
+++ b/qmake/main.cpp
@@ -85,6 +85,9 @@ int runQMake(int argc, char **argv)
// This is particularly important for things like QtCreator and scripted builds.
setvbuf(stdout, (char *)NULL, _IONBF, 0);
+ QMakeGlobals globals;
+ Option::globals = &globals;
+
// parse command line
int ret = Option::init(argc, argv);
if(ret != Option::QMAKE_CMDLINE_SUCCESS) {
@@ -125,8 +128,14 @@ int runQMake(int argc, char **argv)
Option::qmake_mode == Option::QMAKE_SET_PROPERTY ||
Option::qmake_mode == Option::QMAKE_UNSET_PROPERTY)
return prop.exec() ? 0 : 101;
+ globals.setQMakeProperty(&prop);
+
+ ProFileCache proFileCache;
+ Option::proFileCache = &proFileCache;
+ QMakeParser parser(&proFileCache, &Option::evalHandler);
+ Option::parser = &parser;
- QMakeProject project(&prop);
+ QMakeProject project;
int exit_val = 0;
QStringList files;
if(Option::qmake_mode == Option::QMAKE_GENERATE_PROJECT)