From 5dc9b48c9b31de9f9780887a79ded3b1e52591d9 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 8 Jan 2021 14:33:56 +1000 Subject: gitlab CI: generate the evdev keycodes The various keycodes in keycodes/evdev simply match the kernel defines + offset 8. There is no need to maintain these manually, let's generate them instead. Keycodes update rarely and irregularly (on average maybe every second kernel release) so there's no need to integrate this into the build itself, let's add it to our CI instead. The script here uses python-libevdev which has a list of the various key codes and their names (compile-time built-in in libevdev itself so it's advisable that a recent libevdev is used). The script is hooked up to a custom job that will fail if there are key codes with a #define in the kernel that are not listed in our evdev file. We allow that job to fail, it's not that urgent to prevent any other pipelines. Signed-off-by: Peter Hutterer --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 03cd953..ae46fb0 100644 --- a/meson.build +++ b/meson.build @@ -28,7 +28,7 @@ pkgconfig.generate( # KcGST only need to be installed as-is foreach dir: ['compat', 'geometry', 'keycodes', 'symbols', 'types'] install_subdir(dir, - exclude_files: ['Makefile.am'], + exclude_files: ['Makefile.am', 'evdev.in'], install_dir: dir_xkb_base) endforeach -- cgit v1.2.1