Convert build scripts to the new project-based API.