libcamera: Use meson summary() function to summarize configuration

Now that Debian backports have been updated to meson v0.56, all major
distributions provide meson >= v0.53 in their latest LTS version. We can
replace the manual message()-based configuration summary with the
summary() function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Fricke <sebastian.fricke@posteo.net>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2021-01-20 18:07:44 +02:00
parent 7b4ed981c7
commit 8e1e10283a
+4 -2
View File
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: CC0-1.0
project('libcamera', 'c', 'cpp',
meson_version : '>= 0.51',
meson_version : '>= 0.53',
version : '0.0.0',
default_options : [
'werror=true',
@@ -155,4 +155,6 @@ py_mod = import('python')
py_mod.find_installation('python3', modules: py_modules)
## Summarise Configurations
message('Enabled pipelines: ' + ', '.join(get_option('pipelines')))
summary({
'Enabled pipelines': get_option('pipelines'),
}, section : 'Configuration')