components/crash/content/tools/generate_breakpad_symbols.py
def GetTransitiveDependencies(options):
  """Return absolute paths to the transitive closure of all shared library
     dependencies of the binary, along with the binary itself."""
  binary = os.path.abspath(options.binary)
  exe_path = os.path.dirname(binary)
  if options.platform.startswith('linux'):
    # 'ldd' returns all transitive dependencies for us.
    deps = set(GetSharedLibraryDependencies(options, binary, exe_path))
    deps.add(binary)
    return list(deps)
  elif (options.platform == 'darwin' or options.platform == 'android' or
        options.platform == 'chromeos'):
    binaries = set([binary])
    queue = [binary]
    while queue:
      deps = GetSharedLibraryDependencies(options, queue.pop(0), exe_path)
      new_deps = set(deps) - binaries
      binaries |= new_deps
      queue.extend(list(new_deps))
    return binaries
  print("Platform not supported.")
  sys.exit(1)
Return absolute paths to the transitive closure of all shared library
     dependencies of the binary, along with the binary itself.
Return absolute paths to the transitive closure of all shared library
dependencies of the binary, along with the binary itself.
Return absolute paths to the transitive closure of all shared library dependencies of the binary along with the binary itself .
def GetTransitiveDependencies(options):
  binary = os.path.abspath(options.binary)
  exe_path = os.path.dirname(binary)
  if options.platform.startswith('linux'):
    deps = set(GetSharedLibraryDependencies(options, binary, exe_path))
    deps.add(binary)
    return list(deps)
  elif (options.platform == 'darwin' or options.platform == 'android' or
        options.platform == 'chromeos'):
    binaries = set([binary])
    queue = [binary]
    while queue:
      deps = GetSharedLibraryDependencies(options, queue.pop(0), exe_path)
      new_deps = set(deps) - binaries
      binaries |= new_deps
      queue.extend(list(new_deps))
    return binaries
  print("Platform not supported.")
  sys.exit(1)
def GetTransitiveDependencies ( options ) : binary = os . path . abspath ( options . binary ) exe_path = os . path . dirname ( binary ) if options . platform . startswith ( 'linux' ) : deps = set ( GetSharedLibraryDependencies ( options , binary , exe_path ) ) deps . add ( binary ) return list ( deps ) elif ( options . platform == 'darwin' or options . platform == 'android' or options . platform == 'chromeos' ) : binaries = set ( [ binary ] ) queue = [ binary ] while queue : deps = GetSharedLibraryDependencies ( options , queue . pop ( 0 ) , exe_path ) new_deps = set ( deps ) - binaries binaries |= new_deps queue . extend ( list ( new_deps ) ) return binaries print ( "Platform not supported." ) sys . exit ( 1 )
Return absolute paths to the transitive closure of all shared library
dependencies of the binary, along with the binary itself.
Return absolute paths to the transitive closure of all shared library dependencies of the binary along with the binary itself .
"""Return absolute paths to the transitive closure of all shared library
     dependencies of the binary, along with the binary itself.""" # 'ldd' returns all transitive dependencies for us.
options