[gedit/zbrown/deteplification-src: 201/633] build: use summary()




commit 82e042b03f76d78b239fc619823c57bcbbf3e024
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Mar 16 13:58:04 2020 +0100

    build: use summary()
    
    This requires meson >= 0.53.

 meson.build | 21 ++++++---------------
 1 file changed, 6 insertions(+), 15 deletions(-)
---
diff --git a/meson.build b/meson.build
index a366fb572..d113211d1 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
 project(
   'gedit', 'c',
   version: '3.36.0',
-  meson_version: '>= 0.49'
+  meson_version: '>= 0.53'
 )
 
 if host_machine.system() == 'darwin'
@@ -121,17 +121,8 @@ meson.add_install_script(
   get_option('prefix') / get_option('datadir')
 )
 
-# Summary message
-
-summary = [
-  'Configuration:',
-  '',
-  '        gedit version @0@ (API version @1@)'.format(meson.project_version(), api_version),
-  '',
-  '        Prefix:                @0@'.format(get_option('prefix')),
-  '        API documentation:     @0@'.format(get_option('gtk_doc')),
-  '        User documentation:    @0@'.format(get_option('user_documentation')),
-  '        Require all tests:     @0@'.format(get_option('require_all_tests')),
-  '',
-]
-message('\n'.join(summary))
+summary('API version', api_version)
+summary('Prefix', get_option('prefix'))
+summary('API documentation', get_option('gtk_doc'))
+summary('User documentation', get_option('user_documentation'))
+summary('Require all tests', get_option('require_all_tests'))


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