summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-06-30 00:51:28 +0800
committerruki <[email protected]>2021-06-30 00:51:28 +0800
commit2e9219f0892b88bbe4bbcc1907385b71fca58024 (patch)
treef5c39dcc91744d8aba7e5ded87b6bc24d9c70fd1 /xmake/core/package/package.lua
parent3be2aa8c6aa6bea890c7ab321628e3e8c0fd4850 (diff)
improve optional deps
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 76084f392..b1afcaed6 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -578,6 +578,16 @@ function _instance:manifest_save()
manifest.configs = self:configs()
manifest.envs = self:envs()
+ -- save enabled link deps
+ if self:linkdeps() then
+ manifest.linkdeps = {}
+ for _, dep in ipairs(self:linkdeps()) do
+ if dep:exists() then
+ table.insert(manifest.linkdeps, dep:name())
+ end
+ end
+ end
+
-- save variables
local vars = {}
local apis = language.apis()