Smart Manufacturing: End-to-End Building Automation for a Global Factory