• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#                                 Apache License
2#                           Version 2.0, January 2004
3#                        http://www.apache.org/licenses/
4
5Pod::Spec.new do |s|
6  s.name     = 'Protobuf-C++'
7  s.version  = '3.14.0'
8  s.summary  = 'Protocol Buffers v3 runtime library for C++.'
9  s.homepage = 'https://github.com/google/protobuf'
10  s.license  = '3-Clause BSD License'
11  s.authors  = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
12  s.cocoapods_version = '>= 1.0'
13
14  s.source = { :git => 'https://github.com/google/protobuf.git',
15               :tag => "v#{s.version}" }
16
17  s.source_files = 'src/google/protobuf/*.{h,cc,inc}',
18                   'src/google/protobuf/stubs/*.{h,cc}',
19                   'src/google/protobuf/io/*.{h,cc}',
20                   'src/google/protobuf/util/*.{h,cc}',
21                   'src/google/protobuf/util/internal/*.{h,cc}'
22
23  # Excluding all the tests in the directories above
24  s.exclude_files = 'src/google/**/*_test.{h,cc,inc}',
25                    'src/google/**/*_unittest.{h,cc}',
26                    'src/google/protobuf/test_util*.{h,cc}',
27                    'src/google/protobuf/map_lite_test_util.{h,cc}',
28                    'src/google/protobuf/map_test_util*.{h,cc,inc}'
29
30  s.header_mappings_dir = 'src'
31
32  s.ios.deployment_target = '9.0'
33  s.osx.deployment_target = '10.10'
34  s.tvos.deployment_target = '9.0'
35  s.watchos.deployment_target = '2.0'
36
37  s.pod_target_xcconfig = {
38    # Do not let src/google/protobuf/stubs/time.h override system API
39    'USE_HEADERMAP' => 'NO',
40    'ALWAYS_SEARCH_USER_PATHS' => 'NO',
41
42    # Configure tool is not being used for Xcode. When building, assume pthread is supported.
43    'GCC_PREPROCESSOR_DEFINITIONS' => '"$(inherited)" "HAVE_PTHREAD=1"',
44  }
45
46end
47