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

`gst/analytics/analytics.h` includes `gst/analytics/gstanalyticssegmentationmtd.h`,
which in turn `gst/video/video-info.h` but `gst-video-1.0` was only listed
in `Requires.private` field of `gst-analytics-1.0.pc`.

This would cause projects linking against `gst-analytics-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 00:19:50 +01:00 committed by GStreamer Marge Bot
parent 801620242e
commit bc93bbf5c8

View file

@ -39,7 +39,7 @@ gstanalytics = library('gstanalytics-' + api_version,
link_args : ['-lm'])
pkgconfig.generate(gstanalytics,
libraries : [gst_dep, gstbase_dep, '-lm'],
libraries : [gst_dep, gstbase_dep, gstvideo_dep, '-lm'],
variables : pkgconfig_variables,
subdirs : pkgconfig_subdirs,
name : pkg_name,