Debian Codegraph @

templates/gRPC.podspec.template

raw
1 %YAML 1.2
2 --- |
3 # This file has been automatically generated from a template file.
4 # Please make modifications to `templates/gRPC.podspec.template`
5 # instead. This file can be regenerated from the template by running
6 # `tools/buildgen/generate_projects.sh`.
7
8 # Copyright 2015 gRPC authors.
9 #
10 # Licensed under the Apache License, Version 2.0 (the "License");
11 # you may not use this file except in compliance with the License.
12 # You may obtain a copy of the License at
13 #
14 # http://www.apache.org/licenses/LICENSE-2.0
15 #
16 # Unless required by applicable law or agreed to in writing, software
17 # distributed under the License is distributed on an "AS IS" BASIS,
18 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 # See the License for the specific language governing permissions and
20 # limitations under the License.
21
22
23 Pod::Spec.new do |s|
24 s.name = 'gRPC'
25 version = '${settings.version}'
26 s.version = version
27 s.summary = 'gRPC client library for iOS/OSX'
28 s.homepage = 'https://grpc.io'
29 s.license = 'Apache License, Version 2.0'
30 s.authors = { 'The gRPC contributors' => '[email protected]' }
31
32 s.source = {
33 :git => 'https://github.com/grpc/grpc.git',
34 :tag => "v#{version}",
35 }
36
37 name = 'GRPCClient'
38 s.module_name = name
39 s.header_dir = name
40
41 s.default_subspec = 'Interface', 'GRPCCore', 'Interface-Legacy'
42
43 s.pod_target_xcconfig = {
44 # This is needed by all pods that depend on gRPC-RxLibrary:
45 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
46 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
47 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++14',
48 }
49
50 s.ios.deployment_target = '9.0'
51 s.osx.deployment_target = '10.10'
52 s.tvos.deployment_target = '10.0'
53 s.watchos.deployment_target = '4.0'
54
55 s.subspec 'Interface-Legacy' do |ss|
56 ss.header_mappings_dir = 'src/objective-c/GRPCClient'
57
58 ss.public_header_files = "src/objective-c/GRPCClient/GRPCCall+ChannelArg.h",
59 "src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.h",
60 "src/objective-c/GRPCClient/GRPCCall+Cronet.h",
61 "src/objective-c/GRPCClient/GRPCCall+OAuth2.h",
62 "src/objective-c/GRPCClient/GRPCCall+Tests.h",
63 "src/objective-c/GRPCClient/GRPCCallLegacy.h",
64 "src/objective-c/GRPCClient/GRPCTypes.h"
65
66 ss.source_files = "src/objective-c/GRPCClient/GRPCCall+ChannelArg.h",
67 "src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.h",
68 "src/objective-c/GRPCClient/GRPCCall+Cronet.h",
69 "src/objective-c/GRPCClient/GRPCCall+OAuth2.h",
70 "src/objective-c/GRPCClient/GRPCCall+Tests.h",
71 "src/objective-c/GRPCClient/GRPCCallLegacy.h",
72 "src/objective-c/GRPCClient/GRPCTypes.h",
73 "src/objective-c/GRPCClient/GRPCTypes.m"
74 ss.dependency "gRPC-RxLibrary/Interface", version
75
76 ss.ios.deployment_target = '9.0'
77 ss.osx.deployment_target = '10.10'
78 ss.tvos.deployment_target = '10.0'
79 ss.watchos.deployment_target = '4.0'
80 end
81
82 s.subspec 'Interface' do |ss|
83 ss.header_mappings_dir = 'src/objective-c/GRPCClient'
84
85 ss.public_header_files = 'src/objective-c/GRPCClient/GRPCCall.h',
86 'src/objective-c/GRPCClient/GRPCCall+Interceptor.h',
87 'src/objective-c/GRPCClient/GRPCCallOptions.h',
88 'src/objective-c/GRPCClient/GRPCInterceptor.h',
89 'src/objective-c/GRPCClient/GRPCTransport.h',
90 'src/objective-c/GRPCClient/GRPCDispatchable.h',
91 'src/objective-c/GRPCClient/version.h'
92
93 ss.source_files = 'src/objective-c/GRPCClient/GRPCCall.h',
94 'src/objective-c/GRPCClient/GRPCCall.m',
95 'src/objective-c/GRPCClient/GRPCCall+Interceptor.h',
96 'src/objective-c/GRPCClient/GRPCCall+Interceptor.m',
97 'src/objective-c/GRPCClient/GRPCCallOptions.h',
98 'src/objective-c/GRPCClient/GRPCCallOptions.m',
99 'src/objective-c/GRPCClient/GRPCDispatchable.h',
100 'src/objective-c/GRPCClient/GRPCInterceptor.h',
101 'src/objective-c/GRPCClient/GRPCInterceptor.m',
102 'src/objective-c/GRPCClient/GRPCTransport.h',
103 'src/objective-c/GRPCClient/GRPCTransport.m',
104 'src/objective-c/GRPCClient/internal/*.h',
105 'src/objective-c/GRPCClient/private/GRPCTransport+Private.h',
106 'src/objective-c/GRPCClient/private/GRPCTransport+Private.m',
107 'src/objective-c/GRPCClient/version.h'
108
109 ss.dependency "#{s.name}/Interface-Legacy", version
110
111 ss.ios.deployment_target = '9.0'
112 ss.osx.deployment_target = '10.10'
113 ss.tvos.deployment_target = '10.0'
114 ss.watchos.deployment_target = '4.0'
115 end
116
117 s.subspec 'GRPCCore' do |ss|
118 ss.header_mappings_dir = 'src/objective-c/GRPCClient'
119
120 ss.public_header_files = 'src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.h',
121 'src/objective-c/GRPCClient/GRPCCall+Cronet.h',
122 'src/objective-c/GRPCClient/GRPCCall+OAuth2.h',
123 'src/objective-c/GRPCClient/GRPCCall+Tests.h',
124 'src/objective-c/GRPCClient/GRPCCall+ChannelArg.h'
125 ss.private_header_files = 'src/objective-c/GRPCClient/private/GRPCCore/*.h'
126 ss.source_files = 'src/objective-c/GRPCClient/private/GRPCCore/*.{h,m}',
127 'src/objective-c/GRPCClient/GRPCCall+ChannelArg.h',
128 'src/objective-c/GRPCClient/GRPCCall+ChannelArg.m',
129 'src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.h',
130 'src/objective-c/GRPCClient/GRPCCall+ChannelCredentials.m',
131 'src/objective-c/GRPCClient/GRPCCall+Cronet.h',
132 'src/objective-c/GRPCClient/GRPCCall+Cronet.m',
133 'src/objective-c/GRPCClient/GRPCCall+OAuth2.h',
134 'src/objective-c/GRPCClient/GRPCCall+OAuth2.m',
135 'src/objective-c/GRPCClient/GRPCCall+Tests.h',
136 'src/objective-c/GRPCClient/GRPCCall+Tests.m',
137 'src/objective-c/GRPCClient/GRPCCallLegacy.m'
138
139 # Certificates, to be able to establish TLS connections:
140 ss.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] }
141
142 ss.dependency "#{s.name}/Interface-Legacy", version
143 ss.dependency "#{s.name}/Interface", version
144 ss.dependency 'gRPC-Core', version
145 ss.dependency 'gRPC-RxLibrary', version
146
147 ss.ios.deployment_target = '9.0'
148 ss.osx.deployment_target = '10.10'
149 ss.tvos.deployment_target = '10.0'
150 ss.watchos.deployment_target = '4.0'
151 end
152
153 s.subspec 'GRPCCoreCronet' do |ss|
154 ss.header_mappings_dir = 'src/objective-c/GRPCClient'
155
156 ss.source_files = 'src/objective-c/GRPCClient/GRPCCall+Cronet.h',
157 'src/objective-c/GRPCClient/GRPCCall+Cronet.m',
158 'src/objective-c/GRPCClient/private/GRPCCore/GRPCCoreCronet/*.{h,m}'
159 ss.dependency "#{s.name}/GRPCCore", version
160 ss.dependency 'gRPC-Core/Cronet-Implementation', version
161 ss.dependency 'CronetFramework'
162
163 ss.ios.deployment_target = '9.0'
164 end
165
166 # CFStream is now default. Leaving this subspec only for compatibility purpose.
167 s.subspec 'CFStream' do |ss|
168 ss.dependency "#{s.name}/GRPCCore", version
169
170 ss.ios.deployment_target = '9.0'
171 ss.osx.deployment_target = '10.10'
172 ss.tvos.deployment_target = '10.0'
173 ss.watchos.deployment_target = '4.0'
174 end
175
176 s.subspec 'InternalTesting' do |ss|
177 ss.dependency "#{s.name}/GRPCCore", version
178 ss.public_header_files = 'src/objective-c/GRPCClient/internal_testing/*.h'
179 ss.source_files = 'src/objective-c/GRPCClient/internal_testing/*.{h,m}'
180 ss.header_mappings_dir = 'src/objective-c/GRPCClient'
181
182 ss.ios.deployment_target = '9.0'
183 ss.osx.deployment_target = '10.10'
184 ss.tvos.deployment_target = '10.0'
185 ss.watchos.deployment_target = '4.0'
186 end
187 end