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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 " must be visible to another target to include any files from it at all\n" | 686 " must be visible to another target to include any files from it at all\n" |
687 " and the public headers indicate which subset of those files are\n" | 687 " and the public headers indicate which subset of those files are\n" |
688 " permitted. See \"gn help visibility\" for more.\n" | 688 " permitted. See \"gn help visibility\" for more.\n" |
689 "\n" | 689 "\n" |
690 " Public files are inherited through the dependency tree. So if there is\n" | 690 " Public files are inherited through the dependency tree. So if there is\n" |
691 " a dependency A -> B -> C, then A can include C's public headers.\n" | 691 " a dependency A -> B -> C, then A can include C's public headers.\n" |
692 " However, the same is NOT true of visibility, so unless A is in C's\n" | 692 " However, the same is NOT true of visibility, so unless A is in C's\n" |
693 " visibility list, the include will be rejected.\n" | 693 " visibility list, the include will be rejected.\n" |
694 "\n" | 694 "\n" |
695 " GN only knows about files declared in the \"sources\" and \"public\"\n" | 695 " GN only knows about files declared in the \"sources\" and \"public\"\n" |
696 " sections of targets. If a file is included that is now known to the\n" | 696 " sections of targets. If a file is included that is not known to the\n" |
697 " build, it will be allowed.\n" | 697 " build, it will be allowed.\n" |
698 "\n" | 698 "\n" |
699 "Examples:\n" | 699 "Examples:\n" |
700 " These exact files are public:\n" | 700 " These exact files are public:\n" |
701 " public = [ \"foo.h\", \"bar.h\" ]\n" | 701 " public = [ \"foo.h\", \"bar.h\" ]\n" |
702 "\n" | 702 "\n" |
703 " No files are public (no targets may include headers from this one):\n" | 703 " No files are public (no targets may include headers from this one):\n" |
704 " public = []\n"; | 704 " public = []\n"; |
705 | 705 |
706 const char kScript[] = "script"; | 706 const char kScript[] = "script"; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 INSERT_VARIABLE(SourcePrereqs) | 897 INSERT_VARIABLE(SourcePrereqs) |
898 INSERT_VARIABLE(Sources) | 898 INSERT_VARIABLE(Sources) |
899 INSERT_VARIABLE(Visibility) | 899 INSERT_VARIABLE(Visibility) |
900 } | 900 } |
901 return info_map; | 901 return info_map; |
902 } | 902 } |
903 | 903 |
904 #undef INSERT_VARIABLE | 904 #undef INSERT_VARIABLE |
905 | 905 |
906 } // namespace variables | 906 } // namespace variables |
OLD | NEW |