2018-12-31 13:13:39 +03:00
|
|
|
if not get_option('xwayland')
|
|
|
|
subdir_done()
|
2016-11-24 18:54:51 +03:00
|
|
|
endif
|
2018-12-31 13:13:39 +03:00
|
|
|
|
|
|
|
srcs_xwayland = [
|
|
|
|
'launcher.c',
|
|
|
|
'window-manager.c',
|
|
|
|
'selection.c',
|
|
|
|
'dnd.c',
|
|
|
|
'hash.c',
|
|
|
|
]
|
2018-12-31 13:20:22 +03:00
|
|
|
|
|
|
|
dep_names_xwayland = [
|
|
|
|
'xcb',
|
|
|
|
'xcb-composite',
|
|
|
|
'xcb-shape',
|
|
|
|
'xcb-xfixes',
|
|
|
|
'xcursor',
|
|
|
|
'cairo-xcb',
|
2018-12-31 13:13:39 +03:00
|
|
|
]
|
2018-12-31 13:20:22 +03:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2018-12-31 13:13:39 +03:00
|
|
|
plugin_xwayland = shared_library(
|
|
|
|
'xwayland',
|
|
|
|
srcs_xwayland,
|
|
|
|
link_with: lib_cairo_shared,
|
2019-04-05 17:09:28 +03:00
|
|
|
include_directories: common_inc,
|
2018-12-31 13:13:39 +03:00
|
|
|
dependencies: deps_xwayland,
|
|
|
|
name_prefix: '',
|
|
|
|
install: true,
|
|
|
|
install_dir: dir_module_libweston
|
|
|
|
)
|
|
|
|
env_modmap += 'xwayland.so=@0@;'.format(plugin_xwayland.full_path())
|
|
|
|
|
2019-04-04 15:52:47 +03:00
|
|
|
install_headers(xwayland_api_h, subdir: dir_include_libweston_install)
|