blob: f2b9f35535aa99a8f38d50b341a92fcd818a243f [file] [log] [blame]
rmstar2c76c2c2019-07-23 13:51:21 -07001Pod::Spec.new do |s|
2 s.name = 'Protobuf-C++'
Jie Luo1231af12023-11-02 15:28:01 -07003 s.version = '4.25.0'
rmstar2c76c2c2019-07-23 13:51:21 -07004 s.summary = 'Protocol Buffers v3 runtime library for C++.'
5 s.homepage = 'https://github.com/google/protobuf'
Maximilian82372d82022-01-27 01:23:14 +01006 s.license = 'BSD-3-Clause'
rmstar2c76c2c2019-07-23 13:51:21 -07007 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',
Deanna Garcia942cec02022-05-20 21:43:48 +000011 :tag => "v#{s.version}" }
rmstar2c76c2c2019-07-23 13:51:21 -070012
13 s.source_files = 'src/google/protobuf/*.{h,cc,inc}',
14 'src/google/protobuf/stubs/*.{h,cc}',
15 'src/google/protobuf/io/*.{h,cc}',
Mike Kruskal32bea522022-10-06 16:48:39 -070016 'src/google/protobuf/util/*.{h,cc}'
rmstar2c76c2c2019-07-23 13:51:21 -070017
18 # Excluding all the tests in the directories above
19 s.exclude_files = 'src/google/**/*_test.{h,cc,inc}',
20 'src/google/**/*_unittest.{h,cc}',
21 'src/google/protobuf/test_util*.{h,cc}',
22 'src/google/protobuf/map_lite_test_util.{h,cc}',
Paul Yang32461872021-08-31 18:13:19 -070023 'src/google/protobuf/map_test_util*.{h,cc,inc}',
Paul Yangc51a8a22021-08-20 08:48:42 -070024 'src/google/protobuf/reflection_tester.{h,cc}'
rmstar2c76c2c2019-07-23 13:51:21 -070025
26 s.header_mappings_dir = 'src'
27
Thomas Van Lentend3242a12023-06-05 10:00:39 -070028 s.ios.deployment_target = '12.0'
29 s.osx.deployment_target = '10.13'
30 s.tvos.deployment_target = '12.0'
31 s.watchos.deployment_target = '6.0'
rmstar2c76c2c2019-07-23 13:51:21 -070032
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',
Niranjan Bhaskar2404ea42022-05-23 16:04:58 -040037 'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)/src"'
rmstar2c76c2c2019-07-23 13:51:21 -070038 }
39
40end