build script: fix chocolate-doom target

This commit is contained in:
alexey.lysiuk 2020-12-20 10:33:48 +02:00
parent 50ba3a1d1b
commit 75d748df11

View file

@ -520,12 +520,11 @@ class ChocolateDoomTarget(CMakeTarget):
def prepare_source(self, builder: 'Builder'): def prepare_source(self, builder: 'Builder'):
builder.checkout_git('https://github.com/chocolate-doom/chocolate-doom.git') builder.checkout_git('https://github.com/chocolate-doom/chocolate-doom.git')
def initialize(self, builder: 'Builder'): def configure(self, builder: 'Builder'):
super().initialize(builder)
# Get all libraries to link with from SDL2_mixer
self.options['CMAKE_EXE_LINKER_FLAGS'] = builder.run_pkg_config('--libs', 'SDL2_mixer') self.options['CMAKE_EXE_LINKER_FLAGS'] = builder.run_pkg_config('--libs', 'SDL2_mixer')
super().configure(builder)
class CrispyDoomTarget(ChocolateDoomTarget): class CrispyDoomTarget(ChocolateDoomTarget):
def __init__(self, name='crispy-doom'): def __init__(self, name='crispy-doom'):