validate: Add gst-video to Requires in pkg-config

`gst/validate/validate.h` includes `gst/validate/gst-validate-media-info.h`,
which in turn includes `gst/pbutils/pbutils.h` but `gstreamer-pbutils-1.0`
was only listed in `Requires.private` field of `gstreamer-validate-1.0.pc`.

This would cause projects linking against `gstreamer-validate-1.0.pc` to fail to find
the headers when using alternative interpretation of pkg-config specification
that only considers private dependencies for include path during static builds,
such as the case e.g. on Nix.

https://gitlab.freedesktop.org/pkg-config/pkg-config/-/issues/28

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8661>
This commit is contained in:
Jan Tojnar 2025-03-23 01:59:48 +01:00 committed by GStreamer Marge Bot
parent bc93bbf5c8
commit 13c0f44dd5

View file

@ -103,7 +103,7 @@ plugin_sources += {
pkg_name = 'gstreamer-validate-1.0'
library_def = {'lib': gstvalidate}
pkgconfig.generate(gstvalidate,
libraries : [gst_dep],
libraries : [gst_dep, gst_pbutils_dep, gst_video_dep],
subdirs : pkgconfig_subdirs,
name : pkg_name,
description : 'GStreamer Validate',