summaryrefslogtreecommitdiff
path: root/xmake/actions/package/oldpkg/main.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/actions/package/oldpkg/main.lua
parent42be9d4228849def30a728b3933209a1cd90638e (diff)
Remove implib API
Diffstat (limited to 'xmake/actions/package/oldpkg/main.lua')
-rw-r--r--xmake/actions/package/oldpkg/main.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/actions/package/oldpkg/main.lua b/xmake/actions/package/oldpkg/main.lua
index 54a560cb9..394bb7683 100644
--- a/xmake/actions/package/oldpkg/main.lua
+++ b/xmake/actions/package/oldpkg/main.lua
@@ -48,9 +48,11 @@ function _package_library(target)
-- copy *.lib for shared/windows (*.dll) target
-- @see https://github.com/xmake-io/xmake/issues/787
- local target_implib = target:implibfile()
- if target_implib and os.isfile(target_implib) then
- os.vcp(target_implib, format("%s/%s.pkg/$(plat)/$(arch)/lib/$(mode)/", outputdir, targetname))
+ if target:has_implib() then
+ local target_implib = target:artifactfile("lib")
+ if os.isfile(target_implib) then
+ os.vcp(target_implib, format("%s/%s.pkg/$(plat)/$(arch)/lib/$(mode)/", outputdir, targetname))
+ end
end
-- copy headers