diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2021-09-09 23:51:46 +0200 |
---|---|---|
committer | Iñigo Martínez <inigomartinez@gmail.com> | 2021-09-13 11:05:44 +0200 |
commit | 3831932228c2271d722ac9785f2dc4a6c8d88686 (patch) | |
tree | 9340fb24d18f35b3fae97ccb128641dbce055267 /src/qmi-firmware-update | |
parent | 34cc1b10fef443fc8e1fe80adfc819f2d262308d (diff) | |
download | libqmi-3831932228c2271d722ac9785f2dc4a6c8d88686.tar.gz |
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 'src/qmi-firmware-update')
-rw-r--r-- | src/qmi-firmware-update/test/meson.build | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qmi-firmware-update/test/meson.build b/src/qmi-firmware-update/test/meson.build index 32441888..e5da8312 100644 --- a/src/qmi-firmware-update/test/meson.build +++ b/src/qmi-firmware-update/test/meson.build @@ -6,8 +6,10 @@ test_units = [ ['test-firehose', libfirehose_dep], ] -test_env.set('G_TEST_BUILDDIR', meson.current_build_dir()) -test_env.set('G_TEST_SRCDIR', meson.current_source_dir()) +test_env += { + 'G_TEST_BUILDDIR': meson.current_build_dir(), + 'G_TEST_SRCDIR': meson.current_source_dir(), +} foreach test_unit: test_units exe = executable( |