aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/gRPC.podspec.template
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-06-16 14:07:36 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-06-16 14:07:36 -0700
commitf398d5c9d36f49cf8f224bd1d3cbb4dab762e873 (patch)
treed6f922eb69112c4fd0d5d1b3de014e7cccbf396a /templates/gRPC.podspec.template
parent52a2322135e5ac4700d4b64f2d1b4308123350a5 (diff)
Fixed file renaming in podspec template
Diffstat (limited to 'templates/gRPC.podspec.template')
-rw-r--r--templates/gRPC.podspec.template14
1 files changed, 12 insertions, 2 deletions
diff --git a/templates/gRPC.podspec.template b/templates/gRPC.podspec.template
index 1f7de5ce94..84716c81e1 100644
--- a/templates/gRPC.podspec.template
+++ b/templates/gRPC.podspec.template
@@ -1,3 +1,13 @@
+<%!
+bad_header_names = ('time.h', 'string.h')
+def fix_header_name(name):
+ split_name = name.split('/')
+ if split_name[-1] in bad_header_names:
+ return '/'.join(split_name[:-1] + ['grpc_' + split_name[-1]])
+ else:
+ return name
+%>
+
Pod::Spec.new do |s|
s.name = 'gRPC'
s.version = '0.6.0'
@@ -27,10 +37,10 @@ Pod::Spec.new do |s|
% for lib in libs:
% if lib.name in ("grpc", "gpr"):
% for hdr in lib.get("headers", []):
-'${hdr}', \
+'${fix_header_name(hdr)}', \
% endfor
% for hdr in lib.get("public_headers", []):
-'${hdr}', \
+'${fix_header_name(hdr)}', \
% endfor
% for src in lib.src:
'${src}', \