summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-07 23:45:40 +0200
committerwm4 <wm4@nowhere>2014-08-07 23:45:40 +0200
commit7898169484b77d399bc549cd7c4d17145a0f1d9d (patch)
tree88437977bea7c2b97e9d03d343e6e4fe39b425ee /wscript_build.py
parent5906041343bf79afe0247aa4c0c7cb731003ca64 (diff)
downloadmpv-7898169484b77d399bc549cd7c4d17145a0f1d9d.tar.bz2
mpv-7898169484b77d399bc549cd7c4d17145a0f1d9d.tar.xz
build: add hacks to force waf to generate valid .pc files
Don't like this? You're invited to fix this crap.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 8825f15b6f..090fe280ca 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -479,6 +479,13 @@ def build(ctx):
if build_static:
_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(
target = 'libmpv/mpv.pc',
source = 'libmpv/mpv.pc.in',
@@ -487,6 +494,7 @@ def build(ctx):
LIBDIR = ctx.env.LIBDIR,
INCDIR = ctx.env.INCDIR,
VERSION = libversion,
+ PRIV_LIBS = get_deps(),
)
headers = ["client.h"]