mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-22 18:07:54 +02:00
meson: Add PYTHONPATH to load GDB helper module
Meson generates a gdbinit file that will automatically load glib and gobject scripts. 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 glib_gdb.py and gobject_gdb.py
This commit is contained in:
@@ -170,6 +170,13 @@ configure_file(
|
||||
install: gdb_install,
|
||||
)
|
||||
|
||||
# This is needed to make gdb find gobject_gdb.py
|
||||
if meson.version().version_compare('>=0.58')
|
||||
env = environment()
|
||||
env.prepend('PYTHONPATH', meson.current_source_dir())
|
||||
meson.add_devenv(env)
|
||||
endif
|
||||
|
||||
if enable_systemtap
|
||||
gobject_stp = configure_file(input : 'gobject.stp.in',
|
||||
output : '@0@.stp'.format(libgobject.full_path().split('/').get(-1)),
|
||||
|
Reference in New Issue
Block a user