aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/gRPC-C++.podspec.template
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-06-21 14:39:18 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-06-21 18:09:11 -0700
commit6443601337ef6feb9bf30dd287d79e835e862987 (patch)
treeac31617bcba2319be7b23d0251728ee5187cd579 /templates/gRPC-C++.podspec.template
parent06cc5b583ac2e19111c45fa0246252efe997f0cb (diff)
Subspec for C++ protobuf
Diffstat (limited to 'templates/gRPC-C++.podspec.template')
-rw-r--r--templates/gRPC-C++.podspec.template10
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/gRPC-C++.podspec.template b/templates/gRPC-C++.podspec.template
index 2853bb63ab..cff252b3a9 100644
--- a/templates/gRPC-C++.podspec.template
+++ b/templates/gRPC-C++.podspec.template
@@ -49,6 +49,7 @@
out = grpc_lib_files(filegroups, ("grpc++_codegen_proto", "grpc++_config_proto"), ("headers", "src", "public_headers"))
excl_files = grpc_lib_files(filegroups, ("grpc++_codegen_base",), ("headers", "src", "public_headers"))
out = [file for file in out if file not in excl_files]
+ out = filter_grpcpp(out)
return out
def grpcpp_private_files(libs, filegroups):
@@ -131,7 +132,7 @@
s.name = 'gRPC-C++'
# TODO (mxyan): use version that match gRPC version when pod is stabilized
# version = '${settings.version}'
- version = '0.0.2'
+ version = '0.0.3'
s.version = version
s.summary = 'gRPC C++ library'
s.homepage = 'https://grpc.io'
@@ -195,6 +196,13 @@
ss.private_header_files = ${ruby_multiline_list(grpcpp_private_headers(libs, filegroups), 30)}
end
+ s.subspec 'Protobuf' do |ss|
+ ss.header_mappings_dir = 'include/grpcpp'
+ ss.dependency "#{s.name}/Interface", version
+
+ ss.source_files = ${ruby_multiline_list(grpcpp_proto_files(filegroups), 22)}
+ end
+
s.prepare_command = <<-END_OF_COMMAND
find src/cpp/ -type f ! -path '*.grpc_back' -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include "(pb(_.*)?\\.h)";#include <nanopb/\\1>;g'
find src/cpp/ -type f -path '*.grpc_back' -print0 | xargs -0 rm