2016-02-11 12:30:53 +00:00
|
|
|
|
2015-02-13 14:25:06 +00:00
|
|
|
# In case the user sets the SDK manually
|
2016-02-11 12:30:53 +00:00
|
|
|
contains(QMAKE_MAC_SDK, ^$${simulator.sdk}.*) {
|
2016-08-29 08:06:33 +00:00
|
|
|
!isEmpty(QT_VERSION):qtConfig(simulator_and_device): \
|
2016-03-07 20:11:11 +00:00
|
|
|
error("Simulator is handled automatically for simulator_and_device")
|
2015-02-13 14:25:06 +00:00
|
|
|
|
2016-02-11 12:30:53 +00:00
|
|
|
CONFIG += simulator $${simulator.sdk}
|
2015-02-13 14:25:06 +00:00
|
|
|
}
|
|
|
|
|
2016-06-10 21:27:10 +00:00
|
|
|
build_pass:simulator: \
|
2016-02-11 12:30:53 +00:00
|
|
|
QMAKE_MAC_SDK ~= s,^$${device.sdk},$${simulator.sdk},
|
2015-02-13 14:25:06 +00:00
|
|
|
|
2014-11-08 18:30:56 +00:00
|
|
|
load(sdk)
|
|
|
|
|
2015-02-13 14:19:32 +00:00
|
|
|
macx-xcode {
|
2016-02-11 12:30:53 +00:00
|
|
|
sdk_path_device.name = "QMAKE_MAC_SDK_PATH[sdk=$${device.sdk}*]"
|
|
|
|
sdk_path_device.value = $$xcodeSDKInfo(Path, $${device.sdk})
|
|
|
|
sdk_path_simulator.name = "QMAKE_MAC_SDK_PATH[sdk=$${simulator.sdk}*]"
|
|
|
|
sdk_path_simulator.value = $$xcodeSDKInfo(Path, $${simulator.sdk})
|
|
|
|
QMAKE_MAC_XCODE_SETTINGS += sdk_path_device sdk_path_simulator
|
2015-02-13 14:19:32 +00:00
|
|
|
QMAKE_MAC_SDK_PATH = "$(QMAKE_MAC_SDK_PATH)"
|
|
|
|
|
2016-02-11 12:30:53 +00:00
|
|
|
sdk_platform_path_device.name = "QMAKE_MAC_SDK_PLATFORM_PATH[sdk=$${device.sdk}*]"
|
|
|
|
sdk_platform_path_device.value = $$xcodeSDKInfo(PlatformPath, $${device.sdk})
|
|
|
|
sdk_platform_path_simulator.name = "QMAKE_MAC_SDK_PLATFORM_PATH[sdk=$${simulator.sdk}*]"
|
|
|
|
sdk_platform_path_simulator.value = $$xcodeSDKInfo(PlatformPath, $${simulator.sdk})
|
|
|
|
QMAKE_MAC_XCODE_SETTINGS += sdk_platform_path_device sdk_platform_path_simulator
|
2015-02-13 14:19:32 +00:00
|
|
|
QMAKE_MAC_SDK_PLATFORM_PATH = "$(QMAKE_MAC_SDK_PLATFORM_PATH)"
|
|
|
|
}
|