summaryrefslogtreecommitdiff
path: root/ninja.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-12-28 22:11:01 -0800
committerMichael Forney <mforney@mforney.org>2018-05-10 13:00:22 -0700
commit5a4f3899c1c06147c94b8f81de2883244c411873 (patch)
tree2348c88b6c9875fcb87a5aed4ce9704c21610471 /ninja.lua
parentf8f4562b49cd6c59b0a3384335497dc1077b9621 (diff)
mpv: Update to 0.28.2
This removes wayland SHM support for now (to be re-added later after adapting to the new wayland code).
Diffstat (limited to 'ninja.lua')
-rw-r--r--ninja.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/ninja.lua b/ninja.lua
index 22333166..ec1b8894 100644
--- a/ninja.lua
+++ b/ninja.lua
@@ -363,9 +363,15 @@ end
function waylandproto(proto, client, server, code)
proto = '$srcdir/'..proto
code = '$outdir/'..code
- build('waylandproto', '$outdir/'..client, proto, {type='client-header'})
- build('waylandproto', '$outdir/'..server, proto, {type='server-header'})
- build('waylandproto', code, proto, {type='code'})
+ if client then
+ build('waylandproto', '$outdir/'..client, proto, {type='client-header'})
+ end
+ if server then
+ build('waylandproto', '$outdir/'..server, proto, {type='server-header'})
+ end
+ if code then
+ build('waylandproto', code, proto, {type='code'})
+ end
cc(code, {'pkg/wayland/headers'})
end