remoting/tools/zip2msi.py
def GenerateCommandLine(tool, source, dest, parameters):
  """Generates the command line for |tool|."""
  # Merge/apply tool-specific parameters
  params = copy.copy(parameters)
  if tool in parameters:
    params = Merge(params, params[tool])

  wix_path = os.path.normpath(params.get('wix_path', ''))
  switches = [os.path.join(wix_path, tool), '-nologo']

  # Append the list of defines and extensions to the command line switches.
  for name, value in params.get('defines', {}).items():
    switches.append('-d%s=%s' % (name, value))

  for ext in params.get('extensions', []):
    switches += ('-ext', os.path.join(wix_path, ext))

  # Append raw switches
  switches += params.get('switches', [])

  # Append the input and output files
  switches += ('-out', dest, source)

  # Generate the actual command line
  #return ' '.join(map(QuoteArgument, switches))
  return switches
Generates the command line for |tool|.
Generates the command line for |tool|.
Generates the command line for |tool| .
def GenerateCommandLine(tool, source, dest, parameters):
  params = copy.copy(parameters)
  if tool in parameters:
    params = Merge(params, params[tool])
  wix_path = os.path.normpath(params.get('wix_path', ''))
  switches = [os.path.join(wix_path, tool), '-nologo']
  for name, value in params.get('defines', {}).items():
    switches.append('-d%s=%s' % (name, value))
  for ext in params.get('extensions', []):
    switches += ('-ext', os.path.join(wix_path, ext))
  switches += params.get('switches', [])
  switches += ('-out', dest, source)
  return switches
def GenerateCommandLine ( tool , source , dest , parameters ) : params = copy . copy ( parameters ) if tool in parameters : params = Merge ( params , params [ tool ] ) wix_path = os . path . normpath ( params . get ( 'wix_path' , '' ) ) switches = [ os . path . join ( wix_path , tool ) , '-nologo' ] for name , value in params . get ( 'defines' , { } ) . items ( ) : switches . append ( '-d%s=%s' % ( name , value ) ) for ext in params . get ( 'extensions' , [ ] ) : switches += ( '-ext' , os . path . join ( wix_path , ext ) ) switches += params . get ( 'switches' , [ ] ) switches += ( '-out' , dest , source ) return switches
Generates the command line for |tool|.
Generates the command line for |tool| .
"""Generates the command line for |tool|.""" # Merge/apply tool-specific parameters # Append the list of defines and extensions to the command line switches. # Append raw switches # Append the input and output files # Generate the actual command line #return ' '.join(map(QuoteArgument, switches))
tool
source
dest
parameters