2023-01-04 17:31:50 +01:00
|
|
|
import qbs.FileInfo
|
|
|
|
|
|
|
|
Library {
|
|
|
|
Depends { name: "buildconfig" }
|
|
|
|
Depends { name: "bundle" }
|
|
|
|
Depends { name: "cpp" }
|
|
|
|
|
|
|
|
type: buildconfig.staticBuild ? "staticlibrary" : "dynamiclibrary"
|
|
|
|
|
2023-01-27 18:07:24 +01:00
|
|
|
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Valentina" : "valentina"
|
2023-01-04 17:31:50 +01:00
|
|
|
bundle.isBundle: buildconfig.frameworksBuild
|
|
|
|
cpp.includePaths: [".."]
|
2023-01-09 11:16:36 +01:00
|
|
|
|
|
|
|
// Allow MAC OS X to find library inside a bundle
|
|
|
|
cpp.sonamePrefix: (!buildconfig.staticBuild && qbs.targetOS.contains("macos")) ? "@rpath" : undefined
|
|
|
|
|
|
|
|
Properties {
|
|
|
|
condition: (!buildconfig.staticBuild && buildconfig.enableRPath)
|
|
|
|
cpp.rpaths: cpp.rpathOrigin
|
|
|
|
}
|
2023-01-04 17:31:50 +01:00
|
|
|
|
2023-01-09 16:29:40 +01:00
|
|
|
Properties {
|
|
|
|
condition: qbs.targetOS.contains("unix") && buildconfig.buildWithCcache
|
|
|
|
cpp.compilerWrapper: "ccache"
|
|
|
|
}
|
|
|
|
|
2023-01-27 18:07:24 +01:00
|
|
|
install: false
|
|
|
|
installDebugInformation: false
|
2023-01-04 17:31:50 +01:00
|
|
|
|
|
|
|
Properties {
|
|
|
|
condition: qbs.targetOS.contains("macos")
|
|
|
|
cpp.minimumMacosVersion: buildconfig.minimumMacosVersion
|
|
|
|
}
|
|
|
|
}
|