mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-11-05 18:24:04 +00:00
meson: better error for tests missing libX11
Helps people avoid libX11 at the cost of disabling Xwayland support. Signed-off-by: Pekka Paalanen <pq@iki.fi>
This commit is contained in:
parent
91bf16be7d
commit
5605b72e00
1 changed files with 5 additions and 1 deletions
|
@ -167,7 +167,11 @@ tests_weston = [
|
|||
]
|
||||
|
||||
if get_option('xwayland')
|
||||
tests_weston += [ [ 'xwayland', [], dependency('x11') ] ]
|
||||
d = dependency('x11', required: false)
|
||||
if not d.found()
|
||||
error('Xwayland tests require libX11 which was not found. Or, you can use \'-Dxwayland=false\'.')
|
||||
endif
|
||||
tests_weston += [ [ 'xwayland', [], d ] ]
|
||||
endif
|
||||
|
||||
tests_weston_plugin = [
|
||||
|
|
Loading…
Reference in a new issue