[polari] build: Simplify summary
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] build: Simplify summary
- Date: Thu, 5 Aug 2021 16:42:56 +0000 (UTC)
commit cb2e468e95346f935384579f6190e597a539891c
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Aug 5 15:56:08 2021 +0200
build: Simplify summary
It's more concise while generating the same output (except that
the order is guaranteed) ...
https://gitlab.gnome.org/GNOME/polari/-/merge_requests/209
meson.build | 23 ++++++++---------------
1 file changed, 8 insertions(+), 15 deletions(-)
---
diff --git a/meson.build b/meson.build
index 1ab45f90..692d5399 100644
--- a/meson.build
+++ b/meson.build
@@ -62,18 +62,11 @@ subdir('help')
meson.add_install_script('meson/meson-postinstall.sh')
-summary_dirs = {
- 'prefix': get_option('prefix'),
- 'bindir': get_option('bindir'),
- 'libdir': get_option('libdir'),
- 'datadir': get_option('datadir'),
-}
-
-summary_build = {
- 'buildtype': get_option('buildtype'),
- 'snapshot': get_option('snapshot'),
- 'debug': get_option('debug'),
-}
-
-summary(summary_dirs, section: 'Directories')
-summary(summary_build, section: 'Build Configuration')
+summary('prefix', get_option('prefix'))
+summary('bindir', get_option('bindir'))
+summary('libdir', get_option('libdir'))
+summary('datadir', get_option('datadir'))
+
+summary('buildtype', get_option('buildtype'), section: 'Build Configuration')
+summary('snapshot', get_option('snapshot'), section: 'Build Configuration')
+summary('debug', get_option('debug'), section: 'Build Configuration')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]