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

Side by Side Diff: tools/gn/functions_target.cc

Issue 1358803002: Add ninja console pool support to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update action/action_foreach doc Created 5 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
« no previous file with comments | « tools/gn/action_values.cc ('k') | tools/gn/ninja_action_target_writer.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 #include "tools/gn/functions.h" 5 #include "tools/gn/functions.h"
6 6
7 #include "tools/gn/config_values_generator.h" 7 #include "tools/gn/config_values_generator.h"
8 #include "tools/gn/err.h" 8 #include "tools/gn/err.h"
9 #include "tools/gn/parse_tree.h" 9 #include "tools/gn/parse_tree.h"
10 #include "tools/gn/scope.h" 10 #include "tools/gn/scope.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 " the \"outputs\".\n" 120 " the \"outputs\".\n"
121 "\n" 121 "\n"
122 SCRIPT_EXECUTION_CONTEXT 122 SCRIPT_EXECUTION_CONTEXT
123 "\n" 123 "\n"
124 "File name handling\n" 124 "File name handling\n"
125 "\n" 125 "\n"
126 SCRIPT_EXECUTION_OUTPUTS 126 SCRIPT_EXECUTION_OUTPUTS
127 "\n" 127 "\n"
128 "Variables\n" 128 "Variables\n"
129 "\n" 129 "\n"
130 " args, data, data_deps, depfile, deps, outputs*, script*,\n" 130 " args, console, data, data_deps, depfile, deps, outputs*, script*,\n"
131 " inputs, sources\n" 131 " inputs, sources\n"
132 " * = required\n" 132 " * = required\n"
133 "\n" 133 "\n"
134 "Example\n" 134 "Example\n"
135 "\n" 135 "\n"
136 " action(\"run_this_guy_once\") {\n" 136 " action(\"run_this_guy_once\") {\n"
137 " script = \"doprocessing.py\"\n" 137 " script = \"doprocessing.py\"\n"
138 " sources = [ \"my_configuration.txt\" ]\n" 138 " sources = [ \"my_configuration.txt\" ]\n"
139 " outputs = [ \"$target_gen_dir/insightful_output.txt\" ]\n" 139 " outputs = [ \"$target_gen_dir/insightful_output.txt\" ]\n"
140 "\n" 140 "\n"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 "Outputs\n" 191 "Outputs\n"
192 "\n" 192 "\n"
193 SCRIPT_EXECUTION_CONTEXT 193 SCRIPT_EXECUTION_CONTEXT
194 "\n" 194 "\n"
195 "File name handling\n" 195 "File name handling\n"
196 "\n" 196 "\n"
197 SCRIPT_EXECUTION_OUTPUTS 197 SCRIPT_EXECUTION_OUTPUTS
198 "\n" 198 "\n"
199 "Variables\n" 199 "Variables\n"
200 "\n" 200 "\n"
201 " args, data, data_deps, depfile, deps, outputs*, script*,\n" 201 " args, console, data, data_deps, depfile, deps, outputs*, script*,\n"
202 " inputs, sources*\n" 202 " inputs, sources*\n"
203 " * = required\n" 203 " * = required\n"
204 "\n" 204 "\n"
205 "Example\n" 205 "Example\n"
206 "\n" 206 "\n"
207 " # Runs the script over each IDL file. The IDL script will generate\n" 207 " # Runs the script over each IDL file. The IDL script will generate\n"
208 " # both a .cc and a .h file for each input.\n" 208 " # both a .cc and a .h file for each input.\n"
209 " action_foreach(\"my_idl\") {\n" 209 " action_foreach(\"my_idl\") {\n"
210 " script = \"idl_processor.py\"\n" 210 " script = \"idl_processor.py\"\n"
211 " sources = [ \"foo.idl\", \"bar.idl\" ]\n" 211 " sources = [ \"foo.idl\", \"bar.idl\" ]\n"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 const Template* templ = scope->GetTemplate(target_type); 521 const Template* templ = scope->GetTemplate(target_type);
522 if (templ) 522 if (templ)
523 return templ->Invoke(scope, function, sub_args, block, err); 523 return templ->Invoke(scope, function, sub_args, block, err);
524 524
525 // Otherwise, assume the target is a built-in target type. 525 // Otherwise, assume the target is a built-in target type.
526 return ExecuteGenericTarget(target_type.c_str(), scope, function, sub_args, 526 return ExecuteGenericTarget(target_type.c_str(), scope, function, sub_args,
527 block, err); 527 block, err);
528 } 528 }
529 529
530 } // namespace functions 530 } // namespace functions
OLDNEW
« no previous file with comments | « tools/gn/action_values.cc ('k') | tools/gn/ninja_action_target_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698