summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-06-08 18:47:35 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-06-08 18:47:35 +0100
commitbbac57454c0e6396f63111e0767f57476bd41a5f (patch)
tree8b1299305737fb659bc5853fdc9ca4195e4cc44d
parent764593212f164db8836b18645ee8571f86e562df (diff)
downloadtotem-pl-parser-bbac57454c0e6396f63111e0767f57476bd41a5f.tar.gz
build: Add an option for generating the API reference
The Autotools build generated the API reference only on demand, with the default setting being "off". We need the equivalent for Meson.
-rw-r--r--meson.build4
-rw-r--r--meson_options.txt2
2 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 1ad2002..d6f265b 100644
--- a/meson.build
+++ b/meson.build
@@ -236,8 +236,10 @@ plparser_inc = include_directories('plparse')
subdir('lib')
subdir('plparse')
-subdir('docs/reference')
subdir('po')
+if get_option('enable-gtk-doc')
+ subdir('docs/reference')
+endif
# config.h
configure_file(output: 'config.h', configuration: cdata)
diff --git a/meson_options.txt b/meson_options.txt
index b212221..00f66a3 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -8,3 +8,5 @@ option('enable-libgcrypt', type: 'combo', choices : ['yes', 'no', 'auto'], value
description : 'Enable libgcrypt support.')
option('enable-uninstalled-tests', type: 'boolean', value: 'false',
description : 'Enable uninstalled tests.')
+option('enable-gtk-doc', type: 'boolean', value: 'false',
+ description : 'Generate the API reference (depends on GTK-Doc)')