mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
uninstalled: Properly setup uninstalled env on windows
https://bugzilla.gnome.org/show_bug.cgi?id=775281
This commit is contained in:
parent
e87fac1b4d
commit
d3c029f102
1 changed files with 10 additions and 4 deletions
|
@ -59,8 +59,16 @@ def get_subprocess_env(options):
|
|||
env["GST_REGISTRY"] = os.path.normpath(options.builddir + "/registry.dat")
|
||||
|
||||
filename = "meson.build"
|
||||
sharedlib_reg = re.compile(r'\.so$|\.dylib$')
|
||||
sharedlib_reg = re.compile(r'\.so$|\.dylib$|\.dll$')
|
||||
typelib_reg = re.compile(r'.*\.typelib$')
|
||||
|
||||
if os.name is 'nt':
|
||||
lib_path_envvar = 'PATH'
|
||||
elif platform.system() == 'Darwin':
|
||||
lib_path_envvar = 'DYLD_LIBRARY_PATH'
|
||||
else:
|
||||
lib_path_envvar = 'LD_LIBRARY_PATH'
|
||||
|
||||
for root, dirnames, filenames in os.walk(os.path.join(options.builddir,
|
||||
'subprojects')):
|
||||
has_typelib = False
|
||||
|
@ -74,9 +82,7 @@ def get_subprocess_env(options):
|
|||
break
|
||||
elif sharedlib_reg.search(filename) and not has_shared:
|
||||
has_shared = True
|
||||
prepend_env_var(env, "LD_LIBRARY_PATH",
|
||||
os.path.join(options.builddir, root))
|
||||
prepend_env_var(env, "DYLD_LIBRARY_PATH",
|
||||
prepend_env_var(env, lib_path_envvar,
|
||||
os.path.join(options.builddir, root))
|
||||
if has_typelib:
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue