From 71e6699d92b216d83f39c6b99ad97f6ee74cc69f Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 19 Sep 2019 20:40:57 -0700 Subject: Use table to control waylandproto outputs --- pkg/mpv/gen.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg/mpv/gen.lua') 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) -- cgit v1.2.3