libgnt/libgnt

Add an option to disable building the docs
release-2.x.y
2021-09-25, Helmut Grohne
2374624f79fe
Parents ec210e0a9332
Children a29533a581fe
Add an option to disable building the docs

Testing Done:
Built with the option on and off.

Bugs closed: LIBGNT-17

Reviewed at https://reviews.imfreedom.org/r/945/
--- a/doc/meson.build Thu Sep 23 23:13:30 2021 -0500
+++ b/doc/meson.build Sat Sep 25 22:33:49 2021 -0500
@@ -1,3 +1,5 @@
+if get_option('doc')
+
DOC_MODULE = 'libgnt'
# Header files or dirs to ignore when scanning. Use base file/dir names
@@ -35,3 +37,6 @@
scan_args : scan_args,
mkdb_args : mkdb_args,
gobject_typesfile : DOC_MODULE + '.types')
+
+endif # get_option('doc')
+
--- a/meson_options.txt Thu Sep 23 23:13:30 2021 -0500
+++ b/meson_options.txt Sat Sep 25 22:33:49 2021 -0500
@@ -4,3 +4,9 @@
description: 'Whether or not to include python support.',
)
+option(
+ 'doc',
+ type: 'boolean', value: true,
+ description: 'Whether or not to build the documentation.',
+)
+