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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 Err* err); | 114 Err* err); |
115 | 115 |
116 extern const char kExecutable[]; | 116 extern const char kExecutable[]; |
117 extern const char kExecutable_Help[]; | 117 extern const char kExecutable_Help[]; |
118 Value RunExecutable(Scope* scope, | 118 Value RunExecutable(Scope* scope, |
119 const FunctionCallNode* function, | 119 const FunctionCallNode* function, |
120 const std::vector<Value>& args, | 120 const std::vector<Value>& args, |
121 BlockNode* block, | 121 BlockNode* block, |
122 Err* err); | 122 Err* err); |
123 | 123 |
| 124 extern const char kGetEnv[]; |
| 125 extern const char kGetEnv_Help[]; |
| 126 Value RunGetEnv(Scope* scope, |
| 127 const FunctionCallNode* function, |
| 128 const std::vector<Value>& args, |
| 129 Err* err); |
| 130 |
124 extern const char kGroup[]; | 131 extern const char kGroup[]; |
125 extern const char kGroup_Help[]; | 132 extern const char kGroup_Help[]; |
126 Value RunGroup(Scope* scope, | 133 Value RunGroup(Scope* scope, |
127 const FunctionCallNode* function, | 134 const FunctionCallNode* function, |
128 const std::vector<Value>& args, | 135 const std::vector<Value>& args, |
129 BlockNode* block, | 136 BlockNode* block, |
130 Err* err); | 137 Err* err); |
131 | 138 |
132 extern const char kImport[]; | 139 extern const char kImport[]; |
133 extern const char kImport_Help[]; | 140 extern const char kImport_Help[]; |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 // Returns the name of the toolchain for the given scope. | 341 // Returns the name of the toolchain for the given scope. |
335 const Label& ToolchainLabelForScope(const Scope* scope); | 342 const Label& ToolchainLabelForScope(const Scope* scope); |
336 | 343 |
337 // Generates a label for the given scope, using the current directory and | 344 // Generates a label for the given scope, using the current directory and |
338 // toolchain, and the given name. | 345 // toolchain, and the given name. |
339 Label MakeLabelForScope(const Scope* scope, | 346 Label MakeLabelForScope(const Scope* scope, |
340 const FunctionCallNode* function, | 347 const FunctionCallNode* function, |
341 const std::string& name); | 348 const std::string& name); |
342 | 349 |
343 #endif // TOOLS_GN_FUNCTIONS_H_ | 350 #endif // TOOLS_GN_FUNCTIONS_H_ |
OLD | NEW |