meson: Add 'Build Configuration' section

Easily seeing the buildtype and debug status can be quite useful.
Gnome-Shell already has it.

And while on it, add a 'Directories' section for already existing
entries.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2044>
This commit is contained in:
Robert Mader 2021-10-06 20:34:03 +02:00
parent c1f5e57f2b
commit a0a612f18f

View File

@ -540,9 +540,12 @@ subdir('doc/man')
meson.add_install_script('meson/meson-postinstall.sh') meson.add_install_script('meson/meson-postinstall.sh')
meson.add_dist_script('meson/check-version.py', meson.project_version(), 'NEWS') meson.add_dist_script('meson/check-version.py', meson.project_version(), 'NEWS')
summary('prefix', prefix) summary('prefix', prefix, section: 'Directories')
summary('libexecdir', libexecdir) summary('libexecdir', libexecdir, section: 'Directories')
summary('pkgdatadir', pkgdatadir) summary('pkgdatadir', pkgdatadir, section: 'Directories')
summary('buildtype', get_option('buildtype'), section: 'Build Configuration')
summary('debug', get_option('debug'), section: 'Build Configuration')
summary('OpenGL', have_gl, section: 'Rendering APIs') summary('OpenGL', have_gl, section: 'Rendering APIs')
summary('GLES2', have_gles2, section: 'Rendering APIs') summary('GLES2', have_gles2, section: 'Rendering APIs')