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

Umang Jain umang.jain at ideasonboard.com
Mon May 24 04:41:00 CEST 2021


Hi Laurent,

Thanks for the patch.

On 5/24/21 6:07 AM, Laurent Pinchart wrote:
> 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.
Agreed.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain 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)



More information about the libcamera-devel mailing list