meson: Fix warning about build_root() and source_root()

```
../meson.build:384: WARNING: Project targeting '>= 0.60.0' but tried to use feature deprecated since '0.56.0': meson.build_root. use meson.project_build_root() or meson.global_build_root() instead.
../meson.build:385: WARNING: Project targeting '>= 0.60.0' but tried to use feature deprecated since '0.56.0': meson.source_root. use meson.project_source_root() or meson.global_source_root() instead.
...
WARNING: Deprecated features used:
 * 0.56.0: {'meson.source_root', 'meson.build_root'}
 ```

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1977>
This commit is contained in:
Nirbheek Chauhan 2022-03-18 13:43:00 +05:30 committed by GStreamer Marge Bot
parent 1cb127f16b
commit 2913ab9dbf

View file

@ -381,8 +381,8 @@ message('Building subprojects: ' + ', '.join(subprojects_names))
setenv = find_program('gst-env.py') setenv = find_program('gst-env.py')
devenv_cmd = [setenv, '--builddir=@0@'.format(meson.build_root()), devenv_cmd = [setenv, '--builddir=@0@'.format(meson.global_build_root()),
'--srcdir=@0@'.format(meson.source_root())] '--srcdir=@0@'.format(meson.global_source_root())]
subdir('tests') subdir('tests')
if meson.can_run_host_binaries() and build_machine.system() == 'linux' and host_machine.system() == 'windows' if meson.can_run_host_binaries() and build_machine.system() == 'linux' and host_machine.system() == 'windows'