Merge "target: Add API for identifying build type"