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

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

Issue 2133873002: [GN docs] Add missing word in gn actions help string (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/docs/reference.md ('k') | no next file » | 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 " action are started. This can give additional parallelism in the build\n"\ 84 " action are started. This can give additional parallelism in the build\n"\
85 " for runtime-only dependencies.\n" 85 " for runtime-only dependencies.\n"
86 86
87 const char kAction[] = "action"; 87 const char kAction[] = "action";
88 const char kAction_HelpShort[] = 88 const char kAction_HelpShort[] =
89 "action: Declare a target that runs a script a single time."; 89 "action: Declare a target that runs a script a single time.";
90 const char kAction_Help[] = 90 const char kAction_Help[] =
91 "action: Declare a target that runs a script a single time.\n" 91 "action: Declare a target that runs a script a single time.\n"
92 "\n" 92 "\n"
93 " This target type allows you to run a script a single time to produce\n" 93 " This target type allows you to run a script a single time to produce\n"
94 " or more output files. If you want to run a script once for each of a\n" 94 " one or more output files. If you want to run a script once for each of\n"
95 " set of input files, see \"gn help action_foreach\".\n" 95 " a set of input files, see \"gn help action_foreach\".\n"
96 "\n" 96 "\n"
97 "Inputs\n" 97 "Inputs\n"
98 "\n" 98 "\n"
99 " In an action the \"sources\" and \"inputs\" are treated the same:\n" 99 " In an action the \"sources\" and \"inputs\" are treated the same:\n"
100 " they're both input dependencies on script execution with no special\n" 100 " they're both input dependencies on script execution with no special\n"
101 " handling. If you want to pass the sources to your script, you must do\n" 101 " handling. If you want to pass the sources to your script, you must do\n"
102 " so explicitly by including them in the \"args\". Note also that this\n" 102 " so explicitly by including them in the \"args\". Note also that this\n"
103 " means there is no special handling of paths since GN doesn't know\n" 103 " means there is no special handling of paths since GN doesn't know\n"
104 " which of the args are paths and not. You will want to use\n" 104 " which of the args are paths and not. You will want to use\n"
105 " rebase_path() to convert paths to be relative to the root_build_dir.\n" 105 " rebase_path() to convert paths to be relative to the root_build_dir.\n"
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 const Template* templ = scope->GetTemplate(target_type); 774 const Template* templ = scope->GetTemplate(target_type);
775 if (templ) 775 if (templ)
776 return templ->Invoke(scope, function, sub_args, block, err); 776 return templ->Invoke(scope, function, sub_args, block, err);
777 777
778 // Otherwise, assume the target is a built-in target type. 778 // Otherwise, assume the target is a built-in target type.
779 return ExecuteGenericTarget(target_type.c_str(), scope, function, sub_args, 779 return ExecuteGenericTarget(target_type.c_str(), scope, function, sub_args,
780 block, err); 780 block, err);
781 } 781 }
782 782
783 } // namespace functions 783 } // namespace functions
OLDNEW
« no previous file with comments | « tools/gn/docs/reference.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698