From c163f0a0c7494027e603105284e1c2882ab69ed1 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Thu, 24 Jan 2019 21:14:13 +0000 Subject: [PATCH] Add man-pages option like swaywm/sway@ba16f16e4d5a --- meson.build | 2 +- meson_options.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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')