1if not get_option('xwayland') 2 subdir_done() 3endif 4 5srcs_xwayland = [ 6 'launcher.c', 7 'window-manager.c', 8 'selection.c', 9 'dnd.c', 10 'hash.c', 11] 12 13dep_names_xwayland = [ 14 'xcb', 15 'xcb-composite', 16 'xcb-shape', 17 'xcb-xfixes', 18 'xcursor', 19 'cairo-xcb', 20] 21 22deps_xwayland = [ dep_libweston_public ] 23 24foreach name : dep_names_xwayland 25 d = dependency(name, required: false) 26 if not d.found() 27 error('xwayland requires @0@ which was not found. Or, you can use \'-Dxwayland=false\'.'.format(name)) 28 endif 29 deps_xwayland += d 30endforeach 31 32plugin_xwayland = shared_library( 33 'xwayland', 34 srcs_xwayland, 35 link_with: lib_cairo_shared, 36 include_directories: common_inc, 37 dependencies: deps_xwayland, 38 name_prefix: '', 39 install: true, 40 install_dir: dir_module_libweston 41) 42env_modmap += 'xwayland.so=@0@;'.format(plugin_xwayland.full_path()) 43 44install_headers(xwayland_api_h, subdir: dir_include_libweston_install) 45