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 "base/atomicops.h" | 5 #include "base/atomicops.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/timer/elapsed_timer.h" | 9 #include "base/timer/elapsed_timer.h" |
10 #include "tools/gn/build_settings.h" | 10 #include "tools/gn/build_settings.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 } // namespace | 46 } // namespace |
47 | 47 |
48 const char kGen[] = "gen"; | 48 const char kGen[] = "gen"; |
49 const char kGen_HelpShort[] = | 49 const char kGen_HelpShort[] = |
50 "gen: Generate ninja files."; | 50 "gen: Generate ninja files."; |
51 const char kGen_Help[] = | 51 const char kGen_Help[] = |
52 "gn gen: Generate ninja files.\n" | 52 "gn gen: Generate ninja files.\n" |
53 "\n" | 53 "\n" |
54 " gn gen <output_directory>\n" | 54 " gn gen <out_dir>\n" |
55 "\n" | 55 "\n" |
56 " Generates ninja files from the current tree and puts them in the given\n" | 56 " Generates ninja files from the current tree and puts them in the given\n" |
57 " output directory.\n" | 57 " output directory.\n" |
58 "\n" | 58 "\n" |
59 " The output directory can be a source-repo-absolute path name such as:\n" | 59 " The output directory can be a source-repo-absolute path name such as:\n" |
60 " //out/foo\n" | 60 " //out/foo\n" |
61 " Or it can be a directory relative to the current directory such as:\n" | 61 " Or it can be a directory relative to the current directory such as:\n" |
62 " out/foo\n" | 62 " out/foo\n" |
63 "\n" | 63 "\n" |
64 " See \"gn help\" for the common command-line switches.\n"; | 64 " See \"gn help\" for the common command-line switches.\n"; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 setup->scheduler().input_file_manager()->GetInputFileCount()) + | 113 setup->scheduler().input_file_manager()->GetInputFileCount()) + |
114 " files in " + | 114 " files in " + |
115 base::Int64ToString(elapsed_time.InMilliseconds()) + "ms\n"; | 115 base::Int64ToString(elapsed_time.InMilliseconds()) + "ms\n"; |
116 OutputString(stats); | 116 OutputString(stats); |
117 } | 117 } |
118 | 118 |
119 return 0; | 119 return 0; |
120 } | 120 } |
121 | 121 |
122 } // namespace commands | 122 } // namespace commands |
OLD | NEW |