blob: 109e0e08c1c270c54f7d3393c8d211f7c288df4a [file] [log] [blame]
Muxi Yan27e9db42017-01-30 09:21:05 -08001# This file has been automatically generated from a template file.
2# Please make modifications to `templates/gRPC.podspec.template`
3# instead. This file can be regenerated from the template by running
4# `tools/buildgen/generate_projects.sh`.
5
murgatroid99f680af02015-06-22 11:20:24 -07006# Copyright 2015, Google Inc.
7# All rights reserved.
8#
9# Redistribution and use in source and binary forms, with or without
10# modification, are permitted provided that the following conditions are
11# met:
12#
13# * Redistributions of source code must retain the above copyright
14# notice, this list of conditions and the following disclaimer.
15# * Redistributions in binary form must reproduce the above
16# copyright notice, this list of conditions and the following disclaimer
17# in the documentation and/or other materials provided with the
18# distribution.
19# * Neither the name of Google Inc. nor the names of its
20# contributors may be used to endorse or promote products derived from
21# this software without specific prior written permission.
22#
23# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
murgatroid99f398d5c2015-06-16 14:07:36 -070035
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080036Pod::Spec.new do |s|
37 s.name = 'gRPC'
David Garcia Quintas904e7f52017-03-09 15:02:19 -080038 version = '1.2.0-pre1'
Jorge Canizalesc825f422015-09-28 21:43:48 -070039 s.version = version
Jorge Canizales043dc722015-06-02 15:15:07 -070040 s.summary = 'gRPC client library for iOS/OSX'
41 s.homepage = 'http://www.grpc.io'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080042 s.license = 'New BSD'
Jorge Canizales043dc722015-06-02 15:15:07 -070043 s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080044
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020045 s.source = {
46 :git => 'https://github.com/grpc/grpc.git',
Muxi Yan690aee62017-01-27 02:52:47 +000047 :tag => "v#{version}",
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020048 }
Nicolas "Pixel" Noblecff64692015-10-03 02:01:51 +020049
Muxi Yan37d3fba2017-02-28 16:14:40 -080050 s.ios.deployment_target = '7.0'
Craig Tillerba496452015-09-21 17:15:19 -070051 s.osx.deployment_target = '10.9'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080052
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020053 name = 'GRPCClient'
54 s.module_name = name
55 s.header_dir = name
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -070056
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020057 src_dir = 'src/objective-c/GRPCClient'
58 s.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
59 s.private_header_files = "#{src_dir}/private/*.h"
60 s.header_mappings_dir = "#{src_dir}"
Jorge Canizales045fabb2015-04-21 11:39:37 -070061
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020062 s.dependency 'gRPC-Core', version
63 s.dependency 'gRPC-RxLibrary', version
Craig Tillereb327fb2015-06-23 16:51:38 -070064
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020065 # Certificates, to be able to establish TLS connections:
66 s.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] }
Jorge Canizalese4704d32016-07-18 11:08:04 -070067
68 s.pod_target_xcconfig = {
69 # This is needed by all pods that depend on gRPC-RxLibrary:
70 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
71 }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080072end