treewide: meson.build: use project_{build,source}_root()

Use `meson.project_{build,source}_root()` instead of
`meson.{build,source}_root()` because those functions
do not work as expected when used inside a subproject,
and they have been deprecated in meson 0.56.0.
This commit is contained in:
Barnabás Pőcze 2021-12-28 16:35:20 +01:00
parent b666edde78
commit 8ed46a283f
8 changed files with 36 additions and 36 deletions

View file

@ -140,7 +140,7 @@ foreach a : test_apps
install : installed_tests_enabled,
install_dir : installed_tests_execdir / 'audioconvert'),
env : [
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.project_build_root()),
])
if installed_tests_enabled
@ -170,7 +170,7 @@ foreach a : benchmark_apps
install : installed_tests_enabled,
install_dir : installed_tests_execdir / 'audioconvert'),
env : [
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.project_build_root()),
])
if installed_tests_enabled