aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cpp/GenericGCC.qbs
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2021-02-19 01:32:24 +0100
committerIvan Komissarov <ABBAPOH@gmail.com>2021-02-19 15:19:44 +0000
commit83275df38d691ad78278d23042de01cc4b48ef22 (patch)
treeac7f6470ba2ce1c1efed4bf9e2263f89c1394eed /share/qbs/modules/cpp/GenericGCC.qbs
parent36f139c4f405e057baa768e4728704b22de6519d (diff)
codesign: add _canSignArtifacts property
Android cannot sign individual artifacts so simply checking if codesign.enableCodeSigning is true is not enough Change-Id: Ie27ec2b9b7b3b7d7356324590c78b4b967c1b54e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share/qbs/modules/cpp/GenericGCC.qbs')
-rw-r--r--share/qbs/modules/cpp/GenericGCC.qbs9
1 files changed, 6 insertions, 3 deletions
diff --git a/share/qbs/modules/cpp/GenericGCC.qbs b/share/qbs/modules/cpp/GenericGCC.qbs
index 34a0b47de..50744f492 100644
--- a/share/qbs/modules/cpp/GenericGCC.qbs
+++ b/share/qbs/modules/cpp/GenericGCC.qbs
@@ -212,6 +212,9 @@ CppModule {
return createSymlinks && internalVersion && ["macho", "elf"].contains(cpp.imageFormat);
}
+ readonly property bool shouldSignArtifacts: codesign._canSignArtifacts
+ && codesign.enableCodeSigning
+
property string internalVersion: {
if (product.version === undefined)
return undefined;
@@ -409,7 +412,7 @@ CppModule {
filePath: product.destinationDirectory + "/"
+ PathTools.dynamicLibraryFilePath(product),
fileTags: ["bundle.input", "dynamiclibrary"]
- .concat(product.codesign.enableCodeSigning
+ .concat(product.cpp.shouldSignArtifacts
? ["codesign.signed_artifact"] : []),
bundle: {
_bundleFilePath: product.destinationDirectory + "/"
@@ -521,7 +524,7 @@ CppModule {
filePath: FileInfo.joinPaths(product.destinationDirectory,
PathTools.loadableModuleFilePath(product)),
fileTags: ["bundle.input", "loadablemodule"]
- .concat(product.codesign.enableCodeSigning
+ .concat(product.cpp.shouldSignArtifacts
? ["codesign.signed_artifact"] : []),
bundle: {
_bundleFilePath: FileInfo.joinPaths(product.destinationDirectory,
@@ -561,7 +564,7 @@ CppModule {
filePath: FileInfo.joinPaths(product.destinationDirectory,
PathTools.applicationFilePath(product)),
fileTags: ["bundle.input", "application"].concat(
- product.codesign.enableCodeSigning ? ["codesign.signed_artifact"] : []),
+ product.cpp.shouldSignArtifacts ? ["codesign.signed_artifact"] : []),
bundle: {
_bundleFilePath: FileInfo.joinPaths(product.destinationDirectory,
PathTools.bundleExecutableFilePath(product))