]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
build: Extend summary section
authorDaniel Wagner <dwagner@suse.de>
Fri, 14 Apr 2023 07:55:44 +0000 (09:55 +0200)
committerDaniel Wagner <wagi@monom.org>
Fri, 14 Apr 2023 08:03:21 +0000 (10:03 +0200)
List also the dependencies in the summary.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
libnvme/meson.build
meson.build

index 4138df3e6f8970571f802ec9ed658177bca1f9c0..742de11e3aa005e01c425c1c60ea2c49de6a2e2a 100644 (file)
@@ -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)
index c8c1463fac0de88dd66989233afe5f47aaa4de10..cf6e4f4b53e5e2778ef9e3e7cdda4004fccbd33c 100644 (file)
@@ -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