And enable gdb support only when gdb is avalaible
return env
def setup_gdb(options):
return env
def setup_gdb(options):
- bdir = os.path.realpath(options.builddir)
+
+ if not shutil.which('gdb'):
+ return python_paths
+
+ bdir = os.path.realpath(options.builddir)
for libpath, gdb_path in [
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
if not gdb_path:
gdb_path = libpath