components/crash/content/tools/generate_breakpad_symbols.py
def GetSharedLibraryDependencies(options, binary, exe_path):
  """Return absolute paths to all shared library dependencies of the binary."""
  deps = []
  if options.platform.startswith('linux'):
    deps = GetSharedLibraryDependenciesLinux(binary)
  elif options.platform == 'android':
    deps = GetSharedLibraryDependenciesAndroid(binary)
  elif options.platform == 'darwin':
    deps = GetSharedLibraryDependenciesMac(binary, exe_path)
  elif options.platform == 'chromeos':
    deps = GetSharedLibraryDependenciesChromeOS(binary)
  else:
    print("Platform not supported.")
    sys.exit(1)

  result = []
  build_dir = os.path.abspath(options.build_dir)
  for dep in deps:
    if (os.access(dep, os.X_OK) and
        os.path.abspath(os.path.dirname(dep)).startswith(build_dir)):
      result.append(dep)
  return result
Return absolute paths to all shared library dependencies of the binary.
Return absolute paths to all shared library dependencies of the binary.
Return absolute paths to all shared library dependencies of the binary .
def GetSharedLibraryDependencies(options, binary, exe_path):
  deps = []
  if options.platform.startswith('linux'):
    deps = GetSharedLibraryDependenciesLinux(binary)
  elif options.platform == 'android':
    deps = GetSharedLibraryDependenciesAndroid(binary)
  elif options.platform == 'darwin':
    deps = GetSharedLibraryDependenciesMac(binary, exe_path)
  elif options.platform == 'chromeos':
    deps = GetSharedLibraryDependenciesChromeOS(binary)
  else:
    print("Platform not supported.")
    sys.exit(1)
  result = []
  build_dir = os.path.abspath(options.build_dir)
  for dep in deps:
    if (os.access(dep, os.X_OK) and
        os.path.abspath(os.path.dirname(dep)).startswith(build_dir)):
      result.append(dep)
  return result
def GetSharedLibraryDependencies ( options , binary , exe_path ) : deps = [ ] if options . platform . startswith ( 'linux' ) : deps = GetSharedLibraryDependenciesLinux ( binary ) elif options . platform == 'android' : deps = GetSharedLibraryDependenciesAndroid ( binary ) elif options . platform == 'darwin' : deps = GetSharedLibraryDependenciesMac ( binary , exe_path ) elif options . platform == 'chromeos' : deps = GetSharedLibraryDependenciesChromeOS ( binary ) else : print ( "Platform not supported." ) sys . exit ( 1 ) result = [ ] build_dir = os . path . abspath ( options . build_dir ) for dep in deps : if ( os . access ( dep , os . X_OK ) and os . path . abspath ( os . path . dirname ( dep ) ) . startswith ( build_dir ) ) : result . append ( dep ) return result
Return absolute paths to all shared library dependencies of the binary.
Return absolute paths to all shared library dependencies of the binary .
"""Return absolute paths to all shared library dependencies of the binary."""
options
binary
exe_path