mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-26 13:50:50 +00:00
build script: add vorbis target
This commit is contained in:
parent
79224fa6a1
commit
47e053fb47
1 changed files with 14 additions and 0 deletions
14
build.py
14
build.py
|
@ -640,6 +640,19 @@ class OggTarget(ConfigureMakeStaticDependencyTarget):
|
||||||
return os.path.exists(builder.source_path + 'ogg.pc.in')
|
return os.path.exists(builder.source_path + 'ogg.pc.in')
|
||||||
|
|
||||||
|
|
||||||
|
class VorbisTarget(ConfigureMakeStaticDependencyTarget):
|
||||||
|
def __init__(self, name='vorbis'):
|
||||||
|
super().__init__(name)
|
||||||
|
|
||||||
|
def prepare_source(self, builder: 'Builder'):
|
||||||
|
builder.download_source(
|
||||||
|
'https://downloads.xiph.org/releases/vorbis/libvorbis-1.3.7.tar.xz',
|
||||||
|
'b33cc4934322bcbf6efcbacf49e3ca01aadbea4114ec9589d1b1e9d20f72954b')
|
||||||
|
|
||||||
|
def detect(self, builder: 'Builder') -> bool:
|
||||||
|
return os.path.exists(builder.source_path + 'vorbis.pc.in')
|
||||||
|
|
||||||
|
|
||||||
# Case insensitive dictionary class from
|
# Case insensitive dictionary class from
|
||||||
# https://github.com/psf/requests/blob/v2.25.0/requests/structures.py
|
# https://github.com/psf/requests/blob/v2.25.0/requests/structures.py
|
||||||
|
|
||||||
|
@ -824,6 +837,7 @@ class Builder(object):
|
||||||
JpegTurboTarget(),
|
JpegTurboTarget(),
|
||||||
NasmTarget(),
|
NasmTarget(),
|
||||||
OggTarget(),
|
OggTarget(),
|
||||||
|
VorbisTarget(),
|
||||||
)
|
)
|
||||||
|
|
||||||
self.targets = CaseInsensitiveDict({target.name: target for target in targets})
|
self.targets = CaseInsensitiveDict({target.name: target for target in targets})
|
||||||
|
|
Loading…
Reference in a new issue