From 945da0494f5800608d3d13d3f5e9876faac8f2b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 3 Nov 2018 00:10:19 +0000 Subject: [PATCH] meson: check for gtkdoc-scan --- meson.build | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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() -- 2.7.4