backend/session: make optional

Some compositors are not interested in wlr_session, for instance
nested compositors.

Disabling wlr_session removes the udev dependency.
This commit is contained in:
Simon Ser 2022-11-23 16:04:43 +01:00 committed by Simon Zeni
parent 21254737bf
commit f0375eed24
10 changed files with 46 additions and 10 deletions

View file

@ -10,7 +10,7 @@ libinput = dependency(
not_found_message: '\n'.join(msg),
)
if not libinput.found()
if not (libinput.found() and features['session'])
subdir_done()
endif