ninja is a small, very fast build system.
I've ran into it most commonly as a CMake backend, but it's also supported in multiple Google products like Chrome and Android (parts of it, anyway).
Here are some practical tips I've collected over time.
out/soong/build.ninja
ninja -t targets all
ninja -t compdb > compile_commands.json