The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.8 KiB
44 lines
1.8 KiB
#!/bin/bash |
|
# Copyright 2018 gRPC authors. |
|
# |
|
# Licensed under the Apache License, Version 2.0 (the "License"); |
|
# you may not use this file except in compliance with the License. |
|
# You may obtain a copy of the License at |
|
# |
|
# http://www.apache.org/licenses/LICENSE-2.0 |
|
# |
|
# Unless required by applicable law or agreed to in writing, software |
|
# distributed under the License is distributed on an "AS IS" BASIS, |
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
# See the License for the specific language governing permissions and |
|
# limitations under the License. |
|
|
|
# Generate the list of boringssl symbols that need to be shadowed based on the |
|
# current boringssl submodule. Requires local toolchain to build boringssl. |
|
|
|
set -e |
|
|
|
cd "$(dirname $0)" |
|
cd ../../third_party/boringssl |
|
|
|
BORINGSSL_COMMIT=$(git rev-parse HEAD) |
|
BORINGSSL_PREFIX_HEADERS_DIR=src/boringssl |
|
|
|
# Do the following in grpc root directory |
|
cd ../.. |
|
|
|
docker build tools/dockerfile/grpc_objc/generate_boringssl_prefix_header -t grpc/boringssl_prefix_header |
|
mkdir -p $BORINGSSL_PREFIX_HEADERS_DIR |
|
docker run -it --rm -v $(pwd)/$BORINGSSL_PREFIX_HEADERS_DIR:/output grpc/boringssl_prefix_header $BORINGSSL_COMMIT |
|
|
|
# Increase the minor version by 1 |
|
POD_VER=$(cat templates/src/objective-c/BoringSSL-GRPC.podspec.template | grep 'version = ' | perl -pe '($_)=/([0-9]+([.][0-9]+)+)/') |
|
POD_VER_NEW="${POD_VER%.*}.$((${POD_VER##*.}+1))" |
|
sed -i.grpc_back -e "s/version = '$POD_VER'/version = '$POD_VER_NEW'/g" templates/src/objective-c/BoringSSL-GRPC.podspec.template |
|
sed -i.grpc_back -e "s/dependency 'BoringSSL-GRPC', '$POD_VER'/dependency 'BoringSSL-GRPC', '$POD_VER_NEW'/g" templates/gRPC-Core.podspec.template |
|
rm templates/src/objective-c/BoringSSL-GRPC.podspec.template.grpc_back templates/gRPC-Core.podspec.template.grpc_back |
|
|
|
# Regenerated the project |
|
tools/buildgen/generate_projects.sh |
|
|
|
exit 0
|
|
|