summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-11-03 10:57:51 +0100
committerAleksander Morgado <aleksander@aleksander.es>2021-11-03 10:57:53 +0100
commit295b75e9c8dc895e281e36b1e8121d09fd556af0 (patch)
tree899d11450625ed05c8029703739abea59a6206d5 /meson_options.txt
parentd960af37d8e7e487962f785210e9cf43bb3666f6 (diff)
downloadlibqmi-295b75e9c8dc895e281e36b1e8121d09fd556af0.tar.gz
build: add an option to not build man pages
When cross-compiling, the compiled binaries cannot be run on the build machine, unless one defines a helper (e.g. qemu) in the meson configuration, which is most of the time undesirable. If help2man is installed on the build machine, then the build would fail because of this, so add an option to disable generating the man pages. With later versions of meson, it will be possible to automatically detect this condition. Based on the same fix done in libmbim by Nicolas Cavallari, see https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/commit/792af73ea90e9689703ab526dd444fdb1c2f8e40 Fixes https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/issues/75
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 4d4f913d..bee5daac 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -16,5 +16,6 @@ option('udevdir', type: 'string', value: '', description: 'where udev base direc
option('introspection', type: 'feature', value: 'auto', description: 'build introspection support')
option('gtk_doc', type: 'boolean', value: false, description: 'use gtk-doc to build documentation')
+option('man', type: 'feature', value: 'auto', description: 'build man pages using help2man')
option('bash_completion', type: 'boolean', value: true, description: 'install bash completion files')