1Pod::Spec.new do |s| 2 s.name = 'Protobuf-C++' 3 s.version = '5.29.4' 4 s.summary = 'Protocol Buffers v3 runtime library for C++.' 5 s.homepage = 'https://github.com/google/protobuf' 6 s.license = 'BSD-3-Clause' 7 s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' } 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' 12 13 s.source = { :git => 'https://github.com/google/protobuf.git', 14 :tag => "v#{s.version}" } 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}', 19 'src/google/protobuf/util/*.{h,cc}' 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}', 26 'src/google/protobuf/map_test_util*.{h,cc,inc}', 27 'src/google/protobuf/reflection_tester.{h,cc}' 28 29 s.resource_bundle = { 30 "Protobuf-C++_Privacy" => "PrivacyInfo.xcprivacy" 31 } 32 33 s.header_mappings_dir = 'src' 34 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' 39 s.visionos.deployment_target = '1.0' 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', 45 'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)/src"' 46 } 47 48end 49