aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/helper_scripts
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2018-08-22 14:02:13 +0200
committerGravatar Jan Tattermusch <jtattermusch@google.com>2018-10-04 11:21:35 +0200
commitc08c3ccbae87e7e5f040a3045bac520f27ba20fd (patch)
tree3490b797c1272c40f428961276baedc5c3c70023 /tools/run_tests/helper_scripts
parent04b78efb45ad93106f84a9293b1d21d8896ae526 (diff)
build grpc_csharp_ext with cmake
Diffstat (limited to 'tools/run_tests/helper_scripts')
-rwxr-xr-xtools/run_tests/helper_scripts/pre_build_csharp.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/run_tests/helper_scripts/pre_build_csharp.sh b/tools/run_tests/helper_scripts/pre_build_csharp.sh
index f9f5440a61..dd4d2e36b2 100755
--- a/tools/run_tests/helper_scripts/pre_build_csharp.sh
+++ b/tools/run_tests/helper_scripts/pre_build_csharp.sh
@@ -16,6 +16,14 @@
set -ex
# cd to gRPC csharp directory
-cd "$(dirname "$0")/../../../src/csharp"
+cd "$(dirname "$0")/../../.."
+
+mkdir -p cmake/build
+cd cmake/build
+
+# TODO(jtattermusch): use RelWithDebInfo for release?
+cmake -DgRPC_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE="${MSBUILD_CONFIG}" ../..
+
+cd ../../src/csharp
dotnet restore Grpc.sln