mirror of https://github.com/mpv-player/mpv
build: add hacks to force waf to generate valid .pc files
Don't like this? You're invited to fix this crap.
This commit is contained in:
parent
5906041343
commit
7898169484
|
@ -8,4 +8,5 @@ Description: mpv media player client library
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Requires:
|
Requires:
|
||||||
Libs: -L${libdir} -lmpv
|
Libs: -L${libdir} -lmpv
|
||||||
|
Libs.private: @PRIV_LIBS@
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
|
|
@ -479,6 +479,13 @@ def build(ctx):
|
||||||
if build_static:
|
if build_static:
|
||||||
_build_libmpv(False)
|
_build_libmpv(False)
|
||||||
|
|
||||||
|
def get_deps():
|
||||||
|
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
|
||||||
|
|
||||||
ctx(
|
ctx(
|
||||||
target = 'libmpv/mpv.pc',
|
target = 'libmpv/mpv.pc',
|
||||||
source = 'libmpv/mpv.pc.in',
|
source = 'libmpv/mpv.pc.in',
|
||||||
|
@ -487,6 +494,7 @@ def build(ctx):
|
||||||
LIBDIR = ctx.env.LIBDIR,
|
LIBDIR = ctx.env.LIBDIR,
|
||||||
INCDIR = ctx.env.INCDIR,
|
INCDIR = ctx.env.INCDIR,
|
||||||
VERSION = libversion,
|
VERSION = libversion,
|
||||||
|
PRIV_LIBS = get_deps(),
|
||||||
)
|
)
|
||||||
|
|
||||||
headers = ["client.h"]
|
headers = ["client.h"]
|
||||||
|
|
Loading…
Reference in New Issue