| 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 #ifndef TOOLS_GN_COMMANDS_H_ | 5 #ifndef TOOLS_GN_COMMANDS_H_ |
| 6 #define TOOLS_GN_COMMANDS_H_ | 6 #define TOOLS_GN_COMMANDS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 extern const char kDesc[]; | 27 extern const char kDesc[]; |
| 28 extern const char kDesc_HelpShort[]; | 28 extern const char kDesc_HelpShort[]; |
| 29 extern const char kDesc_Help[]; | 29 extern const char kDesc_Help[]; |
| 30 int RunDesc(const std::vector<std::string>& args); | 30 int RunDesc(const std::vector<std::string>& args); |
| 31 | 31 |
| 32 extern const char kGen[]; | 32 extern const char kGen[]; |
| 33 extern const char kGen_HelpShort[]; | 33 extern const char kGen_HelpShort[]; |
| 34 extern const char kGen_Help[]; | 34 extern const char kGen_Help[]; |
| 35 int RunGen(const std::vector<std::string>& args); | 35 int RunGen(const std::vector<std::string>& args); |
| 36 | 36 |
| 37 extern const char kGyp[]; | |
| 38 extern const char kGyp_HelpShort[]; | |
| 39 extern const char kGyp_Help[]; | |
| 40 int RunGyp(const std::vector<std::string>& args); | |
| 41 | |
| 42 extern const char kHelp[]; | 37 extern const char kHelp[]; |
| 43 extern const char kHelp_HelpShort[]; | 38 extern const char kHelp_HelpShort[]; |
| 44 extern const char kHelp_Help[]; | 39 extern const char kHelp_Help[]; |
| 45 int RunHelp(const std::vector<std::string>& args); | 40 int RunHelp(const std::vector<std::string>& args); |
| 46 | 41 |
| 47 extern const char kRefs[]; | 42 extern const char kRefs[]; |
| 48 extern const char kRefs_HelpShort[]; | 43 extern const char kRefs_HelpShort[]; |
| 49 extern const char kRefs_Help[]; | 44 extern const char kRefs_Help[]; |
| 50 int RunRefs(const std::vector<std::string>& args); | 45 int RunRefs(const std::vector<std::string>& args); |
| 51 | 46 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 73 // | 68 // |
| 74 // Note that a lot of memory is leaked to avoid proper teardown under the | 69 // Note that a lot of memory is leaked to avoid proper teardown under the |
| 75 // assumption that you will only run this once and exit. | 70 // assumption that you will only run this once and exit. |
| 76 // | 71 // |
| 77 // On failure, prints an error message and returns NULL. | 72 // On failure, prints an error message and returns NULL. |
| 78 const Target* GetTargetForDesc(const std::vector<std::string>& args); | 73 const Target* GetTargetForDesc(const std::vector<std::string>& args); |
| 79 | 74 |
| 80 } // namespace commands | 75 } // namespace commands |
| 81 | 76 |
| 82 #endif // TOOLS_GN_COMMANDS_H_ | 77 #endif // TOOLS_GN_COMMANDS_H_ |
| OLD | NEW |