From 6fb6ba1dc99da6a9713de98f3aca6fd45997ead8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nelson=20Ben=C3=ADtez=20Le=C3=B3n?= Date: Mon, 24 Apr 2023 23:52:33 -0400 Subject: meson: improve comment and fix deprecated functions - Clarify that 'mm-glib' dep is for ModemManager (not Network Manager which is below). The comment also helps people which may confuse it with glibmm library. - Fix following Meson warning about two deprecated functions: WARNING: Deprecated features used: * 0.56.0: {'dependency.get_pkgconfig_variable', 'meson.source_root'} --- tests/datetime/meson.build | 2 +- tests/network/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/datetime/meson.build b/tests/datetime/meson.build index c9f07877c..021036881 100644 --- a/tests/datetime/meson.build +++ b/tests/datetime/meson.build @@ -14,7 +14,7 @@ env = [ ] cflags = [ '-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()), - '-DSRCDIR="@0@"'.format(meson.source_root() + '/panels/datetime') + '-DSRCDIR="@0@"'.format(meson.project_source_root() + '/panels/datetime') ] foreach unit: test_units diff --git a/tests/network/meson.build b/tests/network/meson.build index e09ec5cab..a81e64753 100644 --- a/tests/network/meson.build +++ b/tests/network/meson.build @@ -5,7 +5,7 @@ cflags = [ '-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()), '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_WITH_GLIB', '-DNETWORKMANAGER_COMPILATION_TEST', - '-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.source_root(), 'tests', 'network', 'nm-utils', 'test-networkmanager-service.py')), + '-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.project_source_root(), 'tests', 'network', 'nm-utils', 'test-networkmanager-service.py')), ] exe = executable( -- cgit v1.2.1