48 lines
1.4 KiB
QML
48 lines
1.4 KiB
QML
import qbs.Utilities
|
|
|
|
VLib {
|
|
Depends { name: "windeployqt"; condition: qbs.targetOS.contains("windows") }
|
|
Depends { name: "i18nconfig"; }
|
|
|
|
buildconfig.staticBuild: {
|
|
if (product.buildconfig.enableUnitTests && product.buildconfig.enableTestCoverage)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
|
|
Properties {
|
|
condition: qbs.targetOS.contains("windows") && Utilities.versionCompare(Qt.core.version, "6.5") < 0
|
|
windeployqt.noVirtualkeyboard: true
|
|
}
|
|
|
|
Properties {
|
|
condition: qbs.targetOS.contains("macos")
|
|
bundle.identifierPrefix: 'ua.com.smart-pattern'
|
|
codesign.enableCodeSigning: buildconfig.enableCodeSigning
|
|
}
|
|
|
|
Properties {
|
|
condition: qbs.targetOS.contains("macos") && qbs.buildVariant !== "release"
|
|
codesign.signingType: "ad-hoc"
|
|
}
|
|
|
|
Properties {
|
|
condition: qbs.targetOS.contains("macos") && qbs.buildVariant === "release"
|
|
codesign.signingType: "apple-id"
|
|
}
|
|
|
|
Properties {
|
|
condition: qbs.targetOS.contains("windows") && i18nconfig.limitDeploymentOfQtTranslations
|
|
windeployqt.languages: i18nconfig.qtTranslationLocales.join(',')
|
|
}
|
|
|
|
installDebugInformation: qbs.buildVariant !== "release"
|
|
|
|
Properties {
|
|
condition: !qbs.targetOS.contains("macos") || (qbs.targetOS.contains("macos") && !buildconfig.enableMultiBundle)
|
|
install: true
|
|
installDir: buildconfig.installLibraryPath
|
|
}
|
|
}
|