meson: Fix deprecated meson warnings
Fix the warnings related to deprecated meson functions:
WARNING: Project targeting '>= 0.57.0' but tried to use feature deprecated since '0.56.0': Dependency.get_pkgconfig_variable. use Dependency.get_variable(pkgconfig : ...) instead
WARNING: Project targeting '>= 0.57.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.
Tested: Verify that there are no such warnings in local CI.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I1388aaa12161d020d06657e507ddef78cb116ffe
diff --git a/xyz/openbmc_project/Software/Image/meson.build b/xyz/openbmc_project/Software/Image/meson.build
index 4ae382f..0783a60 100644
--- a/xyz/openbmc_project/Software/Image/meson.build
+++ b/xyz/openbmc_project/Software/Image/meson.build
@@ -3,7 +3,7 @@
capture: true,
command: [
sdbusplusplus_prog,
- '-r', meson.source_root(),
+ '-r', meson.project_source_root(),
'error',
'exception-header',
'xyz.openbmc_project.Software.Image',
@@ -19,7 +19,7 @@
capture: true,
command: [
sdbusplusplus_prog,
- '-r', meson.source_root(),
+ '-r', meson.project_source_root(),
'error',
'exception-cpp',
'xyz.openbmc_project.Software.Image',