rmstar | 2c76c2c | 2019-07-23 13:51:21 -0700 | [diff] [blame] | 1 | Pod::Spec.new do |s| |
| 2 | s.name = 'Protobuf-C++' |
Mike Kruskal | 95877d8 | 2024-04-18 10:40:11 -0700 | [diff] [blame] | 3 | s.version = '5.28.0' |
rmstar | 2c76c2c | 2019-07-23 13:51:21 -0700 | [diff] [blame] | 4 | s.summary = 'Protocol Buffers v3 runtime library for C++.' |
| 5 | s.homepage = 'https://github.com/google/protobuf' |
Maximilian | 82372d8 | 2022-01-27 01:23:14 +0100 | [diff] [blame] | 6 | s.license = 'BSD-3-Clause' |
rmstar | 2c76c2c | 2019-07-23 13:51:21 -0700 | [diff] [blame] | 7 | s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' } |
Thomas Van Lenten | 982ea24 | 2024-01-29 11:12:10 -0800 | [diff] [blame] | 8 | |
| 9 | # Ensure developers won't hit CocoaPods/CocoaPods#11402 with the resource |
| 10 | # bundle for the privacy manifest. |
| 11 | s.cocoapods_version = '>= 1.12.0' |
rmstar | 2c76c2c | 2019-07-23 13:51:21 -0700 | [diff] [blame] | 12 | |
| 13 | s.source = { :git => 'https://github.com/google/protobuf.git', |
Deanna Garcia | 942cec0 | 2022-05-20 21:43:48 +0000 | [diff] [blame] | 14 | :tag => "v#{s.version}" } |
rmstar | 2c76c2c | 2019-07-23 13:51:21 -0700 | [diff] [blame] | 15 | |
| 16 | s.source_files = 'src/google/protobuf/*.{h,cc,inc}', |
| 17 | 'src/google/protobuf/stubs/*.{h,cc}', |
| 18 | 'src/google/protobuf/io/*.{h,cc}', |
Mike Kruskal | 32bea52 | 2022-10-06 16:48:39 -0700 | [diff] [blame] | 19 | 'src/google/protobuf/util/*.{h,cc}' |
rmstar | 2c76c2c | 2019-07-23 13:51:21 -0700 | [diff] [blame] | 20 | |
| 21 | # Excluding all the tests in the directories above |
| 22 | s.exclude_files = 'src/google/**/*_test.{h,cc,inc}', |
| 23 | 'src/google/**/*_unittest.{h,cc}', |
| 24 | 'src/google/protobuf/test_util*.{h,cc}', |
| 25 | 'src/google/protobuf/map_lite_test_util.{h,cc}', |
Paul Yang | 3246187 | 2021-08-31 18:13:19 -0700 | [diff] [blame] | 26 | 'src/google/protobuf/map_test_util*.{h,cc,inc}', |
Paul Yang | c51a8a2 | 2021-08-20 08:48:42 -0700 | [diff] [blame] | 27 | 'src/google/protobuf/reflection_tester.{h,cc}' |
rmstar | 2c76c2c | 2019-07-23 13:51:21 -0700 | [diff] [blame] | 28 | |
Thomas Van Lenten | 982ea24 | 2024-01-29 11:12:10 -0800 | [diff] [blame] | 29 | s.resource_bundle = { |
| 30 | "Protobuf-C++_Privacy" => "PrivacyInfo.xcprivacy" |
| 31 | } |
| 32 | |
rmstar | 2c76c2c | 2019-07-23 13:51:21 -0700 | [diff] [blame] | 33 | s.header_mappings_dir = 'src' |
| 34 | |
Thomas Van Lenten | d3242a1 | 2023-06-05 10:00:39 -0700 | [diff] [blame] | 35 | s.ios.deployment_target = '12.0' |
| 36 | s.osx.deployment_target = '10.13' |
| 37 | s.tvos.deployment_target = '12.0' |
| 38 | s.watchos.deployment_target = '6.0' |
YoloMao | 8afaae5 | 2024-02-22 19:23:32 -0800 | [diff] [blame] | 39 | s.visionos.deployment_target = '1.0' |
rmstar | 2c76c2c | 2019-07-23 13:51:21 -0700 | [diff] [blame] | 40 | |
| 41 | s.pod_target_xcconfig = { |
| 42 | # Do not let src/google/protobuf/stubs/time.h override system API |
| 43 | 'USE_HEADERMAP' => 'NO', |
| 44 | 'ALWAYS_SEARCH_USER_PATHS' => 'NO', |
Niranjan Bhaskar | 2404ea4 | 2022-05-23 16:04:58 -0400 | [diff] [blame] | 45 | 'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)/src"' |
rmstar | 2c76c2c | 2019-07-23 13:51:21 -0700 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | end |