Skip to content

Commit

Permalink
Update ObjC build hack
Browse files Browse the repository at this point in the history
  • Loading branch information
Muxi Yan committed Jun 12, 2018
1 parent 32c0493 commit 9291e5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gRPC-Core.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -1264,6 +1264,7 @@ 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 '*.back*' -exec sed -E -i'.back' 's;#include "third_party/nanopb/(.*)";#include <nanopb/\\1>;g' {} \\\;
find src/core/ -type f ! -path '*.grpc_back' -exec sed -E -i'.grpc_back' 's;#include "(pb(_.*)?\\.h)";#include <nanopb/\\1>;g' {} \\\;
find src/core/ -type f -path '*.grpc_back' | xargs rm
END_OF_COMMAND
end
3 changes: 2 additions & 1 deletion templates/gRPC-Core.podspec.template
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@

# 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 '*.back*' -exec sed -E -i'.back' 's;#include "third_party/nanopb/(.*)";#include <nanopb/\\1>;g' {} \\\;
find src/core/ -type f ! -path '*.grpc_back' -exec sed -E -i'.grpc_back' 's;#include "(pb(_.*)?\\.h)";#include <nanopb/\\1>;g' {} \\\;
find src/core/ -type f -path '*.grpc_back' | xargs rm
END_OF_COMMAND
end

0 comments on commit 9291e5d

Please sign in to comment.