[Bug 775281] Allow simply setup an uninstalled environment based on msys2
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Nov 28 22:03:29 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=775281
--- Comment #6 from Scott D Phillips <scott.d.phillips at intel.com> ---
maybe add something like this:
> def should_gen_lib(self, dll):
> lib_dir, dll_name = os.path.split(dll)
> if lib_dir.endswith('bin'):
> lib_dir = lib_dir[:-3] + 'lib'
>
> lib_name = self.get_libname(dll_name)
> lib = os.path.join(lib_dir, lib_name)
> if not os.path.exists(lib):
> return True
> return os.stat(dll).st_mtime_ns >= os.stat(lib).st_mtime_ns
and then you can change the check in make_libs to something like:
if f.endswith('.dll') and self.should_gen_lib(os.path.join(base, f)):
as an optimization to avoid unnecessary building of .lib files.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list