diff options
| author | ruki <[email protected]> | 2024-11-23 18:57:06 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-11-23 18:57:06 +0800 |
| commit | 63c60dea8cd4333c64874aa87fc7a7f47fd3bc3c (patch) | |
| tree | 87e31acfc2c3675042ecb692cb0df0bb4bfbb0e3 /xmake/plugins/pack/batchcmds.lua | |
| parent | 8913dcb81aedf7621fa7323a4f047792b0ba31c6 (diff) | |
| parent | a14bc8f69e6a25905cea3c7ca72774cccf34e074 (diff) | |
Merge pull request #5876 from jinke18/dev-1123-2
add symlink support for installfiles when using xpack
Diffstat (limited to 'xmake/plugins/pack/batchcmds.lua')
| -rw-r--r-- | xmake/plugins/pack/batchcmds.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/plugins/pack/batchcmds.lua b/xmake/plugins/pack/batchcmds.lua index 6b249b1a0..4174b907e 100644 --- a/xmake/plugins/pack/batchcmds.lua +++ b/xmake/plugins/pack/batchcmds.lua @@ -183,14 +183,14 @@ function _install_target_files(target, batchcmds_, opt) local srcfiles, dstfiles = target:installfiles(_get_target_installdir(package, target)) if srcfiles and dstfiles then for idx, srcfile in ipairs(srcfiles) do - batchcmds_:cp(srcfile, dstfiles[idx]) + batchcmds_:cp(srcfile, dstfiles[idx], {symlink = true}) end end for _, dep in ipairs(target:orderdeps()) do local srcfiles, dstfiles = dep:installfiles(_get_target_installdir(package, dep), {interface = true}) if srcfiles and dstfiles then for idx, srcfile in ipairs(srcfiles) do - batchcmds_:cp(srcfile, dstfiles[idx]) + batchcmds_:cp(srcfile, dstfiles[idx], {symlink = true}) end end end @@ -564,7 +564,7 @@ end function _on_installcmd(package, batchcmds_) local srcfiles, dstfiles = package:installfiles() for idx, srcfile in ipairs(srcfiles) do - batchcmds_:cp(srcfile, dstfiles[idx]) + batchcmds_:cp(srcfile, dstfiles[idx], {symlink = true}) end for _, target in ipairs(package:targets()) do _get_target_installcmds(target, batchcmds_, {package = package}) |
