summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2020-10-25 13:06:41 +0100
committerJan Ekström <jeebjp@gmail.com>2020-10-25 15:59:16 +0200
commita832c22dac835de9b0055123c49aa7bb9350d080 (patch)
tree52b72aefbc4f1801e0a85f46b6fa32ad03d79d68
parent007ace76e2d0f96ec189ce5564c7a8ff82268e08 (diff)
downloadmpv-a832c22dac835de9b0055123c49aa7bb9350d080.tar.bz2
mpv-a832c22dac835de9b0055123c49aa7bb9350d080.tar.xz
build: disable wayland if linux/input-event-codes.h isn’t available
The wl_pointer interface defines button argument as “a button code as defined in the Linux kernel's linux/input-event-codes.h header file, e.g. BTN_LEFT.” We could #define these few buttons ourselves, but there is no system to test it on, so for now let’s disable Wayland support on them. This is a call to non-Linux system maintainers, please help test this backend on your system and report issues you find, or even working state.
-rw-r--r--wscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/wscript b/wscript
index 6daf92e60b..3d9430baf9 100644
--- a/wscript
+++ b/wscript
@@ -302,6 +302,10 @@ iconv support use --disable-iconv.",
'func': check_statement('sys/vfs.h',
'struct statfs fs; fstatfs(0, &fs); fs.f_namelen')
}, {
+ 'name': 'linux-input-event-codes',
+ 'desc': "Linux's input-event-codes.h",
+ 'func': check_cc(header_name=['linux/input-event-codes.h']),
+ }, {
'name' : '--lua',
'desc' : 'Lua',
'func': check_lua,
@@ -491,7 +495,7 @@ video_output_features = [
} , {
'name': '--wayland',
'desc': 'Wayland',
- 'deps': 'wayland-protocols && wayland-scanner',
+ 'deps': 'wayland-protocols && wayland-scanner && linux-input-event-codes',
'func': check_pkg_config('wayland-client', '>= 1.15.0',
'wayland-cursor', '>= 1.15.0',
'xkbcommon', '>= 0.3.0'),