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 | 10 Most operations take a build directory. The build arguments are taken |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 ### **Examples (file input)** | 760 ### **Examples (file input)** |
761 | 761 |
762 ``` | 762 ``` |
763 gn refs out/Debug //base/macros.h | 763 gn refs out/Debug //base/macros.h |
764 Print target(s) listing //base/macros.h as a source. | 764 Print target(s) listing //base/macros.h as a source. |
765 | 765 |
766 gn refs out/Debug //base/macros.h --tree | 766 gn refs out/Debug //base/macros.h --tree |
767 Display a reverse dependency tree to get to the given file. This | 767 Display a reverse dependency tree to get to the given file. This |
768 will show how dependencies will reference that file. | 768 will show how dependencies will reference that file. |
769 | 769 |
770 gn refs out/Debug //base/macros.h //base/basictypes.h --all | 770 gn refs out/Debug //base/macros.h //base/at_exit.h --all |
771 Display all unique targets with some dependency path to a target | 771 Display all unique targets with some dependency path to a target |
772 containing either of the given files as a source. | 772 containing either of the given files as a source. |
773 | 773 |
774 gn refs out/Debug //base/macros.h --testonly=true --type=executable | 774 gn refs out/Debug //base/macros.h --testonly=true --type=executable |
775 --all --as=output | 775 --all --as=output |
776 Display the executable file names of all test executables | 776 Display the executable file names of all test executables |
777 potentially affected by a change to the given file. | 777 potentially affected by a change to the given file. |
778 | 778 |
779 | 779 |
780 ``` | 780 ``` |
(...skipping 3890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4671 ** --nocolor**: Force non-colored output. | 4671 ** --nocolor**: Force non-colored output. |
4672 ** -q**: Quiet mode. Don't print output on success. | 4672 ** -q**: Quiet mode. Don't print output on success. |
4673 ** --root**: Explicitly specify source root. | 4673 ** --root**: Explicitly specify source root. |
4674 ** --runtime-deps-list-file**: Save runtime dependencies for targets in file. | 4674 ** --runtime-deps-list-file**: Save runtime dependencies for targets in file. |
4675 ** --time**: Outputs a summary of how long everything took. | 4675 ** --time**: Outputs a summary of how long everything took. |
4676 ** --tracelog**: Writes a Chrome-compatible trace log to the given file. | 4676 ** --tracelog**: Writes a Chrome-compatible trace log to the given file. |
4677 ** -v**: Verbose logging. | 4677 ** -v**: Verbose logging. |
4678 ** --version**: Prints the GN version number and exits. | 4678 ** --version**: Prints the GN version number and exits. |
4679 | 4679 |
4680 ``` | 4680 ``` |
OLD | NEW |