summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeeshan Ali <zeenix@collabora.co.uk>2018-07-11 18:57:25 +0200
committerZeeshan Ali <zeenix@collabora.co.uk>2018-07-11 19:29:19 +0200
commit38b693c2d0c4ad8c3c51c0b4836b0147e729748f (patch)
tree8fc5f67b889ddb9bc7698a66e18069ebfec10be8
parent52407997bfedb0ecb14c7871eec6df2e54a51434 (diff)
downloadgeoclue-38b693c2d0c4ad8c3c51c0b4836b0147e729748f.tar.gz
build: Only build service docs when library is enabled
This is wrong actually and service docs should be buildable on their own but see the comment added in this patch for reasons on why we need to do this for now.
-rw-r--r--meson.build10
1 files changed, 9 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 6c6541f..6e4a1c6 100644
--- a/meson.build
+++ b/meson.build
@@ -50,7 +50,15 @@ subdir('data')
subdir('demo')
subdir('po')
-if get_option('gtk-doc')
+# FIXME: The D-Bus docs should not need libgeoclue but after a few hours of
+# banging my head agaist gtk-doc+meson and asking on IRC, I failed to find a
+# way to tell gtk-doc to link to the uninstalled public-api static library. A
+# non-working solution is in 'wip/fix-srv-docs' branch.
+#
+# If you look into this issue, you might also want to see how we can fix the
+# dependency issue that stops the user to run `ninja -C build geoclue-doc`
+# before `ninja -C build`.
+if get_option('gtk-doc') and get_option('libgeoclue')
subdir('docs')
endif