grpc/protoc_generate.sh

9 lines
181 B
Bash
Raw Normal View History

2024-12-09 19:29:55 +08:00
mkdir -p gen_code
generate_code(){
protoc -I ./ --grpc_out=./protoc --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` $1
protoc -I ./ --cpp_out=./protoc $1
}
generate_code $@