summaryrefslogtreecommitdiff
path: root/pkg/mpv/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-09-19 20:40:57 -0700
committerMichael Forney <mforney@mforney.org>2019-09-19 20:41:23 -0700
commit71e6699d92b216d83f39c6b99ad97f6ee74cc69f (patch)
treec575a8b8404f46f8cc5fad26d231ae3de0a4e98f /pkg/mpv/gen.lua
parenta9a4415ee61ed549c46742238fb930e3760edae3 (diff)
Use table to control waylandproto outputs
Diffstat (limited to 'pkg/mpv/gen.lua')
-rw-r--r--pkg/mpv/gen.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/mpv/gen.lua b/pkg/mpv/gen.lua
index 9fc2d075..36268e07 100644
--- a/pkg/mpv/gen.lua
+++ b/pkg/mpv/gen.lua
@@ -36,7 +36,10 @@ pkg.deps = {
build('copy', '$outdir/video/out/wayland/xdg-shell.h', '$builddir/pkg/wayland-protocols/include/xdg-shell-client-protocol.h')
build('copy', '$outdir/video/out/wayland/idle-inhibit-v1.h', '$builddir/pkg/wayland-protocols/include/idle-inhibit-unstable-v1-client-protocol.h')
-waylandproto('video/out/wayland/server-decoration.xml', 'video/out/wayland/srv-decor.h', nil, 'video/out/wayland/srv-decor.c')
+waylandproto('video/out/wayland/server-decoration.xml', {
+ client='video/out/wayland/srv-decor.h',
+ code='video/out/wayland/srv-decor.c',
+})
rule('file2string', '$outdir/file2string $in >$out.tmp && mv $out.tmp $out')
local function file2string(out, inp)