From f0375eed24276e27e036f724c9fde5d344fc140a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 23 Nov 2022 16:04:43 +0100 Subject: backend/session: make optional Some compositors are not interested in wlr_session, for instance nested compositors. Disabling wlr_session removes the udev dependency. --- backend/session/meson.build | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'backend/session') diff --git a/backend/session/meson.build b/backend/session/meson.build index 9e35ef1e..4c20ee9d 100644 --- a/backend/session/meson.build +++ b/backend/session/meson.build @@ -1,8 +1,17 @@ +msg = 'Required for session support.' +udev = dependency('libudev', required: session_required, not_found_message: msg) libseat = dependency( 'libseat', version: '>=0.2.0', fallback: 'seatd', default_options: ['server=disabled', 'man-pages=disabled', 'examples=disabled'], + required: session_required, + not_found_message: msg, ) +if not (udev.found() and libseat.found()) + subdir_done() +endif + wlr_files += files('session.c') -wlr_deps += libseat +wlr_deps += [udev, libseat] +features += { 'session': true } -- cgit v1.2.3