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:
@@ -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']
|
||||
|
Reference in New Issue
Block a user