meson: Fix meson.build_root warning
Currently local build outputs warning messages:
"""
WARNING: Project targets '>=1.1.1' but uses feature deprecated since
'0.56.0': meson.build_root. use meson.project_build_root() or
meson.global_build_root() instead.
"""
Replace all the "meson.build_root()" to "meson.project_build_root()" to
fix the issue.
Change-Id: Iab5e33df185eaf9a37bf1c610d2f82e9253f7205
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
diff --git a/meson.build b/meson.build
index 4066b7b..6bc8f03 100644
--- a/meson.build
+++ b/meson.build
@@ -134,10 +134,10 @@
configure_file(input : yaml_file.get('input'),
output : yaml_file.get('output'),
copy : true)
- concatenate_command += meson.build_root() + '/' + yaml_file.get('output') + ' '
+ concatenate_command += meson.project_build_root() + '/' + yaml_file.get('output') + ' '
endforeach
-concatenate_command += '> ' + meson.build_root() + '/' + combined_yaml_file
+concatenate_command += '> ' + meson.project_build_root() + '/' + combined_yaml_file
run_command('sh', '-c', concatenate_command)
python = find_program('python3')
@@ -150,7 +150,7 @@
python,
map_gen_file_loc,
'-i',
- meson.build_root() + '/' + combined_yaml_file,
+ meson.project_build_root() + '/' + combined_yaml_file,
'-j',
get_option('ERROR_MAP_YAML'),
'-t',
@@ -160,7 +160,7 @@
],
depend_files : [ 'dump_types.mako.hpp',
'map_gen.py',
- meson.build_root() + '/' + combined_yaml_file,
+ meson.project_build_root() + '/' + combined_yaml_file,
get_option('ERROR_MAP_YAML')
],
output : 'dump_types.hpp'
@@ -172,7 +172,7 @@
python,
map_gen_file_loc,
'-i',
- meson.build_root() + '/' + combined_yaml_file,
+ meson.project_build_root() + '/' + combined_yaml_file,
'-j',
get_option('ERROR_MAP_YAML'),
'-t',
@@ -182,7 +182,7 @@
],
depend_files : [ 'dump_types.mako.cpp',
'map_gen.py',
- meson.build_root() + '/' + combined_yaml_file,
+ meson.project_build_root() + '/' + combined_yaml_file,
get_option('ERROR_MAP_YAML')
],
output : 'dump_types.cpp'