backend/wscons: introduce new backend

This commit is contained in:
illiliti 2026-05-22 15:48:18 +03:00
parent f56f21b98f
commit 900ff30921
12 changed files with 1208 additions and 7 deletions

View file

@ -1,6 +1,6 @@
wlr_files += files('backend.c')
all_backends = ['drm', 'libinput', 'x11']
all_backends = ['drm', 'libinput', 'x11', 'wscons']
backends = get_option('backends')
if 'auto' in backends and get_option('auto_features').enabled()
backends = all_backends
@ -8,10 +8,10 @@ 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()
session_required = 'drm' in backends or 'libinput' in backends or 'wscons' 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')
error('Session support is required for the DRM or libinput/wscons backends')
endif
session_required = disabler()
endif