blob: 73234bb0fefd8c8b3ba0fb09b80d67eb57ad618c (
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.FileInfo
//! [1]
//! [0]
// qbs/modules/mybuildconfig.qbs
Module {
property string appInstallDir: "bin"
property string libDirName: "lib"
property string libInstallDir: qbs.targetOS.contains("windows") ? appInstallDir : libDirName
//! [0]
Depends { name: "cpp" }
property bool enableRPath: true
property stringList libRPaths: {
if (enableRPath && cpp.rpathOrigin && product.installDir) {
return [FileInfo.joinPaths(cpp.rpathOrigin, FileInfo.relativePath(
FileInfo.joinPaths('/', product.installDir),
FileInfo.joinPaths('/', libInstallDir)))];
}
return [];
}
cpp.rpaths: libRPaths
}
//! [1]
|