mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 03:51:33 +00:00
build script: enable vpx cross-compilation
This commit is contained in:
parent
4a101b665b
commit
71809fb07e
1 changed files with 9 additions and 0 deletions
9
build.py
9
build.py
|
@ -1500,6 +1500,15 @@ class VpxTarget(ConfigureMakeDependencyTarget):
|
|||
'https://github.com/webmproject/libvpx/archive/v1.9.0.tar.gz',
|
||||
'd279c10e4b9316bf11a570ba16c3d55791e1ad6faa4404c67422eb631782c80a')
|
||||
|
||||
def configure(self, builder: 'Builder'):
|
||||
hosts = {
|
||||
'x86_64': 'x86_64-darwin13-gcc',
|
||||
'arm64': 'arm64-darwin20-gcc',
|
||||
}
|
||||
self.options['--target'] = hosts[builder.architecture()]
|
||||
|
||||
super().configure(builder)
|
||||
|
||||
def detect(self, builder: 'Builder') -> bool:
|
||||
return os.path.exists(builder.source_path + 'vpxstats.h')
|
||||
|
||||
|
|
Loading…
Reference in a new issue