mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 12:01:27 +00:00
build script: add fluidsynth private dependency
This commit is contained in:
parent
d89e22218f
commit
187d3aacd5
1 changed files with 9 additions and 0 deletions
9
build.py
9
build.py
|
@ -712,6 +712,7 @@ class FlacTarget(ConfigureMakeStaticDependencyTarget):
|
|||
class FluidSynthTarget(CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='fluidsynth'):
|
||||
super().__init__(name)
|
||||
self.pkg_proc = self._pkg_proc
|
||||
|
||||
opts = self.options
|
||||
opts['LIB_SUFFIX'] = None
|
||||
|
@ -727,6 +728,14 @@ class FluidSynthTarget(CMakeStaticDependencyTarget):
|
|||
def detect(self, builder: 'Builder') -> bool:
|
||||
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):
|
||||
def __init__(self, name='gettext'):
|
||||
|
|
Loading…
Reference in a new issue