summaryrefslogtreecommitdiff
path: root/xmake/core/project/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-19 22:36:19 +0800
committerruki <[email protected]>2022-10-19 22:36:19 +0800
commitf55de1eb50c29fc58bbaef1bc387035a8deabe6e (patch)
treebdc81e4eca0e93c5c5814c42d8468814106acf3f /xmake/core/project/package.lua
parent0d3dc74e78b1d93de70c1a5e053afc9099e89029 (diff)
support default components
Diffstat (limited to 'xmake/core/project/package.lua')
-rw-r--r--xmake/core/project/package.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/xmake/core/project/package.lua b/xmake/core/project/package.lua
index 4917e7c20..d1464fa4d 100644
--- a/xmake/core/project/package.lua
+++ b/xmake/core/project/package.lua
@@ -115,6 +115,21 @@ function _instance:libraryfiles()
return self:get("libfiles")
end
+-- get components
+function _instance:components()
+ return self:get("components")
+end
+
+-- get components list with link order
+function _instance:components_list()
+ return self:get("__components_list")
+end
+
+-- get default components
+function _instance:components_default()
+ return self:get("__components_default")
+end
+
-- get the extra info from the given name
function _instance:extra(name)
local extrainfo = self:extrainfo()