summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/qt/deploy/android.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/xmake/rules/qt/deploy/android.lua b/xmake/rules/qt/deploy/android.lua
index 2677c6a49..c5bc810c4 100644
--- a/xmake/rules/qt/deploy/android.lua
+++ b/xmake/rules/qt/deploy/android.lua
@@ -25,6 +25,7 @@ import("core.base.semver")
import("core.project.config")
import("core.project.depend")
import("core.tool.toolchain")
+import("lib.detect.find_file")
import("utils.progress")
-- escape path
@@ -158,6 +159,19 @@ function main(target, opt)
if os.isexec(qmlimportscanner) then
settings_file:print(' "qml-importscanner-binary": "%s",', _escape_path(qmlimportscanner))
end
+ -- for 6.3.x
+ local rcc = path.join(qt.bindir, "rcc")
+ if not os.isexec(rcc) and qt.bindir_host then
+ rcc = path.join(qt.bindir_host, "rcc")
+ end
+ if os.isexec(rcc) then
+ settings_file:print(' "rcc-binary": "%s",', _escape_path(rcc))
+ end
+ local platformplugin = find_file("libplugins_platforms_qtforandroid_" .. target_arch .. "*", path.join(qt.sdkdir, "plugins", "platforms"))
+ if platformplugin then
+ settings_file:print(' "deployment-dependencies": {"%s":"%s"},', target_arch, _escape_path(platformplugin))
+ end
+
local minsdkversion = target:values("qt.android.minsdkversion")
if minsdkversion then
settings_file:print(' "android-min-sdk-version": "%s",', tostring(minsdkversion))