[eog-plugins] build: Use summary function to print the configuration summary
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog-plugins] build: Use summary function to print the configuration summary
- Date: Thu, 3 Feb 2022 21:08:06 +0000 (UTC)
commit d74577fd52cba8a1372a20c7c6d06be71727e5e5
Author: Felix Riemann <friemann gnome org>
Date: Wed Feb 2 22:45:56 2022 +0100
build: Use summary function to print the configuration summary
meson.build | 36 ++++++++++--------------------------
1 file changed, 10 insertions(+), 26 deletions(-)
---
diff --git a/meson.build b/meson.build
index e801e44..be40b46 100644
--- a/meson.build
+++ b/meson.build
@@ -118,29 +118,13 @@ gnome.post_install(
# Summary message
-summary = [
- 'Configuration:',
- '',
- ' eog-plugins version @0@'.format(meson.project_version()),
- '',
- ' Prefix: @0@'.format(get_option('prefix')),
- '',
- ' Enabled plugins:'
-]
-
-foreach plugin_name : enabled_plugins
- summary += ' ' + plugin_name
-endforeach
-
-summary += [
- '',
- ' Disabled plugins:'
-]
-
-foreach plugin_name : disabled_plugins
- summary += ' ' + plugin_name
-endforeach
-
-summary += ''
-
-message('\n'.join(summary))
+summary({
+ 'Prefix': get_option('prefix'),
+ 'Compiler': cc.get_id(),
+ 'Extra compiler warnings': compiler_flags,
+}, section: 'Build')
+
+summary({
+ 'Enabled plugins': enabled_plugins,
+ 'Disabled plugins': disabled_plugins,
+}, section: 'Plugins')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]