This was possible for some modules but not all, for no good reason.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8178>
build_hotdoc = false
-if get_option('doc').disabled()
- subdir_done()
-endif
-
if meson.is_cross_build()
if get_option('doc').enabled()
error('Documentation enabled but building the doc while cross building is not supported yet.')
subdir_done()
endif
-required_hotdoc_extensions = ['gi-extension', 'gst-extension']
if gst_dep.type_name() == 'internal'
gst_proj = subproject('gstreamer')
plugins_cache_generator = gst_proj.get_variable('plugins_cache_generator')
warning('GStreamer plugin inspector for documentation not found, can\'t update the cache')
endif
+if get_option('doc').disabled()
+ subdir_done()
+endif
hotdoc_p = find_program('hotdoc', required: get_option('doc'))
if not hotdoc_p.found()
message('Hotdoc not found, not building the documentation')
endif
hotdoc = import('hotdoc')
+required_hotdoc_extensions = ['gi-extension', 'gst-extension']
foreach extension: required_hotdoc_extensions
if not hotdoc.has_extensions(extension)
if get_option('doc').enabled()
build_hotdoc = false
-if get_option('doc').disabled()
- subdir_done()
-endif
-
if meson.is_cross_build()
if get_option('doc').enabled()
error('Documentation enabled but building the doc while cross building is not supported yet.')
subdir_done()
endif
-required_hotdoc_extensions = ['gst-extension']
if gst_dep.type_name() == 'internal'
gst_proj = subproject('gstreamer')
plugins_cache_generator = gst_proj.get_variable('plugins_cache_generator')
warning('GStreamer plugin inspector for documentation not found, can\'t update the cache')
endif
+if get_option('doc').disabled()
+ subdir_done()
+endif
+
+
hotdoc_p = find_program('hotdoc', required: get_option('doc'))
if not hotdoc_p.found()
message('Hotdoc not found, not building the documentation')
docconf = configuration_data()
docconf.set('GST_API_VERSION', api_version)
+required_hotdoc_extensions = ['gst-extension']
foreach extension: required_hotdoc_extensions
if not hotdoc.has_extensions(extension)
if get_option('doc').enabled()
build_hotdoc = false
-if get_option('doc').disabled()
- subdir_done()
-endif
-
if meson.is_cross_build()
if get_option('doc').enabled()
error('Documentation enabled but building the doc while cross building is not supported yet.')
message('Introspection not built, won\'t build documentation requiring it')
endif
-required_hotdoc_extensions = ['gi-extension', 'c-extension', 'gst-extension']
if gst_dep.type_name() == 'internal'
gst_proj = subproject('gstreamer')
plugins_cache_generator = gst_proj.get_variable('plugins_cache_generator')
warning('GStreamer plugin inspector for documentation not found, can\'t update the cache')
endif
+if get_option('doc').disabled()
+ subdir_done()
+endif
+
+
hotdoc_p = find_program('hotdoc', required: get_option('doc'))
if not hotdoc_p.found()
message('Hotdoc not found, not building the documentation')
endif
hotdoc = import('hotdoc')
+required_hotdoc_extensions = ['gi-extension', 'c-extension', 'gst-extension']
foreach extension: required_hotdoc_extensions
if not hotdoc.has_extensions(extension)
if get_option('doc').enabled()
build_hotdoc = false
-if get_option('doc').disabled()
- subdir_done()
-endif
-
if meson.is_cross_build()
if get_option('doc').enabled()
error('Documentation enabled but building the doc while cross building is not supported yet.')
endif
-required_hotdoc_extensions = ['gi-extension', 'gst-extension']
if gst_dep.type_name() == 'internal'
gst_proj = subproject('gstreamer')
plugins_cache_generator = gst_proj.get_variable('plugins_cache_generator')
warning('GStreamer plugin inspector for documentation not found, can\'t update the cache')
endif
+if get_option('doc').disabled()
+ subdir_done()
+endif
+
hotdoc_p = find_program('hotdoc', required: get_option('doc'))
if not hotdoc_p.found()
message('Hotdoc not found, not building the documentation')
endif
hotdoc = import('hotdoc')
+required_hotdoc_extensions = ['gi-extension', 'gst-extension']
foreach extension: required_hotdoc_extensions
if not hotdoc.has_extensions(extension)
if get_option('doc').enabled()
build_hotdoc = false
-if get_option('doc').disabled()
- subdir_done()
-endif
-
if static_build
if get_option('doc').enabled()
error('Documentation enabled but not supported when building statically.')
subdir_done()
endif
-required_hotdoc_extensions = ['gst-extension']
if gst_dep.type_name() == 'internal'
gst_proj = subproject('gstreamer')
plugins_cache_generator = gst_proj.get_variable('plugins_cache_generator')
warning('GStreamer plugin inspector for documentation not found, can\'t update the cache')
endif
+if get_option('doc').disabled()
+ subdir_done()
+endif
+
hotdoc_p = find_program('hotdoc', required: get_option('doc'))
if not hotdoc_p.found()
message('Hotdoc not found, not building the documentation')
endif
hotdoc = import('hotdoc')
+required_hotdoc_extensions = ['gst-extension']
foreach extension: required_hotdoc_extensions
if not hotdoc.has_extensions(extension)
if get_option('doc').enabled()
build_hotdoc = false
-if get_option('doc').disabled()
- subdir_done()
-endif
-
if meson.is_cross_build()
if get_option('doc').enabled()
error('Documentation enabled but building the doc while cross building is not supported yet.')
subdir_done()
endif
-required_hotdoc_extensions = ['gst-extension']
plugins_cache = join_paths(meson.current_source_dir(), 'gst_plugins_cache.json')
if gst_dep.type_name() == 'internal'
gst_proj = subproject('gstreamer')
warning('GStreamer plugin inspector for documentation not found, can\'t update the cache')
endif
+if get_option('doc').disabled()
+ subdir_done()
+endif
+
hotdoc_p = find_program('hotdoc', required: get_option('doc'))
if not hotdoc_p.found()
message('Hotdoc not found, not building the documentation')
endif
hotdoc = import('hotdoc')
+required_hotdoc_extensions = ['gst-extension']
foreach extension: required_hotdoc_extensions
if not hotdoc.has_extensions(extension)
if get_option('doc').enabled()
build_hotdoc = false
-if get_option('doc').disabled()
- subdir_done()
-endif
-
if meson.is_cross_build()
if get_option('doc').enabled()
error('Documentation enabled but building the doc while cross building is not supported yet.')
subdir_done()
endif
-required_hotdoc_extensions = ['gi-extension', 'gst-extension']
if gst_dep.type_name() == 'internal'
gst_proj = subproject('gstreamer')
plugins_cache_generator = gst_proj.get_variable('plugins_cache_generator')
else
- required_hotdoc_extensions += ['gst-extension']
plugins_cache_generator = find_program(join_paths(gst_dep.get_variable('libexecdir'), 'gstreamer-' + api_version, 'gst-plugins-doc-cache-generator'),
required: false)
endif
warning('GStreamer plugin inspector for documentation not found, can\'t update the cache')
endif
+if get_option('doc').disabled()
+ subdir_done()
+endif
+
hotdoc_p = find_program('hotdoc', required: get_option('doc'))
if not hotdoc_p.found()
message('Hotdoc not found, not building the documentation')
endif
hotdoc = import('hotdoc')
+required_hotdoc_extensions = ['gi-extension', 'gst-extension']
foreach extension: required_hotdoc_extensions
if not hotdoc.has_extensions(extension)
if get_option('doc').enabled()