[gnome-initial-setup/wip/wjt/build-misc: 2/4] meson: Avoid deprecated meson.source_root()
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/wip/wjt/build-misc: 2/4] meson: Avoid deprecated meson.source_root()
- Date: Wed, 22 Jun 2022 21:45:34 +0000 (UTC)
commit d5fcfae10e70df1d36987a38317a38c4615ebf38
Author: Will Thompson <will willthompson co uk>
Date: Wed Jun 22 22:36:21 2022 +0100
meson: Avoid deprecated meson.source_root()
> meson.current_source_dir() and meson.current_build_dir() should be
> used instead and have been available in all Meson versions.
https://mesonbuild.com/Release-notes-for-0-56-0.html#mesonbuild_root-and-mesonsource_root-are-deprecated
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 10632062..be3f21bd 100644
--- a/meson.build
+++ b/meson.build
@@ -10,7 +10,7 @@ gnome = import('gnome')
i18n = import('i18n')
prefix = get_option('prefix')
-po_dir = join_paths(meson.source_root(), 'po')
+po_dir = join_paths(meson.current_source_dir(), 'po')
bin_dir = join_paths(prefix, get_option('bindir'))
data_dir = join_paths(prefix, get_option('datadir'))
locale_dir = join_paths(prefix, get_option('localedir'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]