https://github.com/google/kati/blob/master/INTERNALS.md
This takes your existing Makefile(s) and produces a ninja build file. Not sure if Android still uses it or it is all soong now.