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