mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 10:08:00 +02: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…
Add table
Reference in a new issue