summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-12-19 12:06:35 +0000
committerRichard Hughes <richard@hughsie.com>2017-12-19 12:06:35 +0000
commit0a56ace00022bbd59f71c3ea2e0dc49e568d5777 (patch)
tree5f06e662211a145746887156f6d75b28ef53831e
parent11f683782cdcc54d36f218dd6502b7eeea1d8811 (diff)
downloadgusb-0a56ace00022bbd59f71c3ea2e0dc49e568d5777.tar.gz
Provide a meson configure argument for disabling the docs
-rw-r--r--docs/meson.build2
-rw-r--r--meson_options.txt1
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/meson.build b/docs/meson.build
index dc2bb41..aab4c62 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -1 +1,3 @@
+if get_option('docs')
subdir('api')
+endif
diff --git a/meson_options.txt b/meson_options.txt
index 2154da2..f6413a4 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,3 +1,4 @@
option('tests', type : 'boolean', value : true, description : 'Build self tests')
option('vapi', type : 'boolean', value : true, description : 'Build VAPI')
option('usb_ids', type : 'string', value : '/usr/share/hwdata/usb.ids', description : 'Path to usb.ids file')
+option('docs', type : 'boolean', value : true, description : 'Generate documentation')