mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
build: add static libraries to libmpv.pc
This commit is contained in:
parent
cd893626cb
commit
afe713c71c
@ -677,11 +677,15 @@ def build(ctx):
|
|||||||
_build_libmpv(False)
|
_build_libmpv(False)
|
||||||
|
|
||||||
def get_deps():
|
def get_deps():
|
||||||
res = ""
|
res = []
|
||||||
for k in ctx.env.keys():
|
for k in ctx.env.keys():
|
||||||
if k.startswith("LIB_") and k != "LIB_ST":
|
if (k.startswith("LIB_") and k != "LIB_ST") \
|
||||||
res += " ".join(["-l" + x for x in ctx.env[k]]) + " "
|
or (k.startswith("STLIB_") and k != "STLIB_ST" and k != "STLIB_MARKER"):
|
||||||
return res
|
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(
|
ctx(
|
||||||
target = 'libmpv/mpv.pc',
|
target = 'libmpv/mpv.pc',
|
||||||
|
Loading…
Reference in New Issue
Block a user