Jorge Canizales | 249483e | 2015-06-01 19:55:27 -0700 | [diff] [blame^] | 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. |
Jorge Canizales | 687a5fe | 2015-05-13 19:54:55 -0700 | [diff] [blame] | 6 | Pod::Spec.new do |s| |
| 7 | s.name = 'Protobuf' |
| 8 | s.version = '3.0.0' |
| 9 | s.summary = 'Protocol Buffers v.3 runtime library for Objective-C.' |
| 10 | s.homepage = 'https://github.com/google/protobuf' |
| 11 | s.license = 'New BSD' |
Jorge Canizales | 592c44f | 2015-05-14 14:16:40 -0700 | [diff] [blame] | 12 | s.authors = { 'The Protocol Buffers contributors' => '[email protected]' } |
Jorge Canizales | 687a5fe | 2015-05-13 19:54:55 -0700 | [diff] [blame] | 13 | |
| 14 | s.source_files = 'objectivec/*.{h,m}', 'objectivec/google/protobuf/*.pbobjc.h', 'objectivec/google/protobuf/Descriptor.pbobjc.m' |
Jorge Canizales | 687a5fe | 2015-05-13 19:54:55 -0700 | [diff] [blame] | 15 | # The following is a .m umbrella file, and would cause duplicate symbol |
| 16 | # definitions: |
| 17 | s.exclude_files = 'objectivec/GPBProtocolBuffers.m' |
| 18 | # The .m's of the proto Well-Known-Types under google/protobuf are #imported |
| 19 | # by GPBWellKnownTypes.m. So we can't compile them (duplicate symbols), but we |
| 20 | # need them available for the importing: |
| 21 | s.preserve_paths = 'objectivec/google/protobuf/*.pbobjc.m' |
| 22 | s.header_mappings_dir = 'objectivec' |
| 23 | |
| 24 | s.ios.deployment_target = '6.0' |
| 25 | s.osx.deployment_target = '10.8' |
| 26 | s.requires_arc = false |
| 27 | end |