OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stdio.h> | 5 #include <stdio.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/environment.h" | 11 #include "base/environment.h" |
12 #include "base/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/process/launch.h" | 13 #include "base/process/launch.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "tools/gn/commands.h" | 16 #include "tools/gn/commands.h" |
17 #include "tools/gn/filesystem_utils.h" | 17 #include "tools/gn/filesystem_utils.h" |
18 #include "tools/gn/input_file.h" | 18 #include "tools/gn/input_file.h" |
19 #include "tools/gn/parse_tree.h" | 19 #include "tools/gn/parse_tree.h" |
20 #include "tools/gn/setup.h" | 20 #include "tools/gn/setup.h" |
21 #include "tools/gn/standard_out.h" | 21 #include "tools/gn/standard_out.h" |
22 #include "tools/gn/tokenizer.h" | 22 #include "tools/gn/tokenizer.h" |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 "Or see \"gn help args\" for more variants.").PrintToStdout(); | 338 "Or see \"gn help args\" for more variants.").PrintToStdout(); |
339 return 1; | 339 return 1; |
340 } | 340 } |
341 | 341 |
342 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kSwitchList)) | 342 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kSwitchList)) |
343 return ListArgs(args[0]); | 343 return ListArgs(args[0]); |
344 return EditArgsFile(args[0]); | 344 return EditArgsFile(args[0]); |
345 } | 345 } |
346 | 346 |
347 } // namespace commands | 347 } // namespace commands |
OLD | NEW |