bf6ae8406b
Change-Id: Iba5686131d9f3e22e9a4d6da473a61a845b0418e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
29 lines
880 B
Plaintext
29 lines
880 B
Plaintext
sim_and_dev = false
|
|
!isEmpty(QT_VERSION):qtConfig(simulator_and_device): \
|
|
sim_and_dev = true
|
|
|
|
$$sim_and_dev|contains(QMAKE_MAC_SDK, ^$${device.sdk}.*): \
|
|
CONFIG += device $${device.sdk}
|
|
$$sim_and_dev|contains(QMAKE_MAC_SDK, ^$${simulator.sdk}.*): \
|
|
CONFIG += simulator $${simulator.sdk}
|
|
|
|
$$sim_and_dev {
|
|
# For a simulator_and_device build all the config tests
|
|
# are based on the device's ARM SDK, but we know that the simulator
|
|
# is Intel and that we support SSE/SSE2.
|
|
QT_CPU_FEATURES.$$QT_ARCH += sse sse2
|
|
CONFIG += sse sse2
|
|
DEFINES += QT_COMPILER_SUPPORTS_SSE2
|
|
}
|
|
|
|
unset(sim_and_dev)
|
|
|
|
load(default_pre)
|
|
|
|
# Check for supported Xcode versions
|
|
!versionAtLeast(QMAKE_XCODE_VERSION, 4.3): \
|
|
error("This mkspec requires Xcode 4.3 or later")
|
|
|
|
ios:shared:!versionAtLeast(QMAKE_IOS_DEPLOYMENT_TARGET, 8.0): \
|
|
QMAKE_IOS_DEPLOYMENT_TARGET = 8.0
|