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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 " configs += \":mysettings\" # Add some of our own settings.\n" | 503 " configs += \":mysettings\" # Add some of our own settings.\n" |
504 " }\n"; | 504 " }\n"; |
505 | 505 |
506 const char kData[] = "data"; | 506 const char kData[] = "data"; |
507 const char kData_HelpShort[] = | 507 const char kData_HelpShort[] = |
508 "data: [file list] Runtime data file dependencies."; | 508 "data: [file list] Runtime data file dependencies."; |
509 const char kData_Help[] = | 509 const char kData_Help[] = |
510 "data: Runtime data file dependencies.\n" | 510 "data: Runtime data file dependencies.\n" |
511 "\n" | 511 "\n" |
512 " Lists files required to run the given target. These are typically\n" | 512 " Lists files required to run the given target. These are typically\n" |
513 " data files.\n" | 513 " data files. The paths are interpreted as being relative to the current\n" |
| 514 " build file. Since these are runtime dependencies, they do not affect\n" |
| 515 " which targets are built or when. To declare input files to a script,\n" |
| 516 " use \"inputs\".\n" |
514 "\n" | 517 "\n" |
515 " Appearing in the \"data\" section does not imply any special handling\n" | 518 " Appearing in the \"data\" section does not imply any special handling\n" |
516 " such as copying them to the output directory. This is just used for\n" | 519 " such as copying them to the output directory. This is just used for\n" |
517 " declaring runtime dependencies. There currently isn't a good use for\n" | 520 " declaring runtime dependencies. Runtime dependencies can be queried\n" |
518 " these but it is envisioned that test data can be listed here for use\n" | 521 " using the \"runtime_deps\" category of \"gn desc\" or written during\n" |
519 " running automated tests.\n" | 522 " build generation via \"--runtime-deps-list-file\".\n" |
520 "\n" | 523 "\n" |
521 " See also \"gn help inputs\" and \"gn help data_deps\", both of\n" | 524 " GN doesn't require data files to exist at build-time. So actions that\n" |
522 " which actually affect the build in concrete ways.\n"; | 525 " produce files that are in turn runtime dependencies can list those\n" |
| 526 " generated files both in the \"outputs\" list as well as the \"data\"\n" |
| 527 " list.\n" |
| 528 "\n" |
| 529 " See \"gn help runtime_deps\" for how these are used.\n"; |
523 | 530 |
524 const char kDataDeps[] = "data_deps"; | 531 const char kDataDeps[] = "data_deps"; |
525 const char kDataDeps_HelpShort[] = | 532 const char kDataDeps_HelpShort[] = |
526 "data_deps: [label list] Non-linked dependencies."; | 533 "data_deps: [label list] Non-linked dependencies."; |
527 const char kDataDeps_Help[] = | 534 const char kDataDeps_Help[] = |
528 "data_deps: Non-linked dependencies.\n" | 535 "data_deps: Non-linked dependencies.\n" |
529 "\n" | 536 "\n" |
530 " A list of target labels.\n" | 537 " A list of target labels.\n" |
531 "\n" | 538 "\n" |
532 " Specifies dependencies of a target that are not actually linked into\n" | 539 " Specifies dependencies of a target that are not actually linked into\n" |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1116 INSERT_VARIABLE(Sources) | 1123 INSERT_VARIABLE(Sources) |
1117 INSERT_VARIABLE(Testonly) | 1124 INSERT_VARIABLE(Testonly) |
1118 INSERT_VARIABLE(Visibility) | 1125 INSERT_VARIABLE(Visibility) |
1119 } | 1126 } |
1120 return info_map; | 1127 return info_map; |
1121 } | 1128 } |
1122 | 1129 |
1123 #undef INSERT_VARIABLE | 1130 #undef INSERT_VARIABLE |
1124 | 1131 |
1125 } // namespace variables | 1132 } // namespace variables |
OLD | NEW |