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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 " A static library normally doesn't include code from dependencies, but\n" | 459 " A static library normally doesn't include code from dependencies, but\n" |
460 " instead forwards the static libraries and source sets in its deps up\n" | 460 " instead forwards the static libraries and source sets in its deps up\n" |
461 " the dependency chain until a linkable target (an executable or shared\n" | 461 " the dependency chain until a linkable target (an executable or shared\n" |
462 " library) is reached. The final linkable target only links each static\n" | 462 " library) is reached. The final linkable target only links each static\n" |
463 " library once, even if it appears more than once in its dependency\n" | 463 " library once, even if it appears more than once in its dependency\n" |
464 " graph.\n" | 464 " graph.\n" |
465 "\n" | 465 "\n" |
466 " In some cases the static library might be the final desired output.\n" | 466 " In some cases the static library might be the final desired output.\n" |
467 " For example, you may be producing a static library for distribution to\n" | 467 " For example, you may be producing a static library for distribution to\n" |
468 " third parties. In this case, the static library should include code\n" | 468 " third parties. In this case, the static library should include code\n" |
469 " for all dependencies in one complete package. Since GN does not unpack\n" | 469 " for all dependencies in one complete package.\n" |
470 " static libraries to forward their contents up the dependency chain,\n" | |
471 " it is an error for complete static libraries to depend on other static\n" | |
472 " libraries.\n" | |
473 "\n" | 470 "\n" |
474 "Example\n" | 471 "Example\n" |
475 "\n" | 472 "\n" |
476 " static_library(\"foo\") {\n" | 473 " static_library(\"foo\") {\n" |
477 " complete_static_lib = true\n" | 474 " complete_static_lib = true\n" |
478 " deps = [ \"bar\" ]\n" | 475 " deps = [ \"bar\" ]\n" |
479 " }\n"; | 476 " }\n"; |
480 | 477 |
481 const char kConfigs[] = "configs"; | 478 const char kConfigs[] = "configs"; |
482 const char kConfigs_HelpShort[] = | 479 const char kConfigs_HelpShort[] = |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1116 INSERT_VARIABLE(Sources) | 1113 INSERT_VARIABLE(Sources) |
1117 INSERT_VARIABLE(Testonly) | 1114 INSERT_VARIABLE(Testonly) |
1118 INSERT_VARIABLE(Visibility) | 1115 INSERT_VARIABLE(Visibility) |
1119 } | 1116 } |
1120 return info_map; | 1117 return info_map; |
1121 } | 1118 } |
1122 | 1119 |
1123 #undef INSERT_VARIABLE | 1120 #undef INSERT_VARIABLE |
1124 | 1121 |
1125 } // namespace variables | 1122 } // namespace variables |
OLD | NEW |