weston/xwayland/meson.build
Pekka Paalanen 2d7a2901b6 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 <pq@iki.fi>
2018-12-31 15:16:53 +02:00

45 lines
914 B
Meson

if not get_option('xwayland')
subdir_done()
endif
srcs_xwayland = [
'launcher.c',
'window-manager.c',
'selection.c',
'dnd.c',
'hash.c',
]
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,
link_with: lib_cairo_shared,
include_directories: include_directories('..', '../shared'),
dependencies: deps_xwayland,
name_prefix: '',
install: true,
install_dir: dir_module_libweston
)
env_modmap += 'xwayland.so=@0@;'.format(plugin_xwayland.full_path())
install_headers('xwayland-api.h', subdir: dir_include_libweston)