Protobuf.podspec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # This file describes to Cocoapods how to integrate the Objective-C runtime into a dependent
  2. # project.
  3. # Despite this file being specific to Objective-C, it needs to be on the root of the repository.
  4. # Otherwise, Cocoapods gives trouble like not picking up the license file correctly, or not letting
  5. # dependent projects use the :git notation to refer to the library.
  6. Pod::Spec.new do |s|
  7. s.name = 'Protobuf'
  8. s.version = '4.0.0-rc2'
  9. s.summary = 'Protocol Buffers v.3 runtime library for Objective-C.'
  10. s.homepage = 'https://github.com/protocolbuffers/protobuf'
  11. s.license = '3-Clause BSD License'
  12. s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
  13. s.cocoapods_version = '>= 1.0'
  14. s.source = { :git => 'https://github.com/protocolbuffers/protobuf.git',
  15. :tag => "v#{s.version}" }
  16. s.source_files = 'objectivec/*.{h,m}',
  17. 'objectivec/google/protobuf/Any.pbobjc.h',
  18. 'objectivec/google/protobuf/Api.pbobjc.h',
  19. 'objectivec/google/protobuf/Duration.pbobjc.h',
  20. 'objectivec/google/protobuf/Empty.pbobjc.h',
  21. 'objectivec/google/protobuf/FieldMask.pbobjc.h',
  22. 'objectivec/google/protobuf/SourceContext.pbobjc.h',
  23. 'objectivec/google/protobuf/Struct.pbobjc.h',
  24. 'objectivec/google/protobuf/Timestamp.pbobjc.h',
  25. 'objectivec/google/protobuf/Type.pbobjc.h',
  26. 'objectivec/google/protobuf/Wrappers.pbobjc.h'
  27. # The following would cause duplicate symbol definitions. GPBProtocolBuffers is expected to be
  28. # left out, as it's an umbrella implementation file.
  29. s.exclude_files = 'objectivec/GPBProtocolBuffers.m'
  30. # Set a CPP symbol so the code knows to use framework imports.
  31. s.user_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' }
  32. s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' }
  33. s.ios.deployment_target = '7.0'
  34. s.osx.deployment_target = '10.9'
  35. s.tvos.deployment_target = '9.0'
  36. s.watchos.deployment_target = '2.0'
  37. s.requires_arc = false
  38. end