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

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

Issue 35933003: Add documentation for GN's GYP generation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/command_gyp.cc ('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/variables.h" 5 #include "tools/gn/variables.h"
6 6
7 namespace variables { 7 namespace variables {
8 8
9 // Built-in variables ---------------------------------------------------------- 9 // Built-in variables ----------------------------------------------------------
10 10
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 " } else {\n" 485 " } else {\n"
486 " deps = \"//third_party/fallback_frob\"\n" 486 " deps = \"//third_party/fallback_frob\"\n"
487 " }\n" 487 " }\n"
488 " forward_dependent_configs_from = deps\n" 488 " forward_dependent_configs_from = deps\n"
489 " }\n"; 489 " }\n";
490 490
491 const char kGypFile[] = "gyp_file"; 491 const char kGypFile[] = "gyp_file";
492 const char kGypFile_HelpShort[] = 492 const char kGypFile_HelpShort[] =
493 "gyp_file: [file name] Name of GYP file to write to in GYP mode."; 493 "gyp_file: [file name] Name of GYP file to write to in GYP mode.";
494 const char kGypFile_Help[] = 494 const char kGypFile_Help[] =
495 "gyp_file: Name of GYP file to write to in GYP mode.\n"; 495 "gyp_file: Name of GYP file to write to in GYP mode.\n"
496 "\n"
497 " See \"gn help gyp\" for an overview of how this works.\n"
498 "\n"
499 " Tip: If all targets in a given BUILD.gn file should go in the same\n"
500 " GYP file, just put gyp_file = \"foo\" at the top of the file and\n"
501 " the variable will be in scope for all targets.\n";
496 502
497 const char kHardDep[] = "hard_dep"; 503 const char kHardDep[] = "hard_dep";
498 const char kHardDep_HelpShort[] = 504 const char kHardDep_HelpShort[] =
499 "hard_dep: [boolean] Indicates a target should be built before dependees."; 505 "hard_dep: [boolean] Indicates a target should be built before dependees.";
500 const char kHardDep_Help[] = 506 const char kHardDep_Help[] =
501 "hard_dep: Indicates a target should be built before dependees.\n" 507 "hard_dep: Indicates a target should be built before dependees.\n"
502 "\n" 508 "\n"
503 " Ninja's default is to assume that targets can be compiled\n" 509 " Ninja's default is to assume that targets can be compiled\n"
504 " independently. This breaks down for generated files that are included\n" 510 " independently. This breaks down for generated files that are included\n"
505 " in other targets because Ninja doesn't know to run the generator\n" 511 " in other targets because Ninja doesn't know to run the generator\n"
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 INSERT_VARIABLE(Script) 782 INSERT_VARIABLE(Script)
777 INSERT_VARIABLE(SourcePrereqs) 783 INSERT_VARIABLE(SourcePrereqs)
778 INSERT_VARIABLE(Sources) 784 INSERT_VARIABLE(Sources)
779 } 785 }
780 return info_map; 786 return info_map;
781 } 787 }
782 788
783 #undef INSERT_VARIABLE 789 #undef INSERT_VARIABLE
784 790
785 } // namespace variables 791 } // namespace variables
OLDNEW
« no previous file with comments | « tools/gn/command_gyp.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698