blob: c922773fb89a31a105aefa9a9349e0dccc73367a (
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
|
import qbs 1.0
Project {
property bool enableUnitTests: false
property bool enableRPath: true
property bool installApiHeaders: true
property bool withExamples: true
property string libDirName: "lib"
property string libInstallDir: qbs.targetOS.contains("windows") ? "bin" : libDirName
property stringList libRPaths: {
if (!project.enableRPath)
return undefined;
if (qbs.targetOS.contains("linux"))
return ["$ORIGIN/../" + libDirName];
if (qbs.targetOS.contains("osx"))
return ["@loader_path/../" + libDirName]
}
property string resourcesInstallDir: ""
property string pluginsInstallDir: libDirName
references: [
"doc/doc.qbs",
"share/share.qbs",
"src/src.qbs",
"tests/auto/auto.qbs",
"tests/fuzzy-test/fuzzy-test.qbs",
]
SubProject {
filePath: "examples/examples.qbs"
condition: project.withExamples
}
}
|