diff options
author | Raphaël Cotty <raphael.cotty@gmail.com> | 2020-10-16 20:43:40 +0200 |
---|---|---|
committer | Raphaël Cotty <raphael.cotty@gmail.com> | 2020-10-23 10:28:37 +0000 |
commit | cdc3802e6b51f05d2b80237fdade617c90d0cd45 (patch) | |
tree | 656373597cf777a846b9b04e09de8a8936863bde /share/qbs/modules | |
parent | 6d6fe0c5ef3631f5538782ff153bd96531459c36 (diff) | |
download | qbs-cdc3802e6b51f05d2b80237fdade617c90d0cd45.tar.gz |
Android: Remove targetName suffix from QtApplication
From Qt 5.14 target suffix is required for the multi arch packaging. This only affects
android applications using Qt. The suffix can't be applied in QtApplication because
a project using CppApplication and depending on Qt.core won't have it.
Beside using targetName is error prone as the user can change it.
So instead of using targetName for the suffix this patch adds the suffix when
deploying the "android.nativelibrary" for packaging and only for Qt applications.
Fixes: QBS-1608
Change-Id: I0704d5433c8a1d513dfdef71cecbc99ea5458181
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share/qbs/modules')
-rw-r--r-- | share/qbs/modules/Android/sdk/sdk.qbs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/share/qbs/modules/Android/sdk/sdk.qbs b/share/qbs/modules/Android/sdk/sdk.qbs index 563483410..32aae89d9 100644 --- a/share/qbs/modules/Android/sdk/sdk.qbs +++ b/share/qbs/modules/Android/sdk/sdk.qbs @@ -476,7 +476,9 @@ Module { inputs: product.aggregate ? [] : inputTags Artifact { filePath: FileInfo.joinPaths(product.Android.sdk.packageContentsDir, "lib", - input.Android.ndk.abi, input.fileName) + input.Android.ndk.abi, product.Android.sdk._archInName ? + input.baseName + "_" + input.Android.ndk.abi + ".so" : + input.fileName) fileTags: "android.nativelibrary_deployed" } prepare: { |