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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 | 409 |
410 A list of config labels. | 410 A list of config labels. |
411 | 411 |
412 All targets depending on this one, and recursively, all targets depending on | 412 All targets depending on this one, and recursively, all targets depending on |
413 those, will have the configs listed in this variable added to them. These | 413 those, will have the configs listed in this variable added to them. These |
414 configs will also apply to the current target. | 414 configs will also apply to the current target. |
415 | 415 |
416 This addition happens in a second phase once a target and all of its | 416 This addition happens in a second phase once a target and all of its |
417 dependencies have been resolved. Therefore, a target will not see these | 417 dependencies have been resolved. Therefore, a target will not see these |
418 force-added configs in their "configs" variable while the script is running, | 418 force-added configs in their "configs" variable while the script is running, |
419 and then can not be removed. As a result, this capability should generally | 419 and they can not be removed. As a result, this capability should generally |
420 only be used to add defines and include directories necessary to compile a | 420 only be used to add defines and include directories necessary to compile a |
421 target's headers. | 421 target's headers. |
422 | 422 |
423 See also "public_configs". | 423 See also "public_configs". |
424 )" | 424 )" |
425 COMMON_ORDERING_HELP; | 425 COMMON_ORDERING_HELP; |
426 | 426 |
427 const char kAllowCircularIncludesFrom[] = "allow_circular_includes_from"; | 427 const char kAllowCircularIncludesFrom[] = "allow_circular_includes_from"; |
428 const char kAllowCircularIncludesFrom_HelpShort[] = | 428 const char kAllowCircularIncludesFrom_HelpShort[] = |
429 "allow_circular_includes_from: [label list] Permit includes from deps."; | 429 "allow_circular_includes_from: [label list] Permit includes from deps."; |
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1568 R"(public_configs: Configs to be applied on dependents. | 1568 R"(public_configs: Configs to be applied on dependents. |
1569 | 1569 |
1570 A list of config labels. | 1570 A list of config labels. |
1571 | 1571 |
1572 Targets directly depending on this one will have the configs listed in this | 1572 Targets directly depending on this one will have the configs listed in this |
1573 variable added to them. These configs will also apply to the current target. | 1573 variable added to them. These configs will also apply to the current target. |
1574 | 1574 |
1575 This addition happens in a second phase once a target and all of its | 1575 This addition happens in a second phase once a target and all of its |
1576 dependencies have been resolved. Therefore, a target will not see these | 1576 dependencies have been resolved. Therefore, a target will not see these |
1577 force-added configs in their "configs" variable while the script is running, | 1577 force-added configs in their "configs" variable while the script is running, |
1578 and then can not be removed. As a result, this capability should generally | 1578 and they can not be removed. As a result, this capability should generally |
1579 only be used to add defines and include directories necessary to compile a | 1579 only be used to add defines and include directories necessary to compile a |
1580 target's headers. | 1580 target's headers. |
1581 | 1581 |
1582 See also "all_dependent_configs". | 1582 See also "all_dependent_configs". |
1583 )" | 1583 )" |
1584 COMMON_ORDERING_HELP; | 1584 COMMON_ORDERING_HELP; |
1585 | 1585 |
1586 const char kPublicDeps[] = "public_deps"; | 1586 const char kPublicDeps[] = "public_deps"; |
1587 const char kPublicDeps_HelpShort[] = | 1587 const char kPublicDeps_HelpShort[] = |
1588 "public_deps: [label list] Declare public dependencies."; | 1588 "public_deps: [label list] Declare public dependencies."; |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1915 INSERT_VARIABLE(Testonly) | 1915 INSERT_VARIABLE(Testonly) |
1916 INSERT_VARIABLE(Visibility) | 1916 INSERT_VARIABLE(Visibility) |
1917 INSERT_VARIABLE(WriteRuntimeDeps) | 1917 INSERT_VARIABLE(WriteRuntimeDeps) |
1918 } | 1918 } |
1919 return info_map; | 1919 return info_map; |
1920 } | 1920 } |
1921 | 1921 |
1922 #undef INSERT_VARIABLE | 1922 #undef INSERT_VARIABLE |
1923 | 1923 |
1924 } // namespace variables | 1924 } // namespace variables |
OLD | NEW |