aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/qbspkgconfig-module-provider/libs/libs.qbs
blob: 9d482415b2de3f2a290438ba513b4b271a88077e (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
import qbs.FileInfo

Project {
    property bool isBundle: false

    DynamicLibrary {
        Depends { name: "cpp" }
        Depends { name: "bundle" }
        name: "libA"
        bundle.isBundle: project.isBundle
        bundle.publicHeaders: ["libA.h"]
        files: "libA.cpp"
        cpp.defines: {
            var result = [];
            if (project.isBundle)
                result.push("MYLIB_FRAMEWORK");
            return result;
        }
        qbs.installPrefix: ""
        install: true
        installImportLib: true
        installDir: "lib"
        Group {
            files: ["libA.h"]
            qbs.install: !project.isBundle
            qbs.installDir: FileInfo.joinPaths("include", product.name)
        }
    }
}