OLD | NEW |
---|---|
(Empty) | |
1 # Hacking on the GN binary itself | |
2 | |
3 ## Building GN itself | |
4 | |
5 GN is part of the Chromium tree. If you have a Chromium checkout, you | |
6 already have the source and you can do `ninja -C out/Debug gn` to | |
7 build it. | |
8 | |
9 To build gn using gn, run (in the root `src` directory): | |
10 | |
11 ``` | |
12 gn gen out/Default | |
13 ninja -C out/Default gn | |
14 ``` | |
15 | |
16 Change `out/Default` as necessary to put the build directory where you | |
17 want. | |
18 | |
19 ## Running GN's unit tests | |
20 | |
21 ``` | |
22 ninja -C out/Default gn_unittests && out/Default/gn_unittests | |
23 ``` | |
OLD | NEW |