diff options
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 6 |
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"} |
