Programmatically create Ninja build-system files