summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-05-15 20:53:13 -0400
committerDavid Robillard <d@drobilla.net>2023-05-15 20:53:13 -0400
commit46f4bcbe04330645a11d00e56a7754cc1386bc45 (patch)
tree234fa854bc9297a2df6c679bbe353c998f2167fb
parent4ccc78edb2b0e515e08d2130457e078b23eb0802 (diff)
downloadsord-46f4bcbe04330645a11d00e56a7754cc1386bc45.tar.gz
sord-46f4bcbe04330645a11d00e56a7754cc1386bc45.tar.bz2
sord-46f4bcbe04330645a11d00e56a7754cc1386bc45.zip
Organize configuration summary
-rw-r--r--doc/meson.build2
-rw-r--r--meson.build50
2 files changed, 36 insertions, 16 deletions
diff --git a/doc/meson.build b/doc/meson.build
index 01e6bdc..f194e4c 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -35,5 +35,5 @@ if not get_option('docs').disabled()
endif
if not meson.is_subproject()
- summary('API Documentation', build_docs, bool_yn: true)
+ summary('API Documentation', build_docs, bool_yn: true, section: 'Components')
endif
diff --git a/meson.build b/meson.build
index 8894be4..bc81107 100644
--- a/meson.build
+++ b/meson.build
@@ -148,25 +148,45 @@ if not get_option('tools').disabled()
endif
endif
-if not get_option('docs').disabled()
- subdir('doc')
+# Display top-level summary (before subdirectories to appear first)
+if not meson.is_subproject()
+ summary(
+ {
+ 'Tests': not get_option('tests').disabled(),
+ 'Tools': not get_option('tools').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',
+ )
+
+ if not get_option('tools').disabled()
+ summary(
+ {
+ 'Executables': get_option('prefix') / get_option('bindir'),
+ 'Man pages': get_option('prefix') / get_option('mandir'),
+ },
+ section: 'Directories',
+ )
+ endif
endif
+###########
+# Support #
+###########
+
if not get_option('tests').disabled()
subdir('test')
endif
-if not meson.is_subproject()
- summary('Tests', not get_option('tests').disabled(), bool_yn: true)
- summary('Utilities', not get_option('tools').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'))
-
- if not get_option('tools').disabled()
- summary('Executables', get_option('prefix') / get_option('bindir'))
- summary('Man pages', get_option('prefix') / get_option('mandir'))
- endif
+if not get_option('docs').disabled()
+ subdir('doc')
endif