build: Switch to meson's summary command
This is more concise and produces output that is more consistent with other meson output (and between projects). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1957>
This commit is contained in:
parent
8158e96004
commit
77f468e391
1 changed files with 31 additions and 49 deletions
80
meson.build
80
meson.build
|
@ -1,6 +1,6 @@
|
||||||
project('mutter', 'c',
|
project('mutter', 'c',
|
||||||
version: '41.beta',
|
version: '41.beta',
|
||||||
meson_version: '>= 0.51.0',
|
meson_version: '>= 0.53.0',
|
||||||
license: 'GPLv2+'
|
license: 'GPLv2+'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -511,51 +511,33 @@ subdir('doc/man')
|
||||||
|
|
||||||
meson.add_install_script('meson/meson-postinstall.sh')
|
meson.add_install_script('meson/meson-postinstall.sh')
|
||||||
|
|
||||||
output = [
|
summary('prefix', prefix)
|
||||||
'',
|
summary('libexecdir', libexecdir)
|
||||||
'',
|
summary('pkgdatadir', pkgdatadir)
|
||||||
' Mutter ' + meson.project_version(),
|
|
||||||
' ===============',
|
summary('OpenGL', have_gl, section: 'Rendering APIs')
|
||||||
'',
|
summary('GLES2', have_gles2, section: 'Rendering APIs')
|
||||||
' Prefix....................... ' + prefix,
|
summary('EGL', have_egl, section: 'Rendering APIs')
|
||||||
' libexecdir................... ' + libexecdir,
|
summary('GLX', have_glx, section: 'Rendering APIs')
|
||||||
' pkgdatadir................... ' + pkgdatadir,
|
|
||||||
'',
|
summary('Wayland', have_wayland, section: 'Options')
|
||||||
' Rendering APIs:',
|
summary('Wayland EGLStream', have_wayland_eglstream, section: 'Options')
|
||||||
'',
|
summary('Native Backend', have_native_backend, section: 'Options')
|
||||||
' OpenGL................... ' + have_gl.to_string(),
|
summary('EGL Device', have_egl_device, section: 'Options')
|
||||||
' GLES2.................... ' + have_gles2.to_string(),
|
summary('Remote desktop', have_remote_desktop, section: 'Options')
|
||||||
' EGL...................... ' + have_egl.to_string(),
|
summary('gudev', have_libgudev, section: 'Options')
|
||||||
' GLX...................... ' + have_glx.to_string(),
|
summary('Wacom', have_libwacom, section: 'Options')
|
||||||
'',
|
summary('SM', have_sm, section: 'Options')
|
||||||
' Options:',
|
summary('Startup notification', have_startup_notification, section: 'Options')
|
||||||
'',
|
summary('Introspection', have_introspection, section: 'Options')
|
||||||
' Wayland.................. ' + have_wayland.to_string(),
|
summary('Profiler', have_profiler, section: 'Options')
|
||||||
' Wayland EGLStream........ ' + have_wayland_eglstream.to_string(),
|
summary('Xwayland initfd', have_xwayland_initfd, section: 'Options')
|
||||||
' Native Backend........... ' + have_native_backend.to_string(),
|
summary('Xwayland listenfd', have_xwayland_listenfd, section: 'Options')
|
||||||
' EGL Device............... ' + have_egl_device.to_string(),
|
summary('Safe X11 I/O errors', have_xsetioerrorexithandler, section: 'Options')
|
||||||
' Remote desktop........... ' + have_remote_desktop.to_string(),
|
|
||||||
' gudev.................... ' + have_libgudev.to_string(),
|
summary('Enabled', have_tests, section: 'Tests')
|
||||||
' Wacom.................... ' + have_libwacom.to_string(),
|
summary('Core tests', have_core_tests, section: 'Tests')
|
||||||
' SM....................... ' + have_sm.to_string(),
|
summary('Cogl tests', have_cogl_tests, section: 'Tests')
|
||||||
' Startup notification..... ' + have_startup_notification.to_string(),
|
summary('Clutter tests', have_clutter_tests, section: 'Tests')
|
||||||
' Introspection............ ' + have_introspection.to_string(),
|
summary('Installed tests', have_installed_tests, section: 'Tests')
|
||||||
' Profiler................. ' + have_profiler.to_string(),
|
summary('Coverage', get_option('b_coverage'), section: 'Tests')
|
||||||
' Xwayland initfd.......... ' + have_xwayland_initfd.to_string(),
|
|
||||||
' Xwayland listenfd........ ' + have_xwayland_listenfd.to_string(),
|
|
||||||
' Safe X11 I/O errors...... ' + have_xsetioerrorexithandler.to_string(),
|
|
||||||
'',
|
|
||||||
' Tests:',
|
|
||||||
'',
|
|
||||||
' Enabled.................. ' + have_tests.to_string(),
|
|
||||||
' Core tests............... ' + have_core_tests.to_string(),
|
|
||||||
' Cogl tests............... ' + have_cogl_tests.to_string(),
|
|
||||||
' Clutter tests............ ' + have_clutter_tests.to_string(),
|
|
||||||
' Installed tests.......... ' + have_installed_tests.to_string(),
|
|
||||||
' Coverage................. ' + get_option('b_coverage').to_string(),
|
|
||||||
'',
|
|
||||||
' Now type \'ninja -C ' + meson.build_root() + '\' to build ' + meson.project_name(),
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
]
|
|
||||||
message('\n'.join(output))
|
|
||||||
|
|
Loading…
Reference in a new issue