summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-01-04 23:55:12 +0800
committerruki <[email protected]>2022-01-04 23:55:12 +0800
commit0d3d8764a0c676b6e0cf18dbb459680da5c29e05 (patch)
treed0883001b00b8472b6615a7787faf8bda1298a41
parentc3c7109c9a4a8b836af5f147ea38fb10b597ec70 (diff)
improve deploy json
-rw-r--r--xmake/rules/qt/deploy/android.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/xmake/rules/qt/deploy/android.lua b/xmake/rules/qt/deploy/android.lua
index e51723d2c..326addbc1 100644
--- a/xmake/rules/qt/deploy/android.lua
+++ b/xmake/rules/qt/deploy/android.lua
@@ -158,9 +158,14 @@ function main(target, opt)
if os.isexec(qmlimportscanner) then
settings_file:print(' "qml-importscanner-binary": "%s",', qmlimportscanner)
end
- -- TODO
- -- settings_file:print(' "android-min-sdk-version": "23",')
- -- settings_file:print(' "android-target-sdk-version": "30",')
+ local minsdkversion = target:values("qt.android.minsdkversion")
+ if minsdkversion then
+ settings_file:print(' "android-min-sdk-version": "%s",', tostring(minsdkversion))
+ end
+ local targetsdkversion = target:values("qt.android.targetsdkversion")
+ if targetsdkversion then
+ settings_file:print(' "android-target-sdk-version": "%s",', tostring(targetsdkversion))
+ end
settings_file:print(' "useLLVM": true,')
if qt_sdkver and qt_sdkver:ge("5.14") then
-- @see https://codereview.qt-project.org/c/qt-creator/qt-creator/+/287145