mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-02-20 18:42:23 +00:00
build script: handle additional options for target installation
This commit is contained in:
parent
3a0831425b
commit
446de1778e
1 changed files with 5 additions and 2 deletions
7
build.py
7
build.py
|
@ -77,15 +77,18 @@ class Target:
|
|||
def post_build(self, builder: 'Builder'):
|
||||
pass
|
||||
|
||||
def install(self, builder: 'Builder'):
|
||||
def install(self, builder: 'Builder', options: 'CommandLineOptions' = None):
|
||||
if builder.xcode:
|
||||
return
|
||||
|
||||
if os.path.exists(self.prefix):
|
||||
shutil.rmtree(self.prefix)
|
||||
|
||||
args = ['make', 'install']
|
||||
args += options and options.to_list() or []
|
||||
|
||||
work_path = builder.build_path + self.src_root
|
||||
subprocess.check_call(['make', 'install'], cwd=work_path)
|
||||
subprocess.check_call(args, cwd=work_path)
|
||||
|
||||
|
||||
class MakeTarget(Target):
|
||||
|
|
Loading…
Reference in a new issue