build: Replace deprecated meson functions

Replace deprecated functions with their direct replacements:

 - dep.get_pkgconfig_variable() → dep.get_variable()
 - prg.path() → prg.full_path()
 - source/build_root() → project_source/build_root()

In one case we need meson.global_source_root() that was only
added in meson 0.58, so bump the requirement to that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2077>
This commit is contained in:
Florian Müllner 2021-12-23 02:40:22 +01:00 committed by Marge Bot
parent 0d3894c471
commit daf729de11
11 changed files with 21 additions and 21 deletions

View file

@ -8,7 +8,7 @@ run_test = configure_file(
)
testenv = environment()
testenv.set('GSETTINGS_SCHEMA_DIR', join_paths(meson.build_root(), 'data'))
testenv.set('GSETTINGS_SCHEMA_DIR', join_paths(meson.project_build_root(), 'data'))
tests = [
'highlighter',