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

@ -21,6 +21,9 @@ endif
if not features.get('vulkan-renderer')
exclude_files += 'render/vulkan.h'
endif
if not features.get('session')
exclude_files += 'backend/session.h'
endif
install_subdir('wlr',
install_dir: get_option('includedir'),