From 7267ebe0042e11cf333b99fbcae98d35b23c3bf7 Mon Sep 17 00:00:00 2001
From: Rafael Roquetto <rafael.roquetto.qnx@kdab.com>
Date: Mon, 16 Jul 2012 18:23:33 +0200
Subject: [PATCH] Install right version of tools when x-compiling.

When cross-compiling from a Windows host, we need to install the right (win32)
versions of syncqt and qmake into the target folder.

Change-Id: I35fc4b05bb6ad7605bc932cae527372a9fe0ba3e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
---
 qtbase.pro | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qtbase.pro b/qtbase.pro
index b1c6ea7089e..8e655462309 100644
--- a/qtbase.pro
+++ b/qtbase.pro
@@ -67,7 +67,7 @@ CONFIG -= qt
 
 #qmake
 qmake.path = $$[QT_HOST_BINS]
-win32 {
+equals(QMAKE_HOST.os, Windows) {
    qmake.files = $$OUT_PWD/bin/qmake.exe
 } else {
    qmake.files = $$OUT_PWD/bin/qmake
@@ -77,7 +77,7 @@ INSTALLS += qmake
 #syncqt
 syncqt.path = $$[QT_HOST_BINS]
 syncqt.files = $$PWD/bin/syncqt
-win32:syncqt.files += $$PWD/bin/syncqt.bat
+equals(QMAKE_HOST.os, Windows):syncqt.files += $$PWD/bin/syncqt.bat
 INSTALLS += syncqt
 
 #mkspecs
-- 
GitLab