From: Tim-Philipp Müller Date: Sat, 3 Nov 2018 00:10:19 +0000 (+0000) Subject: meson: check for gtkdoc-scan X-Git-Tag: 0.1.15~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=945da0494f5800608d3d13d3f5e9876faac8f2b1;p=platform%2Fupstream%2Flibnice.git meson: check for gtkdoc-scan --- diff --git a/meson.build b/meson.build index 7233dea..22c9081 100644 --- a/meson.build +++ b/meson.build @@ -229,8 +229,14 @@ if gst_dep.found() subdir('gst') endif -if not get_option('gtk_doc').disabled() - subdir('docs/reference/libnice') +if build_machine.system() == 'windows' + message('Disabling gtk-doc while building on Windows') +else + if find_program('gtkdoc-scan', required: get_option('gtk_doc')).found() + subdir('docs/reference/libnice') + else + message('Not building documentation as gtk-doc was not found') + endif endif if not get_option('tests').disabled()