diff options
author | Benny Wong <benny@bwong.net> | 2015-11-12 11:27:49 -0500 |
---|---|---|
committer | Benny Wong <benny@bwong.net> | 2015-11-12 11:27:49 -0500 |
commit | a7c6c85549ff8ee9eac408ebe1f2f5b9405a4257 (patch) | |
tree | 2621091217370138a70a1b48ee92a1291680a38f /src/objective-c/tests/RemoteTestClient/RemoteTest.podspec | |
parent | 0dd67a109af8e98276e672b6f367c3163ec4132f (diff) |
Remove unused RouteGuideClient and move RemoteTestClient to tests
* Reference discussion: https://github.com/grpc/grpc/pull/4108#discussion-diff-44494393
Diffstat (limited to 'src/objective-c/tests/RemoteTestClient/RemoteTest.podspec')
-rw-r--r-- | src/objective-c/tests/RemoteTestClient/RemoteTest.podspec | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/objective-c/tests/RemoteTestClient/RemoteTest.podspec b/src/objective-c/tests/RemoteTestClient/RemoteTest.podspec new file mode 100644 index 0000000000..8710753e59 --- /dev/null +++ b/src/objective-c/tests/RemoteTestClient/RemoteTest.podspec @@ -0,0 +1,31 @@ +Pod::Spec.new do |s| + s.name = "RemoteTest" + s.version = "0.0.1" + s.license = "New BSD" + + s.ios.deployment_target = "6.0" + s.osx.deployment_target = "10.8" + + # Run protoc with the Objective-C and gRPC plugins to generate protocol messages and gRPC clients. + s.prepare_command = <<-CMD + BINDIR=../../../../bins/$CONFIG + PROTOC=$BINDIR/protobuf/protoc + PLUGIN=$BINDIR/grpc_objective_c_plugin + $PROTOC --plugin=protoc-gen-grpc=$PLUGIN --objc_out=. --grpc_out=. *.proto + CMD + + s.subspec "Messages" do |ms| + ms.source_files = "*.pbobjc.{h,m}" + ms.header_mappings_dir = "." + ms.requires_arc = false + ms.dependency "Protobuf", "~> 3.0.0-alpha-3" + end + + s.subspec "Services" do |ss| + ss.source_files = "*.pbrpc.{h,m}" + ss.header_mappings_dir = "." + ss.requires_arc = true + ss.dependency "gRPC", "~> 0.5" + ss.dependency "#{s.name}/Messages" + end +end |