Home | History | Annotate | Download | only in gn

Lines Matching defs:args

91 // Set build args.
92 const char kSwitchArgs[] = "args";
137 const char CommonSetup::kBuildArgFileName[] = "args.gn";
274 // Use the args on the command line if specified, and save them. Do this even
283 // No command line args given, use the arguments from the build dir (if any).
287 bool Setup::FillArgsFromCommandLine(const std::string& args) {
289 args_input_file_->SetContents(args);
290 args_input_file_->set_friendly_name("the command-line \"--args\"");
295 ScopedTrace setup_trace(TraceItem::TRACE_SETUP, "Load args file");
303 return true; // File doesn't exist, continue with default args.
315 "build arg file (use \"gn args <out_dir>\" to edit)");
322 ScopedTrace setup_trace(TraceItem::TRACE_SETUP, "Parse args");
344 // Save the result of the command args.
352 ScopedTrace setup_trace(TraceItem::TRACE_SETUP, "Save args file");
354 Scope::KeyValueMap args = build_settings_.build_args().GetAllOverrides();
357 for (Scope::KeyValueMap::const_iterator i = args.begin();
358 i != args.end(); ++i) {
378 Err(Location(), "Args file could not be written.",
395 // Prefer the command line args to the config file.