From bace17b6b3d022c046a20a3da25ac3f6fb7674c3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 15 May 2023 20:53:49 -0400 Subject: Organize configuration summary --- doc/meson.build | 2 +- meson.build | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/meson.build b/doc/meson.build index 4bccb1f..3f6f0bf 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -19,5 +19,5 @@ if build_docs endif if not meson.is_subproject() - summary('Documentation', build_docs, bool_yn: true) + summary('Documentation', build_docs, bool_yn: true, section: 'Components') endif diff --git a/meson.build b/meson.build index c490a5f..31937a7 100644 --- a/meson.build +++ b/meson.build @@ -334,8 +334,14 @@ if not get_option('docs').disabled() subdir('doc') endif +# Display top-level summary (augmented in subdirectories) if not meson.is_subproject() - summary('Install prefix', get_option('prefix')) - summary('Headers', get_option('prefix') / get_option('includedir')) - summary('Libraries', get_option('prefix') / get_option('libdir')) + summary( + { + 'Install prefix': get_option('prefix'), + 'Headers': get_option('prefix') / get_option('includedir'), + 'Libraries': get_option('prefix') / get_option('libdir'), + }, + section: 'Directories', + ) endif -- cgit v1.2.1