aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/maximum-c-language-version/maximum-c-language-version.qbs
blob: 9f41570f80d7da46d3abcaf2b158bbfd85c6b9a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CppApplication {
    name: "app"
    property bool enableNewestModule: true

    Probe {
        id: osProbe
        property string toolchainType: qbs.toolchainType
        property string compilerVersion: cpp.compilerVersion
        configure: {
            console.info("is msvc: " + (toolchainType === "msvc" || toolchainType === "clang-cl"));
            var isOld = (toolchainType === "msvc" && compilerVersion < "19.29.30138")
                || (toolchainType === "clang-cl" && compilerVersion < "13");
            console.info("is old msvc: " + isOld);
            found = true;
        }
    }

    Depends { name: "oldmodule" }
    Depends { name: "newermodule" }
    Depends { name: "newestmodule"; condition: enableNewestModule }

    files: "main.c"
}