mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
meson: bump minimum required version to meson 0.59
This gives us some utility methods for feature options, allowing even
simpler code. We can replace something like:
```meson
_opt = get_option('opt')
if _opt.auto()
opt = host_machine.system() != 'windows'
else
opt = opt.enabled()
endif
```
with
```meson
opt = get_option('opt') \
.disable_auto_if(host_machine.system() != 'windows') \
.allowed()
```
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409>
This commit is contained in:
parent
6ff334e54a
commit
45632b3297
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ project(
|
|||
check : true
|
||||
).stdout(),
|
||||
license : 'MIT',
|
||||
meson_version : '>= 0.54',
|
||||
meson_version : '>= 0.59',
|
||||
default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17', 'rust_std=2021']
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue