summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/moc.prf
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2009-07-22 03:44:24 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2009-07-23 00:28:52 (GMT)
commit6238afebf272df392ae0527d127f245cfe19479b (patch)
treeebe1099fe64dbacf3382a1863fb76e11a99b626c /mkspecs/features/moc.prf
parentb0c5020c11913ad1de442ab0ef7e10dec225aec1 (diff)
downloadQt-6238afebf272df392ae0527d127f245cfe19479b.zip
Qt-6238afebf272df392ae0527d127f245cfe19479b.tar.gz
Qt-6238afebf272df392ae0527d127f245cfe19479b.tar.bz2
Fixed compile of Qt/symbian projects which set a custom MOC_DIR
or UI_HEADERS_DIR. This win32-specific path logic needs to get executed when the _host_ platform is win32, not the _target_. Acked-by: mstormo
Diffstat (limited to 'mkspecs/features/moc.prf')
-rw-r--r--mkspecs/features/moc.prf4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkspecs/features/moc.prf b/mkspecs/features/moc.prf
index 60508c8..fdc72ca 100644
--- a/mkspecs/features/moc.prf
+++ b/mkspecs/features/moc.prf
@@ -1,7 +1,7 @@
#global defaults
isEmpty(QMAKE_MOC) {
- win32:QMAKE_MOC = $$[QT_INSTALL_BINS]\moc.exe
+ contains(QMAKE_HOST.os,Windows):QMAKE_MOC = $$[QT_INSTALL_BINS]\moc.exe
else:QMAKE_MOC = $$[QT_INSTALL_BINS]/moc
}
isEmpty(MOC_DIR):MOC_DIR = .
@@ -84,7 +84,7 @@ INCREDIBUILD_XGE += moc_source
#make sure we can include these files
moc_dir_short = $$MOC_DIR
-win32:moc_dir_short ~= s,^.:,/,
+contains(QMAKE_HOST.os,Windows):moc_dir_short ~= s,^.:,/,
contains(moc_dir_short, ^[/\\\\].*):INCLUDEPATH += $$MOC_DIR
else:INCLUDEPATH += $$OUT_PWD/$$MOC_DIR