allow the unix generator to run in windows host mode
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Fri, 16 Mar 2012 11:17:26 +0000 (12:17 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 16 Mar 2012 17:12:41 +0000 (18:12 +0100)
this is a complete bastardization of the concept and breaks the (unused)
debugging feature to create proper unix makefiles under windows, but
apparently it permits cross-compiling unix targets under windows.

Change-Id: I4ee95a20e7d6a6b2063ec7aa22f52c1a97d78a77
Reviewed-by: Oliver Wolff <oliver.wolff@nokia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
qmake/generators/metamakefile.cpp

index b855585..c69d5a5 100644 (file)
@@ -520,6 +520,9 @@ MetaMakefileGenerator::modesForGenerator(const QString &gen,
 #ifdef Q_OS_MAC
         *host_mode = Option::HOST_MACX_MODE;
         *target_mode = Option::TARG_MACX_MODE;
+#elif defined(Q_OS_WIN)
+        *host_mode = Option::HOST_WIN_MODE;
+        *target_mode = Option::TARG_UNIX_MODE;
 #else
         *host_mode = Option::HOST_UNIX_MODE;
         *target_mode = Option::TARG_UNIX_MODE;