From 6805327a511242ce9697ccfb98be4569d8883e33 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 15 May 2023 20:51:33 -0400 Subject: Organize configuration summary --- meson.build | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/meson.build b/meson.build index b9b2c13..ba2eac0 100644 --- a/meson.build +++ b/meson.build @@ -118,6 +118,26 @@ meson.override_dependency(versioned_name, sratom_dep) # Install header to a versioned include directory install_headers(c_headers, subdir: versioned_name / 'sratom') +# Display top-level summary (before subdirectories to appear first) +if not meson.is_subproject() + summary( + { + 'Tests': not get_option('tests').disabled(), + }, + bool_yn: true, + section: 'Components', + ) + + summary( + { + 'Install prefix': get_option('prefix'), + 'Headers': get_option('prefix') / get_option('includedir'), + 'Libraries': get_option('prefix') / get_option('libdir'), + }, + section: 'Directories', + ) +endif + ########### # Support # ########### @@ -129,12 +149,3 @@ endif if not get_option('docs').disabled() subdir('doc') endif - -if not meson.is_subproject() - summary('Tests', not get_option('tests').disabled(), bool_yn: true) - - summary('Install prefix', get_option('prefix')) - - summary('Headers', get_option('prefix') / get_option('includedir')) - summary('Libraries', get_option('prefix') / get_option('libdir')) -endif -- cgit v1.2.1