I recently found gn and it's very pleasant to work with in the face of cross platform codebases. However, as outlined in the documentation, starting a small project is non-trivial. I was wondering if there are any thoughts about a `gn init` command?
There are obviously pros and cons to the idea and here's some of my considerations.
It'll be easy enough to at least automate the quickstart guide (create .gn, BUILD.gn, BUILDCONFIG.gn and a directory structure). I'm not sure how much further this should go (for example, should it provide some of the most popular toolchains, such as gcc, clang, msvc) as it gets into territory where there's no "one size fits all" solution.
There seems to be some traction to make gn more standalone. I've seen repos on Github trying to provide a starting base (https://github.com/timniederhausen/gn-build
Depending on how much is automated there's an obvious maintenance cost. I'm not sure how to estimate it nor how to compare it with the cost of maintaining the quickstart documentation (https://gn.googlesource.com/gn/+/main/docs/standalone.md