From 69b9445166ac215b6c40970895d6b8600a55846d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 18 Apr 2019 22:59:52 +0800 Subject: improve qt rule for android --- xmake/modules/detect/sdks/find_qt.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'xmake/modules/detect') diff --git a/xmake/modules/detect/sdks/find_qt.lua b/xmake/modules/detect/sdks/find_qt.lua index 6f7b901b2..885198575 100644 --- a/xmake/modules/detect/sdks/find_qt.lua +++ b/xmake/modules/detect/sdks/find_qt.lua @@ -46,7 +46,15 @@ function _find_sdkdir(sdkdir, sdkver) elseif is_plat("mingw") then table.insert(subdirs, path.join(sdkver or "*", is_arch("x86_64") and "mingw*_64" or "mingw*_32", "bin")) elseif is_plat("android") then - table.insert(subdirs, path.join(sdkver or "*", "android_*", "bin")) + local subdir = "android_*" + if is_arch("arm64-v8a") then + subdir = "android_arm64_v8a" + elseif is_arch("armv7-a") then + subdir = "android_armv7" + elseif is_arch("i386") then + subdir = "android_x86" + end + table.insert(subdirs, path.join(sdkver or "*", subdir, "bin")) end table.insert(subdirs, path.join(sdkver or "*", "*", "bin")) table.insert(subdirs, path.join("*", "bin")) -- cgit v1.3.1