Skip to content

Commit

Permalink
Added cronet to gRPC-C++.podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
veblush committed Jul 24, 2019
1 parent ded9f46 commit e6b07f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion gRPC-C++.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 7 additions & 1 deletion templates/gRPC-C++.podspec.template
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit e6b07f9

Please sign in to comment.