aedi: enable creation of samplerate cmake modules

This commit is contained in:
alexey.lysiuk 2021-08-02 10:54:06 +03:00
parent 093435bc21
commit 1ca6e74187
2 changed files with 10 additions and 1 deletions

View file

@ -432,6 +432,16 @@ class SamplerateTarget(CMakeStaticDependencyTarget):
def detect(self, state: BuildState) -> bool:
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):
def __init__(self, name='sdl2'):

1
deps/.gitignore vendored
View file

@ -47,7 +47,6 @@
/png/bin/png-fix-itxt
/png/bin/pngfix
/samplerate/bin/
/samplerate/lib/cmake/
/sdl2/include/SDL2/SDL_config_*.h
/sdl2/include/SDL2/SDL_copying.h
/sdl2/include/SDL2/SDL_test*.h