From b9daa8d3f4b2601f3e73b31338cb609aa9768a1a Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 12 Oct 2024 00:58:00 +0800 Subject: fix install deps --- xmake/plugins/pack/batchcmds.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmake/plugins/pack/batchcmds.lua') 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) -- cgit v1.3.1