iOS: Resolve correct SDK as part of sdk.prf instead of default_post.prf
The latter location resulted in the wrong SDK paths being resolved if sdk.prf was loaded before default_post.prf through an explicit load(sdk) call. Change-Id: Ia443260572fbdf5f9ed1daf558c2962703274e32 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
This commit is contained in:
parent
006fc32ca7
commit
4fb2014657
@ -1,14 +1,5 @@
|
|||||||
|
|
||||||
# In case the user sets the SDK manually
|
load(sdk)
|
||||||
contains(QMAKE_MAC_SDK, ^iphonesimulator.*) {
|
|
||||||
iphonesimulator_and_iphoneos: \
|
|
||||||
error("iOS simulator is handled automatically for iphonesimulator_and_iphoneos")
|
|
||||||
|
|
||||||
CONFIG += iphonesimulator
|
|
||||||
}
|
|
||||||
|
|
||||||
iphonesimulator_and_iphoneos:iphonesimulator: \
|
|
||||||
QMAKE_MAC_SDK ~= s,^iphoneos,iphonesimulator,
|
|
||||||
|
|
||||||
# Resolve config so we don't need to use CONFIG() later on
|
# Resolve config so we don't need to use CONFIG() later on
|
||||||
CONFIG(iphonesimulator, iphonesimulator|iphoneos) {
|
CONFIG(iphonesimulator, iphonesimulator|iphoneos) {
|
||||||
|
@ -1,3 +1,14 @@
|
|||||||
|
# In case the user sets the SDK manually
|
||||||
|
contains(QMAKE_MAC_SDK, ^iphonesimulator.*) {
|
||||||
|
iphonesimulator_and_iphoneos: \
|
||||||
|
error("iOS simulator is handled automatically for iphonesimulator_and_iphoneos")
|
||||||
|
|
||||||
|
CONFIG += iphonesimulator
|
||||||
|
}
|
||||||
|
|
||||||
|
iphonesimulator_and_iphoneos:iphonesimulator: \
|
||||||
|
QMAKE_MAC_SDK ~= s,^iphoneos,iphonesimulator,
|
||||||
|
|
||||||
load(sdk)
|
load(sdk)
|
||||||
|
|
||||||
lessThan(QMAKE_MAC_SDK_VERSION, "8.0"): \
|
lessThan(QMAKE_MAC_SDK_VERSION, "8.0"): \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user