backend: make DRM and libinput backends optional

Co-authored-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
ayaka 2021-03-26 23:28:37 +08:00 committed by Simon Zeni
parent 66c42f4fcb
commit 70fb21c35b
8 changed files with 69 additions and 17 deletions

View file

@ -1,6 +1,6 @@
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('x11-backend', type: 'feature', value: 'auto', description: 'Enable X11 backend')
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('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')