diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-12-17 02:14:50 +0300 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2022-12-18 07:56:46 +0300 |
commit | a507f24694a523438fd527192a393bf34d11e7e0 (patch) | |
tree | 3ca11a9e8a0effebd98346576cdbca4b026e76df /meson.build | |
parent | 985e3e85d6473c4076c2a97d7ca20f019f09391d (diff) |
meson: Fix pkgconfig detection when specified in machine file
When pkgconfig and pkg_config_path are specified in the machine file,
we need to parse those and pass them on to the cargo_wrapper.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1018>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 3e1556e35..8dd390c6e 100644 --- a/meson.build +++ b/meson.build @@ -211,6 +211,17 @@ else disable_doc = [] endif +# 'pkgconfig' is the entry in the machine file, if specified +pkg_config = find_program('pkgconfig', required: false) +if pkg_config.found() + extra_env += {'PKG_CONFIG': pkg_config.full_path()} +endif + +pkg_config_path = get_option('pkg_config_path') +if pkg_config_path.length() > 0 + extra_env += {'PKG_CONFIG_PATH': ':'.join(pkg_config_path)} +endif + rs_plugins = custom_target('gst-plugins-rs', build_by_default: true, output: output, |