Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1093>
if not meson.is_cross_build() and build_infos.get('build-hotdoc', false)
if plugins.length() > 0
- plugins_doc_caches += [subproj.get_variable('plugins_doc_dep')]
+ plugins_doc_caches += [subproj.get_variable('plugins_doc_dep', [])]
endif
if documented_projects != ''
documented_projects += ','
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')
+if static_build
+ if get_option('doc').enabled()
+ error('Documentation enabled but not supported when building statically.')
+ endif
+
+ message('Building statically, can\'t build the documentation')
subdir_done()
endif
-required_hotdoc_extensions = ['gi-extension']
if not build_gir
if get_option('doc').enabled()
error('Documentation enabled but introspection not built.')
endif
- message('Introspection not built, can\'t build the documentation')
+ message('Introspection not built, won\'t build documentation requiring it')
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')
+ subdir_done()
+endif
+
+required_hotdoc_extensions = ['gi-extension']
hotdoc = import('hotdoc')
foreach extension: required_hotdoc_extensions
if not hotdoc.has_extensions(extension)
subdir_done()
endif
+if static_build
+ if get_option('doc').enabled()
+ error('Documentation enabled but not supported when building statically.')
+ endif
+
+ message('Building statically, can\'t build the documentation')
+ subdir_done()
+endif
+
+if not build_gir
+ if get_option('doc').enabled()
+ error('Documentation enabled but introspection not built.')
+ endif
+
+ message('Introspection not built, won\'t build documentation requiring it')
+ subdir_done()
+endif
+
required_hotdoc_extensions = ['gi-extension', 'gst-extension']
if gst_dep.type_name() == 'internal'
gst_proj = subproject('gstreamer')
endif
endforeach
-if static_build
- if get_option('doc').enabled()
- error('Documentation enabled but not supported when building statically.')
- endif
-
- message('Building statically, can\'t build the documentation')
- subdir_done()
-endif
-
-if not build_gir
- if get_option('doc').enabled()
- error('Documentation enabled but introspection not built.')
- endif
-
- message('Introspection not built, can\'t build the documentation')
- subdir_done()
-endif
-
build_hotdoc = true
ges_excludes = []
foreach f: ['gesmarshal.*',
subdir_done()
endif
+if static_build
+ if get_option('doc').enabled()
+ error('Documentation enabled but not supported when building statically.')
+ endif
+
+ message('Building statically, can\'t build the documentation')
+ subdir_done()
+endif
+
+if not build_gir
+ if get_option('doc').enabled()
+ error('Documentation enabled but introspection not built.')
+ endif
+
+ 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')
endif
endforeach
-if static_build
- if get_option('doc').enabled()
- error('Documentation enabled but not supported when building statically.')
- endif
-
- message('Building statically, can\'t build the documentation')
- subdir_done()
-endif
-
-if not build_gir
- if get_option('doc').enabled()
- error('Documentation enabled but introspection not built.')
- endif
-
- message('Introspection not built, won\'t build documentation requiring it')
- subdir_done()
-endif
-
build_hotdoc = true
docconf = configuration_data()
subdir_done()
endif
+if static_build
+ if get_option('doc').enabled()
+ error('Documentation enabled but not supported when building statically.')
+ endif
+
+ message('Building statically, can\'t build the documentation')
+ subdir_done()
+endif
+
+if not build_gir
+ if get_option('doc').enabled()
+ error('Documentation enabled but introspection not built.')
+ endif
+
+ message('Introspection not built, won\'t build documentation requiring it')
+ subdir_done()
+endif
+
+
required_hotdoc_extensions = ['gi-extension', 'gst-extension']
if gst_dep.type_name() == 'internal'
gst_proj = subproject('gstreamer')
endif
endforeach
-if not build_gir or static_build
- if get_option('doc').enabled()
- error('Documentation enabled but introspection not built.')
- endif
-
- message('Introspection not built, can\'t build the documentation')
- subdir_done()
-endif
-
build_hotdoc = true
docconf = configuration_data()
docconf.set('GST_API_VERSION', api_version)
subdir_done()
endif
-required_hotdoc_extensions = ['gi-extension', 'gst-extension']
+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')
build_hotdoc = false
+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
+
+ message('Documentation not built as building it 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'
subdir_done()
endif
+if static_build
+ if get_option('doc').enabled()
+ error('Documentation enabled but not supported when building statically.')
+ endif
+
+ message('Building statically, can\'t build the documentation')
+ subdir_done()
+endif
+
+if not build_gir
+ if get_option('doc').enabled()
+ error('Documentation enabled but introspection not built.')
+ endif
+
+ message('Introspection not built, can\'t build the documentation')
+ subdir_done()
+endif
+
required_hotdoc_extensions = ['gi-extension', 'gst-extension']
if gst_dep.type_name() == 'internal'
gst_proj = subproject('gstreamer')
endif
endforeach
-if static_build
- if get_option('doc').enabled()
- error('Documentation enabled but not supported when building statically.')
- endif
-
- message('Building statically, can\'t build the documentation')
- subdir_done()
-endif
-
-if not build_gir
- if get_option('doc').enabled()
- error('Documentation enabled but introspection not built.')
- endif
-
- message('Introspection not built, can\'t build the documentation')
- subdir_done()
-endif
-
build_hotdoc = true
hotdoc = import('hotdoc')