[devhelp] build: use summary()



commit 85cfe435ed27e8866b2177637f51ff8ce91a1955
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Apr 4 02:46:06 2020 +0200

    build: use summary()
    
    This requires Meson 0.53.

 meson.build | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/meson.build b/meson.build
index 63ab9cbe..9833b4d3 100644
--- a/meson.build
+++ b/meson.build
@@ -5,7 +5,7 @@
 
 project(
   'devhelp', 'c',
-  meson_version: '>= 0.50',
+  meson_version: '>= 0.53',
   version: '3.37.0',
   default_options: ['warning_level=2']
 )
@@ -163,10 +163,6 @@ meson.add_install_script(
   join_paths(get_option('prefix'), get_option('datadir'))
 )
 
-# Print a summary of the configuration
-output = 'Configuration:\n\n'
-output += '        Devhelp version ' + meson.project_version() + '\n\n'
-output += '        Prefix:             ' + get_option('prefix') + '\n'
-output += '        API documentation:  ' + get_option('gtk_doc').to_string() + '\n'
-output += '        Flatpak build mode: ' + get_option('flatpak_build').to_string() + '\n'
-message(output)
+summary('Prefix', get_option('prefix'))
+summary('API documentation', get_option('gtk_doc'))
+summary('Flatpak build mode', get_option('flatpak_build'))


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