|
|
@ -79,15 +79,16 @@ else
|
|
|
|
)
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
conf_data = configuration_data()
|
|
|
|
features = {
|
|
|
|
conf_data.set10('WLR_HAS_SYSTEMD', false)
|
|
|
|
'systemd': false,
|
|
|
|
conf_data.set10('WLR_HAS_ELOGIND', false)
|
|
|
|
'elogind': false,
|
|
|
|
conf_data.set10('WLR_HAS_LIBSEAT', false)
|
|
|
|
'libseat': false,
|
|
|
|
conf_data.set10('WLR_HAS_X11_BACKEND', false)
|
|
|
|
'x11-backend': false,
|
|
|
|
conf_data.set10('WLR_HAS_XWAYLAND', false)
|
|
|
|
'xwayland': false,
|
|
|
|
conf_data.set10('WLR_HAS_XCB_ERRORS', false)
|
|
|
|
'xcb-errors': false,
|
|
|
|
conf_data.set10('WLR_HAS_XCB_ICCCM', false)
|
|
|
|
'xcb-icccm': false,
|
|
|
|
conf_data.set10('WLR_HAS_XDG_FOREIGN', false)
|
|
|
|
'xdg-foreign': false,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wayland_server = dependency('wayland-server', version: '>=1.19')
|
|
|
|
wayland_server = dependency('wayland-server', version: '>=1.19')
|
|
|
|
wayland_client = dependency('wayland-client')
|
|
|
|
wayland_client = dependency('wayland-client')
|
|
|
@ -107,7 +108,7 @@ if not get_option('xdg-foreign').disabled()
|
|
|
|
uuid = dependency('uuid', required: false)
|
|
|
|
uuid = dependency('uuid', required: false)
|
|
|
|
uuid_create = cc.has_function('uuid_create')
|
|
|
|
uuid_create = cc.has_function('uuid_create')
|
|
|
|
if uuid.found() or uuid_create
|
|
|
|
if uuid.found() or uuid_create
|
|
|
|
conf_data.set10('WLR_HAS_XDG_FOREIGN', true)
|
|
|
|
features += { 'xdg-foreign': true }
|
|
|
|
elif get_option('xdg-foreign').enabled()
|
|
|
|
elif get_option('xdg-foreign').enabled()
|
|
|
|
error('Missing dependency uuid and uuid_create function not available ' +
|
|
|
|
error('Missing dependency uuid and uuid_create function not available ' +
|
|
|
|
'cannot build with xdg-foreign support')
|
|
|
|
'cannot build with xdg-foreign support')
|
|
|
@ -165,16 +166,7 @@ wlroots = declare_dependency(
|
|
|
|
|
|
|
|
|
|
|
|
meson.override_dependency('wlroots', wlroots)
|
|
|
|
meson.override_dependency('wlroots', wlroots)
|
|
|
|
|
|
|
|
|
|
|
|
summary({
|
|
|
|
summary(features, bool_yn: true)
|
|
|
|
'systemd': conf_data.get('WLR_HAS_SYSTEMD', 0) == 1,
|
|
|
|
|
|
|
|
'elogind': conf_data.get('WLR_HAS_ELOGIND', 0) == 1,
|
|
|
|
|
|
|
|
'libseat': conf_data.get('WLR_HAS_LIBSEAT', 0) == 1,
|
|
|
|
|
|
|
|
'xwayland': conf_data.get('WLR_HAS_XWAYLAND', 0) == 1,
|
|
|
|
|
|
|
|
'x11-backend': conf_data.get('WLR_HAS_X11_BACKEND', 0) == 1,
|
|
|
|
|
|
|
|
'xcb-icccm': conf_data.get('WLR_HAS_XCB_ICCCM', 0) == 1,
|
|
|
|
|
|
|
|
'xcb-errors': conf_data.get('WLR_HAS_XCB_ERRORS', 0) == 1,
|
|
|
|
|
|
|
|
'xdg-foreign': conf_data.get('WLR_HAS_XDG_FOREIGN', 0) == 1,
|
|
|
|
|
|
|
|
}, bool_yn: true)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if get_option('examples')
|
|
|
|
if get_option('examples')
|
|
|
|
subdir('examples')
|
|
|
|
subdir('examples')
|
|
|
|