diff options
| author | ruki <[email protected]> | 2025-04-23 12:36:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-23 12:36:52 +0800 |
| commit | 65e9e5055143408e21c711d011c0278fb99d41c3 (patch) | |
| tree | 4ea844f1cb00b62c21cce2e8a432f1e32333334b /xmake/plugins/pack/batchcmds.lua | |
| parent | a5c510f35e861b0ff71a2af0781359bc881ea3af (diff) | |
| parent | 09742602185c22140f754e6f734e8bdfc98100df (diff) | |
Merge pull request #6355 from xmake-io/implib
Improve Implib
Diffstat (limited to 'xmake/plugins/pack/batchcmds.lua')
| -rw-r--r-- | xmake/plugins/pack/batchcmds.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmake/plugins/pack/batchcmds.lua b/xmake/plugins/pack/batchcmds.lua index 9ed38e970..7e7313abe 100644 --- a/xmake/plugins/pack/batchcmds.lua +++ b/xmake/plugins/pack/batchcmds.lua @@ -303,11 +303,10 @@ 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 targetfile = target:targetfile() - local targetfile_lib = path.join(path.directory(targetfile), path.basename(targetfile) .. (target:is_plat("mingw") and ".dll.a" or ".lib")) - if os.isfile(targetfile_lib) then + local implibfile = target:artifactfile("implib") + if implibfile and os.isfile(implibfile) then batchcmds_:mkdir(libdir) - batchcmds_:cp(targetfile_lib, path.join(libdir, path.filename(targetfile_lib))) + batchcmds_:cp(implibfile, path.join(libdir, path.filename(implibfile))) end _install_target_headers(target, batchcmds_, opt) |
