diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2020-01-14 20:02:20 -0300 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2020-01-19 11:21:17 +0000 |
commit | 7d08aef9ed34398aedcb0537ed0bbab7cf9e4ae3 (patch) | |
tree | ef078640ec1df02f38052905326cd9c4fb4ff551 /gst-env.py | |
parent | 2f11c43f49783902f5565d98d9cabd069b964937 (diff) |
devenv: Fix path handling for gdb support
And enable gdb support only when gdb is avalaible
Diffstat (limited to 'gst-env.py')
-rwxr-xr-x | gst-env.py | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -137,12 +137,17 @@ def get_wine_subprocess_env(options, env): return env def setup_gdb(options): - bdir = os.path.realpath(options.builddir) python_paths = set() + + if not shutil.which('gdb'): + return python_paths + + bdir = os.path.realpath(options.builddir) for libpath, gdb_path in [ - ("subprojects/gstreamer/gst/", "subprojects/gstreamer/libs/gst/helpers/"), - ("subprojects/glib/gobject", None), - ("subprojects/glib/glib", None)]: + (os.path.join("subprojects", "gstreamer", "gst"), + os.path.join("subprojects", "gstreamer", "libs", "gst", "helpers")), + (os.path.join("subprojects", "glib", "gobject"), None), + (os.path.join("subprojects", "glib", "glib"), None)]: if not gdb_path: gdb_path = libpath |