aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/installpackage/installpackage.qbs
blob: 3396b79a446a181b038e21b3bc3aa5656a8e82a8 (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
47
48
49
Project {
    CppApplication {
        name: "public_tool"
        Properties {
            condition: qbs.targetOS.includes("darwin")
            bundle.isBundle: false
        }
        Depends { name: "mylib" }
        files: ["main.cpp"]
        Group {
            fileTagsFilter: product.type
            qbs.install: true
            qbs.installDir: "bin"
        }
    }
    CppApplication {
        name: "internal_tool"
        Depends { name: "mylib" }
        files: ["main.cpp"]
    }
    DynamicLibrary {
        Properties {
            condition: qbs.targetOS.includes("darwin")
            bundle.isBundle: false
        }
        Depends { name: "cpp" }
        name: "mylib"
        files: ["lib.cpp"]
        Group {
            name: "public headers"
            files: ["lib.h"]
            qbs.install: true
            qbs.installDir: "include"
        }
        Group {
            fileTagsFilter: product.type
            qbs.install: true
            qbs.installDir: "lib"
        }
    }

    InstallPackage {
        archiver.type: "tar"
        builtByDefault: true
        name: "tar-package"
        Depends { name: "public_tool" }
        Depends { name: "mylib" }
    }
}