meson: Make sure devenv uses tools linked on gst-full
authorXavier Claessens <xavier.claessens@collabora.com>
Wed, 31 Aug 2022 01:15:25 +0000 (21:15 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 31 Aug 2022 13:23:56 +0000 (13:23 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2959>

meson.build

index 3967832..e338a11 100644 (file)
@@ -261,7 +261,14 @@ pathsep = host_machine.system() == 'windows' ? ';' : ':'
 all_plugins_paths = pathsep.join(all_plugins_paths)
 
 devenv = environment()
-devenv.prepend('GST_PLUGIN_PATH', all_plugins_dirs)
+if not building_full
+  devenv.prepend('GST_PLUGIN_PATH', all_plugins_dirs)
+else
+  # Make sure the current build directory is first in PATH so we prefer tools
+  # built here that links on gst-full instead instead of those built in
+  # subprojects.
+  devenv.prepend('PATH', meson.current_build_dir())
+endif
 devenv.set('CURRENT_GST', meson.current_source_dir())
 devenv.set('GST_VERSION', meson.project_version())
 devenv.set('GST_ENV', 'gst-' + meson.project_version())