| 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 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1708 R"(sources: Source files for a target | 1708 R"(sources: Source files for a target |
| 1709 | 1709 |
| 1710 A list of files. Non-absolute paths will be resolved relative to the current | 1710 A list of files. Non-absolute paths will be resolved relative to the current |
| 1711 build file. | 1711 build file. |
| 1712 | 1712 |
| 1713 Sources for binary targets | 1713 Sources for binary targets |
| 1714 | 1714 |
| 1715 For binary targets (source sets, executables, and libraries), the known file | 1715 For binary targets (source sets, executables, and libraries), the known file |
| 1716 types will be compiled with the associated tools. Unknown file types and | 1716 types will be compiled with the associated tools. Unknown file types and |
| 1717 headers will be skipped. However, you should still list all C/C+ header files | 1717 headers will be skipped. However, you should still list all C/C+ header files |
| 1718 so GN knows about the existance of those files for the purposes of include | 1718 so GN knows about the existence of those files for the purposes of include |
| 1719 checking. | 1719 checking. |
| 1720 | 1720 |
| 1721 As a special case, a file ending in ".def" will be treated as a Windows | 1721 As a special case, a file ending in ".def" will be treated as a Windows |
| 1722 module definition file. It will be appended to the link line with a | 1722 module definition file. It will be appended to the link line with a |
| 1723 preceeding "/DEF:" string. There must be at most one .def file in a target | 1723 preceeding "/DEF:" string. There must be at most one .def file in a target |
| 1724 and they do not cross dependency boundaries (so specifying a .def file in a | 1724 and they do not cross dependency boundaries (so specifying a .def file in a |
| 1725 static library or source set will have no effect on the executable or shared | 1725 static library or source set will have no effect on the executable or shared |
| 1726 library they're linked into). | 1726 library they're linked into). |
| 1727 | 1727 |
| 1728 Sources for non-binary targets | 1728 Sources for non-binary targets |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1934 INSERT_VARIABLE(Testonly) | 1934 INSERT_VARIABLE(Testonly) |
| 1935 INSERT_VARIABLE(Visibility) | 1935 INSERT_VARIABLE(Visibility) |
| 1936 INSERT_VARIABLE(WriteRuntimeDeps) | 1936 INSERT_VARIABLE(WriteRuntimeDeps) |
| 1937 } | 1937 } |
| 1938 return info_map; | 1938 return info_map; |
| 1939 } | 1939 } |
| 1940 | 1940 |
| 1941 #undef INSERT_VARIABLE | 1941 #undef INSERT_VARIABLE |
| 1942 | 1942 |
| 1943 } // namespace variables | 1943 } // namespace variables |
| OLD | NEW |