| 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 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1675 | 1675 |
| 1676 ### **Example** | 1676 ### **Example** |
| 1677 | 1677 |
| 1678 ``` | 1678 ``` |
| 1679 declare_args() { | 1679 declare_args() { |
| 1680 enable_teleporter = true | 1680 enable_teleporter = true |
| 1681 enable_doom_melon = false | 1681 enable_doom_melon = false |
| 1682 } | 1682 } |
| 1683 | 1683 |
| 1684 If you want to override the (default disabled) Doom Melon: | 1684 If you want to override the (default disabled) Doom Melon: |
| 1685 gn --args="enable_doom_melon=true enable_teleporter=false" | 1685 gn --args="enable_doom_melon=true enable_teleporter=true" |
| 1686 This also sets the teleporter, but it's already defaulted to on so it will | 1686 This also sets the teleporter, but it's already defaulted to on so it will |
| 1687 have no effect. | 1687 have no effect. |
| 1688 | 1688 |
| 1689 | 1689 |
| 1690 ``` | 1690 ``` |
| 1691 ## **defined**: Returns whether an identifier is defined. | 1691 ## **defined**: Returns whether an identifier is defined. |
| 1692 | 1692 |
| 1693 ``` | 1693 ``` |
| 1694 Returns true if the given argument is defined. This is most useful in | 1694 Returns true if the given argument is defined. This is most useful in |
| 1695 templates to assert that the caller set things up properly. | 1695 templates to assert that the caller set things up properly. |
| (...skipping 4969 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 |