if get_option('xwayland') files_xwayland = [ 'launcher.c', 'window-manager.c', 'selection.c', 'dnd.c', 'hash.c', ] deps_xwayland = [ dependency('xcb'), dependency('xcb-composite'), dependency('xcb-xfixes'), dependency('xcursor'), dependency('cairo-xcb'), dep_libweston, ] plugin_xwayland = shared_library('xwayland', files_xwayland, link_with: lib_cairo_shared, include_directories: include_directories('..', '../libweston', '../shared'), dependencies: deps_xwayland, name_prefix: '', install: true, install_dir: dir_libweston_module, ) env_modmap += 'xwayland.so=@0@;'.format(plugin_xwayland.full_path()) install_headers('xwayland-api.h', subdir: 'libweston-@0@'.format(libweston_major) ) endif