aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2019-02-27 21:26:50 +0100
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-03-04 12:50:47 -0500
commitacc28cf9bb07c7194207dbcba0bf1d93f99c58e3 (patch)
tree8ebfde048e7367b6c799cd94d0902845e3ac2331
parentSet minimum wlroots version (diff)
downloadsway-acc28cf9bb07c7194207dbcba0bf1d93f99c58e3.tar.gz
sway-acc28cf9bb07c7194207dbcba0bf1d93f99c58e3.tar.zst
sway-acc28cf9bb07c7194207dbcba0bf1d93f99c58e3.zip
Print Meson features
-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())
95conf_data.set10('HAVE_ELOGIND', elogind.found()) 95conf_data.set10('HAVE_ELOGIND', elogind.found())
96conf_data.set10('HAVE_TRAY', have_tray) 96conf_data.set10('HAVE_TRAY', have_tray)
97 97
98if not systemd.found() and not elogind.found()
99 warning('The sway binary must be setuid when compiled without (e)logind')
100 warning('You must do this manually post-install: chmod a+s /path/to/sway')
101endif
102
103scdoc = find_program('scdoc', required: get_option('man-pages')) 98scdoc = find_program('scdoc', required: get_option('man-pages'))
104if scdoc.found() 99if scdoc.found()
105 sh = find_program('sh') 100 sh = find_program('sh')
@@ -238,3 +233,21 @@ if get_option('fish-completions')
238 233
239 install_data(fish_files, install_dir: fish_install_dir) 234 install_data(fish_files, install_dir: fish_install_dir)
240endif 235endif
236
237status = [
238 '',
239 'Features:',
240 'xwayland: @0@'.format(have_xwayland),
241 'gdk-pixbuf: @0@'.format(gdk_pixbuf.found()),
242 'systemd: @0@'.format(systemd.found()),
243 'elogind: @0@'.format(elogind.found()),
244 'tray: @0@'.format(have_tray),
245 'man-pages: @0@'.format(scdoc.found()),
246 '',
247]
248message('\n'.join(status))
249
250if not systemd.found() and not elogind.found()
251 warning('The sway binary must be setuid when compiled without (e)logind')
252 warning('You must do this manually post-install: chmod a+s /path/to/sway')
253endif