Added cronet to gRPC-C++.podspec

pull/19702/head
Esun Kim 5 years ago
parent ded9f46c06
commit e6b07f9e58
  1. 5
      gRPC-C++.podspec
  2. 8
      templates/gRPC-C++.podspec.template

@ -205,7 +205,9 @@ Pod::Spec.new do |s|
'include/grpcpp/impl/codegen/sync_stream.h',
'include/grpcpp/impl/codegen/sync_stream_impl.h',
'include/grpcpp/impl/codegen/time.h',
'include/grpcpp/impl/codegen/sync.h'
'include/grpcpp/impl/codegen/sync.h',
'include/grpcpp/security/cronet_credentials.h',
'include/grpcpp/security/cronet_credentials_impl.h'
end
s.subspec 'Implementation' do |ss|
@ -269,6 +271,7 @@ Pod::Spec.new do |s|
'src/cpp/util/string_ref.cc',
'src/cpp/util/time_cc.cc',
'src/cpp/codegen/codegen_init.cc',
'src/cpp/client/cronet_credentials.cc',
'src/core/lib/gpr/alloc.h',
'src/core/lib/gpr/arena.h',
'src/core/lib/gpr/env.h',

@ -28,6 +28,13 @@
if lib.name in expect_libs:
for group in groups:
out += lib.get(group, [])
# Add cronet-related files manually since they're not in BUILD.yaml.
if "grpc++" in expect_libs:
if "public_headers" in groups:
out += ["include/grpcpp/security/cronet_credentials.h",
"include/grpcpp/security/cronet_credentials_impl.h"]
if "src" in groups:
out += ["src/cpp/client/cronet_credentials.cc"]
return out
def filter_grpcpp(files):
@ -65,7 +72,6 @@
out += [file for file in grpc_private_headers(libs) if not file.startswith("third_party/nanopb/")]
out = filter_grpcpp(out)
return out
def grpcpp_private_headers(libs, filegroups):

Loading…
Cancel
Save