Enable code signing on mac.
This commit is contained in:
parent
7532800830
commit
b67a063665
|
@ -8,6 +8,8 @@ CppApplication {
|
||||||
Properties {
|
Properties {
|
||||||
condition: qbs.targetOS.contains("macos")
|
condition: qbs.targetOS.contains("macos")
|
||||||
cpp.minimumMacosVersion: buildconfig.minimumMacosVersion
|
cpp.minimumMacosVersion: buildconfig.minimumMacosVersion
|
||||||
|
codesign.enableCodeSigning: buildconfig.enableCodeSigning
|
||||||
|
codesign.codesignFlags: ["--deep"]
|
||||||
}
|
}
|
||||||
|
|
||||||
Properties {
|
Properties {
|
||||||
|
|
|
@ -14,6 +14,8 @@ VLib {
|
||||||
Properties {
|
Properties {
|
||||||
condition: qbs.targetOS.contains("macos")
|
condition: qbs.targetOS.contains("macos")
|
||||||
bundle.identifierPrefix: 'ua.com.smart-pattern'
|
bundle.identifierPrefix: 'ua.com.smart-pattern'
|
||||||
|
codesign.enableCodeSigning: buildconfig.enableCodeSigning
|
||||||
|
codesign.codesignFlags: ["--deep"]
|
||||||
}
|
}
|
||||||
|
|
||||||
Properties {
|
Properties {
|
||||||
|
|
|
@ -45,6 +45,10 @@ Module {
|
||||||
return project.enableConan;
|
return project.enableConan;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
readonly property bool enableCodeSigning : {
|
||||||
|
return project.enableSigning;
|
||||||
|
}
|
||||||
|
|
||||||
property string libDirName: "lib"
|
property string libDirName: "lib"
|
||||||
|
|
||||||
property string appTarget
|
property string appTarget
|
||||||
|
|
|
@ -32,6 +32,8 @@ Module {
|
||||||
|
|
||||||
property stringList targetApps: undefined
|
property stringList targetApps: undefined
|
||||||
|
|
||||||
|
property string signingIdentity: "-" // ad-hoc
|
||||||
|
|
||||||
Rule {
|
Rule {
|
||||||
// alwaysRun: true
|
// alwaysRun: true
|
||||||
multiplex: true
|
multiplex: true
|
||||||
|
@ -76,6 +78,9 @@ Module {
|
||||||
if (product.macdeployqt.libpath !== undefined)
|
if (product.macdeployqt.libpath !== undefined)
|
||||||
cmdArgs.push("-libpath", product.macdeployqt.libpath);
|
cmdArgs.push("-libpath", product.macdeployqt.libpath);
|
||||||
|
|
||||||
|
if (product.buildconfig.enableCodeSigning)
|
||||||
|
cmdArgs.push("-codesign=" + product.macdeployqt.signingIdentity);
|
||||||
|
|
||||||
if (product.macdeployqt.targetApps !== undefined && !product.buildconfig.enableMultiBundle && product.primaryApp)
|
if (product.macdeployqt.targetApps !== undefined && !product.buildconfig.enableMultiBundle && product.primaryApp)
|
||||||
{
|
{
|
||||||
product.macdeployqt.targetApps.forEach(function(targetApp) {
|
product.macdeployqt.targetApps.forEach(function(targetApp) {
|
||||||
|
|
|
@ -9,6 +9,7 @@ Project {
|
||||||
property bool enableConan: false
|
property bool enableConan: false
|
||||||
property string minimumMacosVersion: undefined
|
property string minimumMacosVersion: undefined
|
||||||
property stringList conanProfiles: []
|
property stringList conanProfiles: []
|
||||||
|
property bool enableSigning: true
|
||||||
|
|
||||||
// Temporary probe until qbs doesn't support conan 2.0
|
// Temporary probe until qbs doesn't support conan 2.0
|
||||||
ConanfileProbe {
|
ConanfileProbe {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user