properly mark wayland test as being skipped

This commit is contained in:
Stone Tickle 2026-01-18 09:53:44 -05:00
parent b8c9b47570
commit f88b642f42

View File

@ -7,9 +7,12 @@ wl = import('wayland')
wl_dep = dependency('wayland-client', required: false)
wl_scanner = dependency('wayland-scanner', required: false, native: true)
if wl_dep.found() and wl_scanner.found()
xml = wl.find_protocol('xdg-shell', state: 'stable')
gen = wl.scan_xml(xml)
executable('wayland_demo', gen + ['wayland_demo.c'], dependencies: wl_dep)
if not (wl_dep.found() and wl_scanner.found())
error('MESON_SKIP_TEST: wayland dependencies not found')
endif
xml = wl.find_protocol('xdg-shell', state: 'stable')
gen = wl.scan_xml(xml)
executable('wayland_demo', gen + ['wayland_demo.c'], dependencies: wl_dep)