[libgit2-glib] meson: Use dictionaries in configuration_data objects
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] meson: Use dictionaries in configuration_data objects
- Date: Sat, 5 Feb 2022 08:44:32 +0000 (UTC)
commit 41f06aa631b9b33ea2977c0a7dbbb79115a4b844
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Wed May 22 10:22:47 2019 +0200
meson: Use dictionaries in configuration_data objects
Since 0.49.0, a dictionary could be used as a replacement for each
key/value pair as if `set` method was called for each of them[0].
Almost all of the `configuration_data` objects have been changed to
use a dictionary.
[0] http://mesonbuild.com/Reference-manual.html#configuration_data
libgit2-glib/meson.build | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/libgit2-glib/meson.build b/libgit2-glib/meson.build
index f71fbe0..8851580 100644
--- a/libgit2-glib/meson.build
+++ b/libgit2-glib/meson.build
@@ -172,15 +172,12 @@ else
ssh_includes = ''
endif
-ggit_h_conf = configuration_data()
-ggit_h_conf.set('GGIT_SSH_INCLUDES', ssh_includes)
-
ggit_h = 'ggit.h'
sources += configure_file(
input: ggit_h + '.in',
output: '@BASENAME@',
- configuration: ggit_h_conf,
+ configuration: {'GGIT_SSH_INCLUDES': ssh_includes},
install_dir: libgit2_glib_includedir / libgit2_glib_include_subdir,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]