diff options
| author | jinke18 <[email protected]> | 2024-11-23 12:23:18 +0800 |
|---|---|---|
| committer | jinke18 <[email protected]> | 2024-11-23 12:23:18 +0800 |
| commit | 27fc023a31d1472bdbdb9f4939415c5875b9481b (patch) | |
| tree | bf8b87bf72a32783b16233597fe674149cf450b5 /xmake/plugins/pack/batchcmds.lua | |
| parent | 9b75cbbca9898bf38651bef1feb8caaaf56aaf7d (diff) | |
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..1fa0704c7 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}) |
