build: add static libraries to libmpv.pc

This commit is contained in:
Martin Herkt 2018-06-20 10:38:51 +02:00
parent cd893626cb
commit afe713c71c
No known key found for this signature in database
GPG Key ID: C24B9CD04DC6AE7F
1 changed files with 8 additions and 4 deletions

View File

@ -677,11 +677,15 @@ def build(ctx):
_build_libmpv(False)
def get_deps():
res = ""
res = []
for k in ctx.env.keys():
if k.startswith("LIB_") and k != "LIB_ST":
res += " ".join(["-l" + x for x in ctx.env[k]]) + " "
return res
if (k.startswith("LIB_") and k != "LIB_ST") \
or (k.startswith("STLIB_") and k != "STLIB_ST" and k != "STLIB_MARKER"):
for l in ctx.env[k]:
if l in res:
res.remove(l)
res.append(l)
return " ".join(["-l" + l for l in res])
ctx(
target = 'libmpv/mpv.pc',