blob: bb36588bcccc710cd850dd9466f4b73f7340acdc [file] [log] [blame]
Jan Tattermuschc98bde62017-01-25 19:12:11 +01001#!/bin/bash
Jan Tattermusch7897ae92017-06-07 22:57:36 +02002# Copyright 2015 gRPC authors.
Jan Tattermuschc98bde62017-01-25 19:12:11 +01003#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02004# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
Jan Tattermuschc98bde62017-01-25 19:12:11 +01007#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02008# http://www.apache.org/licenses/LICENSE-2.0
Jan Tattermuschc98bde62017-01-25 19:12:11 +01009#
Jan Tattermusch7897ae92017-06-07 22:57:36 +020010# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
Jan Tattermuschc98bde62017-01-25 19:12:11 +010015
16set -ex
17
Mehrdad Afsharid8b92432017-06-27 14:58:43 -070018cd "$(dirname "$0")/../../.."
Jan Tattermuschc98bde62017-01-25 19:12:11 +010019
20mkdir -p cmake/build
21cd cmake/build
22
23# MSBUILD_CONFIG's values are suitable for cmake as well
Mehrdad Afsharid8b92432017-06-27 14:58:43 -070024cmake -DgRPC_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE="${MSBUILD_CONFIG}" ../..