mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
meson: generate keyboard-keys-list from local input.h
otherwise it will use the system input.h which will fail to build if newer than the bundled version Fixes: 0a73c8e7b8 ("linux: import input.h and friends") (cherry picked from commit bc996fd1ba7bce7be4cbae0d0d5ba7c35e8c3f50)
This commit is contained in:
parent
d07300405f
commit
a485c928ee
@ -3,7 +3,7 @@
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
${1:?} -dM -include linux/input.h - </dev/null | awk '
|
||||
${1:?} -dM -include "${2:?}" - </dev/null | awk '
|
||||
/\<(KEY_(MAX|MIN_INTERESTING))|(BTN_(MISC|MOUSE|JOYSTICK|GAMEPAD|DIGI|WHEEL|TRIGGER_HAPPY))\>/ { next }
|
||||
/^#define[ \t]+(KEY|BTN)_[^ ]+[ \t]+[0-9BK]/ { print $2 }
|
||||
'
|
||||
|
@ -57,8 +57,9 @@ endif
|
||||
generate_keyboard_keys_list = find_program('generate-keyboard-keys-list.sh')
|
||||
keyboard_keys_list_txt = custom_target(
|
||||
'keyboard-keys-list.txt',
|
||||
input : files('../basic/linux/input.h'),
|
||||
output : 'keyboard-keys-list.txt',
|
||||
command : [generate_keyboard_keys_list, cpp],
|
||||
command : [generate_keyboard_keys_list, cpp, '@INPUT@'],
|
||||
capture : true)
|
||||
|
||||
generate_keyboard_keys_gperf = find_program('generate-keyboard-keys-gperf.sh')
|
||||
|
Loading…
x
Reference in New Issue
Block a user