blob: e8b770944911cd43b37cc33c65ec875151b85ef7 [file] [log] [blame]
murgatroid99f680af02015-06-22 11:20:24 -07001# Copyright 2015, Google Inc.
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met:
7#
8# * Redistributions of source code must retain the above copyright
9# notice, this list of conditions and the following disclaimer.
10# * Redistributions in binary form must reproduce the above
11# copyright notice, this list of conditions and the following disclaimer
12# in the documentation and/or other materials provided with the
13# distribution.
14# * Neither the name of Google Inc. nor the names of its
15# contributors may be used to endorse or promote products derived from
16# this software without specific prior written permission.
17#
18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
murgatroid99f398d5c2015-06-16 14:07:36 -070030
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080031Pod::Spec.new do |s|
32 s.name = 'gRPC'
Muxi Yana7f03f62016-11-28 11:29:19 -080033 version = '1.0.2'
Jorge Canizalesc825f422015-09-28 21:43:48 -070034 s.version = version
Jorge Canizales043dc722015-06-02 15:15:07 -070035 s.summary = 'gRPC client library for iOS/OSX'
36 s.homepage = 'http://www.grpc.io'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080037 s.license = 'New BSD'
Jorge Canizales043dc722015-06-02 15:15:07 -070038 s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080039
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020040 s.source = {
41 :git => 'https://github.com/grpc/grpc.git',
Muxi Yande30b0a2016-11-28 12:03:07 -080042 :tag => "objective-c-v#{version}",
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020043 }
Nicolas "Pixel" Noblecff64692015-10-03 02:01:51 +020044
Craig Tillerba496452015-09-21 17:15:19 -070045 s.ios.deployment_target = '7.1'
46 s.osx.deployment_target = '10.9'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080047
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020048 name = 'GRPCClient'
49 s.module_name = name
50 s.header_dir = name
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -070051
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020052 src_dir = 'src/objective-c/GRPCClient'
53 s.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
54 s.private_header_files = "#{src_dir}/private/*.h"
55 s.header_mappings_dir = "#{src_dir}"
Jorge Canizales045fabb2015-04-21 11:39:37 -070056
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020057 s.dependency 'gRPC-Core', version
58 s.dependency 'gRPC-RxLibrary', version
Craig Tillereb327fb2015-06-23 16:51:38 -070059
Nicolas "Pixel" Noble4150e9e2016-07-12 19:18:56 +020060 # Certificates, to be able to establish TLS connections:
61 s.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] }
Jorge Canizalese4704d32016-07-18 11:08:04 -070062
63 s.pod_target_xcconfig = {
64 # This is needed by all pods that depend on gRPC-RxLibrary:
65 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
66 }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080067end