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