mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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:
parent
21254737bf
commit
f0375eed24
10 changed files with 46 additions and 10 deletions
|
|
@ -1,6 +1,3 @@
|
|||
udev = dependency('libudev')
|
||||
wlr_deps += udev
|
||||
|
||||
wlr_files += files('backend.c')
|
||||
|
||||
all_backends = ['drm', 'libinput', 'x11']
|
||||
|
|
@ -11,6 +8,16 @@ elif 'auto' in backends and get_option('auto_features').disabled()
|
|||
backends = []
|
||||
endif
|
||||
|
||||
session_required = 'drm' in backends or 'libinput' in backends or get_option('session').enabled()
|
||||
if get_option('session').disabled()
|
||||
if session_required
|
||||
error('Session support is required for the DRM or libinput backends')
|
||||
endif
|
||||
session_required = disabler()
|
||||
endif
|
||||
|
||||
subdir('session')
|
||||
|
||||
foreach backend : all_backends
|
||||
if backend in backends or 'auto' in backends
|
||||
subdir(backend)
|
||||
|
|
@ -20,5 +27,3 @@ endforeach
|
|||
subdir('multi')
|
||||
subdir('wayland')
|
||||
subdir('headless')
|
||||
|
||||
subdir('session')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue