blob: 33ad74d2dfcf2ca132cdaa418bb2c680ceff0aea [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
3# `templates/gRPC-ProtoRPC.podspec.template` instead. This file can be
4# regenerated from the template by running
5# `tools/buildgen/generate_projects.sh`.
6
Jorge Canizalese487a722016-04-30 12:05:26 -07007# 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
Muxi Yan91bac112017-01-30 09:01:26 -080036
Jorge Canizalese487a722016-04-30 12:05:26 -070037Pod::Spec.new do |s|
38 s.name = 'gRPC-ProtoRPC'
Muxi Yaned20a692017-02-06 13:42:58 -080039 version = '1.2.0-dev'
Jorge Canizalese487a722016-04-30 12:05:26 -070040 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',
Muxi Yan690aee62017-01-27 02:52:47 +000048 :tag => "v#{version}",
Jorge Canizalese487a722016-04-30 12:05:26 -070049 }
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 Canizales72dce2d2016-07-29 15:42:00 -070064 s.dependency 'Protobuf', '~> 3.0'
Jorge Canizalese487a722016-04-30 12:05:26 -070065 s.pod_target_xcconfig = {
Jorge Canizalese4704d32016-07-18 11:08:04 -070066 # This is needed by all pods that depend on Protobuf:
Jorge Canizalese487a722016-04-30 12:05:26 -070067 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
Jorge Canizalese4704d32016-07-18 11:08:04 -070068 # This is needed by all pods that depend on gRPC-RxLibrary:
69 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
Jorge Canizalese487a722016-04-30 12:05:26 -070070 }
71end