Commit 2d7a2901 authored by Pekka Paalanen's avatar Pekka Paalanen

meson: better errors for xwayland deps

Helps people to disable xwayland if they don't want to install the
dependencies.
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pq@iki.fi>
parent 4cf7db6d
......@@ -9,15 +9,26 @@ srcs_xwayland = [
'dnd.c',
'hash.c',
]
deps_xwayland = [
dependency('xcb'),
dependency('xcb-composite'),
dependency('xcb-shape'),
dependency('xcb-xfixes'),
dependency('xcursor'),
dependency('cairo-xcb'),
dep_libweston,
dep_names_xwayland = [
'xcb',
'xcb-composite',
'xcb-shape',
'xcb-xfixes',
'xcursor',
'cairo-xcb',
]
deps_xwayland = [ dep_libweston ]
foreach name : dep_names_xwayland
d = dependency(name, required: false)
if not d.found()
error('xwayland requires @0@ which was not found. Or, you can use \'-Dxwayland=false\'.'.format(name))
endif
deps_xwayland += d
endforeach
plugin_xwayland = shared_library(
'xwayland',
srcs_xwayland,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment