diff options
author | Simon Ser <contact@emersion.fr> | 2022-11-23 16:04:43 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-11-25 16:15:29 +0000 |
commit | f0375eed24276e27e036f724c9fde5d344fc140a (patch) | |
tree | 32732996951bd290acd3ba12084ab42778134073 /backend/session/meson.build | |
parent | 21254737bf97e5be44071063c14fce5a403a9a22 (diff) |
backend/session: make optional
Some compositors are not interested in wlr_session, for instance
nested compositors.
Disabling wlr_session removes the udev dependency.
Diffstat (limited to 'backend/session/meson.build')
-rw-r--r-- | backend/session/meson.build | 11 |
1 files changed, 10 insertions, 1 deletions
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 } |