summaryrefslogtreecommitdiff
path: root/gst-env.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-06-12 18:59:17 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-06-12 19:21:52 +0530
commit8b9073367fc9b282f4fe379d7d021d4e4986812a (patch)
tree68de0dda6f120b75a19c3c57d1eecbbc02f0fa44 /gst-env.py
parent5234b05f929ccac15a43382f1d4b0b6cf98e6854 (diff)
downloadgstreamer-8b9073367fc9b282f4fe379d7d021d4e4986812a.tar.gz
gst-env: Use meson-uninstalled pkgconfig files if available
This allows people to use the development environment for building projects when glib is built as a subproject. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/158>
Diffstat (limited to 'gst-env.py')
-rwxr-xr-xgst-env.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst-env.py b/gst-env.py
index 11ca42181a..34f8f21db6 100755
--- a/gst-env.py
+++ b/gst-env.py
@@ -358,6 +358,11 @@ def get_subprocess_env(options, gst_version):
for pkg_dir in pkg_dirs:
prepend_env_var(env, "PKG_CONFIG_PATH", pkg_dir, options.sysroot)
+ # Check if meson has generated -uninstalled pkgconfig files
+ meson_uninstalled = pathlib.Path(options.builddir) / 'meson-uninstalled'
+ if meson_uninstalled.is_dir():
+ prepend_env_var(env, 'PKG_CONFIG_PATH', str(meson_uninstalled), options.sysroot)
+
for python_dir in python_dirs:
prepend_env_var(env, 'PYTHONPATH', python_dir, options.sysroot)