build script: simplify doom64ex target

This commit is contained in:
alexey.lysiuk 2020-12-20 10:32:48 +02:00
parent 6501805c39
commit 50ba3a1d1b

View file

@ -550,13 +550,12 @@ class Doom64EXTarget(CMakeTarget):
def prepare_source(self, builder: 'Builder'): def prepare_source(self, builder: 'Builder'):
builder.checkout_git('https://github.com/svkaiser/Doom64EX.git') builder.checkout_git('https://github.com/svkaiser/Doom64EX.git')
def initialize(self, builder: 'Builder'): def configure(self, builder: 'Builder'):
super().initialize(builder)
self._link_with_sound_libraries(builder)
opts = self.options opts = self.options
opts['ENABLE_SYSTEM_FLUIDSYNTH'] = 'YES' opts['ENABLE_SYSTEM_FLUIDSYNTH'] = 'YES'
opts['CMAKE_EXE_LINKER_FLAGS'] += ' -framework Cocoa -framework ForceFeedback -framework IOKit' opts['CMAKE_EXE_LINKER_FLAGS'] = builder.run_pkg_config('--libs', 'SDL2', 'fluidsynth')
super().configure(builder)
class DevilutionXTarget(CMakeTarget): class DevilutionXTarget(CMakeTarget):