[plugin] add g:CMakeBuildSpec for cross-platform building.