meson: stop using deprecated functions, require meson >= 0.58

* get_pkgconfig_variable() -> get_variable()
* prog.path() -> prog.full_path()
* meson.build_root() -> meson.global_build_root()
This commit is contained in:
Daniel Eklöf 2022-02-27 11:32:46 +01:00
parent ffccabbb13
commit 4daa3d9904
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 10 additions and 6 deletions

View file

@ -1,7 +1,7 @@
project('yambar', 'c',
version: '1.8.0',
license: 'MIT',
meson_version: '>=0.53.0',
meson_version: '>=0.58.0',
default_options: ['c_std=c18',
'warning_level=1',
'werror=true',
@ -18,7 +18,7 @@ endif
# Compute the relative path used by compiler invocations.
source_root = meson.current_source_dir().split('/')
build_root = meson.build_root().split('/')
build_root = meson.global_build_root().split('/')
relative_dir_parts = []
i = 0
in_prefix = true