summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-12 00:38:37 +0800
committerruki <[email protected]>2020-12-12 00:38:37 +0800
commit66dfd3513ac69d6a48bd10c61b82157ca1733dfb (patch)
tree4f48ece44f519d85c8a96caec266f0d069e67172
parent5285277bc2f7197ec625f7286f8fc1105a326271 (diff)
improve install
-rw-r--r--xmake/modules/target/action/install/windows.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/target/action/install/windows.lua b/xmake/modules/target/action/install/windows.lua
index 0ffb2bd82..3ef87a425 100644
--- a/xmake/modules/target/action/install/windows.lua
+++ b/xmake/modules/target/action/install/windows.lua
@@ -74,12 +74,14 @@ function install_binary(target, opt)
-- install the dependent shared/windows (*.dll) target
-- @see https://github.com/xmake-io/xmake/issues/961
for _, dep in ipairs(target:orderdeps()) do
- if dep:targetkind() == "shared" and target:is_plat("windows", "mingw") then
+ if dep:targetkind() == "shared" then
local depfile = dep:targetfile()
if os.isfile(depfile) then
os.vcp(depfile, binarydir)
end
end
+ -- install all shared libraries in packages in all deps
+ _install_shared_for_packages(dep, binarydir)
end
-- install shared libraries for all packages