diff options
author | David Robillard <d@drobilla.net> | 2023-05-15 20:53:13 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-15 20:53:13 -0400 |
commit | 46f4bcbe04330645a11d00e56a7754cc1386bc45 (patch) | |
tree | 234fa854bc9297a2df6c679bbe353c998f2167fb /meson.build | |
parent | 4ccc78edb2b0e515e08d2130457e078b23eb0802 (diff) | |
download | sord-46f4bcbe04330645a11d00e56a7754cc1386bc45.tar.gz sord-46f4bcbe04330645a11d00e56a7754cc1386bc45.tar.bz2 sord-46f4bcbe04330645a11d00e56a7754cc1386bc45.zip |
Organize configuration summary
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 50 |
1 files changed, 35 insertions, 15 deletions
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 |