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 ## **\--args**: Specifies build arguments overrides. | 5 ## **\--args**: Specifies build arguments overrides. |
6 | 6 |
7 ``` | 7 ``` |
8 See "gn help buildargs" for an overview of how build arguments work. | 8 See "gn help buildargs" for an overview of how build arguments work. |
9 | 9 |
10 Most operations take a build directory. The build arguments are taken from | 10 Most operations take a build directory. The build arguments are taken from |
(...skipping 3875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3886 primary object(s) of the build. It will match the OS of the default | 3886 primary object(s) of the build. It will match the OS of the default |
3887 toolchain. | 3887 toolchain. |
3888 | 3888 |
3889 In many cases, this is the same as "host_os", but in the case of | 3889 In many cases, this is the same as "host_os", but in the case of |
3890 cross-compiles, it may be different. This variable differs from "current_os" | 3890 cross-compiles, it may be different. This variable differs from "current_os" |
3891 in that it can be referenced from inside any toolchain and will always return | 3891 in that it can be referenced from inside any toolchain and will always return |
3892 the initial value. | 3892 the initial value. |
3893 | 3893 |
3894 This should be set to the most specific value possible. So, "android" or | 3894 This should be set to the most specific value possible. So, "android" or |
3895 "chromeos" should be used instead of "linux" where applicable, even though | 3895 "chromeos" should be used instead of "linux" where applicable, even though |
3896 Android and ChromeOS are both Linux variants. This can mean that one needs to | 3896 Android and Chrome OS are both Linux variants. This can mean that one needs to |
3897 write | 3897 write |
3898 | 3898 |
3899 if (target_os == "android" || target_os == "linux") { | 3899 if (target_os == "android" || target_os == "linux") { |
3900 # ... | 3900 # ... |
3901 } | 3901 } |
3902 | 3902 |
3903 and so forth. | 3903 and so forth. |
3904 | 3904 |
3905 This value is not used internally by GN for any purpose, so it may be set to | 3905 This value is not used internally by GN for any purpose, so it may be set to |
3906 whatever value is needed for the build. GN defaults this value to the empty | 3906 whatever value is needed for the build. GN defaults this value to the empty |
(...skipping 2758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6665 ** \--root**: Explicitly specify source root. | 6665 ** \--root**: Explicitly specify source root. |
6666 ** \--runtime-deps-list-file**: Save runtime dependencies for targets in file. | 6666 ** \--runtime-deps-list-file**: Save runtime dependencies for targets in file. |
6667 ** \--script-executable**: Set the executable used to execute scripts. | 6667 ** \--script-executable**: Set the executable used to execute scripts. |
6668 ** \--threads**: Specify number of worker threads. | 6668 ** \--threads**: Specify number of worker threads. |
6669 ** \--time**: Outputs a summary of how long everything took. | 6669 ** \--time**: Outputs a summary of how long everything took. |
6670 ** \--tracelog**: Writes a Chrome-compatible trace log to the given file. | 6670 ** \--tracelog**: Writes a Chrome-compatible trace log to the given file. |
6671 ** -v**: Verbose logging. | 6671 ** -v**: Verbose logging. |
6672 ** \--version**: Prints the GN version number and exits. | 6672 ** \--version**: Prints the GN version number and exits. |
6673 | 6673 |
6674 ``` | 6674 ``` |
OLD | NEW |