OLD | NEW |
1 # GN Reference | 1 # GN Reference |
2 | 2 |
3 *This page is automatically generated from* `gn help --markdown all`. | 3 *This page is automatically generated from* `gn help --markdown all`. |
4 | 4 |
5 ## Contents | 5 ## Contents |
6 | 6 |
7 * [Commands](#commands) | 7 * [Commands](#commands) |
8 * [analyze: Analyze which targets are affected by a list of files.](#analy
ze) | 8 * [analyze: Analyze which targets are affected by a list of files.](#analy
ze) |
9 * [args: Display or configure arguments declared by the build.](#args) | 9 * [args: Display or configure arguments declared by the build.](#args) |
10 * [check: Check header dependencies.](#check) | 10 * [check: Check header dependencies.](#check) |
(...skipping 5093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5104 A list of files. Non-absolute paths will be resolved relative to the current | 5104 A list of files. Non-absolute paths will be resolved relative to the current |
5105 build file. | 5105 build file. |
5106 ``` | 5106 ``` |
5107 | 5107 |
5108 #### **Sources for binary targets** | 5108 #### **Sources for binary targets** |
5109 | 5109 |
5110 ``` | 5110 ``` |
5111 For binary targets (source sets, executables, and libraries), the known file | 5111 For binary targets (source sets, executables, and libraries), the known file |
5112 types will be compiled with the associated tools. Unknown file types and | 5112 types will be compiled with the associated tools. Unknown file types and |
5113 headers will be skipped. However, you should still list all C/C+ header files | 5113 headers will be skipped. However, you should still list all C/C+ header files |
5114 so GN knows about the existance of those files for the purposes of include | 5114 so GN knows about the existence of those files for the purposes of include |
5115 checking. | 5115 checking. |
5116 | 5116 |
5117 As a special case, a file ending in ".def" will be treated as a Windows | 5117 As a special case, a file ending in ".def" will be treated as a Windows |
5118 module definition file. It will be appended to the link line with a | 5118 module definition file. It will be appended to the link line with a |
5119 preceeding "/DEF:" string. There must be at most one .def file in a target | 5119 preceeding "/DEF:" string. There must be at most one .def file in a target |
5120 and they do not cross dependency boundaries (so specifying a .def file in a | 5120 and they do not cross dependency boundaries (so specifying a .def file in a |
5121 static library or source set will have no effect on the executable or shared | 5121 static library or source set will have no effect on the executable or shared |
5122 library they're linked into). | 5122 library they're linked into). |
5123 ``` | 5123 ``` |
5124 | 5124 |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6147 * [--root: Explicitly specify source root.](#--root) | 6147 * [--root: Explicitly specify source root.](#--root) |
6148 * [--runtime-deps-list-file: Save runtime dependencies for targets in file
.](#--runtime-deps-list-file) | 6148 * [--runtime-deps-list-file: Save runtime dependencies for targets in file
.](#--runtime-deps-list-file) |
6149 * [--script-executable: Set the executable used to execute scripts.](#--sc
ript-executable) | 6149 * [--script-executable: Set the executable used to execute scripts.](#--sc
ript-executable) |
6150 * [--threads: Specify number of worker threads.](#--threads) | 6150 * [--threads: Specify number of worker threads.](#--threads) |
6151 * [--time: Outputs a summary of how long everything took.](#--time) | 6151 * [--time: Outputs a summary of how long everything took.](#--time) |
6152 * [--tracelog: Writes a Chrome-compatible trace log to the given file.](#-
-tracelog) | 6152 * [--tracelog: Writes a Chrome-compatible trace log to the given file.](#-
-tracelog) |
6153 * [-v: Verbose logging.](#-v) | 6153 * [-v: Verbose logging.](#-v) |
6154 * [--version: Prints the GN version number and exits.](#--version) | 6154 * [--version: Prints the GN version number and exits.](#--version) |
6155 ``` | 6155 ``` |
6156 | 6156 |
OLD | NEW |