]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
build, meson: Print option summary
authorMartin Belanger <martin.belanger@dell.com>
Wed, 15 Mar 2023 19:49:43 +0000 (15:49 -0400)
committerDaniel Wagner <wagi@monom.org>
Thu, 16 Mar 2023 16:36:18 +0000 (17:36 +0100)
At the end of the meson setup command, display the options so that
we can quickly determine that we're configured the project properly

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
meson.build

index 45d1d2b341bfa19b0eba808620497168b22e9afd..9b1abe0f9ee9fa3d19ee92d8fb0aa3d473ec7a5a 100644 (file)
@@ -252,3 +252,18 @@ subdir('libnvme')
 subdir('test')
 subdir('examples')
 subdir('doc')
+
+################################################################################
+if meson.version().version_compare('>=0.53.0')
+    summary_dict = {
+        'prefixdir':         prefixdir,
+        'sysconfdir':        sysconfdir,
+        'bindir':            bindir,
+        'includedir':        includedir,
+        'datadir':           datadir,
+        'mandir':            mandir,
+        'libdir':            libdir,
+        'build location':    meson.current_build_dir(),
+    }
+    summary(summary_dict)
+endif