mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-03-13 08:42:40 +00:00
doc: Update to latest way of generating hotdoc config files
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2107>
This commit is contained in:
parent
826018a393
commit
1aee7b1670
2 changed files with 29 additions and 43 deletions
|
@ -86,42 +86,27 @@ foreach extension: required_hotdoc_extensions
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
build_hotdoc = true
|
build_hotdoc = true
|
||||||
plugins_doc = []
|
cdir = meson.current_source_dir()
|
||||||
|
gst_plugins_doc = run_command(
|
||||||
|
plugins_cache_generator,
|
||||||
list_plugin_res = run_command(python, '-c',
|
'hotdoc-config',
|
||||||
'''
|
'--builddir', meson.current_build_dir(),
|
||||||
import sys
|
'--project_version', '1.0',
|
||||||
import json
|
'--sitemap', cdir / 'plugins/sitemap.txt',
|
||||||
|
'--index', cdir / 'plugins/index.md',
|
||||||
with open("@0@") as f:
|
'--include_paths', meson.current_source_dir() / '..',
|
||||||
print(':'.join(json.load(f).keys()), end='')
|
'--gst_index', cdir / 'plugins/index.md',
|
||||||
'''.format(plugins_cache),
|
'--gst_c_source_filters', cdir / '../target/*/*.rs',
|
||||||
check: true)
|
'--gst_c_source_filters',
|
||||||
foreach plugin_name: list_plugin_res.stdout().split(':')
|
cdir / '../target/*/*/*.rs',
|
||||||
plugins_doc += [hotdoc.generate_doc(plugin_name,
|
cdir / '../target/*/*/*/*.rs',
|
||||||
project_version: '1.0',
|
cdir / '../target/*/*/*/*/*.rs',
|
||||||
sitemap: 'plugins/sitemap.txt',
|
cdir / '../target/*/*/*/*/*/*.rs',
|
||||||
index: 'plugins/index.md',
|
'--gst_c_sources',
|
||||||
gst_index: 'plugins/index.md',
|
cdir / '../*/*/*/*.rs',
|
||||||
include_paths: join_paths(meson.current_source_dir(), '..'),
|
cdir / '../*/*/*/*/*.rs',
|
||||||
extra_assets: [join_paths(meson.current_source_dir(), 'images')],
|
cdir / '../*/*/*/*/*/*.rs',
|
||||||
gst_smart_index: true,
|
'--gst_cache_file', plugins_cache,
|
||||||
gst_c_source_filters: [
|
'--extra_assets', join_paths(meson.current_source_dir(), 'images'),
|
||||||
'../target/*/*.rs',
|
check: true,
|
||||||
'../target/*/*/*.rs',
|
).stdout().split(pathsep)
|
||||||
'../target/*/*/*/*.rs',
|
|
||||||
'../target/*/*/*/*/*.rs',
|
|
||||||
'../target/*/*/*/*/*/*.rs',
|
|
||||||
],
|
|
||||||
gst_c_sources: [
|
|
||||||
'../*/*/*/*.rs',
|
|
||||||
'../*/*/*/*/*.rs',
|
|
||||||
'../*/*/*/*/*/*.rs',
|
|
||||||
],
|
|
||||||
dependencies: [gst_dep],
|
|
||||||
gst_order_generated_subpages: true,
|
|
||||||
gst_cache_file: plugins_cache,
|
|
||||||
gst_plugin_name: plugin_name,
|
|
||||||
)]
|
|
||||||
endforeach
|
|
||||||
|
|
|
@ -552,12 +552,13 @@ if pkg_config.found()
|
||||||
extra_env += {'PKG_CONFIG': pkg_config.full_path()}
|
extra_env += {'PKG_CONFIG': pkg_config.full_path()}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
pathsep = ':'
|
||||||
|
if host_system == 'windows'
|
||||||
|
pathsep = ';'
|
||||||
|
endif
|
||||||
|
|
||||||
pkg_config_path = get_option('pkg_config_path')
|
pkg_config_path = get_option('pkg_config_path')
|
||||||
if pkg_config_path.length() > 0
|
if pkg_config_path.length() > 0
|
||||||
pathsep = ':'
|
|
||||||
if host_system == 'windows'
|
|
||||||
pathsep = ';'
|
|
||||||
endif
|
|
||||||
extra_env += {'PKG_CONFIG_PATH': pathsep.join(pkg_config_path)}
|
extra_env += {'PKG_CONFIG_PATH': pathsep.join(pkg_config_path)}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue