ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_component_crx_gen.py
def BuildArchForInstaller(version_quad, arch, lib_overrides):
  """ Build an architecture specific version for the chrome installer.
  """
  target_dir = PnaclDirs.OutputDir()

  StepBanner('BUILD INSTALLER',
             'Packaging for arch %s in %s' % (arch, target_dir))

  # Copy llc.nexe and ld.nexe, but with some renaming and directory flattening.
  CopyFlattenDirsAndPrefix(PnaclDirs.SandboxedCompilerDir(arch),
                           arch,
                           target_dir)

  # Copy native libraries, also with renaming and directory flattening.
  CopyFlattenDirsAndPrefix(PnaclDirs.LibDir(arch), arch, target_dir)

  # Also copy files from the list of overrides.
  # This needs the arch tagged onto the name too, like the other files.
  if arch in lib_overrides:
    for (override_lib, desired_name) in lib_overrides[arch]:
      target_name = UseWhitelistedChars(desired_name, arch)
      shutil.copy(override_lib, J(target_dir, target_name))
 Build an architecture specific version for the chrome installer.
  
Build an architecture specific version for the chrome installer.
Build an architecture specific version for the chrome installer .
def BuildArchForInstaller(version_quad, arch, lib_overrides):
  target_dir = PnaclDirs.OutputDir()
  StepBanner('BUILD INSTALLER',
             'Packaging for arch %s in %s' % (arch, target_dir))
  CopyFlattenDirsAndPrefix(PnaclDirs.SandboxedCompilerDir(arch),
                           arch,
                           target_dir)
  CopyFlattenDirsAndPrefix(PnaclDirs.LibDir(arch), arch, target_dir)
  if arch in lib_overrides:
    for (override_lib, desired_name) in lib_overrides[arch]:
      target_name = UseWhitelistedChars(desired_name, arch)
      shutil.copy(override_lib, J(target_dir, target_name))
def BuildArchForInstaller ( version_quad , arch , lib_overrides ) : target_dir = PnaclDirs . OutputDir ( ) StepBanner ( 'BUILD INSTALLER' , 'Packaging for arch %s in %s' % ( arch , target_dir ) ) CopyFlattenDirsAndPrefix ( PnaclDirs . SandboxedCompilerDir ( arch ) , arch , target_dir ) CopyFlattenDirsAndPrefix ( PnaclDirs . LibDir ( arch ) , arch , target_dir ) if arch in lib_overrides : for ( override_lib , desired_name ) in lib_overrides [ arch ] : target_name = UseWhitelistedChars ( desired_name , arch ) shutil . copy ( override_lib , J ( target_dir , target_name ) )
Build an architecture specific version for the chrome installer.
Build an architecture specific version for the chrome installer .
""" Build an architecture specific version for the chrome installer.
  """ # Copy llc.nexe and ld.nexe, but with some renaming and directory flattening. # Copy native libraries, also with renaming and directory flattening. # Also copy files from the list of overrides. # This needs the arch tagged onto the name too, like the other files.
version_quad
arch
lib_overrides