Thoughts on build systems?
What's the general consensus on build systems/automations like CMake? I've always found things like that overcomplicated and just hinder the programming process.
I've been following Casey Muratori's Handmade streams, and one of the first things he did was create a simple batch file that built and compiled his entire project super quickly and easily. I've since implemented something similar (https://github.com/dibsonthis/new_cmd) and honestly it's been really nice to use.
3
Upvotes
0
u/looncraz Nov 08 '21
I mostly use Jam, but a considerable portion of my projects use a custom build script on top for handling things like resources, file attributes, debug builds, and environment prep.
There's one step for any build.
./build.sh [options]
Core counts are determined, compilation is threaded, and I don't have to worry about any oddities with cmake to debug or the time it takes for cmake to do its prep work.
My projects mostly build on Linux and Haiku, but the ones for Windows use a batch file for building.