summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/uikit/default_pre.prf
blob: cba5490b6e1250e10b0a1975f91f7047999d1b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

load(default_pre)

# In case Qt was built for a specific SDK
!simulator_and_device:contains(QMAKE_MAC_SDK, ^$${simulator.sdk}.*): \
    CONFIG += simulator $${simulator.sdk}

# Check for supported Xcode versions
lessThan(QMAKE_XCODE_VERSION, "4.3"): \
    error("This mkspec requires Xcode 4.3 or later")

simulator_and_device:iphonesimulator {
    # For a simulator_and_device build all the config tests
    # are based on the iPhoneOS ARM SDK, but we know that the simulator
    # is i386 and that we support SSE/SSE2.
    QT_ARCH = i386
    QT_CPU_FEATURES.i386 = sse sse2
    DEFINES += QT_COMPILER_SUPPORTS_SSE2
    CONFIG -= neon
    CONFIG += sse sse2
}
simulator_and_device:appletvsimulator {
    # For a simulator_and_device build all the config tests
    # are based on the AppleTVOS ARM SDK, but we know that the simulator
    # is x64 and that we support SSE/SSE2.
    QT_ARCH = x64
    QT_CPU_FEATURES.x64 = sse sse2
    DEFINES += QT_COMPILER_SUPPORTS_SSE2
    CONFIG -= neon
    CONFIG += sse sse2
}