mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 13:21:05 +00:00
build script: configure cross-compilation of ninja
This commit is contained in:
parent
081ab62c46
commit
14e94616e4
1 changed files with 7 additions and 2 deletions
9
build.py
9
build.py
|
@ -1198,8 +1198,13 @@ class NinjaTarget(MakeTarget):
|
|||
return os.path.exists(builder.source_path + 'src/ninja.cc')
|
||||
|
||||
def build(self, builder: 'Builder'):
|
||||
args = ('python3', './configure.py', '--bootstrap', '--verbose')
|
||||
subprocess.check_call(args, cwd=builder.build_path)
|
||||
cmdlines = (
|
||||
('python3', './configure.py', '--verbose'),
|
||||
('ninja', '--verbose'),
|
||||
)
|
||||
|
||||
for args in cmdlines:
|
||||
subprocess.run(args, check=True, cwd=builder.build_path, env=self.environment)
|
||||
|
||||
def post_build(self, builder: 'Builder'):
|
||||
self.copy_to_bin(builder)
|
||||
|
|
Loading…
Reference in a new issue