Skip to content

gst-plugins-bad: Use CMake to find some deps

Chun-wei Fan requested to merge fanc999/gstreamer:cmake-dep-search-bad into main

Hi,

This attempts to use CMake to find some of the external dependencies in gst-plugins-bad for Visual Studio builds, where pkg-config files are typically not provided with them but CMake has built-in support for finding them or the dependencies' build system provide CMake config files for them, for the following plugins:

  • aes, dtls, hls: Use CMake's built-in support to find OpenSSL (and libcrypto, if needed) with the appropriate modules: option. The current approach works only if the openssl package is specified but not libcrypto, and even so we get warnings that we should use the modules: option in the dependency() call.
  • openexr: Use CMake to locate OpenEXR's CMake config files with the IlmImf module specified, so that OpenEXR can be properly located. OpenEXR is typically built with CMake for Visual Studio, and so ships CMake config files with the build

There could be others to do here, but this is all for now.

With blessings, thank you!

Merge request reports