Exemple #1
0
def gn(config):
  command = ['gn', 'gen', '--check']

  gn_args = CommandLineForGNArgs(GNArgsForConfig(config))
  out_dir = _get_out_dir(config)
  command.append(out_dir)
  command.append('--args=%s' % ' '.join(gn_args))

  print 'Running %s %s ...' % (command[0],
                               ' '.join('\'%s\'' % x for x in command[1:]))
  return subprocess.call(command)
Exemple #2
0
def _gn(config):
    """Runs gn gen for the given config."""

    _logger.debug('_gn()')

    command = ['gn', 'gen', '--check']

    gn_args = CommandLineForGNArgs(GNArgsForConfig(config))
    out_dir = _get_out_dir(config)
    command.append(out_dir)
    command.append('--args=%s' % ' '.join(gn_args))

    print 'Running %s %s ...' % (command[0], ' '.join('\'%s\'' % x
                                                      for x in command[1:]))
    return subprocess.call(command)