diff options
| author | ruki <[email protected]> | 2026-08-08 18:31:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-08-09 18:25:42 +0800 |
| commit | 53075cd271268c1931a41648a92891c362f2483a (patch) | |
| tree | 663735ec08e713b76fc0f8994d4f1eed80e36152 /xmake/modules | |
| parent | 73a790f3c4810755921350c61cf84d6504a30297 (diff) | |
add addon module
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/install.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua index 7fb54a951..7e60b16b6 100644 --- a/xmake/modules/private/action/require/impl/actions/install.lua +++ b/xmake/modules/private/action/require/impl/actions/install.lua @@ -22,6 +22,7 @@ import("core.base.option") import("core.base.tty") import("core.package.package", {alias = "core_package"}) +import("core.package.addon") import("core.project.target") import("core.project.project") import("core.platform.platform") @@ -499,6 +500,11 @@ function main(package) -- save the package info to the manifest file package:manifest_save() + + -- register this addon, so that xmake can find its payloads, e.g. plugins + if package:is_addon() then + addon.register(package:name(), package:version_str() or "latest") + end installed_now = true end end |
