[libadwaita] meson: Use summary()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita] meson: Use summary()
- Date: Fri, 28 May 2021 10:43:02 +0000 (UTC)
commit 3fb0359e644205222527578a6f9e596a1ead42f0
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu May 27 14:11:47 2021 +0200
meson: Use summary()
This simplifies and standardizes how we print the summary.
meson.build | 23 ++++++++---------------
1 file changed, 8 insertions(+), 15 deletions(-)
---
diff --git a/meson.build b/meson.build
index 9c6ae298..3ce6aa86 100644
--- a/meson.build
+++ b/meson.build
@@ -136,19 +136,12 @@ configure_file(
output: 'run',
configuration: run_data)
-summary = [
- '',
- '------',
- 'Libadwaita @0@ (@1@)'.format(current, apiversion),
- '',
- ' Tests: @0@'.format(get_option('tests')),
- ' Examples: @0@'.format(get_option('examples')),
- ' Documentation: @0@'.format(get_option('gtk_doc')),
- ' Introspection: @0@'.format(introspection),
- ' Vapi: @0@'.format(get_option('vapi')),
- '------',
- ''
-]
-
-message('\n'.join(summary))
+summary(
+ {
+ 'Tests': get_option('tests'),
+ 'Examples': get_option('examples'),
+ 'Documentation': get_option('gtk_doc'),
+ 'Introspection': introspection,
+ 'Vapi': get_option('vapi'),
+ }, section: 'Options')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]