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

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

Issue 1804303004: 🚙 GN: Add write_runtime_deps variable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove {}s Created 4 years, 8 months 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
« no previous file with comments | « tools/gn/variables.h ('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 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after
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"
1533 "\n"
1534 " See \"gn help runtime_deps\" for how the runtime dependencies are\n"
1535 " computed.\n"
1536 "\n"
1537 " The format of this file will list one file per line with no escaping.\n"
1538 " The files will be relative to the root_build_dir. The first line of\n"
1539 " the file will be the main output file of the target itself. The file\n"
1540 " contents will be the same as requesting the runtime deps be written on\n"
1541 " the command line (see \"gn help --runtime-deps-list-file\").\n";
1542
1519 // ----------------------------------------------------------------------------- 1543 // -----------------------------------------------------------------------------
1520 1544
1521 VariableInfo::VariableInfo() 1545 VariableInfo::VariableInfo()
1522 : help_short(""), 1546 : help_short(""),
1523 help("") { 1547 help("") {
1524 } 1548 }
1525 1549
1526 VariableInfo::VariableInfo(const char* in_help_short, const char* in_help) 1550 VariableInfo::VariableInfo(const char* in_help_short, const char* in_help)
1527 : help_short(in_help_short), 1551 : help_short(in_help_short),
1528 help(in_help) { 1552 help(in_help) {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 INSERT_VARIABLE(PrecompiledHeader) 1613 INSERT_VARIABLE(PrecompiledHeader)
1590 INSERT_VARIABLE(PrecompiledSource) 1614 INSERT_VARIABLE(PrecompiledSource)
1591 INSERT_VARIABLE(Public) 1615 INSERT_VARIABLE(Public)
1592 INSERT_VARIABLE(PublicConfigs) 1616 INSERT_VARIABLE(PublicConfigs)
1593 INSERT_VARIABLE(PublicDeps) 1617 INSERT_VARIABLE(PublicDeps)
1594 INSERT_VARIABLE(ResponseFileContents) 1618 INSERT_VARIABLE(ResponseFileContents)
1595 INSERT_VARIABLE(Script) 1619 INSERT_VARIABLE(Script)
1596 INSERT_VARIABLE(Sources) 1620 INSERT_VARIABLE(Sources)
1597 INSERT_VARIABLE(Testonly) 1621 INSERT_VARIABLE(Testonly)
1598 INSERT_VARIABLE(Visibility) 1622 INSERT_VARIABLE(Visibility)
1623 INSERT_VARIABLE(WriteRuntimeDeps)
1599 } 1624 }
1600 return info_map; 1625 return info_map;
1601 } 1626 }
1602 1627
1603 #undef INSERT_VARIABLE 1628 #undef INSERT_VARIABLE
1604 1629
1605 } // namespace variables 1630 } // namespace variables
OLDNEW
« no previous file with comments | « tools/gn/variables.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698