blob: c98dae4eada4f9d343575934fd437c271d163a09 [file] [log] [blame]
Jorge Canizales249483e2015-06-01 19:55:27 -07001# 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 Canizales687a5fe2015-05-13 19:54:55 -07006Pod::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 Canizales592c44f2015-05-14 14:16:40 -070012 s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
Jorge Canizales687a5fe2015-05-13 19:54:55 -070013
14 s.source_files = 'objectivec/*.{h,m}', 'objectivec/google/protobuf/*.pbobjc.h', 'objectivec/google/protobuf/Descriptor.pbobjc.m'
Jorge Canizales687a5fe2015-05-13 19:54:55 -070015 # 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
27end