meson.build 920 Bytes
Newer Older
1 2
if not get_option('xwayland')
	subdir_done()
Daniel Stone's avatar
Daniel Stone committed
3
endif
4 5 6 7 8 9 10 11

srcs_xwayland = [
	'launcher.c',
	'window-manager.c',
	'selection.c',
	'dnd.c',
	'hash.c',
]
12 13 14 15 16 17 18 19

dep_names_xwayland = [
	'xcb',
	'xcb-composite',
	'xcb-shape',
	'xcb-xfixes',
	'xcursor',
	'cairo-xcb',
20
]
21 22 23 24 25 26 27 28 29 30 31

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

32 33 34 35 36 37 38 39 40 41 42 43
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())

44
install_headers(xwayland_api_h, subdir: dir_include_libweston_install)