mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 13:21:05 +00:00
build script: add vpx target
This commit is contained in:
parent
3a101e9cb1
commit
f1016e12ee
1 changed files with 18 additions and 0 deletions
18
build.py
18
build.py
|
@ -1076,6 +1076,23 @@ class VorbisTarget(ConfigureMakeStaticDependencyTarget):
|
||||||
return os.path.exists(builder.source_path + 'vorbis.pc.in')
|
return os.path.exists(builder.source_path + 'vorbis.pc.in')
|
||||||
|
|
||||||
|
|
||||||
|
class VpxTarget(ConfigureMakeDependencyTarget):
|
||||||
|
def __init__(self, name='vpx'):
|
||||||
|
super().__init__(name)
|
||||||
|
|
||||||
|
opts = self.options
|
||||||
|
opts['--disable-examples'] = None
|
||||||
|
opts['--disable-unit-tests'] = None
|
||||||
|
|
||||||
|
def prepare_source(self, builder: 'Builder'):
|
||||||
|
builder.download_source(
|
||||||
|
'https://github.com/webmproject/libvpx/archive/v1.9.0.tar.gz',
|
||||||
|
'd279c10e4b9316bf11a570ba16c3d55791e1ad6faa4404c67422eb631782c80a')
|
||||||
|
|
||||||
|
def detect(self, builder: 'Builder') -> bool:
|
||||||
|
return os.path.exists(builder.source_path + 'vpxstats.h')
|
||||||
|
|
||||||
|
|
||||||
class YasmTarget(ConfigureMakeDependencyTarget):
|
class YasmTarget(ConfigureMakeDependencyTarget):
|
||||||
def __init__(self, name='yasm'):
|
def __init__(self, name='yasm'):
|
||||||
super().__init__(name)
|
super().__init__(name)
|
||||||
|
@ -1337,6 +1354,7 @@ class Builder(object):
|
||||||
PkgConfigTarget(),
|
PkgConfigTarget(),
|
||||||
SndFileTarget(),
|
SndFileTarget(),
|
||||||
VorbisTarget(),
|
VorbisTarget(),
|
||||||
|
VpxTarget(),
|
||||||
YasmTarget(),
|
YasmTarget(),
|
||||||
ZlibTarget(),
|
ZlibTarget(),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue