diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2021-09-11 00:13:40 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-09-13 09:35:15 +0200 |
commit | 9607e0472d22459949c092cb6ddcba665789d501 (patch) | |
tree | 4fd5a685a105db9e944872fa857de0cfd46a730d /docs/reference | |
parent | 6b4a303eb9484916b00da5d7b76810b4c9a381d9 (diff) |
build: Make use of dictionaries
meson gained the dictionaries as builtin objects[0] that can be
modified with the addition operator[1] and can be useful when
setting configuration or even environment values[2].
The individual object creation has been replaced by dictionaries
when possible.
[0] http://mesonbuild.com/Release-notes-for-0-47-0.html#new-builtin-object-type-dictionary
[1] https://mesonbuild.com/Release-notes-for-0-48-0.html#dictionary-addition
[2] https://mesonbuild.com/Release-notes-for-0-52-0.html#support-taking-environment-values-from-a-dictionary
Diffstat (limited to 'docs/reference')
-rw-r--r-- | docs/reference/libmbim-glib/xml/meson.build | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/docs/reference/libmbim-glib/xml/meson.build b/docs/reference/libmbim-glib/xml/meson.build index 9a6e60a..612f443 100644 --- a/docs/reference/libmbim-glib/xml/meson.build +++ b/docs/reference/libmbim-glib/xml/meson.build @@ -1,14 +1,15 @@ # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2021 Iñigo Martinez <inigomartinez@gmail.com> -ent_conf = configuration_data() -ent_conf.set('PACKAGE', mbim_name) -ent_conf.set('PACKAGE_BUGREPORT', mbim_name + '-devel@lists.freedesktop.org') -ent_conf.set('PACKAGE_NAME', mbim_name) -ent_conf.set('PACKAGE_STRING', '@0@ @1@'.format(mbim_name, mbim_version)) -ent_conf.set('PACKAGE_TARNAME', mbim_name) -ent_conf.set('PACKAGE_URL', '') -ent_conf.set('PACKAGE_VERSION', mbim_version) +ent_conf = { + 'PACKAGE': mbim_name, + 'PACKAGE_BUGREPORT': mbim_name + '-devel@lists.freedesktop.org', + 'PACKAGE_NAME': mbim_name, + 'PACKAGE_STRING': '@0@ @1@'.format(mbim_name, mbim_version), + 'PACKAGE_TARNAME': mbim_name, + 'PACKAGE_URL': '', + 'PACKAGE_VERSION': mbim_version, +} gtkdocentities_ent = configure_file( input: 'gtkdocentities.ent.in', |