Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Side by Side Diff: tools/gn/functions.h

Issue 1263053003: Add forward_variables_from() and target() to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More spelling fixes Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/function_template.cc ('k') | tools/gn/functions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 Err* err); 131 Err* err);
132 132
133 extern const char kForEach[]; 133 extern const char kForEach[];
134 extern const char kForEach_HelpShort[]; 134 extern const char kForEach_HelpShort[];
135 extern const char kForEach_Help[]; 135 extern const char kForEach_Help[];
136 Value RunForEach(Scope* scope, 136 Value RunForEach(Scope* scope,
137 const FunctionCallNode* function, 137 const FunctionCallNode* function,
138 const ListNode* args_list, 138 const ListNode* args_list,
139 Err* err); 139 Err* err);
140 140
141 extern const char kForwardVariablesFrom[];
142 extern const char kForwardVariablesFrom_HelpShort[];
143 extern const char kForwardVariablesFrom_Help[];
144 Value RunForwardVariablesFrom(Scope* scope,
145 const FunctionCallNode* function,
146 const ListNode* args_list,
147 Err* err);
148
141 extern const char kGetEnv[]; 149 extern const char kGetEnv[];
142 extern const char kGetEnv_HelpShort[]; 150 extern const char kGetEnv_HelpShort[];
143 extern const char kGetEnv_Help[]; 151 extern const char kGetEnv_Help[];
144 Value RunGetEnv(Scope* scope, 152 Value RunGetEnv(Scope* scope,
145 const FunctionCallNode* function, 153 const FunctionCallNode* function,
146 const std::vector<Value>& args, 154 const std::vector<Value>& args,
147 Err* err); 155 Err* err);
148 156
149 extern const char kGetLabelInfo[]; 157 extern const char kGetLabelInfo[];
150 extern const char kGetLabelInfo_HelpShort[]; 158 extern const char kGetLabelInfo_HelpShort[];
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 272
265 extern const char kStaticLibrary[]; 273 extern const char kStaticLibrary[];
266 extern const char kStaticLibrary_HelpShort[]; 274 extern const char kStaticLibrary_HelpShort[];
267 extern const char kStaticLibrary_Help[]; 275 extern const char kStaticLibrary_Help[];
268 Value RunStaticLibrary(Scope* scope, 276 Value RunStaticLibrary(Scope* scope,
269 const FunctionCallNode* function, 277 const FunctionCallNode* function,
270 const std::vector<Value>& args, 278 const std::vector<Value>& args,
271 BlockNode* block, 279 BlockNode* block,
272 Err* err); 280 Err* err);
273 281
282 extern const char kTarget[];
283 extern const char kTarget_HelpShort[];
284 extern const char kTarget_Help[];
285 Value RunTarget(Scope* scope,
286 const FunctionCallNode* function,
287 const std::vector<Value>& args,
288 BlockNode* block,
289 Err* err);
290
274 extern const char kTemplate[]; 291 extern const char kTemplate[];
275 extern const char kTemplate_HelpShort[]; 292 extern const char kTemplate_HelpShort[];
276 extern const char kTemplate_Help[]; 293 extern const char kTemplate_Help[];
277 Value RunTemplate(Scope* scope, 294 Value RunTemplate(Scope* scope,
278 const FunctionCallNode* function, 295 const FunctionCallNode* function,
279 const std::vector<Value>& args, 296 const std::vector<Value>& args,
280 BlockNode* block, 297 BlockNode* block,
281 Err* err); 298 Err* err);
282 299
283 extern const char kTool[]; 300 extern const char kTool[];
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 // Returns the name of the toolchain for the given scope. 424 // Returns the name of the toolchain for the given scope.
408 const Label& ToolchainLabelForScope(const Scope* scope); 425 const Label& ToolchainLabelForScope(const Scope* scope);
409 426
410 // Generates a label for the given scope, using the current directory and 427 // Generates a label for the given scope, using the current directory and
411 // toolchain, and the given name. 428 // toolchain, and the given name.
412 Label MakeLabelForScope(const Scope* scope, 429 Label MakeLabelForScope(const Scope* scope,
413 const FunctionCallNode* function, 430 const FunctionCallNode* function,
414 const std::string& name); 431 const std::string& name);
415 432
416 #endif // TOOLS_GN_FUNCTIONS_H_ 433 #endif // TOOLS_GN_FUNCTIONS_H_
OLDNEW
« no previous file with comments | « tools/gn/function_template.cc ('k') | tools/gn/functions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698