Skip test cases/frameworks/10 gtk-doc if gtkdoc not found

This commit is contained in:
Jon Turney 2018-02-12 21:04:24 +00:00
parent b5edf78204
commit 90cbe48968
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
project('gtkdoctest', 'c', version : '1.0.0')
gtkdoc = find_program('gtkdoc-scan', required: false)
if not gtkdoc.found()
error('MESON_SKIP_TEST gtkdoc not found.')
endif
gnome = import('gnome')
assert(gnome.gtkdoc_html_dir('foobar') == 'share/gtk-doc/html/foobar', 'Gtkdoc install dir is incorrect.')