aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2020-10-26 12:53:36 +0100
committerIvan Komissarov <abbapoh@gmail.com>2020-10-26 12:53:36 +0100
commit6bceb1b73945e636087ca5afda431172b02ae0af (patch)
tree8250b53caad6b07692a980f54edfc29559caab75 /share/qbs/modules
parentf4d1c96b9aa73a5c215c7f76551df1ae4e7d9d54 (diff)
parent6668da028ba9a3854a2190191a899efc6bccb2f8 (diff)
Merge branch '1.17'
Diffstat (limited to 'share/qbs/modules')
-rw-r--r--share/qbs/modules/Android/sdk/sdk.qbs20
-rw-r--r--share/qbs/modules/cpp/ios-gcc.qbs8
2 files changed, 27 insertions, 1 deletions
diff --git a/share/qbs/modules/Android/sdk/sdk.qbs b/share/qbs/modules/Android/sdk/sdk.qbs
index 31f3ed465..32aae89d9 100644
--- a/share/qbs/modules/Android/sdk/sdk.qbs
+++ b/share/qbs/modules/Android/sdk/sdk.qbs
@@ -67,6 +67,8 @@ Module {
property int buildToolsVersionMinor: buildToolsVersionParts[1]
property int buildToolsVersionPatch: buildToolsVersionParts[2]
property string platform: sdkProbe.platform
+ property string minimumVersion: "21"
+ property string targetVersion: platformVersion.toString()
property path bundletoolFilePath: bundletoolProbe.filePath
@@ -337,6 +339,20 @@ Module {
}
}
+ var usedSdkElem = rootElem.firstChild("uses-sdk");
+ if (!usedSdkElem || !usedSdkElem.isElement()) {
+ usedSdkElem = manifestData.createElement("uses-sdk");
+ rootElem.appendChild(usedSdkElem);
+ } else {
+ if (!usedSdkElem.isElement())
+ throw "Tag uses-sdk is not an element in '" + input.filePath + "'.";
+ }
+ usedSdkElem.setAttribute("android:minSdkVersion",
+ product.Android.sdk.minimumVersion);
+ usedSdkElem.setAttribute("android:targetSdkVersion",
+ product.Android.sdk.targetVersion);
+
+ rootElem.appendChild(usedSdkElem);
manifestData.save(output.filePath, 4);
}
return cmd;
@@ -460,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: {
diff --git a/share/qbs/modules/cpp/ios-gcc.qbs b/share/qbs/modules/cpp/ios-gcc.qbs
index 0ff99679f..2d73c8125 100644
--- a/share/qbs/modules/cpp/ios-gcc.qbs
+++ b/share/qbs/modules/cpp/ios-gcc.qbs
@@ -39,6 +39,14 @@ DarwinGCC {
condition: qbs.targetOS.contains('ios') &&
qbs.toolchain && qbs.toolchain.contains('gcc')
+ minimumIosVersion: {
+ if (qbs.architecture == "armv7a")
+ return "6.0";
+ // XCode 12 requres version (at least 8.0) to be present in the -target triplet
+ // when compiling for ios-simulator
+ if (xcode.present && Utilities.versionCompare(xcode.version, "12.0") >= 0)
+ return "8.0";
+ }
targetSystem: "ios" + (minimumIosVersion || "")
minimumDarwinVersion: minimumIosVersion