gRPC-RxLibrary.podspec.template 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. %YAML 1.2
  2. --- |
  3. # This file has been automatically generated from a template file.
  4. # Please make modifications to
  5. # `templates/gRPC-RxLibrary.podspec.template` instead. This file can be
  6. # regenerated from the template by running
  7. # `tools/buildgen/generate_projects.sh`.
  8. # Copyright 2015 gRPC authors.
  9. #
  10. # Licensed under the Apache License, Version 2.0 (the "License");
  11. # you may not use this file except in compliance with the License.
  12. # You may obtain a copy of the License at
  13. #
  14. # http://www.apache.org/licenses/LICENSE-2.0
  15. #
  16. # Unless required by applicable law or agreed to in writing, software
  17. # distributed under the License is distributed on an "AS IS" BASIS,
  18. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. # See the License for the specific language governing permissions and
  20. # limitations under the License.
  21. Pod::Spec.new do |s|
  22. s.name = 'gRPC-RxLibrary'
  23. version = '${settings.version}'
  24. s.version = version
  25. s.summary = 'Reactive Extensions library for iOS/OSX.'
  26. s.homepage = 'https://grpc.io'
  27. s.license = 'Apache License, Version 2.0'
  28. s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
  29. s.source = {
  30. :git => 'https://github.com/grpc/grpc.git',
  31. :tag => "v#{version}",
  32. }
  33. s.ios.deployment_target = '9.0'
  34. s.osx.deployment_target = '10.10'
  35. s.tvos.deployment_target = '10.0'
  36. s.watchos.deployment_target = '4.0'
  37. name = 'RxLibrary'
  38. s.module_name = name
  39. s.header_dir = name
  40. s.default_subspec = 'Interface', 'Implementation'
  41. src_dir = 'src/objective-c/RxLibrary'
  42. s.subspec 'Interface' do |ss|
  43. ss.header_mappings_dir = "#{src_dir}"
  44. ss.source_files = "#{src_dir}/*.h"
  45. ss.public_header_files = "#{src_dir}/*.h"
  46. end
  47. s.subspec 'Implementation' do |ss|
  48. ss.header_mappings_dir = "#{src_dir}"
  49. ss.source_files = "#{src_dir}/*.m", "#{src_dir}/**/*.{h,m}"
  50. ss.private_header_files = "#{src_dir}/**/*.h"
  51. ss.dependency "#{s.name}/Interface"
  52. end
  53. src_dir = 'src/objective-c/RxLibrary'
  54. s.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
  55. s.private_header_files = "#{src_dir}/private/*.h"
  56. s.header_mappings_dir = "#{src_dir}"
  57. s.pod_target_xcconfig = {
  58. 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
  59. }
  60. end