by kortex · 5y ago · 0 comments
That is just what you get with legacy build systems.
Disclosure: I work at Kitware.
It's sort of like using Italian to correspond with someone when you know Latin but not Italian.
If the code base really looks like that it might be interesting to implement a different front end. Even XML would be better.
On the other hand I couldn't imagine working without it and would be happy if it supported more languages (I only use it with C and C++).
The majority of rules are declarative and easily understood. Python (or at least a dialect extremely close to Python) is how you extend and write new rules. The two live in very different files (declarative rules are in BUCK/BUILD files, .bzl files contain the imperative definitions of rules, and various other conventions control how you deal with platforms (ie select rules).