mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-01-21 07:30:47 +00:00
build script: add nblood target
This commit is contained in:
parent
0e2248ba7f
commit
95b45db335
1 changed files with 16 additions and 0 deletions
16
build.py
16
build.py
|
@ -545,6 +545,21 @@ class DevilutionXTarget(CMakeTarget):
|
||||||
super().configure(builder)
|
super().configure(builder)
|
||||||
|
|
||||||
|
|
||||||
|
class NBloodTarget(MakeTarget):
|
||||||
|
def __init__(self, name='nblood'):
|
||||||
|
super().__init__(name)
|
||||||
|
self.tool = 'gmake'
|
||||||
|
|
||||||
|
for target in ('duke3d', 'sw', 'blood', 'rr', 'exhumed', 'tools'):
|
||||||
|
self.options[target] = None
|
||||||
|
|
||||||
|
def prepare_source(self, builder: 'Builder'):
|
||||||
|
builder.checkout_git('https://github.com/nukeykt/NBlood.git')
|
||||||
|
|
||||||
|
def detect(self, builder: 'Builder') -> bool:
|
||||||
|
return os.path.exists(builder.source_path + os.sep + 'nblood.pk3')
|
||||||
|
|
||||||
|
|
||||||
class QuakespasmTarget(MakeTarget):
|
class QuakespasmTarget(MakeTarget):
|
||||||
def __init__(self, name='quakespasm'):
|
def __init__(self, name='quakespasm'):
|
||||||
super().__init__(name)
|
super().__init__(name)
|
||||||
|
@ -1675,6 +1690,7 @@ class Builder(object):
|
||||||
DoomRetroTarget(),
|
DoomRetroTarget(),
|
||||||
Doom64EXTarget(),
|
Doom64EXTarget(),
|
||||||
DevilutionXTarget(),
|
DevilutionXTarget(),
|
||||||
|
NBloodTarget(),
|
||||||
QuakespasmTarget(),
|
QuakespasmTarget(),
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
Loading…
Reference in a new issue