summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKoop Mast <kwm@rainbow-runner.nl>2018-05-12 08:38:06 +0200
committerPhilip Withnall <withnall@endlessm.com>2018-08-08 12:18:28 +0100
commitddd245227eb8459587e87a79fa06e8aaea0dabba (patch)
tree04fa817213270093e0f4d087691bd8c26349270b /docs
parent3ca627dd677793288055b491c4929ca6abbe7d03 (diff)
downloaddconf-ddd245227eb8459587e87a79fa06e8aaea0dabba.tar.gz
Allow manpages to be build seperate from gtk-doc.
Move the get_option('enable-gtk-doc') to the meson.build file in docs. And wrap the gtk-doc code, so 'enable-man' can be used independant from gtkdoc. Instead of skipping the docs directory completly. Reviewed-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=794446
Diffstat (limited to 'docs')
-rw-r--r--docs/meson.build28
1 files changed, 15 insertions, 13 deletions
diff --git a/docs/meson.build b/docs/meson.build
index d74eedf..47f9062 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -1,16 +1,18 @@
-gnome.gtkdoc(
- meson.project_name(),
- main_xml: meson.project_name() + '-docs.xml',
- src_dir: [
- common_inc,
- client_inc
- ],
- dependencies: libdconf_dep,
- scan_args: '--rebuild-types',
- gobject_typesfile: meson.project_name() + '.types',
- install: true,
- install_dir: join_paths(dconf_datadir, 'gtk-doc', 'html', meson.project_name())
-)
+if get_option('enable-gtk-doc')
+ gnome.gtkdoc(
+ meson.project_name(),
+ main_xml: meson.project_name() + '-docs.xml',
+ src_dir: [
+ common_inc,
+ client_inc
+ ],
+ dependencies: libdconf_dep,
+ scan_args: '--rebuild-types',
+ gobject_typesfile: meson.project_name() + '.types',
+ install: true,
+ install_dir: join_paths(dconf_datadir, 'gtk-doc', 'html', meson.project_name())
+ )
+endif
if get_option('enable-man')
xsltproc = find_program('xsltproc', required: false)