From 24433647326cf959ef765a68da49853f98436c73 Mon Sep 17 00:00:00 2001 From: Martin Belanger Date: Wed, 15 Mar 2023 15:49:43 -0400 Subject: [PATCH] build, meson: Print option summary 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 --- meson.build | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/meson.build b/meson.build index 45d1d2b3..9b1abe0f 100644 --- a/meson.build +++ b/meson.build @@ -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 -- 2.50.1