summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-02-27 21:26:50 +0100
committerFurkan Sahin <furkan-dev@proton.me>2019-02-27 21:26:50 +0100
commit3aaf05bf3a828054232b2b8b7695fa3e81eaa4e0 (patch)
tree8ebfde048e7367b6c799cd94d0902845e3ac2331 /meson.build
parent5435eaf5c4673351a620a0f92230bff6b2d13b64 (diff)
Print Meson features
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build23
1 files changed, 18 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index c2fc9969..53454cdd 100644
--- a/meson.build
+++ b/meson.build
@@ -95,11 +95,6 @@ conf_data.set10('HAVE_SYSTEMD', systemd.found())
conf_data.set10('HAVE_ELOGIND', elogind.found())
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'))
if scdoc.found()
sh = find_program('sh')
@@ -238,3 +233,21 @@ if get_option('fish-completions')
install_data(fish_files, install_dir: fish_install_dir)
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