From e74e64ccca0c442ef3b2d97dcaa64f111122bdb2 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 7 Sep 2018 16:36:28 -0700 Subject: mpv: Don't depend on wayland protocol headers if not building wayland support --- pkg/mpv/gen.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'pkg/mpv/gen.lua') diff --git a/pkg/mpv/gen.lua b/pkg/mpv/gen.lua index 2e715234..34fae128 100644 --- a/pkg/mpv/gen.lua +++ b/pkg/mpv/gen.lua @@ -36,11 +36,6 @@ 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') -table.insert(pkg.deps, { - '$outdir/video/out/wayland/idle-inhibit-v1.h', - '$outdir/video/out/wayland/xdg-shell.h', - '$outdir/video/out/wayland/srv-decor.h', -}) rule('file2string', '$outdir/file2string $in >$out.tmp && mv $out.tmp $out') local function file2string(out, inp) @@ -158,6 +153,9 @@ if options['HAVE_WAYLAND'] then 'libxkbcommon/libxkbcommon.a', }) table.insert(pkg.deps, { + '$outdir/video/out/wayland/idle-inhibit-v1.h', + '$outdir/video/out/wayland/xdg-shell.h', + '$outdir/video/out/wayland/srv-decor.h', 'pkg/wayland/headers', 'pkg/libxkbcommon/fetch', }) -- cgit v1.2.3