From 1b6e63b2c38a0cf6cd1c70bfc5483cac0d1710e1 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 10 Jan 2023 16:19:13 -0800 Subject: meson: replace deprecated source_root with new project_source_root Fixes deprecation warning for meson 0.56.0 and later. Raises minimum meson version to 0.56.0. Signed-off-by: Alan Coopersmith --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index c68e69a..b8d2e44 100644 --- a/meson.build +++ b/meson.build @@ -20,7 +20,7 @@ # keep version in sync with configure.ac project('xorgproto', 'c', license : 'MIT', version : '2022.2', - meson_version : '>=0.50.0') + meson_version : '>=0.56.0') cc = meson.get_compiler('c') pcs = [ @@ -115,7 +115,7 @@ ext_xorgproto = declare_dependency( subdir('include') -keysymfile = meson.source_root() / 'include' / 'X11' / 'XF86keysym.h' +keysymfile = meson.project_source_root() / 'include' / 'X11' / 'XF86keysym.h' test('evdev-keysym-check', find_program('scripts/keysym-generator.py'), args: ['-v', '--header', keysymfile, 'verify']) -- cgit v1.2.3