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