From 95b45db335bb31e97f76b4fb844f120c415ab9c4 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 22 Dec 2020 10:53:44 +0200 Subject: [PATCH] build script: add nblood target --- build.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build.py b/build.py index 50bd4eec..37c66307 100755 --- a/build.py +++ b/build.py @@ -545,6 +545,21 @@ class DevilutionXTarget(CMakeTarget): 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): def __init__(self, name='quakespasm'): super().__init__(name) @@ -1675,6 +1690,7 @@ class Builder(object): DoomRetroTarget(), Doom64EXTarget(), DevilutionXTarget(), + NBloodTarget(), QuakespasmTarget(), # Dependencies