summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-16 23:20:01 +0800
committerruki <[email protected]>2020-11-16 23:20:01 +0800
commit65c33b62b77dd00cde68792c975b4b7c1394563e (patch)
treeee6954c70d566f21486894480035d066a2266907 /xmake/modules/package/tools/xmake.lua
parent6079e8c0b93593745b8b0bbe13510a3316f5e57c (diff)
pass local repo to xmake/tools
Diffstat (limited to 'xmake/modules/package/tools/xmake.lua')
-rw-r--r--xmake/modules/package/tools/xmake.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua
index 381f67c23..3bca4246b 100644
--- a/xmake/modules/package/tools/xmake.lua
+++ b/xmake/modules/package/tools/xmake.lua
@@ -20,6 +20,7 @@
-- imports
import("core.base.option")
+import("core.package.repository")
-- get configs
function _get_configs(package, configs)
@@ -72,6 +73,11 @@ end
-- install package
function install(package, configs)
+ -- pass local repositories
+ for _, repo in ipairs(repository.repositories()) do
+ os.vrunv("xmake", {"repo", "--add", repo:name(), repo:url(), repo:branch()})
+ end
+
-- inherit builtin configs
local argv = _init_argv("f", "-y", "-c")
local names = {"plat", "arch", "ndk", "ndk_sdkver", "vs", "mingw", "sdk", "bin", "cross", "ld", "sh", "ar", "cc", "cxx", "mm", "mxx"}