2019-11-22 07:11:15 +00:00
|
|
|
wlr_files += files('backend.c')
|
|
|
|
|
2021-03-26 15:28:37 +00:00
|
|
|
all_backends = ['drm', 'libinput', 'x11']
|
|
|
|
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
|
|
|
|
|
2022-11-23 15:04:43 +00:00
|
|
|
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')
|
|
|
|
|
2021-03-26 15:28:37 +00:00
|
|
|
foreach backend : all_backends
|
|
|
|
if backend in backends or 'auto' in backends
|
|
|
|
subdir(backend)
|
|
|
|
endif
|
|
|
|
endforeach
|
|
|
|
|
2019-11-22 07:11:15 +00:00
|
|
|
subdir('multi')
|
|
|
|
subdir('wayland')
|
2021-03-26 15:28:37 +00:00
|
|
|
subdir('headless')
|