meson: allow feature options to take true/false to mean enabled/disabled
authorEric Engestrom <eric@engestrom.ch>
Thu, 23 Feb 2023 10:48:58 +0000 (10:48 +0000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 10 Mar 2023 07:20:29 +0000 (07:20 +0000)
commita18f439f5260b3e183ec6a58bfff2760a5bbe407
tree13dd2190efe52c0c786df624616e082b938ed23e
parent049086cd58138249370fad78c923e3a0423e4e77
meson: allow feature options to take true/false to mean enabled/disabled

This reduces the pain of Meson having picked inconsistent value names.

See also https://github.com/mesonbuild/meson/pull/11279 where Meson devs
argue that allowing `foo=false` could be interpreted by users to mean
either `disabled` or `auto`, which I personally don't see.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21485>
meson_options.txt