mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 03:11:27 +00:00
build: improve feature summary
Use the Meson summary() built-in instead of manually formatting a message. wlroots already depends on Meson 0.54.0.
This commit is contained in:
parent
2373af77d4
commit
7251df94c1
22
meson.build
22
meson.build
|
@ -3,7 +3,7 @@ project(
|
||||||
'c',
|
'c',
|
||||||
version: '1.4', #release_version
|
version: '1.4', #release_version
|
||||||
license: 'MIT',
|
license: 'MIT',
|
||||||
meson_version: '>=0.48.0',
|
meson_version: '>=0.53.0',
|
||||||
default_options: [
|
default_options: [
|
||||||
'c_std=c11',
|
'c_std=c11',
|
||||||
'warning_level=2',
|
'warning_level=2',
|
||||||
|
@ -292,18 +292,14 @@ if get_option('fish-completions')
|
||||||
install_data(fish_files, install_dir: fish_install_dir)
|
install_data(fish_files, install_dir: fish_install_dir)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
status = [
|
summary({
|
||||||
'',
|
'xwayland': have_xwayland,
|
||||||
'Features:',
|
'gdk-pixbuf': gdk_pixbuf.found(),
|
||||||
'xwayland: @0@'.format(have_xwayland),
|
'systemd': systemd.found(),
|
||||||
'gdk-pixbuf: @0@'.format(gdk_pixbuf.found()),
|
'elogind': elogind.found(),
|
||||||
'systemd: @0@'.format(systemd.found()),
|
'tray': have_tray,
|
||||||
'elogind: @0@'.format(elogind.found()),
|
'man-pages': scdoc.found(),
|
||||||
'tray: @0@'.format(have_tray),
|
}, bool_yn: true)
|
||||||
'man-pages: @0@'.format(scdoc.found()),
|
|
||||||
'',
|
|
||||||
]
|
|
||||||
message('\n'.join(status))
|
|
||||||
|
|
||||||
if not systemd.found() and not elogind.found()
|
if not systemd.found() and not elogind.found()
|
||||||
warning('The sway binary must be setuid when compiled without (e)logind')
|
warning('The sway binary must be setuid when compiled without (e)logind')
|
||||||
|
|
Loading…
Reference in a new issue