1if not get_option('backend-wayland') 2 subdir_done() 3endif 4 5config_h.set('BUILD_WAYLAND_COMPOSITOR', '1') 6 7srcs_wlwl = [ 8 'wayland.c', 9 fullscreen_shell_unstable_v1_client_protocol_h, 10 fullscreen_shell_unstable_v1_protocol_c, 11 presentation_time_protocol_c, 12 presentation_time_server_protocol_h, 13 xdg_shell_server_protocol_h, 14 xdg_shell_protocol_c, 15] 16 17deps_wlwl = [ 18 dependency('wayland-client'), 19 dependency('wayland-cursor'), 20 dep_pixman, 21 dep_libweston_private, 22 dep_libdrm_headers, 23 dep_lib_cairo_shared, 24] 25 26if get_option('renderer-gl') 27 d = dependency('wayland-egl', required: false) 28 if not d.found() 29 error('wayland-backend + gl-renderer requires wayland-egl which was not found. Or, you can use \'-Dbackend-wayland=false\' or \'-Drenderer-gl=false\'.') 30 endif 31 deps_wlwl += d 32endif 33 34plugin_wlwl = shared_library( 35 'wayland-backend', 36 srcs_wlwl, 37 include_directories: common_inc, 38 dependencies: deps_wlwl, 39 name_prefix: '', 40 install: true, 41 install_dir: dir_module_libweston 42) 43env_modmap += 'wayland-backend.so=@0@;'.format(plugin_wlwl.full_path()) 44install_headers(backend_wayland_h, subdir: dir_include_libweston_install) 45