diff options
| author | ruki <[email protected]> | 2015-06-12 13:54:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-12 13:54:35 +0800 |
| commit | 3c4c1616be193d5146e2ddd9f8dcc706baf1f8f5 (patch) | |
| tree | 080d3a77b57526d71d154e7aa0465b9d70390821 /xmake/scripts/platform/android/prober.lua | |
| parent | 5dbb7213dae2568a85bd4cbc7fcfeefc8a908fc9 (diff) | |
add mingw platform
Diffstat (limited to 'xmake/scripts/platform/android/prober.lua')
| -rw-r--r-- | xmake/scripts/platform/android/prober.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/xmake/scripts/platform/android/prober.lua b/xmake/scripts/platform/android/prober.lua index 45f4c23ea..756dcec50 100644 --- a/xmake/scripts/platform/android/prober.lua +++ b/xmake/scripts/platform/android/prober.lua @@ -83,13 +83,19 @@ function prober._probe_ndk_sdkver(configs) end -- probe ok? update it - if ndk_sdkver > 0 then + if type(ndk_sdkver) == "number" and ndk_sdkver > 0 then + + -- save it configs.set("ndk_sdkver", ndk_sdkver) configs.set("__ndk_sdkdir", string.format("%s/platforms/android-%d", ndk, ndk_sdkver)) - end - -- trace - utils.verbose("checking for the SDK version of NDK ... %s", string.format("android-%d", ndk_sdkver)) + -- trace + utils.verbose("checking for the SDK version of NDK ... %s", string.format("android-%d", ndk_sdkver)) + else + + -- trace + utils.verbose("checking for the SDK version of NDK ... no") + end -- ok return true |
