fix default platform plugin for windows using configure script
authorMark Brand <mabrand@mabrand.nl>
Tue, 15 May 2012 11:53:46 +0000 (13:53 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jun 2012 15:41:43 +0000 (17:41 +0200)
Follow-up to 0074cc5d34a8ee314e864ba488dab1f0d0f94995.
The configure script can be used for cross-building for Windows on
unix.

Change-Id: Ie7f9d0ff308ad5763cdf7b2664fa255e89bd5013
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
configure

index 781c06b..d2aa41c 100755 (executable)
--- a/configure
+++ b/configure
@@ -4749,7 +4749,9 @@ if [ -z "$QT_QPA_DEFAULT_PLATFORM" ]; then
     # check the mkspec
     QT_QPA_DEFAULT_PLATFORM=`getXQMakeConf QT_QPA_DEFAULT_PLATFORM`
     if [ -z "$QT_QPA_DEFAULT_PLATFORM" ]; then
-        if [ "$BUILD_ON_MAC" = "yes" ]; then
+        if [ "$XPLATFORM_MINGW" = "yes" ]; then
+            QT_QPA_DEFAULT_PLATFORM="windows"
+        elif [ "$BUILD_ON_MAC" = "yes" ]; then
             QT_QPA_DEFAULT_PLATFORM="cocoa"
         elif [ "$UNAME_SYSTEM" = "QNX" ]; then
             QT_QPA_DEFAULT_PLATFORM="qnx"