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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 Err* err); | 204 Err* err); |
205 | 205 |
206 extern const char kTest[]; | 206 extern const char kTest[]; |
207 extern const char kTest_Help[]; | 207 extern const char kTest_Help[]; |
208 Value RunTest(Scope* scope, | 208 Value RunTest(Scope* scope, |
209 const FunctionCallNode* function, | 209 const FunctionCallNode* function, |
210 const std::vector<Value>& args, | 210 const std::vector<Value>& args, |
211 BlockNode* block, | 211 BlockNode* block, |
212 Err* err); | 212 Err* err); |
213 | 213 |
| 214 extern const char kToBuildPath[]; |
| 215 extern const char kToBuildPath_Help[]; |
| 216 Value RunToBuildPath(Scope* scope, |
| 217 const FunctionCallNode* function, |
| 218 const std::vector<Value>& args, |
| 219 Err* err); |
| 220 |
214 extern const char kTool[]; | 221 extern const char kTool[]; |
215 extern const char kTool_Help[]; | 222 extern const char kTool_Help[]; |
216 Value RunTool(Scope* scope, | 223 Value RunTool(Scope* scope, |
217 const FunctionCallNode* function, | 224 const FunctionCallNode* function, |
218 const std::vector<Value>& args, | 225 const std::vector<Value>& args, |
219 BlockNode* block, | 226 BlockNode* block, |
220 Err* err); | 227 Err* err); |
221 | 228 |
222 extern const char kToolchain[]; | 229 extern const char kToolchain[]; |
223 extern const char kToolchain_Help[]; | 230 extern const char kToolchain_Help[]; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 // Returns the name of the toolchain for the given scope. | 326 // Returns the name of the toolchain for the given scope. |
320 const Label& ToolchainLabelForScope(const Scope* scope); | 327 const Label& ToolchainLabelForScope(const Scope* scope); |
321 | 328 |
322 // Generates a label for the given scope, using the current directory and | 329 // Generates a label for the given scope, using the current directory and |
323 // toolchain, and the given name. | 330 // toolchain, and the given name. |
324 Label MakeLabelForScope(const Scope* scope, | 331 Label MakeLabelForScope(const Scope* scope, |
325 const FunctionCallNode* function, | 332 const FunctionCallNode* function, |
326 const std::string& name); | 333 const std::string& name); |
327 | 334 |
328 #endif // TOOLS_GN_FUNCTIONS_H_ | 335 #endif // TOOLS_GN_FUNCTIONS_H_ |
OLD | NEW |