diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2018-02-10 10:46:27 +0100 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2018-02-10 10:46:27 +0100 |
commit | 161ae2fcb41e1a5e8fbc56a375b332ec63c47bf2 (patch) | |
tree | cf0fdde9e894806027f78e7b556c9c00117eb1f0 /meson_options.txt | |
parent | 19d7edb4301ac2c4ad3d7f7512214dad2414d64b (diff) |
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
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meson_options.txt b/meson_options.txt index b1e64bd9..6434b43d 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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') |