mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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
a95645eaba
commit
d18fff7ff5
3 changed files with 9 additions and 4 deletions
|
@ -4,7 +4,7 @@ configure_file(input : 'gstreamer.types.in',
|
||||||
|
|
||||||
gnome.gtkdoc('gstreamer',
|
gnome.gtkdoc('gstreamer',
|
||||||
main_sgml : 'gstreamer-docs.sgml',
|
main_sgml : 'gstreamer-docs.sgml',
|
||||||
src_dir : '@0@/gst'.format(meson.source_root()),
|
src_dir : '@0@/../../gst'.format(meson.current_source_dir()),
|
||||||
scan_args : ['--deprecated-guards=GST_DISABLE_DEPRECATED',
|
scan_args : ['--deprecated-guards=GST_DISABLE_DEPRECATED',
|
||||||
'--ignore-decorators=GST_EXPORT',
|
'--ignore-decorators=GST_EXPORT',
|
||||||
'--ignore-headers=gettext.h glib-compat-private.h glib-compat.h gst-i18n-app.h gst-i18n-lib.h gst_private.h gstelementdetails.h gstmacros.h grammar.tab.h grammar.tab.pre.h math-compat.h types.h'
|
'--ignore-headers=gettext.h glib-compat-private.h glib-compat.h gst-i18n-app.h gst-i18n-lib.h gst_private.h gstelementdetails.h gstmacros.h grammar.tab.h grammar.tab.pre.h math-compat.h types.h'
|
||||||
|
|
|
@ -4,7 +4,7 @@ configure_file(input : 'gstreamer-libs.types',
|
||||||
|
|
||||||
gnome.gtkdoc('gstreamer-libs',
|
gnome.gtkdoc('gstreamer-libs',
|
||||||
main_sgml : 'gstreamer-libs-docs.sgml',
|
main_sgml : 'gstreamer-libs-docs.sgml',
|
||||||
src_dir : '@0@/libs/gst'.format(meson.source_root()),
|
src_dir : '@0@/../../libs/gst'.format(meson.current_source_dir()),
|
||||||
scan_args : ['--deprecated-guards=GST_DISABLE_DEPRECATED',
|
scan_args : ['--deprecated-guards=GST_DISABLE_DEPRECATED',
|
||||||
'--ignore-decorators=GST_EXPORT',
|
'--ignore-decorators=GST_EXPORT',
|
||||||
'--ignore-headers=gettext.h glib-compat-private.h glib-compat.h gst-i18n-app.h gst-i18n-lib.h gst_private.h gstelementdetails.h gstmacros.h grammar.tab.h grammar.tab.pre.h math-compat.h types.h'
|
'--ignore-headers=gettext.h glib-compat-private.h glib-compat.h gst-i18n-app.h gst-i18n-lib.h gst_private.h gstelementdetails.h gstmacros.h grammar.tab.h grammar.tab.pre.h math-compat.h types.h'
|
||||||
|
|
|
@ -268,9 +268,14 @@ subdir('plugins')
|
||||||
subdir('tools')
|
subdir('tools')
|
||||||
subdir('pkgconfig')
|
subdir('pkgconfig')
|
||||||
subdir('tests')
|
subdir('tests')
|
||||||
# FIXME: check for gtk-doc
|
|
||||||
|
gtkdoc = find_program('gtkdoc-scan', required : false)
|
||||||
if build_machine.system() != 'windows'
|
if build_machine.system() != 'windows'
|
||||||
subdir('docs')
|
if gtkdoc.found()
|
||||||
|
subdir('docs')
|
||||||
|
else
|
||||||
|
message('Not building documentation as gtk-doc was not found')
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
message('Disabling gtk-doc while building on Windows')
|
message('Disabling gtk-doc while building on Windows')
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue