aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/minimumSystemVersion/specific.qbs
blob: 8099d79b9bd50f59509304d0f6c597b168794d89 (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
import qbs.Utilities

// a specific version of the operating systems is specified
// when the application is run its output should confirm
// that the given values took effect
CppApplication {
    condition: {
        var result = qbs.targetPlatform === qbs.hostPlatform;
        if (!result)
            console.info("targetPlatform differs from hostPlatform");
        return result && qbs.targetOS.contains("windows") || qbs.targetOS.contains("macos");
    }
    files: [qbs.targetOS.contains("darwin") ? "main.mm" : "main.cpp"]
    consoleApplication: true

    Properties {
        condition: qbs.targetOS.contains("windows")
        cpp.minimumWindowsVersion: "6.0"
        cpp.defines: [
            "QBS_WINVER=0x600",
            "TOOLCHAIN_INSTALL_PATH=" + Utilities.cStringQuote(cpp.toolchainInstallPath)
        ]
    }

    Properties {
        condition: qbs.targetOS.contains("macos")
        cpp.frameworks: "Foundation"
        cpp.minimumMacosVersion: "10.7"
    }
}