blob: 7f978d47bafb59ffd81c15e06896391b8756dae7 (
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
50
51
52
53
54
55
56
|
import qbs
import qbs.FileInfo
Module {
property bool enableUnitTests: false
property bool enableProjectFileUpdates: false
property bool enableRPath: true
property bool installApiHeaders: true
property bool enableBundledQt: true
property bool useBundledQtScript: false
property bool staticBuild: false
property string libDirName: "lib"
property string appInstallDir: "bin"
property string libInstallDir: qbs.targetOS.contains("windows") ? "bin" : libDirName
property string importLibInstallDir: libDirName
property string libexecInstallDir: qbs.targetOS.contains("windows") ? appInstallDir
: "libexec/qbs"
property bool installManPage: qbs.targetOS.contains("unix")
property bool installHtml: true
property bool installQch: false
property bool generateQbsModules: installApiHeaders
property string docInstallDir: "share/doc/qbs/html"
property string qbsModulesBaseDir: FileInfo.joinPaths(libDirName, "qbs", "modules")
property string relativeLibexecPath: "../" + libexecInstallDir
property string relativePluginsPath: "../" + libDirName
property string relativeSearchPath: ".."
property string rpathOrigin: {
// qbs < 1.11 compatibility for cpp.rpathOrigin
if (qbs.targetOS.contains("darwin"))
return "@loader_path";
if (qbs.targetOS.contains("unix"))
return "$ORIGIN";
}
property stringList libRPaths: {
if (enableRPath && rpathOrigin && product.targetInstallDir) {
if (!FileInfo.cleanPath) {
// qbs < 1.10 compatibility
FileInfo.cleanPath = function (a) {
if (a.endsWith("/."))
return a.slice(0, -2);
if (a.endsWith("/"))
return a.slice(0, -1);
return a;
}
}
return [FileInfo.joinPaths(rpathOrigin, FileInfo.relativePath(
FileInfo.joinPaths('/', product.targetInstallDir),
FileInfo.joinPaths('/', libDirName)))];
}
return [];
}
property string resourcesInstallDir: ""
property string pluginsInstallDir: libDirName + "/qbs/plugins"
property string qmlTypeDescriptionsInstallDir: FileInfo.joinPaths(resourcesInstallDir,
"share/qbs/qml-type-descriptions")
}
|