[gnome-bluetooth/wip/hadess/42.beta: 3/4] build: Fix meson deprecation warnings




commit 261b15fc1c152100aa953d55536bcde12b6fce72
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 8 12:04:50 2022 +0100

    build: Fix meson deprecation warnings
    
    NOTICE: Future-deprecated features used:
     * 0.55.0: {'ExternalProgram.path'}
     * 0.56.0: {'meson.source_root', 'meson.build_root'}

 meson.build       | 4 ++--
 tests/meson.build | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 9a3bec6f..a557990f 100644
--- a/meson.build
+++ b/meson.build
@@ -3,7 +3,7 @@ project(
   version: '42.alpha.2',
   license: 'GPL2+',
   default_options: 'buildtype=debugoptimized',
-  meson_version: '>= 0.53.0',
+  meson_version: '>= 0.58.0',
 )
 
 gnomebt_version = meson.project_version()
@@ -151,7 +151,7 @@ summary({'Documentation': enable_gtk_doc,
         section: 'General')
 
 meson.add_dist_script(
-  find_program('check-news.sh').path(),
+  find_program('check-news.sh').full_path(),
   '@0@'.format(meson.project_version()),
   'NEWS',
 )
diff --git a/tests/meson.build b/tests/meson.build
index 70f08dbe..d7d87764 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -2,8 +2,8 @@ if enable_gir and has_dbusmock
   integration_test = find_program('integration-test.py')
 
   envs = environment()
-  envs.set ('top_builddir', meson.build_root())
-  envs.set ('top_srcdir', meson.source_root())
+  envs.set ('top_builddir', meson.global_build_root())
+  envs.set ('top_srcdir', meson.global_source_root())
 
   test_deps = [ gnomebt_priv_gir, ]
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]