blob: 21309163858377a470079b41feeca8cc7bf79bb0 (
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
import "../../version.js" as Version
Product {
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["core"] }
version: Version.qbsVersion()
type: Qt.core.staticBuild ? "staticlibrary" : "dynamiclibrary"
targetName: (qbs.enableDebugCode && qbs.targetOS.contains("windows")) ? (name + 'd') : name
destinationDirectory: qbs.targetOS.contains("windows") ? "bin" : project.libDirName
cpp.defines: base.concat(type == "staticlibrary" ? ["QBS_STATIC_LIB"] : ["QBS_LIBRARY"])
cpp.installNamePrefix: "@rpath/"
property string headerInstallPrefix: "/include/qbs"
Group {
fileTagsFilter: product.type.concat("dynamiclibrary_symlink")
qbs.install: true
qbs.installDir: project.libInstallDir
}
Export {
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["core"] }
cpp.rpaths: project.libRPaths
cpp.includePaths: "."
cpp.defines: product.type === "staticlibrary" ? ["QBS_STATIC_LIB"] : []
}
}
|