by ComputerGuru · 2y ago · 0 comments
It's great that it's self-bootstrapping, though. I thought they would have you install both this tool and CMake in order to build the project on end-user's machines.
I want something that is declarative and extensible at its core, and not an after-the-fact bandaid that tries to fix what's broken beyond repair.
SOURCES += ['a.cpp', 'b.cpp']
if CONFIG['OS'] == 'WINNT':
SOURCES += ['win.cpp']
elif CONFIG['OS'] == 'OSX':
SOURCES += ['osx.cpp']
else:
SOURCES += ['unix.cpp']
I like that it uses the Python language rather than coming up with its own DSL for handling conditionality or things where you need to do loops, and by splitting up the steps in the way that it does, it keeps the build system fairly declarative. But don't look under the hood, because the things under the hood are fiendishly complex and it's way too complicated to be usable for a simple project.