Maybe I’m too boring but what about using preprocessor defines: stick it as a -D flag in CPPFLAGS in your makefile from and env var or wherever that info comes from and read it in the source.
At least it’s how I’ve always seen it done and it does feel simpler although, yeah, maybe not as fun :)
At least it’s how I’ve always seen it done and it does feel simpler although, yeah, maybe not as fun :)