Re:Chalet: A cross-platform project format and build tool fo...
by rewrking on Friday June 10, 2022 @09:57AM
(#31694291)
I think an opinionated project layout (like Pitchfork) makes the most sense for packages. It would be nice to go in that direction one day.
Re:Chalet: A cross-platform project format and build tool fo...
by sebastos on Friday June 10, 2022 @01:22PM
(#31696998)
I can definitely second that making use of sane default project structure to reduce even more boilerplate would be an extremely attractive feature. Reducing some of the incomprehensibly large amount of incidentally complex C++ project builds would practically qualify as humanitarian aid at this point.
I wish this went further to have an opinion on project layout, like location of source files and include dirs. Every C/C++ build system I've seen has a configuration-over-convention approach rather than the other way around. I get it's by necessity to accommodate arbitrary pre-existing projects, but it's unfortunate that it perpetuates C projects being snowflakes, each with a slightly different directory structure, approach to includes, naming scheme of defines, different ways of enabling optional features, different way of running tests, and so on. Because of that maximal flexibility even projects using the same build system end up being gratuitously different.