tools/autotest.py
def BuildTestTargetsWithNinja(out_dir, targets, dry_run):
  """Builds the specified targets with ninja"""
  # Use autoninja from PATH to match version used for manual builds.
  ninja_path = 'autoninja'
  if sys.platform.startswith('win32'):
    ninja_path += '.bat'
  cmd = [ninja_path, '-C', out_dir] + targets
  print('Building: ' + ' '.join(cmd))
  if (dry_run):
    return True
  try:
    subprocess.check_call(cmd)
  except subprocess.CalledProcessError as e:
    return False
  return True
Builds the specified targets with ninja
Builds the specified targets with ninja
Builds the specified targets with ninja
def BuildTestTargetsWithNinja(out_dir, targets, dry_run):
  ninja_path = 'autoninja'
  if sys.platform.startswith('win32'):
    ninja_path += '.bat'
  cmd = [ninja_path, '-C', out_dir] + targets
  print('Building: ' + ' '.join(cmd))
  if (dry_run):
    return True
  try:
    subprocess.check_call(cmd)
  except subprocess.CalledProcessError as e:
    return False
  return True
def BuildTestTargetsWithNinja ( out_dir , targets , dry_run ) : ninja_path = 'autoninja' if sys . platform . startswith ( 'win32' ) : ninja_path += '.bat' cmd = [ ninja_path , '-C' , out_dir ] + targets print ( 'Building: ' + ' ' . join ( cmd ) ) if ( dry_run ) : return True try : subprocess . check_call ( cmd ) except subprocess . CalledProcessError as e : return False return True
Builds the specified targets with ninja
Builds the specified targets with ninja
"""Builds the specified targets with ninja""" # Use autoninja from PATH to match version used for manual builds.
out_dir
targets
dry_run