aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-02-27 16:00:28 -0500
committerGitHub <noreply@github.com>2019-02-27 16:00:28 -0500
commitaea33551fb517a47533b87338da1ccb8a3f0c1a5 (patch)
treee0d5735a7f6e40114673234838c9e08f287958bf
parentd016848bcee829a9db09ed640d075bcff914f06b (diff)
parent6658d69271daa932eeeec9f35bf7b81f84992ba5 (diff)
Merge pull request #3787 from emersion/meson-print-features
Print Meson features
-rw-r--r--meson.build23
1 files changed, 18 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index d3172bdd..3c3c1f41 100644
--- a/meson.build
+++ b/meson.build
@@ -93,11 +93,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')
@@ -235,3 +230,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