Skip to content

Commit

Permalink
Followup to review comment: build-cpp-protos.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcferretti committed Sep 15, 2023
1 parent db8a26f commit d208c70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions proto/proto-backplane-grpc/src/main/proto/build-cpp-protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

set -euxo pipefail

: ${DHCPP_LOCAL:=$HOME/dhcpp}
: ${DHCPP:=$HOME/dhcpp}
: ${PROTOC_BIN:=$DHCPP/bin}
: ${CPP_PROTO_BUILD_DIR:=build}

mkdir -p "${CPP_PROTO_BUILD_DIR}"
$DHCPP_LOCAL/bin/protoc \
$DHCPP/bin/protoc \
$(find . -name '*.proto') \
--cpp_out=${CPP_PROTO_BUILD_DIR} \
--grpc_out=${CPP_PROTO_BUILD_DIR} \
--plugin=protoc-gen-grpc=$DHCPP_LOCAL/bin/grpc_cpp_plugin
--plugin=protoc-gen-grpc=${PROTOC_BIN}/grpc_cpp_plugin
mv -f ${CPP_PROTO_BUILD_DIR}/deephaven/proto/*.{h,cc} \
../../../../../cpp-client/deephaven/dhclient/proto/deephaven/proto

0 comments on commit d208c70

Please sign in to comment.