Qmake variable for iOS
-
Hello,
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@ios {
CONFIG += c++11
iphonesimulator {
message("iphonesimulator")
#Do Something
}
iphoneos{
message("iphoneos")
#Do Something
}
}@On running qmake with the iphonesimulator kit, it prints out
@Project MESSAGE: iphonesimulator
Project MESSAGE: iphonesimulator
Project MESSAGE: iphonesimulator
Project MESSAGE: iphonesimulator
Project MESSAGE: iphoneos
Project MESSAGE: iphonesimulator
Project MESSAGE: iphonesimulator
Project MESSAGE: iphoneos@With iPhone device kit , it prints
@Project MESSAGE: iphoneos
Project MESSAGE: iphoneos
Project MESSAGE: iphoneos
Project MESSAGE: iphonesimulator
Project MESSAGE: iphoneos
Project MESSAGE: iphoneos
Project MESSAGE: iphonesimulator
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?
-
Hi,
iOS support being relatively new, I would recommend posting this question on the interest mailing list (don't forget to subscribe first)