mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-02-16 16:41:42 +00:00
build script: remove private libraries from .pc files
This commit is contained in:
parent
5ad4b073ed
commit
2cf7d7956c
1 changed files with 3 additions and 9 deletions
12
build.py
12
build.py
|
@ -159,6 +159,9 @@ class Target(BaseTarget):
|
|||
# Append extra libraries to link with
|
||||
if extra_libs not in line:
|
||||
patched_line = line.rstrip('\n') + ' ' + extra_libs + os.linesep
|
||||
elif line.startswith('Libs.private:'):
|
||||
# Remove private libraries
|
||||
continue
|
||||
|
||||
if processor:
|
||||
patched_line = processor(patched_line)
|
||||
|
@ -881,15 +884,6 @@ 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