diff options
| author | ruki <[email protected]> | 2025-03-14 23:26:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-03-14 23:26:36 +0800 |
| commit | 153d72243beeccbf7b5d9056413548f0d6b7b3b9 (patch) | |
| tree | 6e89618766706e9b828f5fddec4a2dc9e5bca4d0 | |
| parent | b20b04337ec832365b1e23cb1f7aeb17dac6cfa0 (diff) | |
improve to find ndk
| -rw-r--r-- | xmake/modules/detect/sdks/find_ndk.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/detect/sdks/find_ndk.lua b/xmake/modules/detect/sdks/find_ndk.lua index 2523eeb5e..0a13bff66 100644 --- a/xmake/modules/detect/sdks/find_ndk.lua +++ b/xmake/modules/detect/sdks/find_ndk.lua @@ -59,6 +59,9 @@ function _find_ndkdir(sdkdir) if not sdkdir and is_host("macosx") then sdkdir = find_directory("NDK", "/Applications/AndroidNDK*.app/Contents") if not sdkdir then + sdkdir = find_directory("*", "~/Library/Android/sdk/ndk") + end + if not sdkdir then sdkdir = "~/Library/Android/sdk/ndk-bundle" end end |
