summaryrefslogtreecommitdiffstats
path: root/qmake/option.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-03-03 13:48:27 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-03-03 13:52:28 (GMT)
commita1b0dba9971ef88dc1e079d1ea49230a4dd3c514 (patch)
tree2cc73abfc7ec2bc4da911dd754af3ddab7d891f5 /qmake/option.cpp
parent6f07f0a2b9df84302348e290f22de13514f81d50 (diff)
downloadQt-a1b0dba9971ef88dc1e079d1ea49230a4dd3c514.zip
Qt-a1b0dba9971ef88dc1e079d1ea49230a4dd3c514.tar.gz
Qt-a1b0dba9971ef88dc1e079d1ea49230a4dd3c514.tar.bz2
fix qmake -project mode
the mode is a big hack, and consequently needs hacks to get started as well ... Reviewed-by: mariusSO
Diffstat (limited to 'qmake/option.cpp')
-rw-r--r--qmake/option.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/qmake/option.cpp b/qmake/option.cpp
index 6f0f46b..b41e39d 100644
--- a/qmake/option.cpp
+++ b/qmake/option.cpp
@@ -525,6 +525,17 @@ Option::init(int argc, char **argv)
}
#endif
}
+ } else if (Option::qmake_mode == Option::QMAKE_GENERATE_PROJECT) {
+#if defined(Q_OS_MAC)
+ Option::host_mode = Option::HOST_MACX_MODE;
+ Option::target_mode = Option::TARG_MACX_MODE;
+#elif defined(Q_OS_UNIX)
+ Option::host_mode = Option::HOST_UNIX_MODE;
+ Option::target_mode = Option::TARG_UNIX_MODE;
+#else
+ Option::host_mode = Option::HOST_WIN_MODE;
+ Option::target_mode = Option::TARG_WIN_MODE;
+#endif
}
//defaults for globals