Protobuf-C++.podspec 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Pod::Spec.new do |s|
  2. s.name = 'Protobuf-C++'
  3. s.version = '3.19.4'
  4. s.summary = 'Protocol Buffers v3 runtime library for C++.'
  5. s.homepage = 'https://github.com/google/protobuf'
  6. s.license = '3-Clause BSD License'
  7. s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
  8. s.cocoapods_version = '>= 1.0'
  9. s.source = { :git => 'https://github.com/google/protobuf.git',
  10. :tag => "v#{s.version}" }
  11. s.source_files = 'src/google/protobuf/*.{h,cc,inc}',
  12. 'src/google/protobuf/stubs/*.{h,cc}',
  13. 'src/google/protobuf/io/*.{h,cc}',
  14. 'src/google/protobuf/util/*.{h,cc}',
  15. 'src/google/protobuf/util/internal/*.{h,cc}'
  16. # Excluding all the tests in the directories above
  17. s.exclude_files = 'src/google/**/*_test.{h,cc,inc}',
  18. 'src/google/**/*_unittest.{h,cc}',
  19. 'src/google/protobuf/test_util*.{h,cc}',
  20. 'src/google/protobuf/map_lite_test_util.{h,cc}',
  21. 'src/google/protobuf/map_test_util*.{h,cc,inc}',
  22. 'src/google/protobuf/reflection_tester.{h,cc}'
  23. s.header_mappings_dir = 'src'
  24. s.ios.deployment_target = '7.0'
  25. s.osx.deployment_target = '10.9'
  26. s.tvos.deployment_target = '9.0'
  27. s.watchos.deployment_target = '2.0'
  28. s.pod_target_xcconfig = {
  29. # Do not let src/google/protobuf/stubs/time.h override system API
  30. 'USE_HEADERMAP' => 'NO',
  31. 'ALWAYS_SEARCH_USER_PATHS' => 'NO',
  32. }
  33. end