Lines Matching refs:args
28 # Pass additional gn arguments after -- (don't use spaces within gn args).
32 # off goma usage here, the args.gn file must be edited manually.
65 def __init__(self, args):
66 # Split args into this script's arguments and gn args passed to the
68 index = args.index('--') if '--' in args else len(args)
69 self._options = self._parse_arguments(args[:index])
70 self._gn_args = args[index + 1:]
72 def _parse_arguments(self, args):
104 help='run gn over command-line gn args to catch errors early')
124 if not args or args[0] not in list(subps.choices) + ['-h', '--help']:
125 args = ['gen'] + args
127 return self.parser.parse_args(args)
173 gn_args_path = os.path.join(OUT_DIR, self._options.outdir, 'args.gn')
175 # Append command-line args.
179 # Append goma args.
180 # TODO(machenbach): We currently can't remove existing goma args from the
186 # Regenerate ninja files to check for errors in the additional gn args.
208 def _call_cmd(self, args):
209 self.verbose_print_1(' '.join(args))
212 args=args,
250 """Gn args for using goma."""
251 # Specify goma args if we want to use goma and if goma isn't specified
264 """Append extra gn arguments to the generated args.gn file."""
270 f.write('\n# Additional %s args:\n' % type)