mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 14:41:43 +00:00
aedi: rename function to update config shell script
This commit is contained in:
parent
707fd40732
commit
02f4bd971f
2 changed files with 4 additions and 4 deletions
|
@ -139,7 +139,7 @@ class BuildTarget(Target):
|
|||
f.writelines(patched_content)
|
||||
|
||||
@staticmethod
|
||||
def update_prefix_shell_script(path: str, processor: typing.Callable = None):
|
||||
def update_config_script(path: str, processor: typing.Callable = None):
|
||||
prefix = 'prefix='
|
||||
|
||||
def update_prefix(line: str) -> str:
|
||||
|
|
|
@ -111,7 +111,7 @@ class MikmodTarget(ConfigureMakeStaticDependencyTarget):
|
|||
|
||||
def post_build(self, state: BuildState):
|
||||
super().post_build(state)
|
||||
self.update_prefix_shell_script(state.install_path + '/bin/libmikmod-config')
|
||||
self.update_config_script(state.install_path + '/bin/libmikmod-config')
|
||||
|
||||
|
||||
class ModPlugTarget(ConfigureMakeStaticDependencyTarget):
|
||||
|
@ -164,7 +164,7 @@ class PngTarget(ConfigureMakeStaticDependencyTarget):
|
|||
|
||||
def post_build(self, state: BuildState):
|
||||
super().post_build(state)
|
||||
self.update_prefix_shell_script(state.install_path + '/bin/libpng16-config')
|
||||
self.update_config_script(state.install_path + '/bin/libpng16-config')
|
||||
|
||||
|
||||
class PortMidiTarget(CMakeTarget):
|
||||
|
@ -243,7 +243,7 @@ class Sdl2Target(CMakeStaticDependencyTarget):
|
|||
|
||||
return line
|
||||
|
||||
self.update_prefix_shell_script(state.install_path + '/bin/sdl2-config', update_sdl2_config)
|
||||
self.update_config_script(state.install_path + '/bin/sdl2-config', update_sdl2_config)
|
||||
|
||||
def update_targets_cmake(line: str):
|
||||
if line.startswith(' INTERFACE_LINK_LIBRARIES '):
|
||||
|
|
Loading…
Reference in a new issue