| 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 " configs -= \"//build:no_rtti\" # Don't use the default RTTI config.\n" | 502 " configs -= \"//build:no_rtti\" # Don't use the default RTTI config.\n" |
| 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 or directories required to run the given target. These are\n" |
| 513 " data files. The paths are interpreted as being relative to the current\n" | 513 " typically data files or directories of data files. The paths are\n" |
| 514 " build file. Since these are runtime dependencies, they do not affect\n" | 514 " interpreted as being relative to the current build file. Since these\n" |
| 515 " which targets are built or when. To declare input files to a script,\n" | 515 " are runtime dependencies, they do not affect which targets are built\n" |
| 516 " use \"inputs\".\n" | 516 " or when. To declare input files to a script, use \"inputs\".\n" |
| 517 "\n" | 517 "\n" |
| 518 " 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" |
| 519 " 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" |
| 520 " declaring runtime dependencies. Runtime dependencies can be queried\n" | 520 " declaring runtime dependencies. Runtime dependencies can be queried\n" |
| 521 " using the \"runtime_deps\" category of \"gn desc\" or written during\n" | 521 " using the \"runtime_deps\" category of \"gn desc\" or written during\n" |
| 522 " build generation via \"--runtime-deps-list-file\".\n" | 522 " build generation via \"--runtime-deps-list-file\".\n" |
| 523 "\n" | 523 "\n" |
| 524 " GN doesn't require data files to exist at build-time. So actions that\n" | 524 " GN doesn't require data files to exist at build-time. So actions that\n" |
| 525 " produce files that are in turn runtime dependencies can list those\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" | 526 " generated files both in the \"outputs\" list as well as the \"data\"\n" |
| 527 " list.\n" | 527 " list.\n" |
| 528 "\n" | 528 "\n" |
| 529 " By convention, directories are be listed with a trailing slash:\n" |
| 530 " data = [ \"test/data/\" ]\n" |
| 531 " However, no verification is done on these so GN doesn't enforce this.\n" |
| 532 " The paths are just rebased and passed along when requested.\n" |
| 533 "\n" |
| 529 " See \"gn help runtime_deps\" for how these are used.\n"; | 534 " See \"gn help runtime_deps\" for how these are used.\n"; |
| 530 | 535 |
| 531 const char kDataDeps[] = "data_deps"; | 536 const char kDataDeps[] = "data_deps"; |
| 532 const char kDataDeps_HelpShort[] = | 537 const char kDataDeps_HelpShort[] = |
| 533 "data_deps: [label list] Non-linked dependencies."; | 538 "data_deps: [label list] Non-linked dependencies."; |
| 534 const char kDataDeps_Help[] = | 539 const char kDataDeps_Help[] = |
| 535 "data_deps: Non-linked dependencies.\n" | 540 "data_deps: Non-linked dependencies.\n" |
| 536 "\n" | 541 "\n" |
| 537 " A list of target labels.\n" | 542 " A list of target labels.\n" |
| 538 "\n" | 543 "\n" |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1123 INSERT_VARIABLE(Sources) | 1128 INSERT_VARIABLE(Sources) |
| 1124 INSERT_VARIABLE(Testonly) | 1129 INSERT_VARIABLE(Testonly) |
| 1125 INSERT_VARIABLE(Visibility) | 1130 INSERT_VARIABLE(Visibility) |
| 1126 } | 1131 } |
| 1127 return info_map; | 1132 return info_map; |
| 1128 } | 1133 } |
| 1129 | 1134 |
| 1130 #undef INSERT_VARIABLE | 1135 #undef INSERT_VARIABLE |
| 1131 | 1136 |
| 1132 } // namespace variables | 1137 } // namespace variables |
| OLD | NEW |