diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2023-03-19 15:35:29 -0300 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2023-04-25 02:57:55 +0000 |
commit | 7aaf2b48eff1bd05c5c8af74d7d09934d2b619df (patch) | |
tree | 732390cee196c352bc92aca10cd1eef6f1554857 /subprojects/gst-libav | |
parent | 6e305a471f12c37f589c79906af60ca95347190f (diff) | |
download | gstreamer-7aaf2b48eff1bd05c5c8af74d7d09934d2b619df.tar.gz |
doc: Avoid shelling out to hotdoc to generate plugins config files
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4479>
Diffstat (limited to 'subprojects/gst-libav')
-rw-r--r-- | subprojects/gst-libav/docs/meson.build | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/subprojects/gst-libav/docs/meson.build b/subprojects/gst-libav/docs/meson.build index ddc50ed89d..22fb9b7629 100644 --- a/subprojects/gst-libav/docs/meson.build +++ b/subprojects/gst-libav/docs/meson.build @@ -74,15 +74,22 @@ endforeach libs_doc = [] -plugins_doc = [hotdoc.generate_doc('libav', - project_version: api_version, - sitemap: 'sitemap.txt', - index: 'index.md', - gst_index: 'index.md', - gst_smart_index: true, - gst_c_sources: ['../ext/*/*.[ch]',], - gst_cache_file: plugins_cache, - gst_plugin_name: 'libav', - dependencies: [gst_dep], - disable_incremental_build: true, -)] +cdir = meson.current_source_dir() +if host_machine.system() == 'windows' + pathsep = ';' +else + pathsep = ':' +endif +gst_plugins_doc = run_command( + plugins_cache_generator, + 'hotdoc-config', + '--project_version', api_version, + '--builddir', meson.current_build_dir(), + '--sitemap', cdir / 'sitemap.txt', + '--index', cdir / 'index.md', + '--gst_index', cdir / 'index.md', + '--gst_c_sources', cdir / '../ext/*/*.[ch]', + '--gst_cache_file', plugins_cache, + check: true, +).stdout().split(pathsep) + |