aedi: rename function to update config shell script

This commit is contained in:
alexey.lysiuk 2021-06-07 09:53:34 +03:00
parent 707fd40732
commit 02f4bd971f
2 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -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 '):