diff options
| author | Michael Forney <mforney@mforney.org> | 2018-09-07 16:36:28 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-03-11 12:20:37 -0700 |
| commit | e74e64ccca0c442ef3b2d97dcaa64f111122bdb2 (patch) | |
| tree | c8187f940af681524f2838037656769bc5a56a3c /pkg/mpv | |
| parent | e5bb6756c125c1b2d70e63aa90b0d1485300f062 (diff) | |
mpv: Don't depend on wayland protocol headers if not building wayland support
Diffstat (limited to 'pkg/mpv')
| -rw-r--r-- | pkg/mpv/gen.lua | 8 |
1 files changed, 3 insertions, 5 deletions
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', }) |
