Reworked hack
This commit is contained in:
parent
7044945ce7
commit
aa3c2a903d
|
|
@ -1387,8 +1387,15 @@ Pod::Spec.new do |s|
|
|||
|
||||
# TODO (mxyan): Instead of this hack, add include path "third_party" to C core's include path?
|
||||
s.prepare_command = <<-END_OF_COMMAND
|
||||
find src/core/ -type f ! -path '*.grpc_back' -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include "(pb(_.*)?\\.h)";#include <nanopb/\\1>;g'
|
||||
find src/core/ -type f -path '*.grpc_back' -print0 | xargs -0 rm
|
||||
find src/core/ -type f \\( -path '*.h' -or -path '*.cc' \\) -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include <openssl/;#include <openssl_grpc/;g'
|
||||
find src/core/ -type f -print0 | xargs -0 -L1 sed -E -i '' 's;#include "(pb(_.*)?\\.h)";#if COCOAPODS\\
|
||||
#include <nanopb/\\1>\\
|
||||
#else\\
|
||||
#include "\\1"\\
|
||||
#endif;g'
|
||||
find src/core/ -type f \\( -path '*.h' -or -path '*.cc' \\) -print0 | xargs -0 -L1 sed -E -i '' 's;#include <openssl/(.*)>;#if COCOAPODS\\
|
||||
#include <openssl_grpc/\\1>\\
|
||||
#else\\
|
||||
#include <openssl/\\1>\\
|
||||
#endif;g'
|
||||
END_OF_COMMAND
|
||||
end
|
||||
|
|
|
|||
|
|
@ -211,9 +211,15 @@
|
|||
end
|
||||
|
||||
# TODO (mxyan): Instead of this hack, add include path "third_party" to C core's include path?
|
||||
s.prepare_command = <<-END_OF_COMMAND
|
||||
find src/core/ -type f ! -path '*.grpc_back' -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include "(pb(_.*)?\\.h)";#include <nanopb/\\1>;g'
|
||||
find src/core/ -type f -path '*.grpc_back' -print0 | xargs -0 rm
|
||||
find src/core/ -type f \\( -path '*.h' -or -path '*.cc' \\) -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include <openssl/;#include <openssl_grpc/;g'
|
||||
END_OF_COMMAND
|
||||
s.prepare_command = <<-END_OF_COMMAND
|
||||
find src/core/ -type f -print0 | xargs -0 -L1 sed -E -i '' 's;#include "(pb(_.*)?\\.h)";#if COCOAPODS\\
|
||||
#include <nanopb/\\1>\\
|
||||
#else\\
|
||||
#include "\\1"\\
|
||||
#endif;g'
|
||||
find src/core/ -type f \\( -path '*.h' -or -path '*.cc' \\) -print0 | xargs -0 -L1 sed -E -i '' 's;#include <openssl/(.*)>;#if COCOAPODS\\
|
||||
#include <openssl_grpc/\\1>\\
|
||||
#else\\
|
||||
#include <openssl/\\1>\\
|
||||
#endif;g'
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue