Jorge Canizales | e487a72 | 2016-04-30 12:05:26 -0700 | [diff] [blame] | 1 | # GRPC CocoaPods podspec |
| 2 | # This file has been automatically generated from a template file. |
| 3 | # Please look at the templates directory instead. |
| 4 | # This file can be regenerated from the template by running |
| 5 | # tools/buildgen/generate_projects.sh |
| 6 | |
| 7 | # Copyright 2015, Google Inc. |
| 8 | # All rights reserved. |
| 9 | # |
| 10 | # Redistribution and use in source and binary forms, with or without |
| 11 | # modification, are permitted provided that the following conditions are |
| 12 | # met: |
| 13 | # |
| 14 | # * Redistributions of source code must retain the above copyright |
| 15 | # notice, this list of conditions and the following disclaimer. |
| 16 | # * Redistributions in binary form must reproduce the above |
| 17 | # copyright notice, this list of conditions and the following disclaimer |
| 18 | # in the documentation and/or other materials provided with the |
| 19 | # distribution. |
| 20 | # * Neither the name of Google Inc. nor the names of its |
| 21 | # contributors may be used to endorse or promote products derived from |
| 22 | # this software without specific prior written permission. |
| 23 | # |
| 24 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 25 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 26 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 27 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 28 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 29 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 30 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 31 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 32 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 33 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 34 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 35 | |
| 36 | |
| 37 | Pod::Spec.new do |s| |
| 38 | s.name = 'gRPC-ProtoRPC' |
Jorge Canizales | f8c4580 | 2016-07-18 17:51:31 -0700 | [diff] [blame] | 39 | version = '1.0.0-pre1' |
Jorge Canizales | e487a72 | 2016-04-30 12:05:26 -0700 | [diff] [blame] | 40 | s.version = version |
| 41 | s.summary = 'RPC library for Protocol Buffers, based on gRPC' |
| 42 | s.homepage = 'http://www.grpc.io' |
| 43 | s.license = 'New BSD' |
| 44 | s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' } |
| 45 | |
| 46 | s.source = { |
| 47 | :git => 'https://github.com/grpc/grpc.git', |
Jorge Canizales | f8c4580 | 2016-07-18 17:51:31 -0700 | [diff] [blame] | 48 | :tag => "objective-c-v#{version}", |
Jorge Canizales | e487a72 | 2016-04-30 12:05:26 -0700 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | s.ios.deployment_target = '7.1' |
| 52 | s.osx.deployment_target = '10.9' |
| 53 | |
| 54 | name = 'ProtoRPC' |
| 55 | s.module_name = name |
| 56 | s.header_dir = name |
| 57 | |
| 58 | src_dir = 'src/objective-c/ProtoRPC' |
| 59 | s.source_files = "#{src_dir}/*.{h,m}" |
| 60 | s.header_mappings_dir = "#{src_dir}" |
| 61 | |
| 62 | s.dependency 'gRPC', version |
| 63 | s.dependency 'gRPC-RxLibrary', version |
Jorge Canizales | 72dce2d | 2016-07-29 15:42:00 -0700 | [diff] [blame^] | 64 | s.dependency 'Protobuf', '~> 3.0' |
Jorge Canizales | e487a72 | 2016-04-30 12:05:26 -0700 | [diff] [blame] | 65 | # This is needed by all pods that depend on Protobuf: |
| 66 | s.pod_target_xcconfig = { |
| 67 | 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1', |
| 68 | } |
| 69 | end |