meson: use builtin support for reading version from a file

In meson 0.57 support was added for reading a version from a file to
meson natively, so we don't need this workaround anymore.

Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20752>
This commit is contained in:
Dylan Baker
2023-01-17 09:50:26 -08:00
committed by Marge Bot
parent c31629ee78
commit a79e6457d8
2 changed files with 1 additions and 43 deletions

View File

@@ -21,10 +21,7 @@
project(
'mesa',
['c', 'cpp'],
version : run_command(
[find_program('python3', 'python'), 'bin/meson_get_version.py', meson.project_source_root()],
check : true
).stdout(),
version : files('VERSION'),
license : 'MIT',
meson_version : '>= 0.59',
default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17', 'rust_std=2021']