4 ms·
I wasn't on the Chrome team, but on teams adjacent to it that used the Chromium codebase and toolset, and my recollection is that before gn there was gyp. ("Gen
by cmrdporcupine 5y ago
I wasn't on the Chrome team, but on teams adjacent to it that used the Chromium codebase and toolset, and my recollection is that before gn there was gyp. ("Generate your project"). Gyp was a lot less Blaze-like.
- cmrdporcupine 5y agoAlso I should mention one big difference between Bazel/Blaze and GN (and Gyp) is that the latter doesn't do the actual build, it generates a build that Ninja executes, instead. Blaze owns the whole thing, executes the toolchain, etc. Blaze is also very much built for the monorepo model we had in Google3. Not that it won't work in other scenarios, but that's where it came from: one repo and when it comes to third party dependencies, one version, etc. And cross-compiling on it felt awkward. GN/Ninja support for multiple toolchains and cross-compiling felt more thought-through, by necessity.
- p_l 5y agoIt seems that with current level of Bazel toolchain support it becomes much easier to crosscompile. Well, something I'll test hopefully somewhat soon, as I want to test bazel explicitly in very crosscompiling environment...
- cmrdporcupine 5y agoIt is done by some teams at Google, so definitely possible to do it decently enough to ship something.
- p_l 5y agoMy goal is to build bazel support for Ada, including building of crosscompilation toolchains and platform runtimes. Will see how it will work out :)
- lima 5y ago> GN/Ninja support for multiple toolchains and cross-compiling felt more thought-through, by necessity. I'd argue this is still the case right now, but toolchain support in Bazel is maturing quickly.
- ckocagil 5y agoThis is correct. Gyp came first, then Evan Martin built ninja as a faster make, then Brett Wilson built gn ("generate ninja") because Gyp wasn't intuitive or convenient for a lot of use cases. I don't know if Googlers had an internal Blaze back then - I'm an outsider :)
- cmrdporcupine 5y agoYes, blaze predates gyp, AFAIK. Blaze had been around for a long time before I ever arrived there in 2011. But exclusively for Google3 projects. Later I was on teams that used it for iOS dev, but not sure if that was always the case.