It looks like most of the reverse engineering efforts and build process are implemented in Python. Check the `tools/` folder.