Files
orion_greptime_proto/scripts/generate-cpp.sh
T
2023-07-13 19:07:56 +08:00

10 lines
303 B
Bash
Executable File

#! /usr/bin/env bash
set -e
PROTO_ROOT=./proto
CPP_OUTPUT=./c++
protoc -I ${PROTO_ROOT} --cpp_out=${CPP_OUTPUT} $(find ./proto/ -type f -iname "*.proto")
protoc -I ${PROTO_ROOT} --grpc_out=${CPP_OUTPUT} --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` $(find ./proto/ -type f -iname "*.proto")