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

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

Issue 161783002: Remove default value checking in GN, adds getenv function, reorders parameters to rebase_path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/function_rebase_path_unittest.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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « tools/gn/function_rebase_path_unittest.cc ('k') | tools/gn/functions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698