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

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

Issue 1752033002: Add "create_bundle" target in order to support bundle with gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-bundle-data
Patch Set: Add unit tests, address comments, update docs and format with clang-format Created 4 years, 9 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_toolchain.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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 extern const char kBundleData[]; 83 extern const char kBundleData[];
84 extern const char kBundleData_HelpShort[]; 84 extern const char kBundleData_HelpShort[];
85 extern const char kBundleData_Help[]; 85 extern const char kBundleData_Help[];
86 Value RunBundleData(Scope* scope, 86 Value RunBundleData(Scope* scope,
87 const FunctionCallNode* function, 87 const FunctionCallNode* function,
88 const std::vector<Value>& args, 88 const std::vector<Value>& args,
89 BlockNode* block, 89 BlockNode* block,
90 Err* err); 90 Err* err);
91 91
92 extern const char kCreateBundle[];
93 extern const char kCreateBundle_HelpShort[];
94 extern const char kCreateBundle_Help[];
95 Value RunCreateBundle(Scope* scope,
96 const FunctionCallNode* function,
97 const std::vector<Value>& args,
98 BlockNode* block,
99 Err* err);
100
92 extern const char kConfig[]; 101 extern const char kConfig[];
93 extern const char kConfig_HelpShort[]; 102 extern const char kConfig_HelpShort[];
94 extern const char kConfig_Help[]; 103 extern const char kConfig_Help[];
95 Value RunConfig(const FunctionCallNode* function, 104 Value RunConfig(const FunctionCallNode* function,
96 const std::vector<Value>& args, 105 const std::vector<Value>& args,
97 Scope* block_scope, 106 Scope* block_scope,
98 Err* err); 107 Err* err);
99 108
100 extern const char kCopy[]; 109 extern const char kCopy[];
101 extern const char kCopy_HelpShort[]; 110 extern const char kCopy_HelpShort[];
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 Scope* scope_; 479 Scope* scope_;
471 const FunctionCallNode* function_; 480 const FunctionCallNode* function_;
472 const char* type_description_; 481 const char* type_description_;
473 482
474 // Set to true when the key is added to the scope so we don't try to 483 // Set to true when the key is added to the scope so we don't try to
475 // delete nonexistant keys which will cause assertions. 484 // delete nonexistant keys which will cause assertions.
476 bool key_added_; 485 bool key_added_;
477 }; 486 };
478 487
479 #endif // TOOLS_GN_FUNCTIONS_H_ 488 #endif // TOOLS_GN_FUNCTIONS_H_
OLDNEW
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/functions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698