build script: add fluidsynth private dependency

This commit is contained in:
alexey.lysiuk 2020-12-12 15:17:00 +02:00
parent d89e22218f
commit 187d3aacd5

View file

@ -712,6 +712,7 @@ class FlacTarget(ConfigureMakeStaticDependencyTarget):
class FluidSynthTarget(CMakeStaticDependencyTarget): class FluidSynthTarget(CMakeStaticDependencyTarget):
def __init__(self, name='fluidsynth'): def __init__(self, name='fluidsynth'):
super().__init__(name) super().__init__(name)
self.pkg_proc = self._pkg_proc
opts = self.options opts = self.options
opts['LIB_SUFFIX'] = None opts['LIB_SUFFIX'] = None
@ -727,6 +728,14 @@ class FluidSynthTarget(CMakeStaticDependencyTarget):
def detect(self, builder: 'Builder') -> bool: def detect(self, builder: 'Builder') -> bool:
return os.path.exists(builder.source_path + 'fluidsynth.pc.in') return os.path.exists(builder.source_path + 'fluidsynth.pc.in')
@staticmethod
def _pkg_proc(_, line: str):
if line.startswith('Version:'):
# Add instpatch as private dependency which pulls all necessary libraries
return line + 'Requires.private: libinstpatch-1.0' + os.linesep
return line
class GettextTarget(ConfigureMakeStaticDependencyTarget): class GettextTarget(ConfigureMakeStaticDependencyTarget):
def __init__(self, name='gettext'): def __init__(self, name='gettext'):