From 8b9073367fc9b282f4fe379d7d021d4e4986812a Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 12 Jun 2020 18:59:17 +0530 Subject: 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: --- gst-env.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gst-env.py') 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) -- cgit v1.2.1