valentina/qbs/imports/VDynamicLib.qbs
Roman Telezhynskyi 0e7ff22882 Codesign on macos.
2023-09-12 17:50:15 +03:00

43 lines
1.2 KiB
QML

import qbs.Utilities
VLib {
Depends { name: "windeployqt"; }
Depends { name: "i18nconfig"; }
buildconfig.staticBuild: 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: 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
}
}