summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-17 23:04:46 +0800
committerruki <[email protected]>2022-10-17 23:04:46 +0800
commit2e160359e659e9760f9c2c2c9a5ea8537dcd56c8 (patch)
tree7c306798c204c623203c8ea0c35365ebeaac1962 /xmake/modules/private/action/require/impl/package.lua
parentcd0b3f31b288a0676099218677b03456e266fd9f (diff)
load components
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
-rw-r--r--xmake/modules/private/action/require/impl/package.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index 0608a3960..450096c1b 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -832,6 +832,11 @@ function _load_package(packagename, requireinfo, opt)
on_load(package)
end
+ -- load all components
+ for _, component in pairs(package:components()) do
+ component:_load()
+ end
+
-- load environments from the manifest to enable the environments of on_install()
package:envs_load()