mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 12:01:27 +00:00
aedi: enable creation of samplerate cmake modules
This commit is contained in:
parent
093435bc21
commit
1ca6e74187
2 changed files with 10 additions and 1 deletions
|
@ -432,6 +432,16 @@ class SamplerateTarget(CMakeStaticDependencyTarget):
|
||||||
def detect(self, state: BuildState) -> bool:
|
def detect(self, state: BuildState) -> bool:
|
||||||
return state.has_source_file('samplerate.pc.in')
|
return state.has_source_file('samplerate.pc.in')
|
||||||
|
|
||||||
|
def post_build(self, state: BuildState):
|
||||||
|
super().post_build(state)
|
||||||
|
|
||||||
|
def update_linker_flags(line: str):
|
||||||
|
link_var = ' INTERFACE_LINK_LIBRARIES '
|
||||||
|
return None if line.startswith(link_var) else line
|
||||||
|
|
||||||
|
cmake_module = state.install_path / 'lib/cmake/SampleRate/SampleRateTargets.cmake'
|
||||||
|
self.update_text_file(cmake_module, update_linker_flags)
|
||||||
|
|
||||||
|
|
||||||
class Sdl2Target(CMakeStaticDependencyTarget):
|
class Sdl2Target(CMakeStaticDependencyTarget):
|
||||||
def __init__(self, name='sdl2'):
|
def __init__(self, name='sdl2'):
|
||||||
|
|
1
deps/.gitignore
vendored
1
deps/.gitignore
vendored
|
@ -47,7 +47,6 @@
|
||||||
/png/bin/png-fix-itxt
|
/png/bin/png-fix-itxt
|
||||||
/png/bin/pngfix
|
/png/bin/pngfix
|
||||||
/samplerate/bin/
|
/samplerate/bin/
|
||||||
/samplerate/lib/cmake/
|
|
||||||
/sdl2/include/SDL2/SDL_config_*.h
|
/sdl2/include/SDL2/SDL_config_*.h
|
||||||
/sdl2/include/SDL2/SDL_copying.h
|
/sdl2/include/SDL2/SDL_copying.h
|
||||||
/sdl2/include/SDL2/SDL_test*.h
|
/sdl2/include/SDL2/SDL_test*.h
|
||||||
|
|
Loading…
Reference in a new issue