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

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

Issue 516703005: Remove built-in component and test targets from GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « build/config/BUILDCONFIG.gn ('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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 Err* err); 73 Err* err);
74 74
75 extern const char kAssert[]; 75 extern const char kAssert[];
76 extern const char kAssert_HelpShort[]; 76 extern const char kAssert_HelpShort[];
77 extern const char kAssert_Help[]; 77 extern const char kAssert_Help[];
78 Value RunAssert(Scope* scope, 78 Value RunAssert(Scope* scope,
79 const FunctionCallNode* function, 79 const FunctionCallNode* function,
80 const std::vector<Value>& args, 80 const std::vector<Value>& args,
81 Err* err); 81 Err* err);
82 82
83 extern const char kComponent[];
84 extern const char kComponent_HelpShort[];
85 extern const char kComponent_Help[];
86 Value RunComponent(Scope* scope,
87 const FunctionCallNode* function,
88 const std::vector<Value>& args,
89 BlockNode* block,
90 Err* err);
91
92 extern const char kConfig[]; 83 extern const char kConfig[];
93 extern const char kConfig_HelpShort[]; 84 extern const char kConfig_HelpShort[];
94 extern const char kConfig_Help[]; 85 extern const char kConfig_Help[];
95 Value RunConfig(const FunctionCallNode* function, 86 Value RunConfig(const FunctionCallNode* function,
96 const std::vector<Value>& args, 87 const std::vector<Value>& args,
97 Scope* block_scope, 88 Scope* block_scope,
98 Err* err); 89 Err* err);
99 90
100 extern const char kCopy[]; 91 extern const char kCopy[];
101 extern const char kCopy_HelpShort[]; 92 extern const char kCopy_HelpShort[];
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 273
283 extern const char kTemplate[]; 274 extern const char kTemplate[];
284 extern const char kTemplate_HelpShort[]; 275 extern const char kTemplate_HelpShort[];
285 extern const char kTemplate_Help[]; 276 extern const char kTemplate_Help[];
286 Value RunTemplate(Scope* scope, 277 Value RunTemplate(Scope* scope,
287 const FunctionCallNode* function, 278 const FunctionCallNode* function,
288 const std::vector<Value>& args, 279 const std::vector<Value>& args,
289 BlockNode* block, 280 BlockNode* block,
290 Err* err); 281 Err* err);
291 282
292 extern const char kTest[];
293 extern const char kTest_HelpShort[];
294 extern const char kTest_Help[];
295 Value RunTest(Scope* scope,
296 const FunctionCallNode* function,
297 const std::vector<Value>& args,
298 BlockNode* block,
299 Err* err);
300
301 extern const char kTool[]; 283 extern const char kTool[];
302 extern const char kTool_HelpShort[]; 284 extern const char kTool_HelpShort[];
303 extern const char kTool_Help[]; 285 extern const char kTool_Help[];
304 Value RunTool(Scope* scope, 286 Value RunTool(Scope* scope,
305 const FunctionCallNode* function, 287 const FunctionCallNode* function,
306 const std::vector<Value>& args, 288 const std::vector<Value>& args,
307 BlockNode* block, 289 BlockNode* block,
308 Err* err); 290 Err* err);
309 291
310 extern const char kToolchain[]; 292 extern const char kToolchain[];
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // Returns the name of the toolchain for the given scope. 407 // Returns the name of the toolchain for the given scope.
426 const Label& ToolchainLabelForScope(const Scope* scope); 408 const Label& ToolchainLabelForScope(const Scope* scope);
427 409
428 // Generates a label for the given scope, using the current directory and 410 // Generates a label for the given scope, using the current directory and
429 // toolchain, and the given name. 411 // toolchain, and the given name.
430 Label MakeLabelForScope(const Scope* scope, 412 Label MakeLabelForScope(const Scope* scope,
431 const FunctionCallNode* function, 413 const FunctionCallNode* function,
432 const std::string& name); 414 const std::string& name);
433 415
434 #endif // TOOLS_GN_FUNCTIONS_H_ 416 #endif // TOOLS_GN_FUNCTIONS_H_
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | tools/gn/functions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698