mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
meson: Add an option to disable doc generation
This commit is contained in:
parent
b27078d8de
commit
2229579084
2 changed files with 9 additions and 5 deletions
11
meson.build
11
meson.build
|
@ -88,7 +88,6 @@ 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() and not get_option('disable_introspection')
|
||||
|
@ -139,14 +138,16 @@ subdir('pkgconfig')
|
|||
subdir('tests')
|
||||
subdir('examples')
|
||||
|
||||
if build_machine.system() != 'windows'
|
||||
if gtkdoc.found()
|
||||
if build_machine.system() == 'windows'
|
||||
message('Disabling gtk-doc while building on Windows')
|
||||
elif get_option('disable_gtkdoc')
|
||||
message('gtk-doc is disabled via options')
|
||||
else
|
||||
if find_program('gtkdoc-scan', required : false).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
|
||||
|
||||
python3 = find_program('python3')
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
option('disable_introspection',
|
||||
type : 'boolean', value : false,
|
||||
description : 'Whether to disable the introspection generation')
|
||||
option('disable_gtkdoc',
|
||||
type : 'boolean', value : false,
|
||||
description : 'Whether to disable the documentation generation')
|
||||
|
|
Loading…
Reference in a new issue