summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/batchcmds.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-10-12 00:58:00 +0800
committerruki <[email protected]>2024-10-12 00:58:00 +0800
commitb9daa8d3f4b2601f3e73b31338cb609aa9768a1a (patch)
tree40e995e08875740f9152767ae22351f691b3d192 /xmake/plugins/pack/batchcmds.lua
parentd8dc18b5edec681d8860b12b6e7d2d89c297037f (diff)
fix install deps
Diffstat (limited to 'xmake/plugins/pack/batchcmds.lua')
-rw-r--r--xmake/plugins/pack/batchcmds.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/plugins/pack/batchcmds.lua b/xmake/plugins/pack/batchcmds.lua
index a881cfb18..bf81ddc43 100644
--- a/xmake/plugins/pack/batchcmds.lua
+++ b/xmake/plugins/pack/batchcmds.lua
@@ -117,6 +117,10 @@ function _get_target_libfiles(target, libfiles, binaryfile, refs)
local dep = target:dep(depname)
if dep then
if dep:is_shared() then
+ local depfile = dep:targetfile()
+ if os.isfile(depfile) then
+ table.insert(libfiles, depfile)
+ end
_get_target_libfiles(dep, libfiles, dep:targetfile(), refs)
elseif dep:is_library() then
_get_target_libfiles(dep, libfiles, binaryfile, refs)