diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2020-10-25 13:06:41 +0100 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2020-10-25 15:59:16 +0200 |
commit | a832c22dac835de9b0055123c49aa7bb9350d080 (patch) | |
tree | 52b72aefbc4f1801e0a85f46b6fa32ad03d79d68 | |
parent | 007ace76e2d0f96ec189ce5564c7a8ff82268e08 (diff) | |
download | mpv-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-- | wscript | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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'), |