From b225f4215b365713dd56db571301f9de39ac6be6 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 25 Feb 2022 16:54:37 -0500 Subject: [PATCH] meson: Add PYTHONPATH to load GDB helper module Meson generates a gdbinit file that will automatically load gstreamer script. However that script uses a helper python module that needs PYTHONPATH to be pointing into the right location in the source tree to be able to find gst_gdb.py. Part-of: --- subprojects/gstreamer/libs/gst/helpers/meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subprojects/gstreamer/libs/gst/helpers/meson.build b/subprojects/gstreamer/libs/gst/helpers/meson.build index 290c84bb0f..4aeacd1217 100644 --- a/subprojects/gstreamer/libs/gst/helpers/meson.build +++ b/subprojects/gstreamer/libs/gst/helpers/meson.build @@ -128,6 +128,11 @@ install_data(['gst_gdb.py', 'glib_gobject_helper.py'], install_dir : join_paths(get_option('datadir'), 'gstreamer-@0@'.format(apiversion), 'gdb'), install_tag : 'devel') +# This is needed to make gdb find gst_gdb.py +env = environment() +env.prepend('PYTHONPATH', meson.current_source_dir()) +meson.add_devenv(env) + gdbconf = configuration_data() gdbconf.set('GST_API_VERSION', apiversion) gdbconf.set('DATADIR', '@0@/@1@'.format(get_option('prefix'), get_option('datadir')))