And check the presence of gtk-doc before building the documentation
gnome.gtkdoc('gst-editing-services-@0@'.format(apiversion),
main_sgml : 'ges-docs.sgml',
- src_dir : '@0@/ges'.format(meson.source_root()),
+ src_dir : '@0@/../../ges'.format(meson.current_source_dir()),
scan_args : ['--deprecated-guards=GST_DISABLE_DEPRECATED',
'--ignore-decorators=GST_EXPORT',
'--ignore-headers=gesmarshal.h ges-internal.h ges-auto-transition.h ges-structured-interface.h ges-structure-parser.h ges-smart-video-mixer.h gstframepositioner.h'
gir = find_program('g-ir-scanner', required : false)
gnome = import('gnome')
+gtkdoc = find_program('gtkdoc-scan', required : false)
# Fixme, not very elegant.
build_gir = gir.found() and not meson.is_cross_build()
subdir('pkgconfig')
subdir('tests')
subdir('examples')
-subdir('docs')
+
+if build_machine.system() != 'windows'
+ if gtkdoc.found()
+ subdir('docs')
+ else
+ message('Not building documentation as gtk-doc was not found')
+ endif
+else
+ message('Disabling gtk-doc while building on Windows')
+endif