docs: explicitly declare gir build dependencies
authorMathieu Duponchelle <mathieu@centricular.com>
Wed, 4 Jan 2023 20:37:55 +0000 (21:37 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 6 Jan 2023 22:50:57 +0000 (22:50 +0000)
commit2f020013e6b52cdc4d7e3a1c1d17f2f59699ee4e
tree617966c4308213d17c382884440ec9f9508670cc
parentfa2b98f9579c5b9069753ae390a05d16fb5526f9
docs: explicitly declare gir build dependencies

As the path to the gir file is passed to hotdoc.generate_doc() and
not the build target itself, meson doesn't know about the dependency.

In turn, as the CI doesn't build everything before building the
documentation target, some gir files might not exist, for instance
in the case of gst-rtsp-server, causing the output documentation to
be empty.

The error occurred silently because hotdoc accepts wildcards for
*-sources arguments, thus it won't warn about a missing gir file as
it is legitimate for glob matching to resolve to nothing.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3686>
subprojects/gst-devtools/docs/meson.build
subprojects/gst-editing-services/docs/meson.build
subprojects/gst-plugins-bad/docs/meson.build
subprojects/gst-plugins-base/docs/meson.build
subprojects/gst-rtsp-server/docs/meson.build
subprojects/gstreamer/docs/meson.build