Imported Upstream version 1.18.0
[platform/upstream/grpc.git] / gRPC-ProtoRPC.podspec
1 # 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
7 # Copyright 2015 gRPC authors.
8 #
9 # Licensed under the Apache License, Version 2.0 (the "License");
10 # you may not use this file except in compliance with the License.
11 # You may obtain a copy of the License at
12 #
13 #     http://www.apache.org/licenses/LICENSE-2.0
14 #
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
20
21
22 Pod::Spec.new do |s|
23   s.name     = 'gRPC-ProtoRPC'
24   version = '1.18.0'
25   s.version  = version
26   s.summary  = 'RPC library for Protocol Buffers, based on gRPC'
27   s.homepage = 'https://grpc.io'
28   s.license  = 'Apache License, Version 2.0'
29   s.authors  = { 'The gRPC contributors' => 'grpc-packages@google.com' }
30
31   s.source = {
32     :git => 'https://github.com/grpc/grpc.git',
33     :tag => "v#{version}",
34   }
35
36   s.ios.deployment_target = '7.0'
37   s.osx.deployment_target = '10.9'
38
39   name = 'ProtoRPC'
40   s.module_name = name
41   s.header_dir = name
42
43   src_dir = 'src/objective-c/ProtoRPC'
44
45   s.default_subspec = 'Main'
46
47   s.subspec 'Main' do |ss|
48     ss.header_mappings_dir = "#{src_dir}"
49     ss.dependency 'gRPC', version
50     ss.dependency 'gRPC-RxLibrary', version
51     ss.dependency 'Protobuf', '~> 3.0'
52
53     ss.source_files = "#{src_dir}/*.{h,m}"
54   end
55   s.subspec 'CFStream' do |ss|
56     ss.dependency 'gRPC/CFStream', version
57     ss.dependency "#{s.name}/Main", version
58     ss.pod_target_xcconfig = {
59       'GCC_PREPROCESSOR_DEFINITIONS' => 'GRPC_CFSTREAM=1'
60     }
61   end
62
63   s.pod_target_xcconfig = {
64     # This is needed by all pods that depend on Protobuf:
65     'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
66     # This is needed by all pods that depend on gRPC-RxLibrary:
67     'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
68     'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
69   }
70 end