summaryrefslogtreecommitdiff
path: root/tests/auto/api/testdata/local-profiles/local-profiles.qbs
blob: 7832cab58b7e13e62f873ec5608c29a62b9f5674 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import qbs

Project {
    property string windowsProfile: "windowsProfile"
    property bool enableProfiles
    property string mingwToolchain: "mingw"
    property string mingwProfile: "mingwProfile"
    Profile {
        name: windowsProfile
        qbs.targetPlatform: "windows"
    }

    Profile {
        name: project.mingwProfile
        condition: enableProfiles
        baseProfile: project.windowsProfile
        qbs.toolchainType: project.mingwToolchain
    }

    Application {
        name: "app"
        Depends { name: "cpp"; required: false }
        aggregate: false
        multiplexByQbsProperties: ["buildVariants"]
        qbs.buildVariants: ["debug", "release"]
        qbs.profile: project.mingwProfile
    }
    DynamicLibrary {
        name: "lib"

        Depends { name: "cpp"; required: false }

        property string clangToolchain: "clang"
        property string clangProfileName: "clangProfile"

        Profile {
            name: product.clangProfileName
            condition: project.enableProfiles
            qbs.targetPlatform: "linux"
            qbs.toolchainType: product.clangToolchain
        }

        multiplexByQbsProperties: ["profiles"]
        qbs.profiles: [project.mingwProfile, "clangProfile"]
    }
}