diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2014-03-11 16:55:49 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-11 19:15:42 +0100 |
commit | dfc57e6d32b1000da891083acf78b9c8c6e6f080 (patch) | |
tree | 5a2d479981fd71163f5ac24b3138e874ab744e65 /wscript_build.py | |
parent | e00dcfb0f52564dea683a423387c28975f494824 (diff) | |
download | mpv-dfc57e6d32b1000da891083acf78b9c8c6e6f080.tar.bz2 mpv-dfc57e6d32b1000da891083acf78b9c8c6e6f080.tar.xz |
libmpv: add pkg-config file
Diffstat (limited to 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 12 |
1 files changed, 12 insertions, 0 deletions
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"]: |