diff options
author | Muxi Yan <mxyan@google.com> | 2017-07-06 20:51:49 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2017-07-06 21:20:42 -0700 |
commit | 43c4710a809fa2e4c30f2cdef2c56a70518974e1 (patch) | |
tree | 777ddaea289ff33f07ab84527d34e0ca3f860610 /templates/gRPC-Core.podspec.template | |
parent | a9694ecab528654a8d83a661ef9ba4e5d15285a1 (diff) |
Fix the nanopb's header include issue
Diffstat (limited to 'templates/gRPC-Core.podspec.template')
-rw-r--r-- | templates/gRPC-Core.podspec.template | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/gRPC-Core.podspec.template b/templates/gRPC-Core.podspec.template index 538e1e6490..da0751ff6a 100644 --- a/templates/gRPC-Core.podspec.template +++ b/templates/gRPC-Core.podspec.template @@ -178,4 +178,9 @@ 'test/core/util/port.c', 'test/core/util/port_server_client.{c,h}' 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 -exec sed -E -i '.back' 's;#include "third_party/nanopb/(.*)";#include <nanopb/\\1>;g' {} \\\; + END_OF_COMMAND end |