aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorGravatar Muxi Yan <muxi@users.noreply.github.com>2017-07-05 17:57:28 -0700
committerGravatar GitHub <noreply@github.com>2017-07-05 17:57:28 -0700
commitaf724acc822eaa17320f594e5be4661e092c233b (patch)
tree7d80615b110c0fcb9ca607d1efa7c73ba999ab5c /templates
parent0c009ba2b590618fdeade42bb7ebd3034f6fd045 (diff)
parentad272c9d7647e5d51666e190528856f53abaf265 (diff)
Merge pull request #11656 from muxi/move-nanopb-to-cocoapods
Use Cocoapods to manage nanopb
Diffstat (limited to 'templates')
-rw-r--r--templates/gRPC-Core.podspec.template7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/gRPC-Core.podspec.template b/templates/gRPC-Core.podspec.template
index e5e3a1801e..538e1e6490 100644
--- a/templates/gRPC-Core.podspec.template
+++ b/templates/gRPC-Core.podspec.template
@@ -28,7 +28,7 @@
if lib.name in ("grpc", "gpr"):
out += lib.get('headers', [])
out += lib.get('src', [])
- return out;
+ return [f for f in out if not f.startswith("third_party/nanopb/")]
def grpc_public_headers(libs):
out = []
@@ -42,7 +42,7 @@
for lib in libs:
if lib.name in ("grpc", "gpr"):
out += lib.get('headers', [])
- return out
+ return [f for f in out if not f.startswith("third_party/nanopb/")]
def ruby_multiline_list(files, indent):
return (',\n' + indent*' ').join('\'%s\'' % f for f in files)
@@ -59,8 +59,6 @@
s.source = {
:git => 'https://github.com/grpc/grpc.git',
:tag => "v#{version}",
- # TODO(jcanizales): Depend explicitly on the nanopb pod, and disable submodules.
- :submodules => true,
}
s.ios.deployment_target = '7.0'
@@ -138,6 +136,7 @@
ss.libraries = 'z'
ss.dependency "#{s.name}/Interface", version
ss.dependency 'BoringSSL', '~> 8.0'
+ ss.dependency 'nanopb', '~> 0.3'
# To save you from scrolling, this is the last part of the podspec.
ss.source_files = ${ruby_multiline_list(grpc_private_files(libs), 22)}