summaryrefslogtreecommitdiff
path: root/xmake/includes
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-09 23:07:50 +0800
committerruki <[email protected]>2023-11-09 23:07:50 +0800
commitd2b88ed47beac7188c95ea67947852378608e8a0 (patch)
tree2d2aaf572ddc45a7cd9c0898faf3a4b560b61275 /xmake/includes
parentbe11a41f594e743743dd34abf52e28adc6219f10 (diff)
improve add scopeapis
Diffstat (limited to 'xmake/includes')
-rw-r--r--xmake/includes/xpack/xmake.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/xmake/includes/xpack/xmake.lua b/xmake/includes/xpack/xmake.lua
index 59c813531..30efaf2ac 100644
--- a/xmake/includes/xpack/xmake.lua
+++ b/xmake/includes/xpack/xmake.lua
@@ -52,9 +52,4 @@ local apis = {
"xpack.on_uninstallcmd"
}
}
-for _, apiname in ipairs(apis.values) do
- interp_add_scopeapis(apiname, {kind = "values"})
-end
-for _, apiname in ipairs(apis.script) do
- interp_add_scopeapis(apiname, {kind = "script"})
-end
+interp_add_scopeapis(apis)