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_FUNCTIONS_H_ | 5 #ifndef TOOLS_GN_FUNCTIONS_H_ |
6 #define TOOLS_GN_FUNCTIONS_H_ | 6 #define TOOLS_GN_FUNCTIONS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 Err* err); | 140 Err* err); |
141 | 141 |
142 extern const char kGetEnv[]; | 142 extern const char kGetEnv[]; |
143 extern const char kGetEnv_HelpShort[]; | 143 extern const char kGetEnv_HelpShort[]; |
144 extern const char kGetEnv_Help[]; | 144 extern const char kGetEnv_Help[]; |
145 Value RunGetEnv(Scope* scope, | 145 Value RunGetEnv(Scope* scope, |
146 const FunctionCallNode* function, | 146 const FunctionCallNode* function, |
147 const std::vector<Value>& args, | 147 const std::vector<Value>& args, |
148 Err* err); | 148 Err* err); |
149 | 149 |
| 150 extern const char kGetLabelInfo[]; |
| 151 extern const char kGetLabelInfo_HelpShort[]; |
| 152 extern const char kGetLabelInfo_Help[]; |
| 153 Value RunGetLabelInfo(Scope* scope, |
| 154 const FunctionCallNode* function, |
| 155 const std::vector<Value>& args, |
| 156 Err* err); |
| 157 |
150 extern const char kGetTargetOutputs[]; | 158 extern const char kGetTargetOutputs[]; |
151 extern const char kGetTargetOutputs_HelpShort[]; | 159 extern const char kGetTargetOutputs_HelpShort[]; |
152 extern const char kGetTargetOutputs_Help[]; | 160 extern const char kGetTargetOutputs_Help[]; |
153 Value RunGetTargetOutputs(Scope* scope, | 161 Value RunGetTargetOutputs(Scope* scope, |
154 const FunctionCallNode* function, | 162 const FunctionCallNode* function, |
155 const std::vector<Value>& args, | 163 const std::vector<Value>& args, |
156 Err* err); | 164 Err* err); |
157 | 165 |
158 extern const char kGroup[]; | 166 extern const char kGroup[]; |
159 extern const char kGroup_HelpShort[]; | 167 extern const char kGroup_HelpShort[]; |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 // Returns the name of the toolchain for the given scope. | 409 // Returns the name of the toolchain for the given scope. |
402 const Label& ToolchainLabelForScope(const Scope* scope); | 410 const Label& ToolchainLabelForScope(const Scope* scope); |
403 | 411 |
404 // Generates a label for the given scope, using the current directory and | 412 // Generates a label for the given scope, using the current directory and |
405 // toolchain, and the given name. | 413 // toolchain, and the given name. |
406 Label MakeLabelForScope(const Scope* scope, | 414 Label MakeLabelForScope(const Scope* scope, |
407 const FunctionCallNode* function, | 415 const FunctionCallNode* function, |
408 const std::string& name); | 416 const std::string& name); |
409 | 417 |
410 #endif // TOOLS_GN_FUNCTIONS_H_ | 418 #endif // TOOLS_GN_FUNCTIONS_H_ |
OLD | NEW |