diff options
| author | ruki <[email protected]> | 2024-06-08 00:43:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-06-08 00:43:27 +0800 |
| commit | c0ce25f5eaf880310fb7446a01b1ed76779b0c0d (patch) | |
| tree | 51c91ea7052505fda7ce9f76c877c25f624b15e2 | |
| parent | e3e40cf7b284a8d9d36d47bc16d36c1156e71ba3 (diff) | |
add language apis
| -rw-r--r-- | xmake/plugins/show/lists/apis.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/plugins/show/lists/apis.lua b/xmake/plugins/show/lists/apis.lua index 6e74bb6a8..2b99b1e71 100644 --- a/xmake/plugins/show/lists/apis.lua +++ b/xmake/plugins/show/lists/apis.lua @@ -25,6 +25,7 @@ import("core.project.target") import("core.project.project") import("core.project.option") import("core.package.package") +import("core.language.language") import("core.sandbox.sandbox") import("core.sandbox.module") import("core.tool.toolchain") @@ -53,6 +54,17 @@ function description_target_scope_apis() return result end +-- get language description scope apis +function description_language_scope_apis() + local result = {} + for _, names in pairs(language.apis()) do + for _, name in ipairs(names) do + table.insert(result, name) + end + end + return result +end + -- get option description scope apis function description_option_scope_apis() local result = {} @@ -105,6 +117,7 @@ function description_scope_apis() local result = {} table.join2(result, description_target_scope_apis()) table.join2(result, description_option_scope_apis()) + table.join2(result, description_language_scope_apis()) table.join2(result, description_rule_scope_apis()) table.join2(result, description_package_scope_apis()) table.join2(result, description_toolchain_scope_apis()) |
