add build plugin for platform