mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 03:51:33 +00:00
build script: add mad target
This commit is contained in:
parent
606c338a66
commit
1fdf93d48b
1 changed files with 14 additions and 0 deletions
14
build.py
14
build.py
|
@ -838,6 +838,19 @@ class JpegTurboTarget(CMakeStaticDependencyTarget):
|
|||
return os.path.exists(builder.source_path + 'turbojpeg.h')
|
||||
|
||||
|
||||
class MadTarget(ConfigureMakeStaticDependencyTarget):
|
||||
def __init__(self, name='mad'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, builder: 'Builder'):
|
||||
builder.download_source(
|
||||
'https://downloads.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz',
|
||||
'bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690')
|
||||
|
||||
def detect(self, builder: 'Builder') -> bool:
|
||||
return os.path.exists(builder.source_path + 'mad.h')
|
||||
|
||||
|
||||
class MesonTarget(Target):
|
||||
def __init__(self, name='meson'):
|
||||
super().__init__(name)
|
||||
|
@ -1450,6 +1463,7 @@ class Builder(object):
|
|||
InstPatchTarget(),
|
||||
IntlTarget(),
|
||||
JpegTurboTarget(),
|
||||
MadTarget(),
|
||||
MesonTarget(),
|
||||
MoltenVKTarget(),
|
||||
Mpg123Target(),
|
||||
|
|
Loading…
Reference in a new issue