aboutsummaryrefslogtreecommitdiffstats
path: root/qbs.qbs
blob: 31fb6e0568ca8bc14eaa2cf7e5fa78e0b38aba28 (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
import qbs 1.0

Project {
    property bool enableUnitTests: false
    property bool enableRPath: true
    property bool installApiHeaders: true
    property bool withExamples: true
    property path libInstallDir: qbs.targetOS.contains("windows") ? "bin" : "lib"
    property path libRPaths: {
        if (!project.enableRPath)
            return undefined;
        if (qbs.targetOS.contains("linux"))
            return ["$ORIGIN/../lib"];
        if (qbs.targetOS.contains("osx"))
            return ["@loader_path/../lib"]
    }
    property path resourcesInstallDir: ""

    references: [
        "doc/doc.qbs",
        "examples/examples.qbs",
        "share/share.qbs",
        "src/src.qbs",
        "tests/auto/auto.qbs"
    ]
}