summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2022-03-20 15:32:55 -0700
committerMatt Turner <mattst88@gmail.com>2022-03-20 15:33:56 -0700
commit1003d5c2a69e6c28dcf68adf10181b5180b5defa (patch)
treef5a0eda3ea3be6961b627b479508a7b7bc0195a0 /doc
parentc889154ec8e3e2239db9260d48b2e198d72ba002 (diff)
downloadupower-1003d5c2a69e6c28dcf68adf10181b5180b5defa.tar.gz
meson: Don't search for gtk-doc if disabled
Diffstat (limited to 'doc')
-rw-r--r--doc/meson.build38
1 files changed, 20 insertions, 18 deletions
diff --git a/doc/meson.build b/doc/meson.build
index dc93a16..5fc253c 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -27,21 +27,23 @@ version_xml = configure_file(
input: 'version.xml.in',
configuration: cdata)
-gnome.gtkdoc('UPower',
- main_xml: 'upower-docs.xml',
- src_dir: meson.source_root() / 'libupower-glib',
- dependencies: [ libupower_glib_dep ],
- scan_args: ['--rebuild-types', '--rebuild-sections'],
- content_files: [
- version_xml,
- ifaces_refs,
- 'man/UPower.xml',
- 'man/upowerd.xml',
- 'man/upower.xml',
- '../COPYING',
- ],
- ignore_headers: [
- 'config.h',
- ],
- install: get_option('gtk-doc')
-)
+if get_option('gtk-doc')
+ gnome.gtkdoc('UPower',
+ main_xml: 'upower-docs.xml',
+ src_dir: meson.source_root() / 'libupower-glib',
+ dependencies: [ libupower_glib_dep ],
+ scan_args: ['--rebuild-types', '--rebuild-sections'],
+ content_files: [
+ version_xml,
+ ifaces_refs,
+ 'man/UPower.xml',
+ 'man/upowerd.xml',
+ 'man/upower.xml',
+ '../COPYING',
+ ],
+ ignore_headers: [
+ 'config.h',
+ ],
+ install: true
+ )
+endif