From dfc57e6d32b1000da891083acf78b9c8c6e6f080 Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Tue, 11 Mar 2014 16:55:49 +0100 Subject: libmpv: add pkg-config file --- wscript_build.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'wscript_build.py') diff --git a/wscript_build.py b/wscript_build.py index 999a14495a..b83a8db4d2 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -451,10 +451,22 @@ def build(ctx): vnum = "0.0.0", ) + ctx( + target = 'libmpv/mpv.pc', + source = 'libmpv/mpv.pc.in', + features = 'subst', + PREFIX = ctx.env.PREFIX, + LIBDIR = ctx.env.LIBDIR, + INCDIR = ctx.env.INCDIR, + vnum = "0.0.0", + ) + headers = ["client.h"] for f in headers: ctx.install_as(ctx.env.INCDIR + '/libmpv/' + f, 'libmpv/' + f) + ctx.install_as(ctx.env.LIBDIR + '/pkgconfig/mpv.pc', 'libmpv/mpv.pc') + if ctx.dependency_satisfied('client-api-examples'): # This assumes all examples are single-file (as examples should be) for f in ["simple"]: -- cgit v1.2.3