[eog: 2/11] build: Make use of the summary function
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog: 2/11] build: Make use of the summary function
- Date: Wed, 29 Dec 2021 14:45:58 +0000 (UTC)
commit 0f5c03b81c8879e1580d59ce0b37f6f1037e6872
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Wed Oct 27 09:07:22 2021 +0200
build: Make use of the summary function
Since meson 0.53, it has added a new function to summarize the build
configuration[0].
The summary has been changed to make use of it.
meson version has been bumped to 0.53.
[0] https://mesonbuild.com/Release-notes-for-0-53-0.html#add-a-new-summary-function
meson.build | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
---
diff --git a/meson.build b/meson.build
index a263569a..f9f09f67 100644
--- a/meson.build
+++ b/meson.build
@@ -3,7 +3,7 @@ project(
version: '42.alpha',
license: 'GPL2+',
default_options: 'buildtype=debugoptimized',
- meson_version: '>= 0.50.0',
+ meson_version: '>= 0.53.0',
)
eog_version = meson.project_version()
@@ -253,14 +253,17 @@ meson.add_install_script(
gio_schemasdir,
)
-output = 'Configure summary:\n\n'
-output += ' Source code location .......: ' + source_root + '\n'
-output += ' Compiler ...................: ' + cc.get_id() + '\n'
-output += ' Extra Compiler Warnings ....: ' + ' '.join(compiler_flags) + '\n'
-output += ' EXIF support ...............: ' + enable_libexif.to_string() + '\n'
-output += ' XMP support ................: ' + enable_xmp.to_string() + '\n'
-output += ' JPEG support ...............: ' + enable_libjpeg.to_string() + '\n'
-output += ' Colour management support ..: ' + enable_cms.to_string() + '\n'
-output += ' GObject Introspection.......: ' + enable_introspection.to_string() + '\n'
-output += ' xdg-desktop-portal support..: ' + enable_libportal.to_string() + '\n'
-message(output)
+summary({
+ 'Source code location': source_root,
+ 'Compiler': cc.get_id(),
+ 'Extra compiler warnings': compiler_flags,
+}, section: 'Build')
+
+summary({
+ 'EXIF support': enable_libexif,
+ 'XMP support': enable_xmp,
+ 'JPEG support': enable_libjpeg,
+ 'Colour management support': enable_cms,
+ 'GObject introspection': enable_introspection,
+ 'xdg-desktop-portal support': enable_libportal,
+}, section: 'Features')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]