3 GN is a meta-build system that generates [NinjaBuild](NinjaBuild.md)
4 files. It's meant to be faster and simpler than GYP. It outputs only
9 1. We believe GN files are more readable and more maintainable
12 * GN is 20x faster than GYP (as of mid November, building 80%
13 of what GYP builds, in one configuration rather than two, takes 500ms
14 on a z620 running Ubuntu Trusty. GYP takes 20 seconds.
15 We see similar speedups on Mac and Windows).
16 * GN supports automatically re-running itself as needed by Ninja
17 as part of the build. This eliminates the need to remember to
18 re-run GN when you change a build file.
19 3. GN gives us better tools for enforcing dependencies (see
20 `gn check` and the `visibility`, `public_deps`, and `data_deps`
21 options for some examples).
22 4. GN gives us tools for querying the build graph; you can ask
23 "what does X depend on" and "who depends on Y", for example.
29 Chrome and most of the major test suites link on Linux and ChromeOS.
30 There's probably <1000 objects left to build, in a few test suites and a
31 bunch of utillities and helper binaries. We will probably have
32 everything converted in another couple weeks.
34 Chrome also links on Android and Windows, and bringing up the remaining
35 test suites should be mostly straightforward. There's some work left to
36 enable NaCl on Windows but it should also be straightforward.
38 Mac and iOS have not progressed much as attention has been focused on
39 Linux and Windows; we still need support for bundles and frameworks
40 before it can get to parity w/ the other platforms.
42 ## When are you going to be done?
46 We're currently shooting for having the main developer configurations
47 working and usable by the end of March 2015. There will probably be a
48 fair amount of verification of flags, bug fixes, etc over the next
49 couple months, but hopefully we will be flipping configurations from GYP
50 to GN throughout Q2, targeting having everything done by the end of Q2.
52 ## What does "done" mean?
54 Ideally we're done when all of the GYP files have been deleted from
55 Chromium and no one misses them.
57 We will be "mostly" done when the following are true:
59 * All of the bots maintained by the Chrome infra team for Chromium and
60 downstream of Chromium have been switched to GN. (Upstream projects
61 like Skia and V8 can choose to stay on GYP if they like).
62 * Any developer configurations we care about that don't have bots also
63 work (Generally speaking, we're aiming to not have any of these.
64 * Configurations we care about should have bots to ensure they don't
65 break). We have verified that all of the tests pass. We have
66 verified that the command lines match in the above configurations as
67 much as possible, and we accept any differences. We have reviewed
68 any binary differences that result in the official builds and
69 accepted them. The GN files are the "source of truth" for the
70 build, and normal chromium developers normally do not need to touch
71 GYP files to keep things working. We have replacements for the
72 hybrid "msvs-ninja" and "xcode-ninja" configurations that GYP can
75 The difference between "mostly done" and "done" exists to cover any
76 issues we haven't yet identified :)
78 We do not currently plan to support full native XCode or Visual Studio
79 generation from GN. It is theoretically possible to support such things,
80 so we would at least look at patches adding the functionality.
84 Check to see if your targets build under GN yet. If they don't,
85 volunteer to help convert them!
87 _17 Nov 2014. We are updating the stuff we use to track progress. Watch
88 this space and chromium-dev@ for more info!_.
90 ## I want more info on GN!
94 * [Quick start](docs/quick_start.md)
96 * [GYP conversion cookbook](docs/cookbook.md)
97 * [Language and operation details](docs/language.md)
98 * [Reference](docs/reference.md) The built-in `gn help` documentation.
99 * [Style guide](docs/style_guide.md)
100 * [Cross compiling and toolchains](docs/cross_compiles.md)
101 * [Hacking on GN itself](docs/hacking.md)
102 * [GNStandalone](docs/standalone.md) Standalone GN projects
103 * [UpdateGNBinaries](docs/update_binaries.md) Pushing new binaries