|
|
@ -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', |
|
|
|