Merge pull request #24169 from veblush/cocoa-abseil

Abseil support to gRPC-Core tests
pull/24177/head
Esun Kim 4 years ago committed by GitHub
commit dbaff7bd70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      gRPC-Core.podspec
  2. 7
      templates/gRPC-Core.podspec.template

@ -46,6 +46,7 @@ Pod::Spec.new do |s|
s.requires_arc = false s.requires_arc = false
name = 'grpc' name = 'grpc'
abseil_version = '1.20200225.0'
# When creating a dynamic framework, name it grpc.framework instead of gRPC-Core.framework. # When creating a dynamic framework, name it grpc.framework instead of gRPC-Core.framework.
# This lets users write their includes like `#include <grpc/grpc.h>` as opposed to `#include # This lets users write their includes like `#include <grpc/grpc.h>` as opposed to `#include
@ -173,7 +174,6 @@ Pod::Spec.new do |s|
ss.libraries = 'z' ss.libraries = 'z'
ss.dependency "#{s.name}/Interface", version ss.dependency "#{s.name}/Interface", version
ss.dependency 'BoringSSL-GRPC', '0.0.12' ss.dependency 'BoringSSL-GRPC', '0.0.12'
abseil_version = '1.20200225.0'
ss.dependency 'abseil/base/base', abseil_version ss.dependency 'abseil/base/base', abseil_version
ss.dependency 'abseil/container/flat_hash_set', abseil_version ss.dependency 'abseil/container/flat_hash_set', abseil_version
ss.dependency 'abseil/container/inlined_vector', abseil_version ss.dependency 'abseil/container/inlined_vector', abseil_version

@ -67,7 +67,7 @@
grpc_public_headers = list(sorted((set(list_lib_files("grpc", ("public_headers",))) - set(address_sorting_unwanted_files)) | set(list_lib_files("re2", ("public_headers",))))) grpc_public_headers = list(sorted((set(list_lib_files("grpc", ("public_headers",))) - set(address_sorting_unwanted_files)) | set(list_lib_files("re2", ("public_headers",)))))
grpc_private_headers = list(sorted((set(list_lib_files("grpc", ("headers",))) - set(address_sorting_unwanted_files)) | set(list_lib_files("re2", ("headers",))))) grpc_private_headers = list(sorted((set(list_lib_files("grpc", ("headers",))) - set(address_sorting_unwanted_files)) | set(list_lib_files("re2", ("headers",)))))
grpc_abseil_specs = list_abseil_specs("grpc") grpc_abseil_specs = list_abseil_specs("grpc")
grpc_tests_abseil_specs = list(sorted(set(list_abseil_specs("end2end_tests")) - set(grpc_abseil_specs)))
# TODO(jtattermusch): build.yaml is now generated from bazel build # TODO(jtattermusch): build.yaml is now generated from bazel build
# which doesn't have an explicit "grpc_cronet" target. Until it exists # which doesn't have an explicit "grpc_cronet" target. Until it exists
@ -123,6 +123,7 @@
s.requires_arc = false s.requires_arc = false
name = 'grpc' name = 'grpc'
abseil_version = '1.20200225.0'
# When creating a dynamic framework, name it grpc.framework instead of gRPC-Core.framework. # When creating a dynamic framework, name it grpc.framework instead of gRPC-Core.framework.
# This lets users write their includes like `#include <grpc/grpc.h>` as opposed to `#include # This lets users write their includes like `#include <grpc/grpc.h>` as opposed to `#include
@ -196,7 +197,6 @@
ss.libraries = 'z' ss.libraries = 'z'
ss.dependency "#{s.name}/Interface", version ss.dependency "#{s.name}/Interface", version
ss.dependency 'BoringSSL-GRPC', '0.0.12' ss.dependency 'BoringSSL-GRPC', '0.0.12'
abseil_version = '1.20200225.0'
% for abseil_spec in grpc_abseil_specs: % for abseil_spec in grpc_abseil_specs:
ss.dependency '${abseil_spec}', abseil_version ss.dependency '${abseil_spec}', abseil_version
% endfor % endfor
@ -231,6 +231,9 @@
ss.dependency "#{s.name}/Interface", version ss.dependency "#{s.name}/Interface", version
ss.dependency "#{s.name}/Implementation", version ss.dependency "#{s.name}/Implementation", version
% for abseil_spec in grpc_tests_abseil_specs:
ss.dependency '${abseil_spec}', abseil_version
% endfor
ss.source_files = ${ruby_multiline_list(grpc_test_util_files, 22)} ss.source_files = ${ruby_multiline_list(grpc_test_util_files, 22)}
end end

Loading…
Cancel
Save