OLD | NEW |
1 GN | 1 GN |
2 ===== | 2 ===== |
3 | 3 |
4 [GN](https://chromium.googlesource.com/chromium/src/tools/gn/) | 4 [GN](https://chromium.googlesource.com/chromium/src/tools/gn/) |
5 is a new meta-build system originally designed to replace GYP in Chromium. | 5 is a new meta-build system originally designed to replace GYP in Chromium. |
6 | 6 |
7 You can build Skia using GN in a limited number of configurations. We expect | 7 You can build Skia using GN in a limited number of configurations. We expect |
8 that as that limited number rises, GN will become the preferred, and then only, | 8 that as that limited number rises, GN will become the preferred, and then only, |
9 way to build Skia. | 9 way to build Skia. |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 Please check out Skia using the instructions in one of the other quick start | 22 Please check out Skia using the instructions in one of the other quick start |
23 guides. We diverge where they'd first run some command with "gyp" in it. | 23 guides. We diverge where they'd first run some command with "gyp" in it. |
24 | 24 |
25 <!--?prettify lang=sh?--> | 25 <!--?prettify lang=sh?--> |
26 | 26 |
27 # After gclient sync, run fetch-gn to make sure you have GN. | 27 # After gclient sync, run fetch-gn to make sure you have GN. |
28 gclient sync && bin/fetch-gn | 28 gclient sync && bin/fetch-gn |
29 | 29 |
30 # Run GN to generate your build files. Some examples. | 30 # Run GN to generate your build files. Some examples. |
31 gn gen out/Release | 31 gn gen out/Debug |
32 gn gen out/Debug --args=is_debug=true | 32 gn gen out/Release --args=is_debug=false |
33 gn gen out/Clang --args='cc="clang" cxx="clang++"' | 33 gn gen out/Clang --args='cc="clang" cxx="clang++"' |
34 gn gen out/Shared --args=is_component_build=true | 34 gn gen out/Shared --args=is_component_build=true |
35 | 35 |
36 # Build | 36 # Build |
37 ninja -C out/Release | 37 ninja -C out/Release |
38 ninja -C out/Debug | 38 ninja -C out/Debug |
39 ninja -C out/Clang | 39 ninja -C out/Clang |
40 ninja -C out/Shared | 40 ninja -C out/Shared |
41 | 41 |
42 From here everything is pretty much business as usual. | 42 From here everything is pretty much business as usual. |
OLD | NEW |