meson: check wayland-scanner version

At least 1.23 is needed for 1.38 protocols. Also check other Wayland
deps to be 1.23, they are likely bundled at the same version as scanner
anyway.
This commit is contained in:
Kacper Michajłow authored and Dudemanguy committed 2025-12-22 17:30:05 +00:00
1 parent f011d73d5f
commit b95846a28c
1 file changed
+3 -3
+3 -3
View File
@@ -1033,14 +1033,14 @@ if features['d3d11']
endif
wayland = {
'deps': [dependency('wayland-client', version: '>= 1.22.0', required: get_option('wayland')),
dependency('wayland-cursor', version: '>= 1.22.0', required: get_option('wayland')),
'deps': [dependency('wayland-client', version: '>= 1.23.0', required: get_option('wayland')),
dependency('wayland-cursor', version: '>= 1.23.0', required: get_option('wayland')),
dependency('wayland-protocols', version: '>= 1.38', required: get_option('wayland')),
dependency('xkbcommon', version: '>= 0.3.0', required: get_option('wayland'))],
'header': cc.has_header('linux/input-event-codes.h', required: get_option('wayland'),
# Pass CFLAGS from a related package as a hint for non-Linux
dependencies: dependency('wayland-client', required: get_option('wayland'))),
'scanner': find_program('wayland-scanner', required: get_option('wayland')),
'scanner': find_program('wayland-scanner', version: '>= 1.23.0', required: get_option('wayland')),
}
wayland_deps = true
foreach dep: wayland['deps']