[libcamera-devel] [PATCH] meson: Print summary boolean options in colours

Laurent Pinchart laurent.pinchart at ideasonboard.com
Mon May 24 02:37:03 CEST 2021


Boolean options in the summary are printed as 'True' or 'False' by
default. Enable the bool_yn option, which prints them as 'YES' or 'NO',
in green and red respectively. This makes the summary more readable.

Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
 meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 6626fa7ed154..df9c00d06662 100644
--- a/meson.build
+++ b/meson.build
@@ -175,4 +175,6 @@ summary({
             'qcam application': qcam_enabled,
             'lc-compliance application': lc_compliance_enabled,
             'Unit tests': test_enabled,
-        }, section : 'Configuration')
+        },
+        section : 'Configuration',
+        bool_yn : true)
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list