forked from deephaven/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More explanations in README.md; update build-cpp-protos.sh to the lat… (
deephaven#4054) * More explanations in README.md; update build-cpp-protos.sh to the latest build-dependencies.sh changes. * Tweaks. * Followup to review comment from Corey.
- Loading branch information
1 parent
2894462
commit 7bdea8a
Showing
2 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
proto/proto-backplane-grpc/src/main/proto/build-cpp-protos.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#!/bin/bash | ||
|
||
: ${DHDEPS_HOME:=$HOME/dhcpp} | ||
set -euxo pipefail | ||
|
||
: ${DHCPP_LOCAL:=$HOME/dhcpp/local} | ||
: ${CPP_PROTO_BUILD_DIR:=build} | ||
|
||
set -eux | ||
mkdir -p "${CPP_PROTO_BUILD_DIR}" | ||
$DHDEPS_HOME/local/protobuf/bin/protoc `find . -name \*.proto` --cpp_out=${CPP_PROTO_BUILD_DIR} --grpc_out=${CPP_PROTO_BUILD_DIR} --plugin=protoc-gen-grpc=$DHDEPS_HOME/local/grpc/bin/grpc_cpp_plugin | ||
mv ${CPP_PROTO_BUILD_DIR}/deephaven/proto/*.{h,cc} ../../../../../cpp-client/deephaven/client/proto/deephaven/proto | ||
$DHCPP_LOCAL/protobuf/bin/protoc `find . -name \*.proto` --cpp_out=${CPP_PROTO_BUILD_DIR} --grpc_out=${CPP_PROTO_BUILD_DIR} --plugin=protoc-gen-grpc=$DHCPP_LOCAL/grpc/bin/grpc_cpp_plugin | ||
mv -f ${CPP_PROTO_BUILD_DIR}/deephaven/proto/*.{h,cc} ../../../../../cpp-client/deephaven/client/proto/deephaven/proto |