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

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

Issue 26267003: Add the concept of a source set to GN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/BUILD.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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 Err* err); 187 Err* err);
188 188
189 extern const char kSharedLibrary[]; 189 extern const char kSharedLibrary[];
190 extern const char kSharedLibrary_Help[]; 190 extern const char kSharedLibrary_Help[];
191 Value RunSharedLibrary(Scope* scope, 191 Value RunSharedLibrary(Scope* scope,
192 const FunctionCallNode* function, 192 const FunctionCallNode* function,
193 const std::vector<Value>& args, 193 const std::vector<Value>& args,
194 BlockNode* block, 194 BlockNode* block,
195 Err* err); 195 Err* err);
196 196
197 extern const char kSourceSet[];
198 extern const char kSourceSet_Help[];
199 Value RunSourceSet(Scope* scope,
200 const FunctionCallNode* function,
201 const std::vector<Value>& args,
202 BlockNode* block,
203 Err* err);
204
197 extern const char kStaticLibrary[]; 205 extern const char kStaticLibrary[];
198 extern const char kStaticLibrary_Help[]; 206 extern const char kStaticLibrary_Help[];
199 Value RunStaticLibrary(Scope* scope, 207 Value RunStaticLibrary(Scope* scope,
200 const FunctionCallNode* function, 208 const FunctionCallNode* function,
201 const std::vector<Value>& args, 209 const std::vector<Value>& args,
202 BlockNode* block, 210 BlockNode* block,
203 Err* err); 211 Err* err);
204 212
205 extern const char kTemplate[]; 213 extern const char kTemplate[];
206 extern const char kTemplate_Help[]; 214 extern const char kTemplate_Help[];
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // Returns the name of the toolchain for the given scope. 334 // Returns the name of the toolchain for the given scope.
327 const Label& ToolchainLabelForScope(const Scope* scope); 335 const Label& ToolchainLabelForScope(const Scope* scope);
328 336
329 // Generates a label for the given scope, using the current directory and 337 // Generates a label for the given scope, using the current directory and
330 // toolchain, and the given name. 338 // toolchain, and the given name.
331 Label MakeLabelForScope(const Scope* scope, 339 Label MakeLabelForScope(const Scope* scope,
332 const FunctionCallNode* function, 340 const FunctionCallNode* function,
333 const std::string& name); 341 const std::string& name);
334 342
335 #endif // TOOLS_GN_FUNCTIONS_H_ 343 #endif // TOOLS_GN_FUNCTIONS_H_
OLDNEW
« no previous file with comments | « tools/gn/BUILD.gn ('k') | tools/gn/functions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698