aboutsummaryrefslogtreecommitdiffhomepage
path: root/gRPC.podspec
diff options
context:
space:
mode:
authorGravatar Michael Lumish <mlumish@google.com>2015-04-23 10:34:32 -0700
committerGravatar Michael Lumish <mlumish@google.com>2015-04-23 10:34:32 -0700
commitb6a96ff73407edf274f2ac0ae46c50e30dc148ba (patch)
treea449f102166654d0e4c9279ef12669285492d6e4 /gRPC.podspec
parentb372405cede07d64af90867d89ba95ae95d3dc05 (diff)
parent8957cae7072d3be4fcd320df06b1636e24d6de72 (diff)
Merge pull request #1354 from jcanizales/proto-grpc-runtime-upstream
Adds proto service runtime and an example of generated stub
Diffstat (limited to 'gRPC.podspec')
-rw-r--r--gRPC.podspec79
1 files changed, 49 insertions, 30 deletions
diff --git a/gRPC.podspec b/gRPC.podspec
index 562b797eaf..7f7ff88ea6 100644
--- a/gRPC.podspec
+++ b/gRPC.podspec
@@ -7,15 +7,13 @@ Pod::Spec.new do |s|
s.authors = { 'Jorge Canizales' => 'jcanizales@google.com' }
# s.source = { :git => 'https://github.com/grpc/grpc.git', :tag => 'release-0_5_0' }
- s.source_files = 'src/objective-c/GRPCClient/*.{h,m}', 'src/objective-c/GRPCClient/private/*.{h,m}'
- s.private_header_files = 'src/objective-c/GRPCClient/private/*.h'
s.platform = :ios
s.ios.deployment_target = '6.0'
s.requires_arc = true
s.subspec 'RxLibrary' do |rs|
- rs.summary = 'Reactive Extensions library for iOS'
+ rs.summary = 'Reactive Extensions library for iOS.'
rs.authors = { 'Jorge Canizales' => 'jcanizales@google.com' }
rs.source_files = 'src/objective-c/RxLibrary/*.{h,m}', 'src/objective-c/RxLibrary/transformations/*.{h,m}', 'src/objective-c/RxLibrary/private/*.{h,m}'
@@ -23,7 +21,7 @@ Pod::Spec.new do |s|
end
s.subspec 'C-Core' do |cs|
- cs.summary = 'Core gRPC library, written in C'
+ cs.summary = 'Core cross-platform gRPC library, written in C.'
cs.authors = { 'Craig Tiller' => 'ctiller@google.com',
'David Klempner' => 'klempner@google.com',
'Nicolas Noble' => 'nnoble@google.com',
@@ -38,32 +36,53 @@ Pod::Spec.new do |s|
cs.requires_arc = false
cs.libraries = 'z'
cs.dependency 'OpenSSL', '~> 1.0.200'
+
+ # This is a workaround for Cocoapods Issue #1437.
+ # It renames time.h and string.h to grpc_time.h and grpc_string.h.
+ cs.prepare_command = <<-CMD
+ DIR_TIME="grpc/support"
+ BAD_TIME="$DIR_TIME/time.h"
+ GOOD_TIME="$DIR_TIME/grpc_time.h"
+ if [ -f "include/$BAD_TIME" ];
+ then
+ grep -rl "$BAD_TIME" include/grpc src/core | xargs sed -i '' -e s@$BAD_TIME@$GOOD_TIME@g
+ mv "include/$BAD_TIME" "include/$GOOD_TIME"
+ fi
+
+ DIR_STRING="src/core/support"
+ BAD_STRING="$DIR_STRING/string.h"
+ GOOD_STRING="$DIR_STRING/grpc_string.h"
+ if [ -f "$BAD_STRING" ];
+ then
+ grep -rl "$BAD_STRING" include/grpc src/core | xargs sed -i '' -e s@$BAD_STRING@$GOOD_STRING@g
+ mv "$BAD_STRING" "$GOOD_STRING"
+ fi
+ CMD
+ end
+
+ s.subspec 'GRPCClient' do |gs|
+ gs.summary = 'Objective-C wrapper around the core gRPC library.'
+ gs.authors = { 'Jorge Canizales' => 'jcanizales@google.com' }
+
+ gs.source_files = 'src/objective-c/GRPCClient/*.{h,m}', 'src/objective-c/GRPCClient/private/*.{h,m}'
+ gs.private_header_files = 'src/objective-c/GRPCClient/private/*.h'
+
+ gs.dependency 'gRPC/C-Core'
+ # Is this needed in all dependents?
+ gs.xcconfig = { 'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/Headers/Public/gRPC/include"' }
+ gs.dependency 'gRPC/RxLibrary'
+
+ # Certificates, to be able to establish TLS connections:
+ gs.resource_bundles = { 'gRPC' => ['etc/roots.pem'] }
end
- # This is a workaround for Cocoapods Issue #1437.
- # It renames time.h and string.h to grpc_time.h and grpc_string.h.
- s.prepare_command = <<-CMD
- DIR_TIME="grpc/support"
- BAD_TIME="$DIR_TIME/time.h"
- GOOD_TIME="$DIR_TIME/grpc_time.h"
- if [ -f "include/$BAD_TIME" ];
- then
- grep -rl "$BAD_TIME" include/grpc src/core | xargs sed -i '' -e s@$BAD_TIME@$GOOD_TIME@g
- mv "include/$BAD_TIME" "include/$GOOD_TIME"
- fi
-
- DIR_STRING="src/core/support"
- BAD_STRING="$DIR_STRING/string.h"
- GOOD_STRING="$DIR_STRING/grpc_string.h"
- if [ -f "$BAD_STRING" ];
- then
- grep -rl "$BAD_STRING" include/grpc src/core | xargs sed -i '' -e s@$BAD_STRING@$GOOD_STRING@g
- mv "$BAD_STRING" "$GOOD_STRING"
- fi
- CMD
-
- s.xcconfig = { 'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/Headers/Public/gRPC/include"' }
-
- # Certificates, to be able to establish TLS connections:
- s.resource_bundles = { 'gRPC' => ['etc/roots.pem'] }
+ s.subspec 'ProtoRPC' do |ps|
+ ps.summary = 'RPC library for ProtocolBuffers, based on gRPC'
+ ps.authors = { 'Jorge Canizales' => 'jcanizales@google.com' }
+
+ ps.source_files = 'src/objective-c/ProtoRPC/*.{h,m}'
+
+ ps.dependency 'gRPC/GRPCClient'
+ ps.dependency 'gRPC/RxLibrary'
+ end
end