mirror of
https://github.com/NickHu/sway
synced 2024-12-27 21:58:11 +01:00
Print Meson features
This commit is contained in:
parent
d016848bce
commit
6658d69271
1 changed files with 18 additions and 5 deletions
23
meson.build
23
meson.build
|
@ -93,11 +93,6 @@ conf_data.set10('HAVE_SYSTEMD', systemd.found())
|
||||||
conf_data.set10('HAVE_ELOGIND', elogind.found())
|
conf_data.set10('HAVE_ELOGIND', elogind.found())
|
||||||
conf_data.set10('HAVE_TRAY', have_tray)
|
conf_data.set10('HAVE_TRAY', have_tray)
|
||||||
|
|
||||||
if not systemd.found() and not elogind.found()
|
|
||||||
warning('The sway binary must be setuid when compiled without (e)logind')
|
|
||||||
warning('You must do this manually post-install: chmod a+s /path/to/sway')
|
|
||||||
endif
|
|
||||||
|
|
||||||
scdoc = find_program('scdoc', required: get_option('man-pages'))
|
scdoc = find_program('scdoc', required: get_option('man-pages'))
|
||||||
if scdoc.found()
|
if scdoc.found()
|
||||||
sh = find_program('sh')
|
sh = find_program('sh')
|
||||||
|
@ -235,3 +230,21 @@ 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 = [
|
||||||
|
'',
|
||||||
|
'Features:',
|
||||||
|
'xwayland: @0@'.format(have_xwayland),
|
||||||
|
'gdk-pixbuf: @0@'.format(gdk_pixbuf.found()),
|
||||||
|
'systemd: @0@'.format(systemd.found()),
|
||||||
|
'elogind: @0@'.format(elogind.found()),
|
||||||
|
'tray: @0@'.format(have_tray),
|
||||||
|
'man-pages: @0@'.format(scdoc.found()),
|
||||||
|
'',
|
||||||
|
]
|
||||||
|
message('\n'.join(status))
|
||||||
|
|
||||||
|
if not systemd.found() and not elogind.found()
|
||||||
|
warning('The sway binary must be setuid when compiled without (e)logind')
|
||||||
|
warning('You must do this manually post-install: chmod a+s /path/to/sway')
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in a new issue