Protobuf.podspec 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. Pod::Spec.new do |s|
  2. s.name = 'Protobuf'
  3. s.version = '3.0.0'
  4. s.summary = 'Protocol Buffers v.3 runtime library for Objective-C.'
  5. s.homepage = 'https://github.com/google/protobuf'
  6. s.license = 'New BSD'
  7. s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
  8. s.source_files = 'objectivec/*.{h,m}', \
  9. 'objectivec/google/protobuf/Any.pbobjc.{h,m}', \
  10. 'objectivec/google/protobuf/Descriptor.pbobjc.{h,m}', \
  11. 'objectivec/google/protobuf/Duration.pbobjc.h', \
  12. 'objectivec/google/protobuf/Empty.pbobjc.{h,m}', \
  13. 'objectivec/google/protobuf/FieldMask.pbobjc.{h,m}', \
  14. 'objectivec/google/protobuf/SourceContext.pbobjc.{h,m}', \
  15. 'objectivec/google/protobuf/Struct.pbobjc.{h,m}', \
  16. 'objectivec/google/protobuf/Timestamp.pbobjc.h', \
  17. 'objectivec/google/protobuf/Wrappers.pbobjc.{h,m}'
  18. # The following would cause duplicate symbol definitions
  19. s.exclude_files = 'objectivec/GPBProtocolBuffers.m', \
  20. 'objectivec/google/protobuf/Api.pbobjc.{h,m}', \
  21. 'objectivec/google/protobuf/Type.pbobjc.{h,m}'
  22. # The .m's of the proto Well-Known-Types under google/protobuf are #imported
  23. # by GPBWellKnownTypes.m. So we can't compile them (duplicate symbols), but we
  24. # need them available for the importing:
  25. s.preserve_paths = 'objectivec/google/protobuf/Timestamp.pbobjc.m', 'objectivec/google/protobuf/Duration.pbobjc.m'
  26. s.header_mappings_dir = 'objectivec'
  27. s.ios.deployment_target = '6.0'
  28. s.osx.deployment_target = '10.8'
  29. s.requires_arc = false
  30. end