mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
meson: doc: Fix building documentation when using subprojects
And check the presence of gtk-doc before building the documentation
This commit is contained in:
parent
d4af1b6c9a
commit
2b9863c8b5
2 changed files with 12 additions and 2 deletions
|
@ -18,7 +18,7 @@ endforeach
|
|||
|
||||
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'
|
||||
|
|
10
meson.build
10
meson.build
|
@ -82,6 +82,7 @@ configure_file(input : 'config.h.meson',
|
|||
|
||||
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()
|
||||
|
@ -97,4 +98,13 @@ subdir('tools')
|
|||
subdir('pkgconfig')
|
||||
subdir('tests')
|
||||
subdir('examples')
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue