Co-authored-by: Simon Ser <contact@emersion.fr>master
parent
66c42f4fcb
commit
70fb21c35b
@ -1,11 +1,22 @@
|
|||||||
wlr_files += files('backend.c')
|
wlr_files += files('backend.c')
|
||||||
|
|
||||||
subdir('drm')
|
all_backends = ['drm', 'libinput', 'x11']
|
||||||
subdir('headless')
|
backends = get_option('backends')
|
||||||
subdir('libinput')
|
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
|
||||||
|
|
||||||
|
foreach backend : all_backends
|
||||||
|
if backend in backends or 'auto' in backends
|
||||||
|
subdir(backend)
|
||||||
|
endif
|
||||||
|
endforeach
|
||||||
|
|
||||||
subdir('multi')
|
subdir('multi')
|
||||||
subdir('noop')
|
|
||||||
subdir('wayland')
|
subdir('wayland')
|
||||||
subdir('x11')
|
subdir('noop')
|
||||||
|
subdir('headless')
|
||||||
|
|
||||||
subdir('session')
|
subdir('session')
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
option('xcb-errors', type: 'feature', value: 'auto', description: 'Use xcb-errors util library')
|
option('xcb-errors', type: 'feature', value: 'auto', description: 'Use xcb-errors util library')
|
||||||
option('xwayland', type: 'feature', value: 'auto', yield: true, description: 'Enable support for X11 applications')
|
option('xwayland', type: 'feature', value: 'auto', yield: true, description: 'Enable support for X11 applications')
|
||||||
option('x11-backend', type: 'feature', value: 'auto', description: 'Enable X11 backend')
|
|
||||||
option('examples', type: 'boolean', value: true, description: 'Build example applications')
|
option('examples', type: 'boolean', value: true, description: 'Build example applications')
|
||||||
option('icon_directory', description: 'Location used to look for cursors (default: ${datadir}/icons)', type: 'string', value: '')
|
option('icon_directory', description: 'Location used to look for cursors (default: ${datadir}/icons)', type: 'string', value: '')
|
||||||
option('renderers', type: 'array', choices: ['auto', 'gles2'], value: ['auto'], description: 'Select built-in renderers')
|
option('renderers', type: 'array', choices: ['auto', 'gles2'], value: ['auto'], description: 'Select built-in renderers')
|
||||||
|
option('backends', type: 'array', choices: ['auto', 'drm', 'libinput', 'x11'], value: ['auto'], description: 'Select built-in backends')
|
||||||
|
Loading…
Reference in new issue