mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-29 07:02:27 +00:00
build script: add ffi target
This commit is contained in:
parent
82236aa071
commit
ee05a2dc12
1 changed files with 14 additions and 0 deletions
14
build.py
14
build.py
|
@ -624,6 +624,19 @@ class Bzip2Target(MakeTarget):
|
||||||
self.install(builder, self.options)
|
self.install(builder, self.options)
|
||||||
|
|
||||||
|
|
||||||
|
class FfiTarget(ConfigureMakeStaticDependencyTarget):
|
||||||
|
def __init__(self, name='ffi'):
|
||||||
|
super().__init__(name)
|
||||||
|
|
||||||
|
def prepare_source(self, builder: 'Builder'):
|
||||||
|
builder.download_source(
|
||||||
|
'https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz',
|
||||||
|
'72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056')
|
||||||
|
|
||||||
|
def detect(self, builder: 'Builder') -> bool:
|
||||||
|
return os.path.exists(builder.source_path + 'libffi.pc.in')
|
||||||
|
|
||||||
|
|
||||||
class FlacTarget(ConfigureMakeStaticDependencyTarget):
|
class FlacTarget(ConfigureMakeStaticDependencyTarget):
|
||||||
def __init__(self, name='flac'):
|
def __init__(self, name='flac'):
|
||||||
super().__init__(name)
|
super().__init__(name)
|
||||||
|
@ -974,6 +987,7 @@ class Builder(object):
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
Bzip2Target(),
|
Bzip2Target(),
|
||||||
|
FfiTarget(),
|
||||||
FlacTarget(),
|
FlacTarget(),
|
||||||
JpegTurboTarget(),
|
JpegTurboTarget(),
|
||||||
Mpg123Target(),
|
Mpg123Target(),
|
||||||
|
|
Loading…
Reference in a new issue