[gtksourceview: 2/5] meson: Use summary() instead of custom formatted string
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview: 2/5] meson: Use summary() instead of custom formatted string
- Date: Tue, 9 Mar 2021 17:21:34 +0000 (UTC)
commit 18744fa7b6fbea6e04fff64660fdf42423b18a69
Author: Xavier Claessens <xavier claessens collabora com>
Date: Tue Mar 9 09:13:36 2021 -0500
meson: Use summary() instead of custom formatted string
meson.build | 28 ++++++++--------------------
1 file changed, 8 insertions(+), 20 deletions(-)
---
diff --git a/meson.build b/meson.build
index 8e42229c..6eb5fe7d 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
project('gtksourceview', 'c',
version: '4.99.0',
license: 'LGPL-2.1-or-later',
- meson_version: '>= 0.52.0',
+ meson_version: '>= 0.53.0',
default_options: [ 'c_std=gnu99',
'buildtype=debugoptimized',
'warning_level=2' ],
@@ -317,25 +317,13 @@ subdir('po')
subdir('tests')
subdir('testsuite')
-summary = [
- '',
- '------',
- 'GtkSourceView @0@ (@1@)'.format(version, api_version),
- '',
- ' Documentation: @0@'.format(build_gtk_doc),
- ' Install tests: @0@'.format(get_option('install_tests')),
- ' Introspection: @0@'.format(generate_gir),
- ' Vala vapi: @0@'.format(generate_vapi),
- '',
- 'Directories:',
- ' prefix: @0@'.format(prefix),
- ' includedir: @0@'.format(includedir),
- ' libdir: @0@'.format(libdir),
- ' datadir: @0@'.format(datadir),
- '------',
-]
-
-message('\n'.join(summary))
+summary({
+ 'Documentation': build_gtk_doc,
+ 'Install tests': get_option('install_tests'),
+ 'Introspection': generate_gir,
+ 'Vala vapi': generate_vapi,
+ }, bool_yn: true,
+)
if meson.version().version_compare('>=0.57.0')
gnome.post_install(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]