build script: add nblood target

This commit is contained in:
alexey.lysiuk 2020-12-22 10:53:44 +02:00
parent 0e2248ba7f
commit 95b45db335

View file

@ -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