CFStream podspec

pull/15069/head
Muxi Yan 7 years ago
parent 88acb283fc
commit 08876dadce
  1. 22
      gRPC-ProtoRPC.podspec
  2. 2
      gRPC.podspec
  3. 22
      templates/gRPC-ProtoRPC.podspec.template
  4. 2
      templates/gRPC.podspec.template

@ -41,12 +41,24 @@ Pod::Spec.new do |s|
s.header_dir = name s.header_dir = name
src_dir = 'src/objective-c/ProtoRPC' src_dir = 'src/objective-c/ProtoRPC'
s.source_files = "#{src_dir}/*.{h,m}"
s.header_mappings_dir = "#{src_dir}"
s.dependency 'gRPC', version
s.dependency 'gRPC-RxLibrary', version s.subspec 'Main' do |ss|
s.dependency 'Protobuf', '~> 3.0' ss.header_mappings_dir = "#{src_dir}"
ss.dependency 'gRPC', version
ss.dependency 'gRPC-RxLibrary', version
ss.dependency 'Protobuf', '~> 3.0'
ss.source_files = "#{src_dir}/*.{h,m}"
end
s.subspec 'CFStream' do |ss|
ss.dependency 'gRPC/CFStream', version
ss.dependency "#{s.name}/Main", version
ss.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => 'GRPC_CFSTREAM=1'
}
end
s.pod_target_xcconfig = { s.pod_target_xcconfig = {
# This is needed by all pods that depend on Protobuf: # This is needed by all pods that depend on Protobuf:
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1', 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',

@ -63,8 +63,8 @@ Pod::Spec.new do |s|
ss.dependency 'gRPC-Core', version ss.dependency 'gRPC-Core', version
end end
# This subspec is mutually exclusive with the `Main` subspec
s.subspec 'CFStream' do |ss| s.subspec 'CFStream' do |ss|
ss.header_mappings_dir = "#{src_dir}"
ss.dependency 'gRPC-Core/CFStream-Implementation', version ss.dependency 'gRPC-Core/CFStream-Implementation', version
ss.dependency "#{s.name}/Main", version ss.dependency "#{s.name}/Main", version

@ -43,12 +43,24 @@
s.header_dir = name s.header_dir = name
src_dir = 'src/objective-c/ProtoRPC' src_dir = 'src/objective-c/ProtoRPC'
s.source_files = "#{src_dir}/*.{h,m}"
s.header_mappings_dir = "#{src_dir}"
s.dependency 'gRPC', version
s.dependency 'gRPC-RxLibrary', version s.subspec 'Main' do |ss|
s.dependency 'Protobuf', '~> 3.0' ss.header_mappings_dir = "#{src_dir}"
ss.dependency 'gRPC', version
ss.dependency 'gRPC-RxLibrary', version
ss.dependency 'Protobuf', '~> 3.0'
ss.source_files = "#{src_dir}/*.{h,m}"
end
s.subspec 'CFStream' do |ss|
ss.dependency 'gRPC/CFStream', version
ss.dependency "#{s.name}/Main", version
ss.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => 'GRPC_CFSTREAM=1'
}
end
s.pod_target_xcconfig = { s.pod_target_xcconfig = {
# This is needed by all pods that depend on Protobuf: # This is needed by all pods that depend on Protobuf:
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1', 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',

@ -65,8 +65,8 @@
ss.dependency 'gRPC-Core', version ss.dependency 'gRPC-Core', version
end end
# This subspec is mutually exclusive with the `Main` subspec
s.subspec 'CFStream' do |ss| s.subspec 'CFStream' do |ss|
ss.header_mappings_dir = "#{src_dir}"
ss.dependency 'gRPC-Core/CFStream-Implementation', version ss.dependency 'gRPC-Core/CFStream-Implementation', version
ss.dependency "#{s.name}/Main", version ss.dependency "#{s.name}/Main", version

Loading…
Cancel
Save