diff options
| -rw-r--r-- | xmake/modules/private/xrepo/action/install.lua | 4 |
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 |
