blob: 13adeddbf4097de01639714c4f61e71d6216c9ab [file] [log] [blame]
rmstar2c76c2c2019-07-23 13:51:21 -07001Pod::Spec.new do |s|
2 s.name = 'Protobuf-C++'
Adam Cozzette436bd782021-04-07 15:38:38 -07003 s.version = '3.15.8'
rmstar2c76c2c2019-07-23 13:51:21 -07004 s.summary = 'Protocol Buffers v3 runtime library for C++.'
5 s.homepage = 'https://github.com/google/protobuf'
6 s.license = '3-Clause BSD License'
7 s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
8 s.cocoapods_version = '>= 1.0'
9
10 s.source = { :git => 'https://github.com/google/protobuf.git',
11 :tag => "v#{s.version}" }
12
13 s.source_files = 'src/google/protobuf/*.{h,cc,inc}',
14 'src/google/protobuf/stubs/*.{h,cc}',
15 'src/google/protobuf/io/*.{h,cc}',
16 'src/google/protobuf/util/*.{h,cc}',
17 'src/google/protobuf/util/internal/*.{h,cc}'
18
19 # Excluding all the tests in the directories above
20 s.exclude_files = 'src/google/**/*_test.{h,cc,inc}',
21 'src/google/**/*_unittest.{h,cc}',
22 'src/google/protobuf/test_util*.{h,cc}',
23 'src/google/protobuf/map_lite_test_util.{h,cc}',
24 'src/google/protobuf/map_test_util*.{h,cc,inc}'
25
26 s.header_mappings_dir = 'src'
27
28 s.ios.deployment_target = '7.0'
29 s.osx.deployment_target = '10.9'
30 s.tvos.deployment_target = '9.0'
31 s.watchos.deployment_target = '2.0'
32
33 s.pod_target_xcconfig = {
34 # Do not let src/google/protobuf/stubs/time.h override system API
35 'USE_HEADERMAP' => 'NO',
36 'ALWAYS_SEARCH_USER_PATHS' => 'NO',
37
38 # Configure tool is not being used for Xcode. When building, assume pthread is supported.
39 'GCC_PREPROCESSOR_DEFINITIONS' => '"$(inherited)" "HAVE_PTHREAD=1"',
40 }
41
42end