blob: 6574c1fdc7cae72f07bd1fedc13faceff8c037a3 [file] [log] [blame]
murgatroid99f680af02015-06-22 11:20:24 -07001# GRPC CocoaPods podspec
2# This file has been automatically generated from a template file.
3# Please look at the templates directory instead.
4# This file can be regenerated from the template by running
5# tools/buildgen/generate_projects.sh
6
7# 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
murgatroid99f398d5c2015-06-16 14:07:36 -070036
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080037Pod::Spec.new do |s|
38 s.name = 'gRPC'
Jorge Canizalescbf50c82015-06-13 01:34:44 -070039 s.version = '0.6.0'
Jorge Canizales043dc722015-06-02 15:15:07 -070040 s.summary = 'gRPC client library for iOS/OSX'
41 s.homepage = 'http://www.grpc.io'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080042 s.license = 'New BSD'
Jorge Canizales043dc722015-06-02 15:15:07 -070043 s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080044
Jorge Canizales043dc722015-06-02 15:15:07 -070045 # s.source = { :git => 'https://github.com/grpc/grpc.git',
46 # :tag => 'release-0_9_1-objectivec-0.5.1' }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080047
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080048 s.ios.deployment_target = '6.0'
Vince Gatto167b9722015-05-12 15:33:49 -070049 s.osx.deployment_target = '10.8'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080050 s.requires_arc = true
51
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -070052 objc_dir = 'src/objective-c'
53
Jorge Canizales461b0942015-06-02 20:40:50 -070054 # Reactive Extensions library for iOS.
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -070055 s.subspec 'RxLibrary' do |ss|
56 src_dir = "#{objc_dir}/RxLibrary"
57 ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
58 ss.private_header_files = "#{src_dir}/private/*.h"
59 ss.header_mappings_dir = "#{objc_dir}"
Jorge Canizales045fabb2015-04-21 11:39:37 -070060 end
61
Jorge Canizales461b0942015-06-02 20:40:50 -070062 # Core cross-platform gRPC library, written in C.
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -070063 s.subspec 'C-Core' do |ss|
Craig Tiller9f903da2015-06-24 08:59:27 -070064 ss.source_files = 'src/core/support/env.h',
Craig Tillereb327fb2015-06-23 16:51:38 -070065 'src/core/support/file.h',
66 'src/core/support/murmur_hash.h',
67 'src/core/support/grpc_string.h',
68 'src/core/support/string_win32.h',
69 'src/core/support/thd_internal.h',
Craig Tillere2288fc2015-06-23 18:32:26 -070070 'grpc/support/alloc.h',
71 'grpc/support/atm.h',
72 'grpc/support/atm_gcc_atomic.h',
73 'grpc/support/atm_gcc_sync.h',
74 'grpc/support/atm_win32.h',
75 'grpc/support/cancellable_platform.h',
76 'grpc/support/cmdline.h',
77 'grpc/support/cpu.h',
78 'grpc/support/histogram.h',
79 'grpc/support/host_port.h',
80 'grpc/support/log.h',
81 'grpc/support/log_win32.h',
82 'grpc/support/port_platform.h',
83 'grpc/support/slice.h',
84 'grpc/support/slice_buffer.h',
85 'grpc/support/string_util.h',
86 'grpc/support/subprocess.h',
87 'grpc/support/sync.h',
88 'grpc/support/sync_generic.h',
89 'grpc/support/sync_posix.h',
90 'grpc/support/sync_win32.h',
91 'grpc/support/thd.h',
92 'grpc/support/grpc_time.h',
93 'grpc/support/tls.h',
94 'grpc/support/tls_gcc.h',
95 'grpc/support/tls_msvc.h',
96 'grpc/support/tls_pthread.h',
97 'grpc/support/useful.h',
Craig Tillereb327fb2015-06-23 16:51:38 -070098 'src/core/support/alloc.c',
99 'src/core/support/cancellable.c',
100 'src/core/support/cmdline.c',
101 'src/core/support/cpu_iphone.c',
102 'src/core/support/cpu_linux.c',
103 'src/core/support/cpu_posix.c',
104 'src/core/support/cpu_windows.c',
105 'src/core/support/env_linux.c',
106 'src/core/support/env_posix.c',
107 'src/core/support/env_win32.c',
108 'src/core/support/file.c',
109 'src/core/support/file_posix.c',
110 'src/core/support/file_win32.c',
111 'src/core/support/histogram.c',
112 'src/core/support/host_port.c',
113 'src/core/support/log.c',
114 'src/core/support/log_android.c',
115 'src/core/support/log_linux.c',
116 'src/core/support/log_posix.c',
117 'src/core/support/log_win32.c',
118 'src/core/support/murmur_hash.c',
119 'src/core/support/slice.c',
120 'src/core/support/slice_buffer.c',
121 'src/core/support/string.c',
122 'src/core/support/string_posix.c',
123 'src/core/support/string_win32.c',
124 'src/core/support/subprocess_posix.c',
125 'src/core/support/sync.c',
126 'src/core/support/sync_posix.c',
127 'src/core/support/sync_win32.c',
128 'src/core/support/thd.c',
129 'src/core/support/thd_posix.c',
130 'src/core/support/thd_win32.c',
131 'src/core/support/time.c',
132 'src/core/support/time_posix.c',
133 'src/core/support/time_win32.c',
134 'src/core/support/tls_pthread.c',
135 'src/core/httpcli/format_request.h',
136 'src/core/httpcli/httpcli.h',
137 'src/core/httpcli/httpcli_security_connector.h',
138 'src/core/httpcli/parser.h',
139 'src/core/security/auth_filters.h',
140 'src/core/security/base64.h',
141 'src/core/security/credentials.h',
142 'src/core/security/json_token.h',
143 'src/core/security/secure_endpoint.h',
144 'src/core/security/secure_transport_setup.h',
145 'src/core/security/security_connector.h',
146 'src/core/security/security_context.h',
147 'src/core/tsi/fake_transport_security.h',
148 'src/core/tsi/ssl_transport_security.h',
149 'src/core/tsi/transport_security.h',
150 'src/core/tsi/transport_security_interface.h',
151 'src/core/census/grpc_context.h',
152 'src/core/channel/census_filter.h',
153 'src/core/channel/channel_args.h',
154 'src/core/channel/channel_stack.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700155 'src/core/channel/client_channel.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700156 'src/core/channel/connected_channel.h',
157 'src/core/channel/context.h',
158 'src/core/channel/http_client_filter.h',
159 'src/core/channel/http_server_filter.h',
160 'src/core/channel/noop_filter.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700161 'src/core/client_config/client_config.h',
162 'src/core/client_config/lb_policies/pick_first.h',
163 'src/core/client_config/lb_policy.h',
164 'src/core/client_config/resolver.h',
165 'src/core/client_config/resolver_factory.h',
166 'src/core/client_config/resolver_registry.h',
167 'src/core/client_config/resolvers/dns_resolver.h',
168 'src/core/client_config/subchannel.h',
169 'src/core/client_config/subchannel_factory.h',
170 'src/core/client_config/uri_parser.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700171 'src/core/compression/message_compress.h',
172 'src/core/debug/trace.h',
173 'src/core/iomgr/alarm.h',
174 'src/core/iomgr/alarm_heap.h',
175 'src/core/iomgr/alarm_internal.h',
176 'src/core/iomgr/endpoint.h',
177 'src/core/iomgr/endpoint_pair.h',
178 'src/core/iomgr/fd_posix.h',
179 'src/core/iomgr/iocp_windows.h',
180 'src/core/iomgr/iomgr.h',
181 'src/core/iomgr/iomgr_internal.h',
182 'src/core/iomgr/iomgr_posix.h',
183 'src/core/iomgr/pollset.h',
184 'src/core/iomgr/pollset_kick_posix.h',
185 'src/core/iomgr/pollset_posix.h',
186 'src/core/iomgr/pollset_set.h',
187 'src/core/iomgr/pollset_set_posix.h',
188 'src/core/iomgr/pollset_set_windows.h',
189 'src/core/iomgr/pollset_windows.h',
190 'src/core/iomgr/resolve_address.h',
191 'src/core/iomgr/sockaddr.h',
192 'src/core/iomgr/sockaddr_posix.h',
193 'src/core/iomgr/sockaddr_utils.h',
194 'src/core/iomgr/sockaddr_win32.h',
195 'src/core/iomgr/socket_utils_posix.h',
196 'src/core/iomgr/socket_windows.h',
197 'src/core/iomgr/tcp_client.h',
198 'src/core/iomgr/tcp_posix.h',
199 'src/core/iomgr/tcp_server.h',
200 'src/core/iomgr/tcp_windows.h',
201 'src/core/iomgr/time_averaged_stats.h',
202 'src/core/iomgr/wakeup_fd_pipe.h',
203 'src/core/iomgr/wakeup_fd_posix.h',
204 'src/core/json/json.h',
205 'src/core/json/json_common.h',
206 'src/core/json/json_reader.h',
207 'src/core/json/json_writer.h',
208 'src/core/profiling/timers.h',
209 'src/core/profiling/timers_preciseclock.h',
210 'src/core/surface/byte_buffer_queue.h',
211 'src/core/surface/call.h',
212 'src/core/surface/channel.h',
213 'src/core/surface/client.h',
214 'src/core/surface/completion_queue.h',
215 'src/core/surface/event_string.h',
216 'src/core/surface/init.h',
217 'src/core/surface/server.h',
218 'src/core/surface/surface_trace.h',
219 'src/core/transport/chttp2/alpn.h',
220 'src/core/transport/chttp2/bin_encoder.h',
221 'src/core/transport/chttp2/frame.h',
222 'src/core/transport/chttp2/frame_data.h',
223 'src/core/transport/chttp2/frame_goaway.h',
224 'src/core/transport/chttp2/frame_ping.h',
225 'src/core/transport/chttp2/frame_rst_stream.h',
226 'src/core/transport/chttp2/frame_settings.h',
227 'src/core/transport/chttp2/frame_window_update.h',
228 'src/core/transport/chttp2/hpack_parser.h',
229 'src/core/transport/chttp2/hpack_table.h',
230 'src/core/transport/chttp2/http2_errors.h',
231 'src/core/transport/chttp2/huffsyms.h',
232 'src/core/transport/chttp2/status_conversion.h',
233 'src/core/transport/chttp2/stream_encoder.h',
234 'src/core/transport/chttp2/stream_map.h',
235 'src/core/transport/chttp2/timeout_encoding.h',
236 'src/core/transport/chttp2/varint.h',
237 'src/core/transport/chttp2_transport.h',
238 'src/core/transport/metadata.h',
239 'src/core/transport/stream_op.h',
240 'src/core/transport/transport.h',
241 'src/core/transport/transport_impl.h',
242 'src/core/census/context.h',
Craig Tillere2288fc2015-06-23 18:32:26 -0700243 'grpc/grpc_security.h',
244 'grpc/byte_buffer.h',
245 'grpc/byte_buffer_reader.h',
246 'grpc/compression.h',
247 'grpc/grpc.h',
248 'grpc/status.h',
249 'grpc/census.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700250 'src/core/httpcli/format_request.c',
251 'src/core/httpcli/httpcli.c',
252 'src/core/httpcli/httpcli_security_connector.c',
253 'src/core/httpcli/parser.c',
254 'src/core/security/base64.c',
255 'src/core/security/client_auth_filter.c',
256 'src/core/security/credentials.c',
257 'src/core/security/credentials_metadata.c',
258 'src/core/security/credentials_posix.c',
259 'src/core/security/credentials_win32.c',
260 'src/core/security/google_default_credentials.c',
261 'src/core/security/json_token.c',
262 'src/core/security/secure_endpoint.c',
263 'src/core/security/secure_transport_setup.c',
264 'src/core/security/security_connector.c',
265 'src/core/security/security_context.c',
266 'src/core/security/server_auth_filter.c',
267 'src/core/security/server_secure_chttp2.c',
268 'src/core/surface/init_secure.c',
269 'src/core/surface/secure_channel_create.c',
270 'src/core/tsi/fake_transport_security.c',
271 'src/core/tsi/ssl_transport_security.c',
272 'src/core/tsi/transport_security.c',
273 'src/core/census/grpc_context.c',
274 'src/core/channel/channel_args.c',
275 'src/core/channel/channel_stack.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700276 'src/core/channel/client_channel.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700277 'src/core/channel/connected_channel.c',
278 'src/core/channel/http_client_filter.c',
279 'src/core/channel/http_server_filter.c',
280 'src/core/channel/noop_filter.c',
Craig Tiller4b628112015-06-25 08:58:23 -0700281 'src/core/client_config/client_config.c',
282 'src/core/client_config/lb_policies/pick_first.c',
283 'src/core/client_config/lb_policy.c',
284 'src/core/client_config/resolver.c',
285 'src/core/client_config/resolver_factory.c',
286 'src/core/client_config/resolver_registry.c',
287 'src/core/client_config/resolvers/dns_resolver.c',
288 'src/core/client_config/subchannel.c',
289 'src/core/client_config/subchannel_factory.c',
290 'src/core/client_config/uri_parser.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700291 'src/core/compression/algorithm.c',
292 'src/core/compression/message_compress.c',
293 'src/core/debug/trace.c',
294 'src/core/iomgr/alarm.c',
295 'src/core/iomgr/alarm_heap.c',
296 'src/core/iomgr/endpoint.c',
297 'src/core/iomgr/endpoint_pair_posix.c',
298 'src/core/iomgr/endpoint_pair_windows.c',
299 'src/core/iomgr/fd_posix.c',
300 'src/core/iomgr/iocp_windows.c',
301 'src/core/iomgr/iomgr.c',
302 'src/core/iomgr/iomgr_posix.c',
303 'src/core/iomgr/iomgr_windows.c',
304 'src/core/iomgr/pollset_kick_posix.c',
305 'src/core/iomgr/pollset_multipoller_with_epoll.c',
306 'src/core/iomgr/pollset_multipoller_with_poll_posix.c',
307 'src/core/iomgr/pollset_posix.c',
308 'src/core/iomgr/pollset_set_posix.c',
309 'src/core/iomgr/pollset_set_windows.c',
310 'src/core/iomgr/pollset_windows.c',
311 'src/core/iomgr/resolve_address_posix.c',
312 'src/core/iomgr/resolve_address_windows.c',
313 'src/core/iomgr/sockaddr_utils.c',
314 'src/core/iomgr/socket_utils_common_posix.c',
315 'src/core/iomgr/socket_utils_linux.c',
316 'src/core/iomgr/socket_utils_posix.c',
317 'src/core/iomgr/socket_windows.c',
318 'src/core/iomgr/tcp_client_posix.c',
319 'src/core/iomgr/tcp_client_windows.c',
320 'src/core/iomgr/tcp_posix.c',
321 'src/core/iomgr/tcp_server_posix.c',
322 'src/core/iomgr/tcp_server_windows.c',
323 'src/core/iomgr/tcp_windows.c',
324 'src/core/iomgr/time_averaged_stats.c',
325 'src/core/iomgr/wakeup_fd_eventfd.c',
326 'src/core/iomgr/wakeup_fd_nospecial.c',
327 'src/core/iomgr/wakeup_fd_pipe.c',
328 'src/core/iomgr/wakeup_fd_posix.c',
329 'src/core/json/json.c',
330 'src/core/json/json_reader.c',
331 'src/core/json/json_string.c',
332 'src/core/json/json_writer.c',
333 'src/core/profiling/basic_timers.c',
334 'src/core/profiling/stap_timers.c',
335 'src/core/surface/byte_buffer.c',
336 'src/core/surface/byte_buffer_queue.c',
337 'src/core/surface/byte_buffer_reader.c',
338 'src/core/surface/call.c',
339 'src/core/surface/call_details.c',
340 'src/core/surface/call_log_batch.c',
341 'src/core/surface/channel.c',
342 'src/core/surface/channel_create.c',
343 'src/core/surface/client.c',
344 'src/core/surface/completion_queue.c',
345 'src/core/surface/event_string.c',
346 'src/core/surface/init.c',
347 'src/core/surface/lame_client.c',
348 'src/core/surface/metadata_array.c',
349 'src/core/surface/server.c',
350 'src/core/surface/server_chttp2.c',
351 'src/core/surface/server_create.c',
352 'src/core/surface/surface_trace.c',
353 'src/core/transport/chttp2/alpn.c',
354 'src/core/transport/chttp2/bin_encoder.c',
355 'src/core/transport/chttp2/frame_data.c',
356 'src/core/transport/chttp2/frame_goaway.c',
357 'src/core/transport/chttp2/frame_ping.c',
358 'src/core/transport/chttp2/frame_rst_stream.c',
359 'src/core/transport/chttp2/frame_settings.c',
360 'src/core/transport/chttp2/frame_window_update.c',
361 'src/core/transport/chttp2/hpack_parser.c',
362 'src/core/transport/chttp2/hpack_table.c',
363 'src/core/transport/chttp2/huffsyms.c',
364 'src/core/transport/chttp2/status_conversion.c',
365 'src/core/transport/chttp2/stream_encoder.c',
366 'src/core/transport/chttp2/stream_map.c',
367 'src/core/transport/chttp2/timeout_encoding.c',
368 'src/core/transport/chttp2/varint.c',
369 'src/core/transport/chttp2_transport.c',
370 'src/core/transport/metadata.c',
371 'src/core/transport/stream_op.c',
372 'src/core/transport/transport.c',
373 'src/core/transport/transport_op_string.c',
374 'src/core/census/context.c',
375 'src/core/census/initialize.c'
376
Craig Tiller9f903da2015-06-24 08:59:27 -0700377 ss.private_header_files = 'src/core/support/env.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700378 'src/core/support/file.h',
379 'src/core/support/murmur_hash.h',
380 'src/core/support/string.h',
381 'src/core/support/string_win32.h',
382 'src/core/support/thd_internal.h',
383 'src/core/httpcli/format_request.h',
384 'src/core/httpcli/httpcli.h',
385 'src/core/httpcli/httpcli_security_connector.h',
386 'src/core/httpcli/parser.h',
387 'src/core/security/auth_filters.h',
388 'src/core/security/base64.h',
389 'src/core/security/credentials.h',
390 'src/core/security/json_token.h',
391 'src/core/security/secure_endpoint.h',
392 'src/core/security/secure_transport_setup.h',
393 'src/core/security/security_connector.h',
394 'src/core/security/security_context.h',
395 'src/core/tsi/fake_transport_security.h',
396 'src/core/tsi/ssl_transport_security.h',
397 'src/core/tsi/transport_security.h',
398 'src/core/tsi/transport_security_interface.h',
399 'src/core/census/grpc_context.h',
400 'src/core/channel/census_filter.h',
401 'src/core/channel/channel_args.h',
402 'src/core/channel/channel_stack.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700403 'src/core/channel/client_channel.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700404 'src/core/channel/connected_channel.h',
405 'src/core/channel/context.h',
406 'src/core/channel/http_client_filter.h',
407 'src/core/channel/http_server_filter.h',
408 'src/core/channel/noop_filter.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700409 'src/core/client_config/client_config.h',
410 'src/core/client_config/lb_policies/pick_first.h',
411 'src/core/client_config/lb_policy.h',
412 'src/core/client_config/resolver.h',
413 'src/core/client_config/resolver_factory.h',
414 'src/core/client_config/resolver_registry.h',
415 'src/core/client_config/resolvers/dns_resolver.h',
416 'src/core/client_config/subchannel.h',
417 'src/core/client_config/subchannel_factory.h',
418 'src/core/client_config/uri_parser.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700419 'src/core/compression/message_compress.h',
420 'src/core/debug/trace.h',
421 'src/core/iomgr/alarm.h',
422 'src/core/iomgr/alarm_heap.h',
423 'src/core/iomgr/alarm_internal.h',
424 'src/core/iomgr/endpoint.h',
425 'src/core/iomgr/endpoint_pair.h',
426 'src/core/iomgr/fd_posix.h',
427 'src/core/iomgr/iocp_windows.h',
428 'src/core/iomgr/iomgr.h',
429 'src/core/iomgr/iomgr_internal.h',
430 'src/core/iomgr/iomgr_posix.h',
431 'src/core/iomgr/pollset.h',
432 'src/core/iomgr/pollset_kick_posix.h',
433 'src/core/iomgr/pollset_posix.h',
434 'src/core/iomgr/pollset_set.h',
435 'src/core/iomgr/pollset_set_posix.h',
436 'src/core/iomgr/pollset_set_windows.h',
437 'src/core/iomgr/pollset_windows.h',
438 'src/core/iomgr/resolve_address.h',
439 'src/core/iomgr/sockaddr.h',
440 'src/core/iomgr/sockaddr_posix.h',
441 'src/core/iomgr/sockaddr_utils.h',
442 'src/core/iomgr/sockaddr_win32.h',
443 'src/core/iomgr/socket_utils_posix.h',
444 'src/core/iomgr/socket_windows.h',
445 'src/core/iomgr/tcp_client.h',
446 'src/core/iomgr/tcp_posix.h',
447 'src/core/iomgr/tcp_server.h',
448 'src/core/iomgr/tcp_windows.h',
449 'src/core/iomgr/time_averaged_stats.h',
450 'src/core/iomgr/wakeup_fd_pipe.h',
451 'src/core/iomgr/wakeup_fd_posix.h',
452 'src/core/json/json.h',
453 'src/core/json/json_common.h',
454 'src/core/json/json_reader.h',
455 'src/core/json/json_writer.h',
456 'src/core/profiling/timers.h',
457 'src/core/profiling/timers_preciseclock.h',
458 'src/core/surface/byte_buffer_queue.h',
459 'src/core/surface/call.h',
460 'src/core/surface/channel.h',
461 'src/core/surface/client.h',
462 'src/core/surface/completion_queue.h',
463 'src/core/surface/event_string.h',
464 'src/core/surface/init.h',
465 'src/core/surface/server.h',
466 'src/core/surface/surface_trace.h',
467 'src/core/transport/chttp2/alpn.h',
468 'src/core/transport/chttp2/bin_encoder.h',
469 'src/core/transport/chttp2/frame.h',
470 'src/core/transport/chttp2/frame_data.h',
471 'src/core/transport/chttp2/frame_goaway.h',
472 'src/core/transport/chttp2/frame_ping.h',
473 'src/core/transport/chttp2/frame_rst_stream.h',
474 'src/core/transport/chttp2/frame_settings.h',
475 'src/core/transport/chttp2/frame_window_update.h',
476 'src/core/transport/chttp2/hpack_parser.h',
477 'src/core/transport/chttp2/hpack_table.h',
478 'src/core/transport/chttp2/http2_errors.h',
479 'src/core/transport/chttp2/huffsyms.h',
480 'src/core/transport/chttp2/status_conversion.h',
481 'src/core/transport/chttp2/stream_encoder.h',
482 'src/core/transport/chttp2/stream_map.h',
483 'src/core/transport/chttp2/timeout_encoding.h',
484 'src/core/transport/chttp2/varint.h',
485 'src/core/transport/chttp2_transport.h',
486 'src/core/transport/metadata.h',
487 'src/core/transport/stream_op.h',
488 'src/core/transport/transport.h',
489 'src/core/transport/transport_impl.h',
490 'src/core/census/context.h'
491
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700492 ss.header_mappings_dir = '.'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -0800493
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700494 ss.requires_arc = false
495 ss.libraries = 'z'
496 ss.dependency 'OpenSSL', '~> 1.0.200'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -0800497 end
498
Jorge Canizales146f1772015-04-27 23:59:22 -0700499 # This is a workaround for Cocoapods Issue #1437.
500 # It renames time.h and string.h to grpc_time.h and grpc_string.h.
501 # It needs to be here (top-level) instead of in the C-Core subspec because Cocoapods doesn't run
502 # prepare_command's of subspecs.
Jorge Canizales461b0942015-06-02 20:40:50 -0700503 #
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700504 # TODO(jcanizales): Try out others' solutions at Issue #1437.
Jorge Canizales146f1772015-04-27 23:59:22 -0700505 s.prepare_command = <<-CMD
murgatroid99df355772015-06-23 16:39:29 -0700506 # Move contents of include up a level to avoid manually specifying include paths
507 cp -r "include/grpc" "."
508
Jorge Canizales146f1772015-04-27 23:59:22 -0700509 DIR_TIME="grpc/support"
510 BAD_TIME="$DIR_TIME/time.h"
511 GOOD_TIME="$DIR_TIME/grpc_time.h"
Jorge Canizales59bb9d72015-06-22 19:04:15 -0700512 grep -rl "$BAD_TIME" grpc src/core src/objective-c/GRPCClient | xargs sed -i '' -e s@$BAD_TIME@$GOOD_TIME@g
Jorge Canizales146f1772015-04-27 23:59:22 -0700513 if [ -f "include/$BAD_TIME" ];
514 then
Jorge Canizales461b0942015-06-02 20:40:50 -0700515 mv -f "include/$BAD_TIME" "include/$GOOD_TIME"
Jorge Canizales146f1772015-04-27 23:59:22 -0700516 fi
517
518 DIR_STRING="src/core/support"
519 BAD_STRING="$DIR_STRING/string.h"
520 GOOD_STRING="$DIR_STRING/grpc_string.h"
Jorge Canizales59bb9d72015-06-22 19:04:15 -0700521 grep -rl "$BAD_STRING" grpc src/core src/objective-c/GRPCClient | xargs sed -i '' -e s@$BAD_STRING@$GOOD_STRING@g
Jorge Canizales146f1772015-04-27 23:59:22 -0700522 if [ -f "$BAD_STRING" ];
523 then
Jorge Canizales461b0942015-06-02 20:40:50 -0700524 mv -f "$BAD_STRING" "$GOOD_STRING"
Jorge Canizales146f1772015-04-27 23:59:22 -0700525 fi
526 CMD
527
Jorge Canizales461b0942015-06-02 20:40:50 -0700528 # Objective-C wrapper around the core gRPC library.
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700529 s.subspec 'GRPCClient' do |ss|
530 src_dir = "#{objc_dir}/GRPCClient"
531 ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
532 ss.private_header_files = "#{src_dir}/private/*.h"
533 ss.header_mappings_dir = "#{objc_dir}"
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -0800534
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700535 ss.dependency 'gRPC/C-Core'
536 ss.dependency 'gRPC/RxLibrary'
Jorge Canizalesba37a3e2015-03-23 15:34:58 -0700537
Jorge Canizales8957cae2015-04-22 23:40:18 -0700538 # Certificates, to be able to establish TLS connections:
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700539 ss.resource_bundles = { 'gRPC' => ['etc/roots.pem'] }
Jorge Canizales8957cae2015-04-22 23:40:18 -0700540 end
541
Jorge Canizales461b0942015-06-02 20:40:50 -0700542 # RPC library for ProtocolBuffers, based on gRPC
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700543 s.subspec 'ProtoRPC' do |ss|
544 src_dir = "#{objc_dir}/ProtoRPC"
545 ss.source_files = "#{src_dir}/*.{h,m}"
546 ss.header_mappings_dir = "#{objc_dir}"
Jorge Canizales8957cae2015-04-22 23:40:18 -0700547
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700548 ss.dependency 'gRPC/GRPCClient'
549 ss.dependency 'gRPC/RxLibrary'
550 ss.dependency 'Protobuf', '~> 3.0.0-alpha-3'
Jorge Canizales8957cae2015-04-22 23:40:18 -0700551 end
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -0800552end