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

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

Issue 115323009: Fix help and error messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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/function_write_file.cc ('k') | tools/gn/operators.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } // namespace 53 } // namespace
54 54
55 // component ------------------------------------------------------------------- 55 // component -------------------------------------------------------------------
56 56
57 const char kComponent[] = "component"; 57 const char kComponent[] = "component";
58 const char kComponent_Help[] = 58 const char kComponent_Help[] =
59 "component: Declare a component target.\n" 59 "component: Declare a component target.\n"
60 "\n" 60 "\n"
61 " A component is a shared library, static library, or source set\n" 61 " A component is a shared library, static library, or source set\n"
62 " depending on the component mode. This allows a project to separate\n" 62 " depending on the component mode. This allows a project to separate\n"
63 " out a build into shared libraries for faster devlopment (link time is\n" 63 " out a build into shared libraries for faster development (link time is\n"
64 " reduced) but to switch to a static build for releases (for better\n" 64 " reduced) but to switch to a static build for releases (for better\n"
65 " performance).\n" 65 " performance).\n"
66 "\n" 66 "\n"
67 " To use this function you must set the value of the \"component_mode\n" 67 " To use this function you must set the value of the \"component_mode\"\n"
68 " variable to one of the following strings:\n" 68 " variable to one of the following strings:\n"
69 " - \"shared_library\"\n" 69 " - \"shared_library\"\n"
70 " - \"static_library\"\n" 70 " - \"static_library\"\n"
71 " - \"source_set\"\n" 71 " - \"source_set\"\n"
72 " It is an error to call \"component\" without defining the mode\n" 72 " It is an error to call \"component\" without defining the mode\n"
73 " (typically this is done in the master build configuration file).\n"; 73 " (typically this is done in the master build configuration file).\n";
74 74
75 Value RunComponent(Scope* scope, 75 Value RunComponent(Scope* scope,
76 const FunctionCallNode* function, 76 const FunctionCallNode* function,
77 const std::vector<Value>& args, 77 const std::vector<Value>& args,
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 const char kGroup[] = "group"; 279 const char kGroup[] = "group";
280 const char kGroup_Help[] = 280 const char kGroup_Help[] =
281 "group: Declare a named group of targets.\n" 281 "group: Declare a named group of targets.\n"
282 "\n" 282 "\n"
283 " This target type allows you to create meta-targets that just collect a\n" 283 " This target type allows you to create meta-targets that just collect a\n"
284 " set of dependencies into one named target. Groups can additionally\n" 284 " set of dependencies into one named target. Groups can additionally\n"
285 " specify configs that apply to their dependents.\n" 285 " specify configs that apply to their dependents.\n"
286 "\n" 286 "\n"
287 " Depending on a group is exactly like depending directly on that\n" 287 " Depending on a group is exactly like depending directly on that\n"
288 " group's deps. Direct dependent configs will get automatically fowarded\n" 288 " group's deps. Direct dependent configs will get automatically\n"
289 " through the group so you shouldn't need to use\n" 289 " forwarded through the group so you shouldn't need to use\n"
290 " \"forward_dependent_configs_from.\n" 290 " \"forward_dependent_configs_from.\n"
291 "\n" 291 "\n"
292 "Variables\n" 292 "Variables\n"
293 "\n" 293 "\n"
294 DEPS_VARS 294 DEPS_VARS
295 DEPENDENT_CONFIG_VARS 295 DEPENDENT_CONFIG_VARS
296 " Other variables: external\n" 296 " Other variables: external\n"
297 "\n" 297 "\n"
298 "Example\n" 298 "Example\n"
299 "\n" 299 "\n"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « tools/gn/function_write_file.cc ('k') | tools/gn/operators.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698