gRPC-ProtoRPC.podspec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # This file has been automatically generated from a template file.
  2. # Please make modifications to
  3. # `templates/gRPC-ProtoRPC.podspec.template` instead. This file can be
  4. # regenerated from the template by running
  5. # `tools/buildgen/generate_projects.sh`.
  6. # Copyright 2015 gRPC authors.
  7. #
  8. # Licensed under the Apache License, Version 2.0 (the "License");
  9. # you may not use this file except in compliance with the License.
  10. # You may obtain a copy of the License at
  11. #
  12. # http://www.apache.org/licenses/LICENSE-2.0
  13. #
  14. # Unless required by applicable law or agreed to in writing, software
  15. # distributed under the License is distributed on an "AS IS" BASIS,
  16. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. # See the License for the specific language governing permissions and
  18. # limitations under the License.
  19. Pod::Spec.new do |s|
  20. s.name = 'gRPC-ProtoRPC'
  21. version = '1.45.2'
  22. s.version = version
  23. s.summary = 'RPC library for Protocol Buffers, based on gRPC'
  24. s.homepage = 'https://grpc.io'
  25. s.license = 'Apache License, Version 2.0'
  26. s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
  27. s.source = {
  28. :git => 'https://github.com/grpc/grpc.git',
  29. :tag => "v#{version}",
  30. }
  31. s.ios.deployment_target = '9.0'
  32. s.osx.deployment_target = '10.10'
  33. s.tvos.deployment_target = '10.0'
  34. s.watchos.deployment_target = '4.0'
  35. name = 'ProtoRPC'
  36. s.module_name = name
  37. s.header_dir = name
  38. s.default_subspec = 'Main', 'Legacy', 'Legacy-Header'
  39. s.subspec 'Legacy-Header' do |ss|
  40. ss.header_mappings_dir = "src/objective-c/ProtoRPC"
  41. ss.public_header_files = "src/objective-c/ProtoRPC/ProtoRPCLegacy.h"
  42. ss.source_files = "src/objective-c/ProtoRPC/ProtoRPCLegacy.h"
  43. end
  44. s.subspec 'Main' do |ss|
  45. ss.header_mappings_dir = "src/objective-c/ProtoRPC"
  46. ss.dependency "#{s.name}/Legacy-Header", version
  47. ss.dependency 'gRPC/Interface', version
  48. ss.dependency 'Protobuf', '~> 3.0'
  49. ss.source_files = "src/objective-c/ProtoRPC/ProtoMethod.{h,m}",
  50. "src/objective-c/ProtoRPC/ProtoRPC.{h,m}",
  51. "src/objective-c/ProtoRPC/ProtoService.{h,m}"
  52. end
  53. s.subspec 'Legacy' do |ss|
  54. ss.header_mappings_dir = "src/objective-c/ProtoRPC"
  55. ss.dependency "#{s.name}/Main", version
  56. ss.dependency "#{s.name}/Legacy-Header", version
  57. ss.dependency 'gRPC/GRPCCore', version
  58. ss.dependency 'gRPC-RxLibrary', version
  59. ss.dependency 'Protobuf', '~> 3.0'
  60. ss.source_files = "src/objective-c/ProtoRPC/ProtoRPCLegacy.m",
  61. "src/objective-c/ProtoRPC/ProtoServiceLegacy.m"
  62. end
  63. # CFStream is now default. Leaving this subspec only for compatibility purpose.
  64. s.subspec 'CFStream' do |ss|
  65. ss.dependency "#{s.name}/Legacy", version
  66. end
  67. s.pod_target_xcconfig = {
  68. # This is needed by all pods that depend on Protobuf:
  69. 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
  70. # This is needed by all pods that depend on gRPC-RxLibrary:
  71. 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
  72. 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
  73. }
  74. end