OLD | NEW |
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // custom ---------------------------------------------------------------------- | 170 // custom ---------------------------------------------------------------------- |
171 | 171 |
172 const char kCustom[] = "custom"; | 172 const char kCustom[] = "custom"; |
173 const char kCustom_Help[] = | 173 const char kCustom_Help[] = |
174 "custom: Declare a script-generated target.\n" | 174 "custom: Declare a script-generated target.\n" |
175 "\n" | 175 "\n" |
176 " This target type allows you to run a script over a set of source\n" | 176 " This target type allows you to run a script over a set of source\n" |
177 " files and generate a set of output files.\n" | 177 " files and generate a set of output files.\n" |
178 "\n" | 178 "\n" |
179 " The script will be executed with the given arguments with the current\n" | 179 " The script will be executed with the given arguments with the current\n" |
180 " directory being that of the root build directory. If you pass\n" | 180 " directory being that of the root build directory. If you pass files\n" |
181 " to your script, see \"gn help to_build_path\" for how to convert\n" | 181 " to your script, see \"gn help to_build_path\" for how to convert\n" |
182 " file names to be relative to the build directory (file names in the\n" | 182 " file names to be relative to the build directory (file names in the\n" |
183 " sources, outputs, and source_prereqs will be all treated as relative\n" | 183 " sources, outputs, and source_prereqs will be all treated as relative\n" |
184 " to the current build file and converted as needed automatically).\n" | 184 " to the current build file and converted as needed automatically).\n" |
185 "\n" | 185 "\n" |
186 " There are two modes. The first mode is the \"per-file\" mode where you\n" | 186 " There are two modes. The first mode is the \"per-file\" mode where you\n" |
187 " specify a list of sources and the script is run once for each one as a\n" | 187 " specify a list of sources and the script is run once for each one as a\n" |
188 " build rule. In this case, each file specified in the |outputs|\n" | 188 " build rule. In this case, each file specified in the |outputs|\n" |
189 " variable must be unique when applied to each source file (normally you\n" | 189 " variable must be unique when applied to each source file (normally you\n" |
190 " would reference |{{source_name_part}}| from within each one) or the\n" | 190 " would reference |{{source_name_part}}| from within each one) or the\n" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 Value RunTest(Scope* scope, | 429 Value RunTest(Scope* scope, |
430 const FunctionCallNode* function, | 430 const FunctionCallNode* function, |
431 const std::vector<Value>& args, | 431 const std::vector<Value>& args, |
432 BlockNode* block, | 432 BlockNode* block, |
433 Err* err) { | 433 Err* err) { |
434 return ExecuteGenericTarget(functions::kExecutable, scope, function, args, | 434 return ExecuteGenericTarget(functions::kExecutable, scope, function, args, |
435 block, err); | 435 block, err); |
436 } | 436 } |
437 | 437 |
438 } // namespace functions | 438 } // namespace functions |
OLD | NEW |