diff options
author | David Heidelberg <david@ixit.cz> | 2019-10-27 20:34:55 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2019-10-28 08:38:21 +1000 |
commit | 18722d30b9eb38d0cd22609e076ad45c810f137d (patch) | |
tree | a7320e437872d51cfa44bb42ff5e982e2701ac5f | |
parent | dfb1cad033ddfbcd54b528ef081a73043d4746d0 (diff) | |
download | libwacom-18722d30b9eb38d0cd22609e076ad45c810f137d.tar.gz |
meson: make documentation a feature
Nice to have for distributions, which needs to have predicable build.
Signed-off-by: David Heidelberg <david@ixit.cz>
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | meson_options.txt | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 8283613..be2fcb3 100644 --- a/meson.build +++ b/meson.build @@ -460,7 +460,8 @@ install_man(configure_file(input: 'tools/libwacom-list-local-devices.man', copy: true)) ############### docs ########################### -doxygen = find_program('doxygen', required: false) +docs_feature = get_option('documentation') +doxygen = find_program('doxygen', required: docs_feature) if doxygen.found() src_doxygen = [ join_paths(dir_src, 'libwacom.h'), diff --git a/meson_options.txt b/meson_options.txt index 1d75434..84c92bf 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,3 +1,7 @@ +option('documentation', + type: 'feature', + value: 'auto', + description: 'Build doxygen documentation [default=auto]') option('udev-dir', type: 'string', value: '', |