meson build: make enable options work as auto/true/false

This makes meson fail if -Denable_systemd=true was set but not found
The default is now auto which is the old behaviour
This commit is contained in:
Dominique Martinet 2018-02-10 10:46:27 +01:00
parent 19d7edb430
commit 161ae2fcb4
2 changed files with 9 additions and 9 deletions

View file

@ -1,4 +1,4 @@
option('enable_libcap', type: 'boolean', value: true, description: 'Enable support for capabilities')
option('enable_systemd', type: 'boolean', value: true, description: 'Enable support for logind')
option('enable_elogind', type: 'boolean', value: true, description: 'Enable support for logind')
option('enable_libcap', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Enable support for capabilities')
option('enable_systemd', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Enable support for logind')
option('enable_elogind', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Enable support for logind')
option('enable_xwayland', type: 'boolean', value: true, description: 'Enable support X11 applications')