summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-05-15 20:51:33 -0400
committerDavid Robillard <d@drobilla.net>2023-05-15 20:52:02 -0400
commit6805327a511242ce9697ccfb98be4569d8883e33 (patch)
tree86a201b73d8a18b0484aeb990bf89f0b645c7c17
parent7d9b0bd3990e0b528ba0bc92421f7f5396e77486 (diff)
downloadsratom-6805327a511242ce9697ccfb98be4569d8883e33.tar.gz
sratom-6805327a511242ce9697ccfb98be4569d8883e33.tar.bz2
sratom-6805327a511242ce9697ccfb98be4569d8883e33.zip
Organize configuration summary
-rw-r--r--meson.build29
1 files 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