From 38b693c2d0c4ad8c3c51c0b4836b0147e729748f Mon Sep 17 00:00:00 2001 From: Zeeshan Ali Date: Wed, 11 Jul 2018 18:57:25 +0200 Subject: 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. --- meson.build | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1