valentina/qbs/imports/VLib.qbs
2023-01-06 11:33:41 +02:00

25 lines
705 B
QML

import qbs.FileInfo
Library {
Depends { name: "buildconfig" }
Depends { name: "bundle" }
Depends { name: "cpp" }
type: buildconfig.staticBuild ? "staticlibrary" : "dynamiclibrary"
buildconfig.appTarget: "valentina"
bundle.isBundle: buildconfig.frameworksBuild
cpp.includePaths: [".."]
cpp.sonamePrefix: qbs.targetOS.contains("macos") ? "@rpath" : undefined
cpp.rpaths: cpp.rpathOrigin
install: !buildconfig.staticBuild
installDir: buildconfig.installLibraryPath
installDebugInformation: !buildconfig.staticBuild
Properties {
condition: qbs.targetOS.contains("macos")
cpp.minimumMacosVersion: buildconfig.minimumMacosVersion
}
}