[gnome-bluetooth/wip/hadess/gtk4-fixes: 4/5] build: Use summary() to print build summary




commit bb7901cbdc91dc2495d8856f3e5929b378b878de
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 28 17:38:37 2021 +0200

    build: Use summary() to print build summary

 meson.build | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/meson.build b/meson.build
index 27dcb3c8..d62cd9bc 100644
--- a/meson.build
+++ b/meson.build
@@ -3,7 +3,7 @@ project(
   version: '42.alpha',
   license: 'GPL2+',
   default_options: 'buildtype=debugoptimized',
-  meson_version: '>= 0.49.0',
+  meson_version: '>= 0.53.0',
 )
 
 gnomebt_version = meson.project_version()
@@ -130,13 +130,10 @@ meson.add_install_script(
   gnomebt_datadir,
 )
 
-output = '\nConfigure summary:\n\n'
-output += '        Compiler....................:  ' + cc.get_id() + '\n\n'
-output += '        Compiler Flags..............:  ' + ' '.join(compiler_flags) + '\n'
-output += '        Prefix......................:  ' + gnomebt_prefix + '\n'
-output += '        Documentation...............:  ' + enable_gtk_doc.to_string() + '\n'
-output += '        GObject-Introspection.......:  ' + enable_gir.to_string()
-message(output)
+summary({'Documentation': enable_gtk_doc,
+         'Introspection': enable_gir,
+         'Run gtk-update-icon-cache': get_option('icon_update')},
+        section: 'General')
 
 meson.add_dist_script(
   find_program('check-news.sh').path(),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]