Skip to content

Commit

Permalink
add policy for xrepo/install
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 16, 2024
1 parent f9196df commit 7bbe3c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xmake/modules/private/xrepo/action/install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function menu_options()
{nil, "includes", "kv", nil, "Includes extra lua configuration files.",
"e.g.",
" - xrepo install -p cross --toolchain=mytool --includes='toolchain1.lua" .. path.envsep() .. "toolchain2.lua'"},
{nil, "policies", "kv", nil, "Set the policies." },
{category = "Visual Studio SDK Configuration" },
{nil, "vs", "kv", nil, "The Microsoft Visual Studio"
, " e.g. --vs=2017" },
Expand Down Expand Up @@ -178,6 +179,10 @@ function _install_packages(packages)
table.insert(config_argv, "-k")
table.insert(config_argv, kind)
end
local policies = option.get("policies")
if policies then
table.insert(config_argv, "--policies=" .. policies)
end
-- for android
if option.get("ndk") then
table.insert(config_argv, "--ndk=" .. option.get("ndk"))
Expand Down

0 comments on commit 7bbe3c9

Please sign in to comment.