wlroots/backend/meson.build
2026-05-23 11:11:17 +03:00

29 lines
786 B
Meson

wlr_files += files('backend.c')
all_backends = ['drm', 'libinput', 'x11', 'wscons']
backends = get_option('backends')
if 'auto' in backends and get_option('auto_features').enabled()
backends = all_backends
elif 'auto' in backends and get_option('auto_features').disabled()
backends = []
endif
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/wscons backends')
endif
session_required = disabler()
endif
subdir('session')
foreach backend : all_backends
if backend in backends or 'auto' in backends
subdir(backend)
endif
endforeach
subdir('multi')
subdir('wayland')
subdir('headless')