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 <stddef.h> |
5 #include <stdio.h> | 6 #include <stdio.h> |
6 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 #include <string.h> |
7 | 9 |
8 #include <map> | 10 #include <map> |
9 | 11 |
10 #include "base/command_line.h" | 12 #include "base/command_line.h" |
11 #include "base/environment.h" | 13 #include "base/environment.h" |
12 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
13 #include "base/process/launch.h" | 15 #include "base/process/launch.h" |
14 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 18 #include "build/build_config.h" |
16 #include "tools/gn/commands.h" | 19 #include "tools/gn/commands.h" |
17 #include "tools/gn/filesystem_utils.h" | 20 #include "tools/gn/filesystem_utils.h" |
18 #include "tools/gn/input_file.h" | 21 #include "tools/gn/input_file.h" |
19 #include "tools/gn/parse_tree.h" | 22 #include "tools/gn/parse_tree.h" |
20 #include "tools/gn/setup.h" | 23 #include "tools/gn/setup.h" |
21 #include "tools/gn/standard_out.h" | 24 #include "tools/gn/standard_out.h" |
22 #include "tools/gn/tokenizer.h" | 25 #include "tools/gn/tokenizer.h" |
23 #include "tools/gn/trace.h" | 26 #include "tools/gn/trace.h" |
24 | 27 |
25 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 "Or see \"gn help args\" for more variants.").PrintToStdout(); | 343 "Or see \"gn help args\" for more variants.").PrintToStdout(); |
341 return 1; | 344 return 1; |
342 } | 345 } |
343 | 346 |
344 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kSwitchList)) | 347 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kSwitchList)) |
345 return ListArgs(args[0]); | 348 return ListArgs(args[0]); |
346 return EditArgsFile(args[0]); | 349 return EditArgsFile(args[0]); |
347 } | 350 } |
348 | 351 |
349 } // namespace commands | 352 } // namespace commands |
OLD | NEW |