summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/batchcmds.lua
diff options
context:
space:
mode:
authorSineStriker <[email protected]>2025-04-20 23:24:47 +0800
committerruki <[email protected]>2025-04-23 11:30:30 +0800
commit93dda3ce130c3a71a3d8a7bb4776af6e82bcf1c5 (patch)
tree492dfbb42f2c6d0f11e69624ee416ba7bf6e93ce /xmake/plugins/pack/batchcmds.lua
parent42be9d4228849def30a728b3933209a1cd90638e (diff)
Remove implib API
Diffstat (limited to 'xmake/plugins/pack/batchcmds.lua')
-rw-r--r--xmake/plugins/pack/batchcmds.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/xmake/plugins/pack/batchcmds.lua b/xmake/plugins/pack/batchcmds.lua
index 70d8e2f5f..4128a2cd4 100644
--- a/xmake/plugins/pack/batchcmds.lua
+++ b/xmake/plugins/pack/batchcmds.lua
@@ -303,10 +303,13 @@ function _on_target_installcmd_shared(target, batchcmds_, opt)
-- install *.lib for shared/windows (*.dll) target
-- @see https://github.com/xmake-io/xmake/issues/714
- local target_implib = target:implibfile()
- if target_implib and os.isfile(target_implib) then
- batchcmds_:mkdir(libdir)
- batchcmds_:cp(target_implib, path.join(libdir, path.filename(target_implib)))
+
+ if target:has_implib() then
+ local target_implib = target:artifactfile("lib")
+ if os.isfile(target_implib) then
+ batchcmds_:mkdir(libdir)
+ batchcmds_:cp(target_implib, path.join(libdir, path.filename(target_implib)))
+ end
end
_install_target_headers(target, batchcmds_, opt)