mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 05:11:49 +00:00
build script: update openal .pc file
add link with required frameworks remove useless private libs with full paths to frameworks
This commit is contained in:
parent
bf75756d5d
commit
2c082c21ec
1 changed files with 11 additions and 1 deletions
12
build.py
12
build.py
|
@ -867,7 +867,8 @@ class NinjaTarget(MakeTarget):
|
|||
class OpenALTarget(CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='openal'):
|
||||
super().__init__(name)
|
||||
|
||||
self.pkg_libs = {'openal': '-framework ApplicationServices -framework AudioToolbox '
|
||||
'-framework AudioUnit -framework CoreAudio'}
|
||||
opts = self.options
|
||||
opts['ALSOFT_EXAMPLES'] = 'NO'
|
||||
opts['ALSOFT_UTILS'] = 'NO'
|
||||
|
@ -880,6 +881,15 @@ class OpenALTarget(CMakeStaticDependencyTarget):
|
|||
def detect(self, builder: 'Builder') -> bool:
|
||||
return os.path.exists(builder.source_path + 'openal.pc.in')
|
||||
|
||||
def post_build(self, builder: 'Builder'):
|
||||
super().post_build(builder)
|
||||
|
||||
def remote_private_libs(line: str):
|
||||
return None if line.startswith('Libs.private:') else line
|
||||
|
||||
pc_file = builder.deps_path + self.name + os.sep + 'lib/pkgconfig/openal.pc'
|
||||
Target.update_pc_file(pc_file, processor=remote_private_libs)
|
||||
|
||||
|
||||
class OpusTarget(ConfigureMakeStaticDependencyTarget):
|
||||
def __init__(self, name='opus'):
|
||||
|
|
Loading…
Reference in a new issue