From 3c495aa937b088ebf0a0fb4fd4aedd7e0c09352a Mon Sep 17 00:00:00 2001 From: Martin Belanger Date: Wed, 15 Mar 2023 15:49:43 -0400 Subject: [PATCH] build: 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 [dwagner: ported this from libnvme to nvme-cli] Signed-off-by: Daniel Wagner --- meson.build | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/meson.build b/meson.build index eab89a9a..e7f8f8b2 100644 --- a/meson.build +++ b/meson.build @@ -300,3 +300,19 @@ endforeach install_data(disc, install_dir: join_paths(sysconfdir, 'nvme')) + +################################################################################ +if meson.version().version_compare('>=0.53.0') + summary_dict = { + 'prefixdir': prefixdir, + 'sysconfdir': sysconfdir, + 'sbindir': sbindir, + 'datadir': datadir, + 'mandir': mandir, + 'udevrulesdir': udevrulesdir, + 'dracutrulesdir': dracutrulesdir, + 'systemddir': systemddir, + 'build location': meson.current_build_dir(), + } + summary(summary_dict) +endif -- 2.50.1