From 6339d0faed4fd0e9fd86b8303d60379a8097523b Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 14 Apr 2023 09:55:44 +0200 Subject: [PATCH] build: Extend summary section List also the dependencies in the summary. Signed-off-by: Daniel Wagner --- libnvme/meson.build | 1 + meson.build | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/libnvme/meson.build b/libnvme/meson.build index 4138df3e..742de11e 100644 --- a/libnvme/meson.build +++ b/libnvme/meson.build @@ -8,6 +8,7 @@ want_python = get_option('python') if want_python.disabled() build_python_bindings = false + py3_dep = dependency('', required: false) else python3 = import('python').find_installation('python3') py3_dep = python3.dependency(required: want_python) diff --git a/meson.build b/meson.build index c8c1463f..cf6e4f4b 100644 --- a/meson.build +++ b/meson.build @@ -270,7 +270,7 @@ subdir('doc') ################################################################################ if meson.version().version_compare('>=0.53.0') - summary_dict = { + path_dict = { 'prefixdir': prefixdir, 'sysconfdir': sysconfdir, 'bindir': bindir, @@ -280,5 +280,13 @@ if meson.version().version_compare('>=0.53.0') 'libdir': libdir, 'build location': meson.current_build_dir(), } - summary(summary_dict) + summary(path_dict, section: 'Paths') + dep_dict = { + 'json-c': json_c_dep.found(), + 'OpenSSL': openssl_dep.found(), + 'keyutitls': keyutils_dep.found(), + 'libdbus': libdbus_dep.found(), + 'Python 3': py3_dep.found(), + } + summary(dep_dict, section: 'Dependencies') endif -- 2.51.0