aedi: move fluidsynth target to tier 2

zmusic since version 1.1.11 uses own version of fluidsynth
gzdoom and raze no longer depend on external fluidsynth library
This commit is contained in:
alexey.lysiuk 2023-04-13 17:02:57 +03:00
parent 184a19f742
commit 85cef98d27
3 changed files with 24 additions and 24 deletions

View file

@ -56,7 +56,6 @@ def targets():
Bzip2Target(),
FfiTarget(),
FlacTarget(),
FluidSynthTarget(),
GlibTarget(),
IconvTarget(),
InstPatchTarget(),
@ -78,6 +77,7 @@ def targets():
# Libraries needed for other targets
DumbTarget(),
FluidSynthTarget(),
FmtTarget(),
MadTarget(),
MikmodTarget(),

View file

@ -95,29 +95,6 @@ class FlacTarget(base.CMakeStaticDependencyTarget):
super().configure(state)
class FluidSynthTarget(base.CMakeStaticDependencyTarget):
def __init__(self, name='fluidsynth'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v2.3.2.tar.gz',
'cd610810f30566e28fb98c36501f00446a06fa6bae3dc562c8cd3868fe1c0fc7')
def configure(self, state: BuildState):
opts = state.options
opts['DEFAULT_SOUNDFONT'] = 'default.sf2'
opts['enable-framework'] = 'NO'
opts['enable-readline'] = 'NO'
opts['enable-sdl2'] = 'NO'
super().configure(state)
def post_build(self, state: BuildState):
super().prepare_source(state)
self.keep_module_target(state, 'FluidSynth::libfluidsynth')
class GettextTarget(base.ConfigureMakeStaticDependencyTarget):
def __init__(self, name='gettext'):
super().__init__(name)

View file

@ -48,6 +48,29 @@ class DumbTarget(base.CMakeStaticDependencyTarget):
return 'Libs: -L${libdir} -ldumb\n' if line.startswith('Libs:') else line
class FluidSynthTarget(base.CMakeStaticDependencyTarget):
def __init__(self, name='fluidsynth'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v2.3.2.tar.gz',
'cd610810f30566e28fb98c36501f00446a06fa6bae3dc562c8cd3868fe1c0fc7')
def configure(self, state: BuildState):
opts = state.options
opts['DEFAULT_SOUNDFONT'] = 'default.sf2'
opts['enable-framework'] = 'NO'
opts['enable-readline'] = 'NO'
opts['enable-sdl2'] = 'NO'
super().configure(state)
def post_build(self, state: BuildState):
super().prepare_source(state)
self.keep_module_target(state, 'FluidSynth::libfluidsynth')
class FmtTarget(base.CMakeStaticDependencyTarget):
def __init__(self, name='fmt'):
super().__init__(name)