[Development] Qmake variable for iOS
Shobana Suresh
SSuresh at esri.com
Mon Feb 10 01:30:07 CET 2014
Hello All,
I am trying to find the qmake variable that could be used to differentiate between the iPhone simulator and iPhone arm kits.
In my .pro file, I would like to use conditions like
1.
ios {
2.
CONFIG += c++11
3.
iphonesimulator {
4.
message("iphonesimulator")
5.
#Do Something
6.
}
7.
iphoneos{
8.
message("iphoneos")
9.
#Do Something
10.
}
11.
}
On running qmake with the iphonesimulator kit, it prints out
1.
Project MESSAGE: iphonesimulator
2.
Project MESSAGE: iphonesimulator
3.
Project MESSAGE: iphonesimulator
4.
Project MESSAGE: iphonesimulator
5.
Project MESSAGE: iphoneos
6.
Project MESSAGE: iphonesimulator
7.
Project MESSAGE: iphonesimulator
8.
Project MESSAGE: iphoneos
With iPhone device kit , it prints
1.
Project MESSAGE: iphoneos
2.
Project MESSAGE: iphoneos
3.
Project MESSAGE: iphoneos
4.
Project MESSAGE: iphonesimulator
5.
Project MESSAGE: iphoneos
6.
Project MESSAGE: iphoneos
7.
Project MESSAGE: iphonesimulator
8.
Project MESSAGE: iphoneos
I tried using the QT_ARCH variable, but message($$QT_ARCH) prints out “arm” for both the kits.
What is the correct qmake variable to use to differentiate between iPhone simulator and iPhone arm kits?
Regards
Shobana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140210/8e728a58/attachment.html>
More information about the Development
mailing list