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

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

Issue 279023002: Add GN function get_label_info (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comment Created 6 years, 7 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_get_label_info_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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 Err* err); 140 Err* err);
141 141
142 extern const char kGetEnv[]; 142 extern const char kGetEnv[];
143 extern const char kGetEnv_HelpShort[]; 143 extern const char kGetEnv_HelpShort[];
144 extern const char kGetEnv_Help[]; 144 extern const char kGetEnv_Help[];
145 Value RunGetEnv(Scope* scope, 145 Value RunGetEnv(Scope* scope,
146 const FunctionCallNode* function, 146 const FunctionCallNode* function,
147 const std::vector<Value>& args, 147 const std::vector<Value>& args,
148 Err* err); 148 Err* err);
149 149
150 extern const char kGetLabelInfo[];
151 extern const char kGetLabelInfo_HelpShort[];
152 extern const char kGetLabelInfo_Help[];
153 Value RunGetLabelInfo(Scope* scope,
154 const FunctionCallNode* function,
155 const std::vector<Value>& args,
156 Err* err);
157
150 extern const char kGetTargetOutputs[]; 158 extern const char kGetTargetOutputs[];
151 extern const char kGetTargetOutputs_HelpShort[]; 159 extern const char kGetTargetOutputs_HelpShort[];
152 extern const char kGetTargetOutputs_Help[]; 160 extern const char kGetTargetOutputs_Help[];
153 Value RunGetTargetOutputs(Scope* scope, 161 Value RunGetTargetOutputs(Scope* scope,
154 const FunctionCallNode* function, 162 const FunctionCallNode* function,
155 const std::vector<Value>& args, 163 const std::vector<Value>& args,
156 Err* err); 164 Err* err);
157 165
158 extern const char kGroup[]; 166 extern const char kGroup[];
159 extern const char kGroup_HelpShort[]; 167 extern const char kGroup_HelpShort[];
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 // Returns the name of the toolchain for the given scope. 409 // Returns the name of the toolchain for the given scope.
402 const Label& ToolchainLabelForScope(const Scope* scope); 410 const Label& ToolchainLabelForScope(const Scope* scope);
403 411
404 // Generates a label for the given scope, using the current directory and 412 // Generates a label for the given scope, using the current directory and
405 // toolchain, and the given name. 413 // toolchain, and the given name.
406 Label MakeLabelForScope(const Scope* scope, 414 Label MakeLabelForScope(const Scope* scope,
407 const FunctionCallNode* function, 415 const FunctionCallNode* function,
408 const std::string& name); 416 const std::string& name);
409 417
410 #endif // TOOLS_GN_FUNCTIONS_H_ 418 #endif // TOOLS_GN_FUNCTIONS_H_
OLDNEW
« no previous file with comments | « tools/gn/function_get_label_info_unittest.cc ('k') | tools/gn/functions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698