|
|
@ -1843,11 +1843,9 @@ Pod::Spec.new do |s| |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
# patch include of openssl to openssl_grpc |
|
|
|
# patch include of openssl to openssl_grpc |
|
|
|
# patch xxhash.h to silent the -Wdocumentation error |
|
|
|
|
|
|
|
s.prepare_command = <<-END_OF_COMMAND |
|
|
|
s.prepare_command = <<-END_OF_COMMAND |
|
|
|
set -e |
|
|
|
set -e |
|
|
|
find src/core -type f \\( -path '*.h' -or -path '*.cc' \\) -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include <openssl/(.*)>;#if COCOAPODS==1\\\n #include <openssl_grpc/\\1>\\\n#else\\\n #include <openssl/\\1>\\\n#endif;g' |
|
|
|
find src/core -type f \\( -path '*.h' -or -path '*.cc' \\) -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include <openssl/(.*)>;#if COCOAPODS==1\\\n #include <openssl_grpc/\\1>\\\n#else\\\n #include <openssl/\\1>\\\n#endif;g' |
|
|
|
find third_party/xxhash -type f -name xxhash.h -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;@param([^,]*),;@param\\1 ,;g' |
|
|
|
find src/core/ -type f -name '*.grpc_back' -print0 | xargs -0 rm |
|
|
|
find src/core/ third_party/xxhash/ -type f -name '*.grpc_back' -print0 | xargs -0 rm |
|
|
|
|
|
|
|
END_OF_COMMAND |
|
|
|
END_OF_COMMAND |
|
|
|
end |
|
|
|
end |
|
|
|