From a832c22dac835de9b0055123c49aa7bb9350d080 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 25 Oct 2020 13:06:41 +0100 Subject: [PATCH] =?UTF-8?q?build:=20disable=20wayland=20if=20linux/input-e?= =?UTF-8?q?vent-codes.h=20isn=E2=80=99t=20available?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- wscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 6daf92e60b..3d9430baf9 100644 --- a/wscript +++ b/wscript @@ -301,6 +301,10 @@ iconv support use --disable-iconv.", 'deps': 'os-linux', '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', @@ -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'),