Protobuf.podspec 1.7 KB

123456789101112131415161718192021222324252627282930313233
  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/Timestamp.pbobjc.h',
  16. 'objectivec/google/protobuf/Wrappers.pbobjc.{h,m}'
  17. # The following would cause duplicate symbol definitions
  18. s.exclude_files = 'objectivec/GPBProtocolBuffers.m',
  19. 'objectivec/google/protobuf/Api.pbobjc.{h,m}',
  20. 'objectivec/google/protobuf/Struct.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',
  26. 'objectivec/google/protobuf/Duration.pbobjc.m'
  27. s.header_mappings_dir = 'objectivec'
  28. s.ios.deployment_target = '6.0'
  29. s.osx.deployment_target = '10.8'
  30. s.requires_arc = false
  31. end