mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-24 21:01:59 +00:00
build script: add yasm target
This commit is contained in:
parent
af21777683
commit
f1fa0c1f34
2 changed files with 18 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -42,3 +42,7 @@
|
|||
/deps/sndfile/bin/
|
||||
/deps/sndfile/include/sndfile.hh
|
||||
/deps/sndfile/lib/cmake/
|
||||
/deps/yasm/bin/vsyasm
|
||||
/deps/yasm/bin/ytasm
|
||||
/deps/yasm/include/
|
||||
/deps/yasm/lib/
|
||||
|
|
14
build.py
14
build.py
|
@ -1076,6 +1076,19 @@ class VorbisTarget(ConfigureMakeStaticDependencyTarget):
|
|||
return os.path.exists(builder.source_path + 'vorbis.pc.in')
|
||||
|
||||
|
||||
class YasmTarget(ConfigureMakeDependencyTarget):
|
||||
def __init__(self, name='yasm'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, builder: 'Builder'):
|
||||
builder.download_source(
|
||||
'https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz',
|
||||
'3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f')
|
||||
|
||||
def detect(self, builder: 'Builder') -> bool:
|
||||
return os.path.exists(builder.source_path + 'libyasm.h')
|
||||
|
||||
|
||||
class ZlibTarget(ConfigureMakeDependencyTarget):
|
||||
def __init__(self, name='zlib'):
|
||||
super().__init__(name)
|
||||
|
@ -1324,6 +1337,7 @@ class Builder(object):
|
|||
PkgConfigTarget(),
|
||||
SndFileTarget(),
|
||||
VorbisTarget(),
|
||||
YasmTarget(),
|
||||
ZlibTarget(),
|
||||
|
||||
# Special
|
||||
|
|
Loading…
Reference in a new issue