mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-28 22:52:17 +00:00
build script: copy files to root output directory
This commit is contained in:
parent
f630fdb9df
commit
eeaa85f758
1 changed files with 2 additions and 1 deletions
3
build.py
3
build.py
|
@ -493,7 +493,8 @@ class CMakeOutputTarget(CMakeTarget):
|
|||
|
||||
for output in self.outputs:
|
||||
src = builder.build_path + output
|
||||
dst = self.prefix + os.sep + output
|
||||
dst_sep_pos = output.rfind(os.sep)
|
||||
dst = self.prefix + os.sep + (output if dst_sep_pos == -1 else output[dst_sep_pos + 1:])
|
||||
|
||||
copy_func = shutil.copytree if os.path.isdir(src) else shutil.copy
|
||||
copy_func(src, dst)
|
||||
|
|
Loading…
Reference in a new issue