summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2019-01-24 21:14:13 +0000
committeremersion <contact@emersion.fr>2019-01-24 23:23:30 +0100
commitc163f0a0c7494027e603105284e1c2882ab69ed1 (patch)
tree1b837d201c85869f963336c17a7e29ae0a9ea43b
parent3d94a60924758ba0b7487b5b9c79b3ef7668c989 (diff)
Add man-pages option like swaywm/sway@ba16f16e4d5a
-rw-r--r--meson.build2
-rw-r--r--meson_options.txt1
2 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 3255d39..85dfe00 100644
--- a/meson.build
+++ b/meson.build
@@ -44,7 +44,7 @@ crypt = cc.find_library('crypt', required: not libpam.found())
math = cc.find_library('m')
git = find_program('git', required: false)
-scdoc = find_program('scdoc', required: false)
+scdoc = find_program('scdoc', required: get_option('man-pages'))
wayland_scanner = find_program('wayland-scanner')
version = get_option('swaylock-version')
diff --git a/meson_options.txt b/meson_options.txt
index 340d211..c870cb9 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,6 +1,7 @@
option('swaylock-version', type : 'string', description: 'The version string reported in `swaylock --version`')
option('pam', type: 'feature', value: 'auto', description: 'Use PAM instead of shadow')
option('gdk-pixbuf', type: 'feature', value: 'auto', description: 'Enable support for more image formats')
+option('man-pages', type: 'feature', value: 'auto', description: 'Generate and install man pages')
option('zsh-completions', type: 'boolean', value: true, description: 'Install zsh shell completions')
option('bash-completions', type: 'boolean', value: true, description: 'Install bash shell completions')
option('fish-completions', type: 'boolean', value: true, description: 'Install fish shell completions')