add platform build hook