summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-28 00:46:54 +0800
committerruki <[email protected]>2020-10-28 00:46:54 +0800
commit0a70179e27508b0850f5b6413268ff8bade15342 (patch)
tree822bd4bfbb6c31600f608474735cc498f0f1e4f0
parentea28d8e89bbee5f972c6f8cf019a47e53a823b11 (diff)
add sdk for xrepo
-rw-r--r--xmake/modules/private/xrepo/action/install.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/private/xrepo/action/install.lua b/xmake/modules/private/xrepo/action/install.lua
index a9ff09634..fe83daa41 100644
--- a/xmake/modules/private/xrepo/action/install.lua
+++ b/xmake/modules/private/xrepo/action/install.lua
@@ -42,6 +42,7 @@ function menu_options()
" - xrepo install --configs=\"regex=true,thread=true\" boost"},
{},
{nil, "ndk", "kv", nil, "Set the android NDK directory." },
+ {nil, "sdk", "kv", nil, "Set the SDK directory of cross toolchain." },
{nil, "mingw", "kv", nil, "Set the MingW SDK directory." },
{},
{'f', "force", "k", nil, "Force to reinstall all package dependencies."},
@@ -117,6 +118,9 @@ function _install_packages(packages)
if option.get("ndk") then
table.insert(config_argv, "--ndk=" .. option.get("ndk"))
end
+ if option.get("sdk") then
+ table.insert(config_argv, "--sdk=" .. option.get("sdk"))
+ end
if option.get("mingw") then
table.insert(config_argv, "--mingw=" .. option.get("mingw"))
end