Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Qmake variable for iOS

$
0
0
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?

Viewing all articles
Browse latest Browse all 13965

Trending Articles