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/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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 "\n" | 448 "\n" |
449 " group(\"frob\") {\n" | 449 " group(\"frob\") {\n" |
450 " if (use_system_frob) {\n" | 450 " if (use_system_frob) {\n" |
451 " deps = \":system_frob\"\n" | 451 " deps = \":system_frob\"\n" |
452 " } else {\n" | 452 " } else {\n" |
453 " deps = \"//third_party/fallback_frob\"\n" | 453 " deps = \"//third_party/fallback_frob\"\n" |
454 " }\n" | 454 " }\n" |
455 " forward_dependent_configs_from = deps\n" | 455 " forward_dependent_configs_from = deps\n" |
456 " }\n"; | 456 " }\n"; |
457 | 457 |
| 458 const char kGypFile[] = "gyp_file"; |
| 459 const char kGypFile_HelpShort[] = |
| 460 "gyp_file: [file name] Name of GYP file to write to in GYP mode."; |
| 461 const char kGypFile_Help[] = |
| 462 "gyp_file: Name of GYP file to write to in GYP mode.\n"; |
| 463 |
458 const char kHardDep[] = "hard_dep"; | 464 const char kHardDep[] = "hard_dep"; |
459 const char kHardDep_HelpShort[] = | 465 const char kHardDep_HelpShort[] = |
460 "hard_dep: [boolean] Indicates a target should be built before dependees."; | 466 "hard_dep: [boolean] Indicates a target should be built before dependees."; |
461 const char kHardDep_Help[] = | 467 const char kHardDep_Help[] = |
462 "hard_dep: Indicates a target should be built before dependees.\n" | 468 "hard_dep: Indicates a target should be built before dependees.\n" |
463 "\n" | 469 "\n" |
464 " Ninja's default is to assume that targets can be compiled\n" | 470 " Ninja's default is to assume that targets can be compiled\n" |
465 " independently. This breaks down for generated files that are included\n" | 471 " independently. This breaks down for generated files that are included\n" |
466 " in other targets because Ninja doesn't know to run the generator\n" | 472 " in other targets because Ninja doesn't know to run the generator\n" |
467 " before compiling the source file.\n" | 473 " before compiling the source file.\n" |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 INSERT_VARIABLE(CflagsCC) | 725 INSERT_VARIABLE(CflagsCC) |
720 INSERT_VARIABLE(CflagsObjC) | 726 INSERT_VARIABLE(CflagsObjC) |
721 INSERT_VARIABLE(CflagsObjCC) | 727 INSERT_VARIABLE(CflagsObjCC) |
722 INSERT_VARIABLE(Configs) | 728 INSERT_VARIABLE(Configs) |
723 INSERT_VARIABLE(Data) | 729 INSERT_VARIABLE(Data) |
724 INSERT_VARIABLE(Datadeps) | 730 INSERT_VARIABLE(Datadeps) |
725 INSERT_VARIABLE(Deps) | 731 INSERT_VARIABLE(Deps) |
726 INSERT_VARIABLE(DirectDependentConfigs) | 732 INSERT_VARIABLE(DirectDependentConfigs) |
727 INSERT_VARIABLE(External) | 733 INSERT_VARIABLE(External) |
728 INSERT_VARIABLE(ForwardDependentConfigsFrom) | 734 INSERT_VARIABLE(ForwardDependentConfigsFrom) |
| 735 INSERT_VARIABLE(GypFile) |
729 INSERT_VARIABLE(HardDep) | 736 INSERT_VARIABLE(HardDep) |
730 INSERT_VARIABLE(IncludeDirs) | 737 INSERT_VARIABLE(IncludeDirs) |
731 INSERT_VARIABLE(Ldflags) | 738 INSERT_VARIABLE(Ldflags) |
732 INSERT_VARIABLE(Libs) | 739 INSERT_VARIABLE(Libs) |
733 INSERT_VARIABLE(LibDirs) | 740 INSERT_VARIABLE(LibDirs) |
734 INSERT_VARIABLE(OutputName) | 741 INSERT_VARIABLE(OutputName) |
735 INSERT_VARIABLE(Outputs) | 742 INSERT_VARIABLE(Outputs) |
736 INSERT_VARIABLE(Script) | 743 INSERT_VARIABLE(Script) |
737 INSERT_VARIABLE(SourcePrereqs) | 744 INSERT_VARIABLE(SourcePrereqs) |
738 INSERT_VARIABLE(Sources) | 745 INSERT_VARIABLE(Sources) |
739 } | 746 } |
740 return info_map; | 747 return info_map; |
741 } | 748 } |
742 | 749 |
743 #undef INSERT_VARIABLE | 750 #undef INSERT_VARIABLE |
744 | 751 |
745 } // namespace variables | 752 } // namespace variables |
OLD | NEW |