def needs_gstreamer_env(self, target): try: if check_gstreamer_lib(): return False except: # Some systems don't have pkg-config; we can't probe in this case # and must hope for the best return False effective_target = target or host_triple() if "x86_64" not in effective_target or "android" in effective_target: # We don't build gstreamer for non-x86_64 / android yet return False if sys.platform == "linux2": if path.isdir(self.get_gstreamer_path()): return True else: raise Exception( "Your system's gstreamer libraries are out of date \ (we need at least 1.12). Please run ./mach bootstrap-gstreamer") else: raise Exception( "Your system's gstreamer libraries are out of date \ (we need at least 1.12). If you're unable to \ install them, let us know by filing a bug!") return False
def needs_gstreamer_env(self, target): try: if check_gstreamer_lib(): return False except: # Some systems don't have pkg-config; we can't probe in this case # and must hope for the best return False effective_target = target or host_triple() if "x86_64" not in effective_target or "android" in effective_target: # We don't build gstreamer for non-x86_64 / android yet return False if sys.platform == "linux2": if path.isdir(self.get_gstreamer_path()): return True else: raise Exception("Your system's gstreamer libraries are out of date \ (we need at least 1.12). Please run ./mach bootstrap-gstreamer") else: raise Exception("Your system's gstreamer libraries are out of date \ (we need at least 1.12). If you're unable to \ install them, let us know by filing a bug!") return False