blob: 12ce7c1e7b95473acc76d19a35c0df5116daabc5 [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 Canizales63c3efb2015-07-17 18:53:20 -070039 s.version = '0.7.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',
Jorge Canizales63c3efb2015-07-17 18:53:20 -070046 # :tag => 'release-0_10_0-objectivec-0.6.0' }
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',
Vijay Pai005e3052015-07-10 15:18:45 -070067 'src/core/support/stack_lockfree.h',
Craig Tillereb327fb2015-06-23 16:51:38 -070068 'src/core/support/grpc_string.h',
69 'src/core/support/string_win32.h',
70 'src/core/support/thd_internal.h',
Craig Tillere2288fc2015-06-23 18:32:26 -070071 'grpc/support/alloc.h',
72 'grpc/support/atm.h',
73 'grpc/support/atm_gcc_atomic.h',
74 'grpc/support/atm_gcc_sync.h',
75 'grpc/support/atm_win32.h',
76 'grpc/support/cancellable_platform.h',
77 'grpc/support/cmdline.h',
78 'grpc/support/cpu.h',
79 'grpc/support/histogram.h',
80 'grpc/support/host_port.h',
81 'grpc/support/log.h',
82 'grpc/support/log_win32.h',
83 'grpc/support/port_platform.h',
84 'grpc/support/slice.h',
85 'grpc/support/slice_buffer.h',
86 'grpc/support/string_util.h',
87 'grpc/support/subprocess.h',
88 'grpc/support/sync.h',
89 'grpc/support/sync_generic.h',
90 'grpc/support/sync_posix.h',
91 'grpc/support/sync_win32.h',
92 'grpc/support/thd.h',
93 'grpc/support/grpc_time.h',
94 'grpc/support/tls.h',
95 'grpc/support/tls_gcc.h',
96 'grpc/support/tls_msvc.h',
97 'grpc/support/tls_pthread.h',
98 'grpc/support/useful.h',
Craig Tillereb327fb2015-06-23 16:51:38 -070099 'src/core/support/alloc.c',
100 'src/core/support/cancellable.c',
101 'src/core/support/cmdline.c',
102 'src/core/support/cpu_iphone.c',
103 'src/core/support/cpu_linux.c',
104 'src/core/support/cpu_posix.c',
105 'src/core/support/cpu_windows.c',
106 'src/core/support/env_linux.c',
107 'src/core/support/env_posix.c',
108 'src/core/support/env_win32.c',
109 'src/core/support/file.c',
110 'src/core/support/file_posix.c',
111 'src/core/support/file_win32.c',
112 'src/core/support/histogram.c',
113 'src/core/support/host_port.c',
114 'src/core/support/log.c',
115 'src/core/support/log_android.c',
116 'src/core/support/log_linux.c',
117 'src/core/support/log_posix.c',
118 'src/core/support/log_win32.c',
119 'src/core/support/murmur_hash.c',
120 'src/core/support/slice.c',
121 'src/core/support/slice_buffer.c',
Vijay Pai005e3052015-07-10 15:18:45 -0700122 'src/core/support/stack_lockfree.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700123 'src/core/support/string.c',
124 'src/core/support/string_posix.c',
125 'src/core/support/string_win32.c',
126 'src/core/support/subprocess_posix.c',
127 'src/core/support/sync.c',
128 'src/core/support/sync_posix.c',
129 'src/core/support/sync_win32.c',
130 'src/core/support/thd.c',
131 'src/core/support/thd_posix.c',
132 'src/core/support/thd_win32.c',
133 'src/core/support/time.c',
134 'src/core/support/time_posix.c',
135 'src/core/support/time_win32.c',
136 'src/core/support/tls_pthread.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700137 'src/core/security/auth_filters.h',
138 'src/core/security/base64.h',
139 'src/core/security/credentials.h',
140 'src/core/security/json_token.h',
Julien Boeuffeca1bf2015-06-22 16:46:20 +0200141 'src/core/security/jwt_verifier.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700142 'src/core/security/secure_endpoint.h',
143 'src/core/security/secure_transport_setup.h',
144 'src/core/security/security_connector.h',
145 'src/core/security/security_context.h',
146 'src/core/tsi/fake_transport_security.h',
147 'src/core/tsi/ssl_transport_security.h',
148 'src/core/tsi/transport_security.h',
149 'src/core/tsi/transport_security_interface.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700150 'src/core/channel/census_filter.h',
151 'src/core/channel/channel_args.h',
152 'src/core/channel/channel_stack.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700153 'src/core/channel/client_channel.h',
David Garcia Quintas8a187092015-07-01 14:52:44 -0700154 'src/core/channel/compress_filter.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700155 'src/core/channel/connected_channel.h',
156 'src/core/channel/context.h',
157 'src/core/channel/http_client_filter.h',
158 'src/core/channel/http_server_filter.h',
159 'src/core/channel/noop_filter.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700160 'src/core/client_config/client_config.h',
Craig Tiller91624662015-06-25 16:31:02 -0700161 'src/core/client_config/connector.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700162 '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',
Craig Tiller698d00c2015-07-20 12:32:58 -0700168 'src/core/client_config/resolvers/sockaddr_resolver.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700169 'src/core/client_config/subchannel.h',
170 'src/core/client_config/subchannel_factory.h',
Craig Tiller83f4d4e2015-07-29 18:14:41 -0700171 'src/core/client_config/subchannel_factory_decorators/add_channel_arg.h',
172 'src/core/client_config/subchannel_factory_decorators/merge_channel_args.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700173 'src/core/client_config/uri_parser.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700174 'src/core/compression/message_compress.h',
175 'src/core/debug/trace.h',
Craig Tillerf53d9c82015-08-04 14:19:43 -0700176 'src/core/httpcli/format_request.h',
177 'src/core/httpcli/httpcli.h',
178 'src/core/httpcli/parser.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700179 'src/core/iomgr/alarm.h',
180 'src/core/iomgr/alarm_heap.h',
181 'src/core/iomgr/alarm_internal.h',
182 'src/core/iomgr/endpoint.h',
183 'src/core/iomgr/endpoint_pair.h',
184 'src/core/iomgr/fd_posix.h',
185 'src/core/iomgr/iocp_windows.h',
186 'src/core/iomgr/iomgr.h',
187 'src/core/iomgr/iomgr_internal.h',
188 'src/core/iomgr/iomgr_posix.h',
189 'src/core/iomgr/pollset.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700190 'src/core/iomgr/pollset_posix.h',
191 'src/core/iomgr/pollset_set.h',
192 'src/core/iomgr/pollset_set_posix.h',
193 'src/core/iomgr/pollset_set_windows.h',
194 'src/core/iomgr/pollset_windows.h',
195 'src/core/iomgr/resolve_address.h',
196 'src/core/iomgr/sockaddr.h',
197 'src/core/iomgr/sockaddr_posix.h',
198 'src/core/iomgr/sockaddr_utils.h',
199 'src/core/iomgr/sockaddr_win32.h',
200 'src/core/iomgr/socket_utils_posix.h',
201 'src/core/iomgr/socket_windows.h',
202 'src/core/iomgr/tcp_client.h',
203 'src/core/iomgr/tcp_posix.h',
204 'src/core/iomgr/tcp_server.h',
205 'src/core/iomgr/tcp_windows.h',
206 'src/core/iomgr/time_averaged_stats.h',
207 'src/core/iomgr/wakeup_fd_pipe.h',
208 'src/core/iomgr/wakeup_fd_posix.h',
209 'src/core/json/json.h',
210 'src/core/json/json_common.h',
211 'src/core/json/json_reader.h',
212 'src/core/json/json_writer.h',
213 'src/core/profiling/timers.h',
214 'src/core/profiling/timers_preciseclock.h',
215 'src/core/surface/byte_buffer_queue.h',
216 'src/core/surface/call.h',
217 'src/core/surface/channel.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700218 'src/core/surface/completion_queue.h',
219 'src/core/surface/event_string.h',
220 'src/core/surface/init.h',
221 'src/core/surface/server.h',
222 'src/core/surface/surface_trace.h',
223 'src/core/transport/chttp2/alpn.h',
224 'src/core/transport/chttp2/bin_encoder.h',
225 'src/core/transport/chttp2/frame.h',
226 'src/core/transport/chttp2/frame_data.h',
227 'src/core/transport/chttp2/frame_goaway.h',
228 'src/core/transport/chttp2/frame_ping.h',
229 'src/core/transport/chttp2/frame_rst_stream.h',
230 'src/core/transport/chttp2/frame_settings.h',
231 'src/core/transport/chttp2/frame_window_update.h',
232 'src/core/transport/chttp2/hpack_parser.h',
233 'src/core/transport/chttp2/hpack_table.h',
234 'src/core/transport/chttp2/http2_errors.h',
235 'src/core/transport/chttp2/huffsyms.h',
Craig Tiller6e8c7e82015-06-25 08:52:40 -0700236 'src/core/transport/chttp2/incoming_metadata.h',
237 'src/core/transport/chttp2/internal.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700238 'src/core/transport/chttp2/status_conversion.h',
239 'src/core/transport/chttp2/stream_encoder.h',
240 'src/core/transport/chttp2/stream_map.h',
241 'src/core/transport/chttp2/timeout_encoding.h',
242 'src/core/transport/chttp2/varint.h',
243 'src/core/transport/chttp2_transport.h',
Craig Tiller08a1cf82015-06-29 09:37:52 -0700244 'src/core/transport/connectivity_state.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700245 'src/core/transport/metadata.h',
246 'src/core/transport/stream_op.h',
247 'src/core/transport/transport.h',
248 'src/core/transport/transport_impl.h',
249 'src/core/census/context.h',
Alistair Veitchb46f3f42015-07-20 13:34:10 -0700250 'src/core/census/rpc_stat_id.h',
Craig Tillere2288fc2015-06-23 18:32:26 -0700251 'grpc/grpc_security.h',
252 'grpc/byte_buffer.h',
253 'grpc/byte_buffer_reader.h',
254 'grpc/compression.h',
255 'grpc/grpc.h',
256 'grpc/status.h',
257 'grpc/census.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700258 'src/core/httpcli/httpcli_security_connector.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700259 'src/core/security/base64.c',
260 'src/core/security/client_auth_filter.c',
261 'src/core/security/credentials.c',
262 'src/core/security/credentials_metadata.c',
263 'src/core/security/credentials_posix.c',
264 'src/core/security/credentials_win32.c',
265 'src/core/security/google_default_credentials.c',
266 'src/core/security/json_token.c',
Julien Boeuffeca1bf2015-06-22 16:46:20 +0200267 'src/core/security/jwt_verifier.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700268 'src/core/security/secure_endpoint.c',
269 'src/core/security/secure_transport_setup.c',
270 'src/core/security/security_connector.c',
271 'src/core/security/security_context.c',
272 'src/core/security/server_auth_filter.c',
273 'src/core/security/server_secure_chttp2.c',
274 'src/core/surface/init_secure.c',
275 'src/core/surface/secure_channel_create.c',
276 'src/core/tsi/fake_transport_security.c',
277 'src/core/tsi/ssl_transport_security.c',
278 'src/core/tsi/transport_security.c',
279 'src/core/census/grpc_context.c',
280 'src/core/channel/channel_args.c',
281 'src/core/channel/channel_stack.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700282 'src/core/channel/client_channel.c',
David Garcia Quintas8a187092015-07-01 14:52:44 -0700283 'src/core/channel/compress_filter.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700284 'src/core/channel/connected_channel.c',
285 'src/core/channel/http_client_filter.c',
286 'src/core/channel/http_server_filter.c',
287 'src/core/channel/noop_filter.c',
Craig Tiller4b628112015-06-25 08:58:23 -0700288 'src/core/client_config/client_config.c',
Craig Tiller91624662015-06-25 16:31:02 -0700289 'src/core/client_config/connector.c',
Craig Tiller4b628112015-06-25 08:58:23 -0700290 'src/core/client_config/lb_policies/pick_first.c',
291 'src/core/client_config/lb_policy.c',
292 'src/core/client_config/resolver.c',
293 'src/core/client_config/resolver_factory.c',
294 'src/core/client_config/resolver_registry.c',
295 'src/core/client_config/resolvers/dns_resolver.c',
Craig Tiller698d00c2015-07-20 12:32:58 -0700296 'src/core/client_config/resolvers/sockaddr_resolver.c',
Craig Tiller4b628112015-06-25 08:58:23 -0700297 'src/core/client_config/subchannel.c',
298 'src/core/client_config/subchannel_factory.c',
Craig Tiller83f4d4e2015-07-29 18:14:41 -0700299 'src/core/client_config/subchannel_factory_decorators/add_channel_arg.c',
300 'src/core/client_config/subchannel_factory_decorators/merge_channel_args.c',
Craig Tiller4b628112015-06-25 08:58:23 -0700301 'src/core/client_config/uri_parser.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700302 'src/core/compression/algorithm.c',
303 'src/core/compression/message_compress.c',
304 'src/core/debug/trace.c',
Craig Tillerf53d9c82015-08-04 14:19:43 -0700305 'src/core/httpcli/format_request.c',
306 'src/core/httpcli/httpcli.c',
307 'src/core/httpcli/parser.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700308 'src/core/iomgr/alarm.c',
309 'src/core/iomgr/alarm_heap.c',
310 'src/core/iomgr/endpoint.c',
311 'src/core/iomgr/endpoint_pair_posix.c',
312 'src/core/iomgr/endpoint_pair_windows.c',
313 'src/core/iomgr/fd_posix.c',
314 'src/core/iomgr/iocp_windows.c',
315 'src/core/iomgr/iomgr.c',
316 'src/core/iomgr/iomgr_posix.c',
317 'src/core/iomgr/iomgr_windows.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700318 'src/core/iomgr/pollset_multipoller_with_epoll.c',
319 'src/core/iomgr/pollset_multipoller_with_poll_posix.c',
320 'src/core/iomgr/pollset_posix.c',
321 'src/core/iomgr/pollset_set_posix.c',
322 'src/core/iomgr/pollset_set_windows.c',
323 'src/core/iomgr/pollset_windows.c',
324 'src/core/iomgr/resolve_address_posix.c',
325 'src/core/iomgr/resolve_address_windows.c',
326 'src/core/iomgr/sockaddr_utils.c',
327 'src/core/iomgr/socket_utils_common_posix.c',
328 'src/core/iomgr/socket_utils_linux.c',
329 'src/core/iomgr/socket_utils_posix.c',
330 'src/core/iomgr/socket_windows.c',
331 'src/core/iomgr/tcp_client_posix.c',
332 'src/core/iomgr/tcp_client_windows.c',
333 'src/core/iomgr/tcp_posix.c',
334 'src/core/iomgr/tcp_server_posix.c',
335 'src/core/iomgr/tcp_server_windows.c',
336 'src/core/iomgr/tcp_windows.c',
337 'src/core/iomgr/time_averaged_stats.c',
338 'src/core/iomgr/wakeup_fd_eventfd.c',
339 'src/core/iomgr/wakeup_fd_nospecial.c',
340 'src/core/iomgr/wakeup_fd_pipe.c',
341 'src/core/iomgr/wakeup_fd_posix.c',
342 'src/core/json/json.c',
343 'src/core/json/json_reader.c',
344 'src/core/json/json_string.c',
345 'src/core/json/json_writer.c',
346 'src/core/profiling/basic_timers.c',
347 'src/core/profiling/stap_timers.c',
348 'src/core/surface/byte_buffer.c',
349 'src/core/surface/byte_buffer_queue.c',
350 'src/core/surface/byte_buffer_reader.c',
351 'src/core/surface/call.c',
352 'src/core/surface/call_details.c',
353 'src/core/surface/call_log_batch.c',
354 'src/core/surface/channel.c',
Craig Tiller48cb07c2015-07-15 16:16:15 -0700355 'src/core/surface/channel_connectivity.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700356 'src/core/surface/channel_create.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700357 'src/core/surface/completion_queue.c',
358 'src/core/surface/event_string.c',
359 'src/core/surface/init.c',
360 'src/core/surface/lame_client.c',
361 'src/core/surface/metadata_array.c',
362 'src/core/surface/server.c',
363 'src/core/surface/server_chttp2.c',
364 'src/core/surface/server_create.c',
365 'src/core/surface/surface_trace.c',
Craig Tiller2e622bc2015-07-10 07:46:03 -0700366 'src/core/surface/version.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700367 'src/core/transport/chttp2/alpn.c',
368 'src/core/transport/chttp2/bin_encoder.c',
369 'src/core/transport/chttp2/frame_data.c',
370 'src/core/transport/chttp2/frame_goaway.c',
371 'src/core/transport/chttp2/frame_ping.c',
372 'src/core/transport/chttp2/frame_rst_stream.c',
373 'src/core/transport/chttp2/frame_settings.c',
374 'src/core/transport/chttp2/frame_window_update.c',
375 'src/core/transport/chttp2/hpack_parser.c',
376 'src/core/transport/chttp2/hpack_table.c',
377 'src/core/transport/chttp2/huffsyms.c',
Craig Tiller6e8c7e82015-06-25 08:52:40 -0700378 'src/core/transport/chttp2/incoming_metadata.c',
379 'src/core/transport/chttp2/parsing.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700380 'src/core/transport/chttp2/status_conversion.c',
381 'src/core/transport/chttp2/stream_encoder.c',
Craig Tiller6e8c7e82015-06-25 08:52:40 -0700382 'src/core/transport/chttp2/stream_lists.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700383 'src/core/transport/chttp2/stream_map.c',
384 'src/core/transport/chttp2/timeout_encoding.c',
385 'src/core/transport/chttp2/varint.c',
Craig Tiller6e8c7e82015-06-25 08:52:40 -0700386 'src/core/transport/chttp2/writing.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700387 'src/core/transport/chttp2_transport.c',
Craig Tiller08a1cf82015-06-29 09:37:52 -0700388 'src/core/transport/connectivity_state.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700389 'src/core/transport/metadata.c',
390 'src/core/transport/stream_op.c',
391 'src/core/transport/transport.c',
392 'src/core/transport/transport_op_string.c',
393 'src/core/census/context.c',
Alistair Veitch635899d2015-07-17 16:02:24 -0700394 'src/core/census/initialize.c',
395 'src/core/census/record_stat.c'
Craig Tillereb327fb2015-06-23 16:51:38 -0700396
Craig Tiller9f903da2015-06-24 08:59:27 -0700397 ss.private_header_files = 'src/core/support/env.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700398 'src/core/support/file.h',
399 'src/core/support/murmur_hash.h',
Vijay Pai005e3052015-07-10 15:18:45 -0700400 'src/core/support/stack_lockfree.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700401 'src/core/support/string.h',
402 'src/core/support/string_win32.h',
403 'src/core/support/thd_internal.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700404 'src/core/security/auth_filters.h',
405 'src/core/security/base64.h',
406 'src/core/security/credentials.h',
407 'src/core/security/json_token.h',
Julien Boeuffeca1bf2015-06-22 16:46:20 +0200408 'src/core/security/jwt_verifier.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700409 'src/core/security/secure_endpoint.h',
410 'src/core/security/secure_transport_setup.h',
411 'src/core/security/security_connector.h',
412 'src/core/security/security_context.h',
413 'src/core/tsi/fake_transport_security.h',
414 'src/core/tsi/ssl_transport_security.h',
415 'src/core/tsi/transport_security.h',
416 'src/core/tsi/transport_security_interface.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700417 'src/core/channel/census_filter.h',
418 'src/core/channel/channel_args.h',
419 'src/core/channel/channel_stack.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700420 'src/core/channel/client_channel.h',
David Garcia Quintas8a187092015-07-01 14:52:44 -0700421 'src/core/channel/compress_filter.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700422 'src/core/channel/connected_channel.h',
423 'src/core/channel/context.h',
424 'src/core/channel/http_client_filter.h',
425 'src/core/channel/http_server_filter.h',
426 'src/core/channel/noop_filter.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700427 'src/core/client_config/client_config.h',
Craig Tiller91624662015-06-25 16:31:02 -0700428 'src/core/client_config/connector.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700429 'src/core/client_config/lb_policies/pick_first.h',
430 'src/core/client_config/lb_policy.h',
431 'src/core/client_config/resolver.h',
432 'src/core/client_config/resolver_factory.h',
433 'src/core/client_config/resolver_registry.h',
434 'src/core/client_config/resolvers/dns_resolver.h',
Craig Tiller698d00c2015-07-20 12:32:58 -0700435 'src/core/client_config/resolvers/sockaddr_resolver.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700436 'src/core/client_config/subchannel.h',
437 'src/core/client_config/subchannel_factory.h',
Craig Tiller83f4d4e2015-07-29 18:14:41 -0700438 'src/core/client_config/subchannel_factory_decorators/add_channel_arg.h',
439 'src/core/client_config/subchannel_factory_decorators/merge_channel_args.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700440 'src/core/client_config/uri_parser.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700441 'src/core/compression/message_compress.h',
442 'src/core/debug/trace.h',
Craig Tillerf53d9c82015-08-04 14:19:43 -0700443 'src/core/httpcli/format_request.h',
444 'src/core/httpcli/httpcli.h',
445 'src/core/httpcli/parser.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700446 'src/core/iomgr/alarm.h',
447 'src/core/iomgr/alarm_heap.h',
448 'src/core/iomgr/alarm_internal.h',
449 'src/core/iomgr/endpoint.h',
450 'src/core/iomgr/endpoint_pair.h',
451 'src/core/iomgr/fd_posix.h',
452 'src/core/iomgr/iocp_windows.h',
453 'src/core/iomgr/iomgr.h',
454 'src/core/iomgr/iomgr_internal.h',
455 'src/core/iomgr/iomgr_posix.h',
456 'src/core/iomgr/pollset.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700457 'src/core/iomgr/pollset_posix.h',
458 'src/core/iomgr/pollset_set.h',
459 'src/core/iomgr/pollset_set_posix.h',
460 'src/core/iomgr/pollset_set_windows.h',
461 'src/core/iomgr/pollset_windows.h',
462 'src/core/iomgr/resolve_address.h',
463 'src/core/iomgr/sockaddr.h',
464 'src/core/iomgr/sockaddr_posix.h',
465 'src/core/iomgr/sockaddr_utils.h',
466 'src/core/iomgr/sockaddr_win32.h',
467 'src/core/iomgr/socket_utils_posix.h',
468 'src/core/iomgr/socket_windows.h',
469 'src/core/iomgr/tcp_client.h',
470 'src/core/iomgr/tcp_posix.h',
471 'src/core/iomgr/tcp_server.h',
472 'src/core/iomgr/tcp_windows.h',
473 'src/core/iomgr/time_averaged_stats.h',
474 'src/core/iomgr/wakeup_fd_pipe.h',
475 'src/core/iomgr/wakeup_fd_posix.h',
476 'src/core/json/json.h',
477 'src/core/json/json_common.h',
478 'src/core/json/json_reader.h',
479 'src/core/json/json_writer.h',
480 'src/core/profiling/timers.h',
481 'src/core/profiling/timers_preciseclock.h',
482 'src/core/surface/byte_buffer_queue.h',
483 'src/core/surface/call.h',
484 'src/core/surface/channel.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700485 'src/core/surface/completion_queue.h',
486 'src/core/surface/event_string.h',
487 'src/core/surface/init.h',
488 'src/core/surface/server.h',
489 'src/core/surface/surface_trace.h',
490 'src/core/transport/chttp2/alpn.h',
491 'src/core/transport/chttp2/bin_encoder.h',
492 'src/core/transport/chttp2/frame.h',
493 'src/core/transport/chttp2/frame_data.h',
494 'src/core/transport/chttp2/frame_goaway.h',
495 'src/core/transport/chttp2/frame_ping.h',
496 'src/core/transport/chttp2/frame_rst_stream.h',
497 'src/core/transport/chttp2/frame_settings.h',
498 'src/core/transport/chttp2/frame_window_update.h',
499 'src/core/transport/chttp2/hpack_parser.h',
500 'src/core/transport/chttp2/hpack_table.h',
501 'src/core/transport/chttp2/http2_errors.h',
502 'src/core/transport/chttp2/huffsyms.h',
Craig Tiller6e8c7e82015-06-25 08:52:40 -0700503 'src/core/transport/chttp2/incoming_metadata.h',
504 'src/core/transport/chttp2/internal.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700505 'src/core/transport/chttp2/status_conversion.h',
506 'src/core/transport/chttp2/stream_encoder.h',
507 'src/core/transport/chttp2/stream_map.h',
508 'src/core/transport/chttp2/timeout_encoding.h',
509 'src/core/transport/chttp2/varint.h',
510 'src/core/transport/chttp2_transport.h',
Craig Tiller08a1cf82015-06-29 09:37:52 -0700511 'src/core/transport/connectivity_state.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700512 'src/core/transport/metadata.h',
513 'src/core/transport/stream_op.h',
514 'src/core/transport/transport.h',
515 'src/core/transport/transport_impl.h',
Alistair Veitch635899d2015-07-17 16:02:24 -0700516 'src/core/census/context.h',
Alistair Veitchb46f3f42015-07-20 13:34:10 -0700517 'src/core/census/rpc_stat_id.h'
Craig Tillereb327fb2015-06-23 16:51:38 -0700518
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700519 ss.header_mappings_dir = '.'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -0800520
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700521 ss.requires_arc = false
522 ss.libraries = 'z'
523 ss.dependency 'OpenSSL', '~> 1.0.200'
Jorge Canizales63c3efb2015-07-17 18:53:20 -0700524
525 # ss.compiler_flags = '-GCC_WARN_INHIBIT_ALL_WARNINGS', '-w'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -0800526 end
527
Jorge Canizales146f1772015-04-27 23:59:22 -0700528 # This is a workaround for Cocoapods Issue #1437.
529 # It renames time.h and string.h to grpc_time.h and grpc_string.h.
530 # It needs to be here (top-level) instead of in the C-Core subspec because Cocoapods doesn't run
531 # prepare_command's of subspecs.
Jorge Canizales461b0942015-06-02 20:40:50 -0700532 #
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700533 # TODO(jcanizales): Try out others' solutions at Issue #1437.
Jorge Canizales146f1772015-04-27 23:59:22 -0700534 s.prepare_command = <<-CMD
murgatroid99df355772015-06-23 16:39:29 -0700535 # Move contents of include up a level to avoid manually specifying include paths
536 cp -r "include/grpc" "."
537
Jorge Canizales146f1772015-04-27 23:59:22 -0700538 DIR_TIME="grpc/support"
539 BAD_TIME="$DIR_TIME/time.h"
540 GOOD_TIME="$DIR_TIME/grpc_time.h"
Jorge Canizales59bb9d72015-06-22 19:04:15 -0700541 grep -rl "$BAD_TIME" grpc src/core src/objective-c/GRPCClient | xargs sed -i '' -e s@$BAD_TIME@$GOOD_TIME@g
Jorge Canizales95068192015-07-02 20:18:43 -0700542 if [ -f "$BAD_TIME" ];
Jorge Canizales146f1772015-04-27 23:59:22 -0700543 then
Jorge Canizales95068192015-07-02 20:18:43 -0700544 mv -f "$BAD_TIME" "$GOOD_TIME"
Jorge Canizales146f1772015-04-27 23:59:22 -0700545 fi
546
547 DIR_STRING="src/core/support"
548 BAD_STRING="$DIR_STRING/string.h"
549 GOOD_STRING="$DIR_STRING/grpc_string.h"
Jorge Canizales59bb9d72015-06-22 19:04:15 -0700550 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 -0700551 if [ -f "$BAD_STRING" ];
552 then
Jorge Canizales461b0942015-06-02 20:40:50 -0700553 mv -f "$BAD_STRING" "$GOOD_STRING"
Jorge Canizales146f1772015-04-27 23:59:22 -0700554 fi
555 CMD
556
Jorge Canizales461b0942015-06-02 20:40:50 -0700557 # Objective-C wrapper around the core gRPC library.
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700558 s.subspec 'GRPCClient' do |ss|
559 src_dir = "#{objc_dir}/GRPCClient"
560 ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
561 ss.private_header_files = "#{src_dir}/private/*.h"
562 ss.header_mappings_dir = "#{objc_dir}"
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -0800563
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700564 ss.dependency 'gRPC/C-Core'
565 ss.dependency 'gRPC/RxLibrary'
Jorge Canizalesba37a3e2015-03-23 15:34:58 -0700566
Jorge Canizales8957cae2015-04-22 23:40:18 -0700567 # Certificates, to be able to establish TLS connections:
Jorge Canizalesbb54ae82015-06-28 06:50:58 -0700568 ss.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] }
Jorge Canizales8957cae2015-04-22 23:40:18 -0700569 end
570
Jorge Canizales461b0942015-06-02 20:40:50 -0700571 # RPC library for ProtocolBuffers, based on gRPC
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700572 s.subspec 'ProtoRPC' do |ss|
573 src_dir = "#{objc_dir}/ProtoRPC"
574 ss.source_files = "#{src_dir}/*.{h,m}"
575 ss.header_mappings_dir = "#{objc_dir}"
Jorge Canizales8957cae2015-04-22 23:40:18 -0700576
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700577 ss.dependency 'gRPC/GRPCClient'
578 ss.dependency 'gRPC/RxLibrary'
579 ss.dependency 'Protobuf', '~> 3.0.0-alpha-3'
Jorge Canizales8957cae2015-04-22 23:40:18 -0700580 end
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -0800581end