Add linux support to generate_grpc_shadow_boringssl_symbol_list.sh

pull/20313/head
Esun Kim 5 years ago
parent 74f8da0ae9
commit 7f6395426d
  1. 5792
      src/core/tsi/grpc_shadow_boringssl.h
  2. 5804
      src/objective-c/BoringSSL-GRPC.podspec
  3. 5792
      src/objective-c/grpc_shadow_boringssl_symbol_list
  4. 22
      tools/distrib/generate_grpc_shadow_boringssl_symbol_list.sh

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -25,16 +25,34 @@ ssl_lib='../../third_party/boringssl/build/ssl/libssl.a'
crypto_lib='../../third_party/boringssl/build/crypto/libcrypto.a'
# Generate boringssl archives
( cd ../../third_party/boringssl ; mkdir -p build ; cd build ; cmake .. ; make )
( cd ../../third_party/boringssl ; mkdir -p build ; cd build ; cmake .. ; make -j ssl crypto )
# Generate shadow_boringssl.h
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*)
outputs="$(nm $ssl_lib)"$'\n'"$(nm $crypto_lib)"
symbols=$(echo "$outputs" |
grep '^[0-9a-f]* [A-Z] ' | # Only public symbols
grep -v '^[0-9a-f]* [A-Z] _' | # Remove all symbols which look like for C++
sed 's/[0-9a-f]* [A-Z] \(.*\)/\1/g' | # Extract the symbol names
sort) # Sort symbol names
;;
Darwin*)
outputs="$(nm -C $ssl_lib)"$'\n'"$(nm -C $crypto_lib)"
symbols=$(echo "$outputs" |
grep '^[0-9a-f]* [A-Z] ' | # Only public symbols
grep -v ' bssl::' | # Filter BoringSSL symbols since they are already namespaced
sed 's/(.*//g' | # Remove parenthesis from C++ symbols
grep '^[0-9a-f]* [A-Z] _' | # Filter symbols that is not prefixed with '_'
sed 's/[0-9a-f]* [A-Z] _\(.*\)/\1/g') # Extract the symbol names
sed 's/[0-9a-f]* [A-Z] _\(.*\)/\1/g' | # Extract the symbol names
sort) # Sort symbol names
;;
*)
echo "Supports only Linux and Darwin but this system is $unameOut"
exit 1
;;
esac
commit=$(git submodule | grep "boringssl " | awk '{print $1}' | head -n 1)

Loading…
Cancel
Save