summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-09-28 14:17:37 +0200
committerLibravatar GitHub <noreply@github.com>2018-09-28 14:17:37 +0200
commit1698260533ea71791d07cfc9d0efab08fb893450 (patch)
treef1dcfbd0a59ce356f7d4cec1d076358e0d00e387 /meson.build
parentMerge pull request #2716 from sghctoma/fix-swaybar-freebsd (diff)
parentAdd support for building swaylock without PAM (diff)
downloadsway-1698260533ea71791d07cfc9d0efab08fb893450.tar.gz
sway-1698260533ea71791d07cfc9d0efab08fb893450.tar.zst
sway-1698260533ea71791d07cfc9d0efab08fb893450.zip
Merge pull request #2720 from swaywm/swaylock-shadow
Add support for building swaylock without PAM
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
1 files changed, 6 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 76eaff20..de6573ea 100644
--- a/meson.build
+++ b/meson.build
@@ -74,6 +74,11 @@ if elogind.found()
74 swayidle_deps += elogind 74 swayidle_deps += elogind
75endif 75endif
76 76
77if not systemd.found() and not elogind.found()
78 warning('The sway binary must be setuid when compiled without (e)logind')
79 warning('You must do this manually post-install: chmod a+s /path/to/sway')
80endif
81
77scdoc = find_program('scdoc', required: false) 82scdoc = find_program('scdoc', required: false)
78 83
79if scdoc.found() 84if scdoc.found()
@@ -139,10 +144,7 @@ subdir('swaybg')
139subdir('swaybar') 144subdir('swaybar')
140subdir('swayidle') 145subdir('swayidle')
141subdir('swaynag') 146subdir('swaynag')
142 147subdir('swaylock')
143if libpam.found()
144 subdir('swaylock')
145endif
146 148
147config = configuration_data() 149config = configuration_data()
148config.set('sysconfdir', join_paths(prefix, sysconfdir)) 150config.set('sysconfdir', join_paths(prefix, sysconfdir))