aedi: simplify dumb .pc file processing

This commit is contained in:
alexey.lysiuk 2021-06-20 14:44:18 +03:00
parent 3102c08129
commit 829810e05e

View file

@ -38,14 +38,7 @@ class DumbTarget(CMakeStaticDependencyTarget):
@staticmethod
def _process_pkg_config(pcfile: str, line: str) -> str:
if line.startswith('libdir='):
return 'libdir=${exec_prefix}/lib\n'
elif line.startswith('includedir='):
return 'includedir=${prefix}/include\n'
elif line.startswith('Libs:'):
return 'Libs: -L${libdir} -ldumb\n'
return line
return 'Libs: -L${libdir} -ldumb\n' if line.startswith('Libs:') else line
class FmtTarget(CMakeStaticDependencyTarget):