Chromium Code Reviews| 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 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1509 " Any target in \"//bar/\" or any subdirectory thereof:\n" | 1509 " Any target in \"//bar/\" or any subdirectory thereof:\n" |
| 1510 " visibility = [ \"//bar/*\" ]\n" | 1510 " visibility = [ \"//bar/*\" ]\n" |
| 1511 "\n" | 1511 "\n" |
| 1512 " Just these specific targets:\n" | 1512 " Just these specific targets:\n" |
| 1513 " visibility = [ \":mything\", \"//foo:something_else\" ]\n" | 1513 " visibility = [ \":mything\", \"//foo:something_else\" ]\n" |
| 1514 "\n" | 1514 "\n" |
| 1515 " Any target in the current directory and any subdirectory thereof, plus\n" | 1515 " Any target in the current directory and any subdirectory thereof, plus\n" |
| 1516 " any targets in \"//bar/\" and any subdirectory thereof.\n" | 1516 " any targets in \"//bar/\" and any subdirectory thereof.\n" |
| 1517 " visibility = [ \"./*\", \"//bar/*\" ]\n"; | 1517 " visibility = [ \"./*\", \"//bar/*\" ]\n"; |
| 1518 | 1518 |
| 1519 const char kWriteRuntimeDeps[] = "write_runtime_deps"; | |
| 1520 const char kWriteRuntimeDeps_HelpShort[] = | |
| 1521 "write_runtime_deps: Writes the target's runtime_deps to the given path."; | |
| 1522 const char kWriteRuntimeDeps_Help[] = | |
| 1523 "write_runtime_deps: Writes the target's runtime_deps to the given path.\n" | |
| 1524 "\n" | |
| 1525 " Does not synchronously write the file, but rather schedules it\n" | |
| 1526 " to be written at the end of generation.\n" | |
| 1527 "\n" | |
| 1528 " If the file exists and the contents are identical to that being\n" | |
| 1529 " written, the file will not be updated. This will prevent unnecessary\n" | |
| 1530 " rebuilds of targets that depend on this file.\n" | |
| 1531 "\n" | |
| 1532 " Path must be within the output directory.\n"; | |
|
brettw
2016/03/28 23:06:35
Can you add here:
See "gn help runtime_deps" for
agrieve
2016/03/29 16:14:01
Done.
| |
| 1533 | |
| 1519 // ----------------------------------------------------------------------------- | 1534 // ----------------------------------------------------------------------------- |
| 1520 | 1535 |
| 1521 VariableInfo::VariableInfo() | 1536 VariableInfo::VariableInfo() |
| 1522 : help_short(""), | 1537 : help_short(""), |
| 1523 help("") { | 1538 help("") { |
| 1524 } | 1539 } |
| 1525 | 1540 |
| 1526 VariableInfo::VariableInfo(const char* in_help_short, const char* in_help) | 1541 VariableInfo::VariableInfo(const char* in_help_short, const char* in_help) |
| 1527 : help_short(in_help_short), | 1542 : help_short(in_help_short), |
| 1528 help(in_help) { | 1543 help(in_help) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1589 INSERT_VARIABLE(PrecompiledHeader) | 1604 INSERT_VARIABLE(PrecompiledHeader) |
| 1590 INSERT_VARIABLE(PrecompiledSource) | 1605 INSERT_VARIABLE(PrecompiledSource) |
| 1591 INSERT_VARIABLE(Public) | 1606 INSERT_VARIABLE(Public) |
| 1592 INSERT_VARIABLE(PublicConfigs) | 1607 INSERT_VARIABLE(PublicConfigs) |
| 1593 INSERT_VARIABLE(PublicDeps) | 1608 INSERT_VARIABLE(PublicDeps) |
| 1594 INSERT_VARIABLE(ResponseFileContents) | 1609 INSERT_VARIABLE(ResponseFileContents) |
| 1595 INSERT_VARIABLE(Script) | 1610 INSERT_VARIABLE(Script) |
| 1596 INSERT_VARIABLE(Sources) | 1611 INSERT_VARIABLE(Sources) |
| 1597 INSERT_VARIABLE(Testonly) | 1612 INSERT_VARIABLE(Testonly) |
| 1598 INSERT_VARIABLE(Visibility) | 1613 INSERT_VARIABLE(Visibility) |
| 1614 INSERT_VARIABLE(WriteRuntimeDeps) | |
| 1599 } | 1615 } |
| 1600 return info_map; | 1616 return info_map; |
| 1601 } | 1617 } |
| 1602 | 1618 |
| 1603 #undef INSERT_VARIABLE | 1619 #undef INSERT_VARIABLE |
| 1604 | 1620 |
| 1605 } // namespace variables | 1621 } // namespace variables |
| OLD | NEW |