blob: 2c566f71843587a7a7a42389eaa621cd685375d8 [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 Canizalesc825f422015-09-28 21:43:48 -070039 version = '0.11.1'
40 s.version = version
Jorge Canizales043dc722015-06-02 15:15:07 -070041 s.summary = 'gRPC client library for iOS/OSX'
42 s.homepage = 'http://www.grpc.io'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080043 s.license = 'New BSD'
Jorge Canizales043dc722015-06-02 15:15:07 -070044 s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080045
Jorge Canizalesc825f422015-09-28 21:43:48 -070046 s.source = { :git => 'https://github.com/grpc/grpc.git',
47 :tag => "release-#{version.gsub(/\./, '_')}-objectivec-#{version}" }
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080048
Nicolas "Pixel" Noblecff64692015-10-03 02:01:51 +020049
Craig Tillerba496452015-09-21 17:15:19 -070050 s.ios.deployment_target = '7.1'
51 s.osx.deployment_target = '10.9'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -080052 s.requires_arc = true
53
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -070054 objc_dir = 'src/objective-c'
55
Jorge Canizales461b0942015-06-02 20:40:50 -070056 # Reactive Extensions library for iOS.
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -070057 s.subspec 'RxLibrary' do |ss|
58 src_dir = "#{objc_dir}/RxLibrary"
59 ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
60 ss.private_header_files = "#{src_dir}/private/*.h"
61 ss.header_mappings_dir = "#{objc_dir}"
Jorge Canizales045fabb2015-04-21 11:39:37 -070062 end
63
Jorge Canizales461b0942015-06-02 20:40:50 -070064 # Core cross-platform gRPC library, written in C.
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -070065 s.subspec 'C-Core' do |ss|
Craig Tiller0ba432d2015-10-09 16:57:11 -070066 ss.source_files = 'src/core/profiling/timers.h',
67 'src/core/support/block_annotate.h',
vjpai9839d282015-09-24 17:55:18 -070068 'src/core/support/env.h',
Craig Tillereb327fb2015-06-23 16:51:38 -070069 'src/core/support/file.h',
70 'src/core/support/murmur_hash.h',
Vijay Pai005e3052015-07-10 15:18:45 -070071 'src/core/support/stack_lockfree.h',
Craig Tillereb327fb2015-06-23 16:51:38 -070072 'src/core/support/grpc_string.h',
73 'src/core/support/string_win32.h',
74 'src/core/support/thd_internal.h',
Hongyu Chena0f149e2015-08-24 16:27:19 -070075 'src/core/support/time_precise.h',
Craig Tillere2288fc2015-06-23 18:32:26 -070076 'grpc/support/alloc.h',
77 'grpc/support/atm.h',
78 'grpc/support/atm_gcc_atomic.h',
79 'grpc/support/atm_gcc_sync.h',
80 'grpc/support/atm_win32.h',
Craig Tillere2288fc2015-06-23 18:32:26 -070081 'grpc/support/cmdline.h',
82 'grpc/support/cpu.h',
83 'grpc/support/histogram.h',
84 'grpc/support/host_port.h',
85 'grpc/support/log.h',
86 'grpc/support/log_win32.h',
87 'grpc/support/port_platform.h',
88 'grpc/support/slice.h',
89 'grpc/support/slice_buffer.h',
90 'grpc/support/string_util.h',
91 'grpc/support/subprocess.h',
92 'grpc/support/sync.h',
93 'grpc/support/sync_generic.h',
94 'grpc/support/sync_posix.h',
95 'grpc/support/sync_win32.h',
96 'grpc/support/thd.h',
97 'grpc/support/grpc_time.h',
98 'grpc/support/tls.h',
99 'grpc/support/tls_gcc.h',
100 'grpc/support/tls_msvc.h',
101 'grpc/support/tls_pthread.h',
102 'grpc/support/useful.h',
Craig Tiller0ba432d2015-10-09 16:57:11 -0700103 'src/core/profiling/basic_timers.c',
104 'src/core/profiling/stap_timers.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700105 'src/core/support/alloc.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700106 'src/core/support/cmdline.c',
107 'src/core/support/cpu_iphone.c',
108 'src/core/support/cpu_linux.c',
109 'src/core/support/cpu_posix.c',
110 'src/core/support/cpu_windows.c',
111 'src/core/support/env_linux.c',
112 'src/core/support/env_posix.c',
113 'src/core/support/env_win32.c',
114 'src/core/support/file.c',
115 'src/core/support/file_posix.c',
116 'src/core/support/file_win32.c',
117 'src/core/support/histogram.c',
118 'src/core/support/host_port.c',
119 'src/core/support/log.c',
120 'src/core/support/log_android.c',
121 'src/core/support/log_linux.c',
122 'src/core/support/log_posix.c',
123 'src/core/support/log_win32.c',
124 'src/core/support/murmur_hash.c',
125 'src/core/support/slice.c',
126 'src/core/support/slice_buffer.c',
Vijay Pai005e3052015-07-10 15:18:45 -0700127 'src/core/support/stack_lockfree.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700128 'src/core/support/string.c',
129 'src/core/support/string_posix.c',
130 'src/core/support/string_win32.c',
131 'src/core/support/subprocess_posix.c',
132 'src/core/support/sync.c',
133 'src/core/support/sync_posix.c',
134 'src/core/support/sync_win32.c',
135 'src/core/support/thd.c',
136 'src/core/support/thd_posix.c',
137 'src/core/support/thd_win32.c',
138 'src/core/support/time.c',
139 'src/core/support/time_posix.c',
Craig Tiller504ed592015-10-08 07:38:43 -0700140 'src/core/support/time_precise.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700141 'src/core/support/time_win32.c',
142 'src/core/support/tls_pthread.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700143 'src/core/security/auth_filters.h',
144 'src/core/security/base64.h',
145 'src/core/security/credentials.h',
Julien Boeuf87047d72015-08-21 14:30:33 -0700146 'src/core/security/handshake.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700147 'src/core/security/json_token.h',
Julien Boeuffeca1bf2015-06-22 16:46:20 +0200148 'src/core/security/jwt_verifier.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700149 'src/core/security/secure_endpoint.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700150 'src/core/security/security_connector.h',
151 'src/core/security/security_context.h',
152 'src/core/tsi/fake_transport_security.h',
153 'src/core/tsi/ssl_transport_security.h',
154 'src/core/tsi/transport_security.h',
155 'src/core/tsi/transport_security_interface.h',
Hongyu Chene09dc782015-08-21 11:28:33 -0700156 'src/core/census/grpc_filter.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700157 'src/core/channel/channel_args.h',
158 'src/core/channel/channel_stack.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700159 'src/core/channel/client_channel.h',
David Garcia Quintas8a187092015-07-01 14:52:44 -0700160 'src/core/channel/compress_filter.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700161 'src/core/channel/connected_channel.h',
162 'src/core/channel/context.h',
163 'src/core/channel/http_client_filter.h',
164 'src/core/channel/http_server_filter.h',
165 'src/core/channel/noop_filter.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700166 'src/core/client_config/client_config.h',
Craig Tiller91624662015-06-25 16:31:02 -0700167 'src/core/client_config/connector.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700168 'src/core/client_config/lb_policies/pick_first.h',
David Garcia Quintas4fb049b2015-09-03 17:26:06 -0700169 'src/core/client_config/lb_policies/round_robin.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700170 'src/core/client_config/lb_policy.h',
David Garcia Quintas5c4543d2015-09-03 15:49:56 -0700171 'src/core/client_config/lb_policy_factory.h',
172 'src/core/client_config/lb_policy_registry.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700173 'src/core/client_config/resolver.h',
174 'src/core/client_config/resolver_factory.h',
175 'src/core/client_config/resolver_registry.h',
176 'src/core/client_config/resolvers/dns_resolver.h',
Craig Tiller698d00c2015-07-20 12:32:58 -0700177 'src/core/client_config/resolvers/sockaddr_resolver.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700178 'src/core/client_config/subchannel.h',
179 'src/core/client_config/subchannel_factory.h',
Craig Tiller83f4d4e2015-07-29 18:14:41 -0700180 'src/core/client_config/subchannel_factory_decorators/add_channel_arg.h',
181 'src/core/client_config/subchannel_factory_decorators/merge_channel_args.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700182 'src/core/client_config/uri_parser.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700183 'src/core/compression/message_compress.h',
184 'src/core/debug/trace.h',
Craig Tillerf53d9c82015-08-04 14:19:43 -0700185 'src/core/httpcli/format_request.h',
186 'src/core/httpcli/httpcli.h',
187 'src/core/httpcli/parser.h',
Craig Tiller298751c2015-09-22 09:41:05 -0700188 'src/core/iomgr/closure.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700189 'src/core/iomgr/endpoint.h',
190 'src/core/iomgr/endpoint_pair.h',
Craig Tiller298751c2015-09-22 09:41:05 -0700191 'src/core/iomgr/exec_ctx.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700192 'src/core/iomgr/fd_posix.h',
193 'src/core/iomgr/iocp_windows.h',
194 'src/core/iomgr/iomgr.h',
195 'src/core/iomgr/iomgr_internal.h',
196 'src/core/iomgr/iomgr_posix.h',
197 'src/core/iomgr/pollset.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700198 'src/core/iomgr/pollset_posix.h',
199 'src/core/iomgr/pollset_set.h',
200 'src/core/iomgr/pollset_set_posix.h',
201 'src/core/iomgr/pollset_set_windows.h',
202 'src/core/iomgr/pollset_windows.h',
203 'src/core/iomgr/resolve_address.h',
204 'src/core/iomgr/sockaddr.h',
205 'src/core/iomgr/sockaddr_posix.h',
206 'src/core/iomgr/sockaddr_utils.h',
207 'src/core/iomgr/sockaddr_win32.h',
208 'src/core/iomgr/socket_utils_posix.h',
209 'src/core/iomgr/socket_windows.h',
210 'src/core/iomgr/tcp_client.h',
211 'src/core/iomgr/tcp_posix.h',
212 'src/core/iomgr/tcp_server.h',
213 'src/core/iomgr/tcp_windows.h',
214 'src/core/iomgr/time_averaged_stats.h',
David Garcia Quintasb65e4212015-10-14 12:00:21 -0700215 'src/core/iomgr/timer.h',
216 'src/core/iomgr/timer_heap.h',
217 'src/core/iomgr/timer_internal.h',
Robbie Shade69535292015-07-10 14:27:34 -0400218 'src/core/iomgr/udp_server.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700219 'src/core/iomgr/wakeup_fd_pipe.h',
220 'src/core/iomgr/wakeup_fd_posix.h',
Craig Tiller73b66062015-09-09 09:34:46 -0700221 'src/core/iomgr/workqueue.h',
222 'src/core/iomgr/workqueue_posix.h',
223 'src/core/iomgr/workqueue_windows.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700224 'src/core/json/json.h',
225 'src/core/json/json_common.h',
226 'src/core/json/json_reader.h',
227 'src/core/json/json_writer.h',
yang-g31ff8bc2015-08-25 14:09:06 -0700228 'src/core/statistics/census_interface.h',
229 'src/core/statistics/census_rpc_stats.h',
Masood Malekghassemi92298102015-08-20 18:50:17 -0700230 'src/core/surface/api_trace.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700231 'src/core/surface/byte_buffer_queue.h',
232 'src/core/surface/call.h',
David Garcia Quintas0c331882015-10-08 14:51:54 -0700233 'src/core/surface/call_test_only.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700234 'src/core/surface/channel.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700235 'src/core/surface/completion_queue.h',
236 'src/core/surface/event_string.h',
237 'src/core/surface/init.h',
238 'src/core/surface/server.h',
239 'src/core/surface/surface_trace.h',
240 'src/core/transport/chttp2/alpn.h',
241 'src/core/transport/chttp2/bin_encoder.h',
242 'src/core/transport/chttp2/frame.h',
243 'src/core/transport/chttp2/frame_data.h',
244 'src/core/transport/chttp2/frame_goaway.h',
245 'src/core/transport/chttp2/frame_ping.h',
246 'src/core/transport/chttp2/frame_rst_stream.h',
247 'src/core/transport/chttp2/frame_settings.h',
248 'src/core/transport/chttp2/frame_window_update.h',
249 'src/core/transport/chttp2/hpack_parser.h',
250 'src/core/transport/chttp2/hpack_table.h',
251 'src/core/transport/chttp2/http2_errors.h',
252 'src/core/transport/chttp2/huffsyms.h',
Craig Tiller6e8c7e82015-06-25 08:52:40 -0700253 'src/core/transport/chttp2/incoming_metadata.h',
254 'src/core/transport/chttp2/internal.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700255 'src/core/transport/chttp2/status_conversion.h',
256 'src/core/transport/chttp2/stream_encoder.h',
257 'src/core/transport/chttp2/stream_map.h',
258 'src/core/transport/chttp2/timeout_encoding.h',
259 'src/core/transport/chttp2/varint.h',
260 'src/core/transport/chttp2_transport.h',
Craig Tiller08a1cf82015-06-29 09:37:52 -0700261 'src/core/transport/connectivity_state.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700262 'src/core/transport/metadata.h',
263 'src/core/transport/stream_op.h',
264 'src/core/transport/transport.h',
265 'src/core/transport/transport_impl.h',
Alistair Veitch1c09acc2015-08-31 16:57:32 -0700266 'src/core/census/aggregation.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700267 'src/core/census/context.h',
Alistair Veitch9a099822015-08-27 13:16:00 -0700268 'src/core/census/rpc_metric_id.h',
Craig Tillere2288fc2015-06-23 18:32:26 -0700269 'grpc/grpc_security.h',
270 'grpc/byte_buffer.h',
271 'grpc/byte_buffer_reader.h',
272 'grpc/compression.h',
273 'grpc/grpc.h',
274 'grpc/status.h',
275 'grpc/census.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700276 'src/core/httpcli/httpcli_security_connector.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700277 'src/core/security/base64.c',
278 'src/core/security/client_auth_filter.c',
279 'src/core/security/credentials.c',
280 'src/core/security/credentials_metadata.c',
281 'src/core/security/credentials_posix.c',
282 'src/core/security/credentials_win32.c',
283 'src/core/security/google_default_credentials.c',
Julien Boeuf87047d72015-08-21 14:30:33 -0700284 'src/core/security/handshake.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700285 'src/core/security/json_token.c',
Julien Boeuffeca1bf2015-06-22 16:46:20 +0200286 'src/core/security/jwt_verifier.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700287 'src/core/security/secure_endpoint.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700288 'src/core/security/security_connector.c',
289 'src/core/security/security_context.c',
290 'src/core/security/server_auth_filter.c',
291 'src/core/security/server_secure_chttp2.c',
292 'src/core/surface/init_secure.c',
293 'src/core/surface/secure_channel_create.c',
294 'src/core/tsi/fake_transport_security.c',
295 'src/core/tsi/ssl_transport_security.c',
296 'src/core/tsi/transport_security.c',
297 'src/core/census/grpc_context.c',
Hongyu Chene09dc782015-08-21 11:28:33 -0700298 'src/core/census/grpc_filter.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700299 'src/core/channel/channel_args.c',
300 'src/core/channel/channel_stack.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700301 'src/core/channel/client_channel.c',
David Garcia Quintas8a187092015-07-01 14:52:44 -0700302 'src/core/channel/compress_filter.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700303 'src/core/channel/connected_channel.c',
304 'src/core/channel/http_client_filter.c',
305 'src/core/channel/http_server_filter.c',
306 'src/core/channel/noop_filter.c',
Craig Tiller4b628112015-06-25 08:58:23 -0700307 'src/core/client_config/client_config.c',
Craig Tiller91624662015-06-25 16:31:02 -0700308 'src/core/client_config/connector.c',
Craig Tiller4b628112015-06-25 08:58:23 -0700309 'src/core/client_config/lb_policies/pick_first.c',
David Garcia Quintas4fb049b2015-09-03 17:26:06 -0700310 'src/core/client_config/lb_policies/round_robin.c',
Craig Tiller4b628112015-06-25 08:58:23 -0700311 'src/core/client_config/lb_policy.c',
David Garcia Quintas5c4543d2015-09-03 15:49:56 -0700312 'src/core/client_config/lb_policy_factory.c',
313 'src/core/client_config/lb_policy_registry.c',
Craig Tiller4b628112015-06-25 08:58:23 -0700314 'src/core/client_config/resolver.c',
315 'src/core/client_config/resolver_factory.c',
316 'src/core/client_config/resolver_registry.c',
317 'src/core/client_config/resolvers/dns_resolver.c',
Craig Tiller698d00c2015-07-20 12:32:58 -0700318 'src/core/client_config/resolvers/sockaddr_resolver.c',
Craig Tiller4b628112015-06-25 08:58:23 -0700319 'src/core/client_config/subchannel.c',
320 'src/core/client_config/subchannel_factory.c',
Craig Tiller83f4d4e2015-07-29 18:14:41 -0700321 'src/core/client_config/subchannel_factory_decorators/add_channel_arg.c',
322 'src/core/client_config/subchannel_factory_decorators/merge_channel_args.c',
Craig Tiller4b628112015-06-25 08:58:23 -0700323 'src/core/client_config/uri_parser.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700324 'src/core/compression/algorithm.c',
325 'src/core/compression/message_compress.c',
326 'src/core/debug/trace.c',
Craig Tillerf53d9c82015-08-04 14:19:43 -0700327 'src/core/httpcli/format_request.c',
328 'src/core/httpcli/httpcli.c',
329 'src/core/httpcli/parser.c',
Craig Tiller298751c2015-09-22 09:41:05 -0700330 'src/core/iomgr/closure.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700331 'src/core/iomgr/endpoint.c',
332 'src/core/iomgr/endpoint_pair_posix.c',
333 'src/core/iomgr/endpoint_pair_windows.c',
Craig Tiller8af4c332015-09-22 12:32:31 -0700334 'src/core/iomgr/exec_ctx.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700335 'src/core/iomgr/fd_posix.c',
336 'src/core/iomgr/iocp_windows.c',
337 'src/core/iomgr/iomgr.c',
338 'src/core/iomgr/iomgr_posix.c',
339 'src/core/iomgr/iomgr_windows.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700340 'src/core/iomgr/pollset_multipoller_with_epoll.c',
341 'src/core/iomgr/pollset_multipoller_with_poll_posix.c',
342 'src/core/iomgr/pollset_posix.c',
343 'src/core/iomgr/pollset_set_posix.c',
344 'src/core/iomgr/pollset_set_windows.c',
345 'src/core/iomgr/pollset_windows.c',
346 'src/core/iomgr/resolve_address_posix.c',
347 'src/core/iomgr/resolve_address_windows.c',
348 'src/core/iomgr/sockaddr_utils.c',
349 'src/core/iomgr/socket_utils_common_posix.c',
350 'src/core/iomgr/socket_utils_linux.c',
351 'src/core/iomgr/socket_utils_posix.c',
352 'src/core/iomgr/socket_windows.c',
353 'src/core/iomgr/tcp_client_posix.c',
354 'src/core/iomgr/tcp_client_windows.c',
355 'src/core/iomgr/tcp_posix.c',
356 'src/core/iomgr/tcp_server_posix.c',
357 'src/core/iomgr/tcp_server_windows.c',
358 'src/core/iomgr/tcp_windows.c',
359 'src/core/iomgr/time_averaged_stats.c',
David Garcia Quintasb65e4212015-10-14 12:00:21 -0700360 'src/core/iomgr/timer.c',
361 'src/core/iomgr/timer_heap.c',
Robbie Shade69535292015-07-10 14:27:34 -0400362 'src/core/iomgr/udp_server.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700363 'src/core/iomgr/wakeup_fd_eventfd.c',
364 'src/core/iomgr/wakeup_fd_nospecial.c',
365 'src/core/iomgr/wakeup_fd_pipe.c',
366 'src/core/iomgr/wakeup_fd_posix.c',
Craig Tiller73b66062015-09-09 09:34:46 -0700367 'src/core/iomgr/workqueue_posix.c',
368 'src/core/iomgr/workqueue_windows.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700369 'src/core/json/json.c',
370 'src/core/json/json_reader.c',
371 'src/core/json/json_string.c',
372 'src/core/json/json_writer.c',
Masood Malekghassemife1093c2015-08-19 19:15:24 -0700373 'src/core/surface/api_trace.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700374 'src/core/surface/byte_buffer.c',
375 'src/core/surface/byte_buffer_queue.c',
376 'src/core/surface/byte_buffer_reader.c',
377 'src/core/surface/call.c',
378 'src/core/surface/call_details.c',
379 'src/core/surface/call_log_batch.c',
380 'src/core/surface/channel.c',
Craig Tiller48cb07c2015-07-15 16:16:15 -0700381 'src/core/surface/channel_connectivity.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700382 'src/core/surface/channel_create.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700383 'src/core/surface/completion_queue.c',
384 'src/core/surface/event_string.c',
385 'src/core/surface/init.c',
386 'src/core/surface/lame_client.c',
387 'src/core/surface/metadata_array.c',
388 'src/core/surface/server.c',
389 'src/core/surface/server_chttp2.c',
390 'src/core/surface/server_create.c',
Craig Tiller2e622bc2015-07-10 07:46:03 -0700391 'src/core/surface/version.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700392 'src/core/transport/chttp2/alpn.c',
393 'src/core/transport/chttp2/bin_encoder.c',
394 'src/core/transport/chttp2/frame_data.c',
395 'src/core/transport/chttp2/frame_goaway.c',
396 'src/core/transport/chttp2/frame_ping.c',
397 'src/core/transport/chttp2/frame_rst_stream.c',
398 'src/core/transport/chttp2/frame_settings.c',
399 'src/core/transport/chttp2/frame_window_update.c',
400 'src/core/transport/chttp2/hpack_parser.c',
401 'src/core/transport/chttp2/hpack_table.c',
402 'src/core/transport/chttp2/huffsyms.c',
Craig Tiller6e8c7e82015-06-25 08:52:40 -0700403 'src/core/transport/chttp2/incoming_metadata.c',
404 'src/core/transport/chttp2/parsing.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700405 'src/core/transport/chttp2/status_conversion.c',
406 'src/core/transport/chttp2/stream_encoder.c',
Craig Tiller6e8c7e82015-06-25 08:52:40 -0700407 'src/core/transport/chttp2/stream_lists.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700408 'src/core/transport/chttp2/stream_map.c',
409 'src/core/transport/chttp2/timeout_encoding.c',
410 'src/core/transport/chttp2/varint.c',
Craig Tiller6e8c7e82015-06-25 08:52:40 -0700411 'src/core/transport/chttp2/writing.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700412 'src/core/transport/chttp2_transport.c',
Craig Tiller08a1cf82015-06-29 09:37:52 -0700413 'src/core/transport/connectivity_state.c',
Craig Tillereb327fb2015-06-23 16:51:38 -0700414 'src/core/transport/metadata.c',
415 'src/core/transport/stream_op.c',
416 'src/core/transport/transport.c',
417 'src/core/transport/transport_op_string.c',
418 'src/core/census/context.c',
Alistair Veitch635899d2015-07-17 16:02:24 -0700419 'src/core/census/initialize.c',
Alistair Veitche6d0ad32015-08-13 09:59:48 -0700420 'src/core/census/operation.c',
Alistair Veitch0383d492015-07-26 15:29:00 -0700421 'src/core/census/tracing.c'
Craig Tillereb327fb2015-06-23 16:51:38 -0700422
Craig Tiller0ba432d2015-10-09 16:57:11 -0700423 ss.private_header_files = 'src/core/profiling/timers.h',
424 'src/core/support/block_annotate.h',
vjpai9839d282015-09-24 17:55:18 -0700425 'src/core/support/env.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700426 'src/core/support/file.h',
427 'src/core/support/murmur_hash.h',
Vijay Pai005e3052015-07-10 15:18:45 -0700428 'src/core/support/stack_lockfree.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700429 'src/core/support/string.h',
430 'src/core/support/string_win32.h',
431 'src/core/support/thd_internal.h',
Hongyu Chena0f149e2015-08-24 16:27:19 -0700432 'src/core/support/time_precise.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700433 'src/core/security/auth_filters.h',
434 'src/core/security/base64.h',
435 'src/core/security/credentials.h',
Julien Boeuf87047d72015-08-21 14:30:33 -0700436 'src/core/security/handshake.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700437 'src/core/security/json_token.h',
Julien Boeuffeca1bf2015-06-22 16:46:20 +0200438 'src/core/security/jwt_verifier.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700439 'src/core/security/secure_endpoint.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700440 'src/core/security/security_connector.h',
441 'src/core/security/security_context.h',
442 'src/core/tsi/fake_transport_security.h',
443 'src/core/tsi/ssl_transport_security.h',
444 'src/core/tsi/transport_security.h',
445 'src/core/tsi/transport_security_interface.h',
Hongyu Chene09dc782015-08-21 11:28:33 -0700446 'src/core/census/grpc_filter.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700447 'src/core/channel/channel_args.h',
448 'src/core/channel/channel_stack.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700449 'src/core/channel/client_channel.h',
David Garcia Quintas8a187092015-07-01 14:52:44 -0700450 'src/core/channel/compress_filter.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700451 'src/core/channel/connected_channel.h',
452 'src/core/channel/context.h',
453 'src/core/channel/http_client_filter.h',
454 'src/core/channel/http_server_filter.h',
455 'src/core/channel/noop_filter.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700456 'src/core/client_config/client_config.h',
Craig Tiller91624662015-06-25 16:31:02 -0700457 'src/core/client_config/connector.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700458 'src/core/client_config/lb_policies/pick_first.h',
David Garcia Quintas4fb049b2015-09-03 17:26:06 -0700459 'src/core/client_config/lb_policies/round_robin.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700460 'src/core/client_config/lb_policy.h',
David Garcia Quintas5c4543d2015-09-03 15:49:56 -0700461 'src/core/client_config/lb_policy_factory.h',
462 'src/core/client_config/lb_policy_registry.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700463 'src/core/client_config/resolver.h',
464 'src/core/client_config/resolver_factory.h',
465 'src/core/client_config/resolver_registry.h',
466 'src/core/client_config/resolvers/dns_resolver.h',
Craig Tiller698d00c2015-07-20 12:32:58 -0700467 'src/core/client_config/resolvers/sockaddr_resolver.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700468 'src/core/client_config/subchannel.h',
469 'src/core/client_config/subchannel_factory.h',
Craig Tiller83f4d4e2015-07-29 18:14:41 -0700470 'src/core/client_config/subchannel_factory_decorators/add_channel_arg.h',
471 'src/core/client_config/subchannel_factory_decorators/merge_channel_args.h',
Craig Tiller4b628112015-06-25 08:58:23 -0700472 'src/core/client_config/uri_parser.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700473 'src/core/compression/message_compress.h',
474 'src/core/debug/trace.h',
Craig Tillerf53d9c82015-08-04 14:19:43 -0700475 'src/core/httpcli/format_request.h',
476 'src/core/httpcli/httpcli.h',
477 'src/core/httpcli/parser.h',
Craig Tiller298751c2015-09-22 09:41:05 -0700478 'src/core/iomgr/closure.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700479 'src/core/iomgr/endpoint.h',
480 'src/core/iomgr/endpoint_pair.h',
Craig Tiller298751c2015-09-22 09:41:05 -0700481 'src/core/iomgr/exec_ctx.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700482 'src/core/iomgr/fd_posix.h',
483 'src/core/iomgr/iocp_windows.h',
484 'src/core/iomgr/iomgr.h',
485 'src/core/iomgr/iomgr_internal.h',
486 'src/core/iomgr/iomgr_posix.h',
487 'src/core/iomgr/pollset.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700488 'src/core/iomgr/pollset_posix.h',
489 'src/core/iomgr/pollset_set.h',
490 'src/core/iomgr/pollset_set_posix.h',
491 'src/core/iomgr/pollset_set_windows.h',
492 'src/core/iomgr/pollset_windows.h',
493 'src/core/iomgr/resolve_address.h',
494 'src/core/iomgr/sockaddr.h',
495 'src/core/iomgr/sockaddr_posix.h',
496 'src/core/iomgr/sockaddr_utils.h',
497 'src/core/iomgr/sockaddr_win32.h',
498 'src/core/iomgr/socket_utils_posix.h',
499 'src/core/iomgr/socket_windows.h',
500 'src/core/iomgr/tcp_client.h',
501 'src/core/iomgr/tcp_posix.h',
502 'src/core/iomgr/tcp_server.h',
503 'src/core/iomgr/tcp_windows.h',
504 'src/core/iomgr/time_averaged_stats.h',
David Garcia Quintasb65e4212015-10-14 12:00:21 -0700505 'src/core/iomgr/timer.h',
506 'src/core/iomgr/timer_heap.h',
507 'src/core/iomgr/timer_internal.h',
Robbie Shade69535292015-07-10 14:27:34 -0400508 'src/core/iomgr/udp_server.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700509 'src/core/iomgr/wakeup_fd_pipe.h',
510 'src/core/iomgr/wakeup_fd_posix.h',
Craig Tiller73b66062015-09-09 09:34:46 -0700511 'src/core/iomgr/workqueue.h',
512 'src/core/iomgr/workqueue_posix.h',
513 'src/core/iomgr/workqueue_windows.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700514 'src/core/json/json.h',
515 'src/core/json/json_common.h',
516 'src/core/json/json_reader.h',
517 'src/core/json/json_writer.h',
yang-g31ff8bc2015-08-25 14:09:06 -0700518 'src/core/statistics/census_interface.h',
519 'src/core/statistics/census_rpc_stats.h',
Masood Malekghassemi92298102015-08-20 18:50:17 -0700520 'src/core/surface/api_trace.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700521 'src/core/surface/byte_buffer_queue.h',
522 'src/core/surface/call.h',
David Garcia Quintas0c331882015-10-08 14:51:54 -0700523 'src/core/surface/call_test_only.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700524 'src/core/surface/channel.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700525 'src/core/surface/completion_queue.h',
526 'src/core/surface/event_string.h',
527 'src/core/surface/init.h',
528 'src/core/surface/server.h',
529 'src/core/surface/surface_trace.h',
530 'src/core/transport/chttp2/alpn.h',
531 'src/core/transport/chttp2/bin_encoder.h',
532 'src/core/transport/chttp2/frame.h',
533 'src/core/transport/chttp2/frame_data.h',
534 'src/core/transport/chttp2/frame_goaway.h',
535 'src/core/transport/chttp2/frame_ping.h',
536 'src/core/transport/chttp2/frame_rst_stream.h',
537 'src/core/transport/chttp2/frame_settings.h',
538 'src/core/transport/chttp2/frame_window_update.h',
539 'src/core/transport/chttp2/hpack_parser.h',
540 'src/core/transport/chttp2/hpack_table.h',
541 'src/core/transport/chttp2/http2_errors.h',
542 'src/core/transport/chttp2/huffsyms.h',
Craig Tiller6e8c7e82015-06-25 08:52:40 -0700543 'src/core/transport/chttp2/incoming_metadata.h',
544 'src/core/transport/chttp2/internal.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700545 'src/core/transport/chttp2/status_conversion.h',
546 'src/core/transport/chttp2/stream_encoder.h',
547 'src/core/transport/chttp2/stream_map.h',
548 'src/core/transport/chttp2/timeout_encoding.h',
549 'src/core/transport/chttp2/varint.h',
550 'src/core/transport/chttp2_transport.h',
Craig Tiller08a1cf82015-06-29 09:37:52 -0700551 'src/core/transport/connectivity_state.h',
Craig Tillereb327fb2015-06-23 16:51:38 -0700552 'src/core/transport/metadata.h',
553 'src/core/transport/stream_op.h',
554 'src/core/transport/transport.h',
555 'src/core/transport/transport_impl.h',
Alistair Veitch1c09acc2015-08-31 16:57:32 -0700556 'src/core/census/aggregation.h',
Alistair Veitch635899d2015-07-17 16:02:24 -0700557 'src/core/census/context.h',
Alistair Veitch9a099822015-08-27 13:16:00 -0700558 'src/core/census/rpc_metric_id.h'
Craig Tillereb327fb2015-06-23 16:51:38 -0700559
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700560 ss.header_mappings_dir = '.'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -0800561
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700562 ss.requires_arc = false
563 ss.libraries = 'z'
564 ss.dependency 'OpenSSL', '~> 1.0.200'
Jorge Canizales63c3efb2015-07-17 18:53:20 -0700565
566 # ss.compiler_flags = '-GCC_WARN_INHIBIT_ALL_WARNINGS', '-w'
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -0800567 end
568
Jorge Canizales146f1772015-04-27 23:59:22 -0700569 # This is a workaround for Cocoapods Issue #1437.
570 # It renames time.h and string.h to grpc_time.h and grpc_string.h.
571 # It needs to be here (top-level) instead of in the C-Core subspec because Cocoapods doesn't run
572 # prepare_command's of subspecs.
Jorge Canizales461b0942015-06-02 20:40:50 -0700573 #
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700574 # TODO(jcanizales): Try out others' solutions at Issue #1437.
Jorge Canizales146f1772015-04-27 23:59:22 -0700575 s.prepare_command = <<-CMD
murgatroid99df355772015-06-23 16:39:29 -0700576 # Move contents of include up a level to avoid manually specifying include paths
577 cp -r "include/grpc" "."
578
Jorge Canizales146f1772015-04-27 23:59:22 -0700579 DIR_TIME="grpc/support"
580 BAD_TIME="$DIR_TIME/time.h"
581 GOOD_TIME="$DIR_TIME/grpc_time.h"
Jorge Canizales59bb9d72015-06-22 19:04:15 -0700582 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 -0700583 if [ -f "$BAD_TIME" ];
Jorge Canizales146f1772015-04-27 23:59:22 -0700584 then
Jorge Canizales95068192015-07-02 20:18:43 -0700585 mv -f "$BAD_TIME" "$GOOD_TIME"
Jorge Canizales146f1772015-04-27 23:59:22 -0700586 fi
587
588 DIR_STRING="src/core/support"
589 BAD_STRING="$DIR_STRING/string.h"
590 GOOD_STRING="$DIR_STRING/grpc_string.h"
Jorge Canizales59bb9d72015-06-22 19:04:15 -0700591 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 -0700592 if [ -f "$BAD_STRING" ];
593 then
Jorge Canizales461b0942015-06-02 20:40:50 -0700594 mv -f "$BAD_STRING" "$GOOD_STRING"
Jorge Canizales146f1772015-04-27 23:59:22 -0700595 fi
596 CMD
597
Jorge Canizales461b0942015-06-02 20:40:50 -0700598 # Objective-C wrapper around the core gRPC library.
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700599 s.subspec 'GRPCClient' do |ss|
600 src_dir = "#{objc_dir}/GRPCClient"
601 ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}"
602 ss.private_header_files = "#{src_dir}/private/*.h"
603 ss.header_mappings_dir = "#{objc_dir}"
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -0800604
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700605 ss.dependency 'gRPC/C-Core'
606 ss.dependency 'gRPC/RxLibrary'
Jorge Canizalesba37a3e2015-03-23 15:34:58 -0700607
Jorge Canizales8957cae2015-04-22 23:40:18 -0700608 # Certificates, to be able to establish TLS connections:
Jorge Canizalesbb54ae82015-06-28 06:50:58 -0700609 ss.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] }
Jorge Canizales8957cae2015-04-22 23:40:18 -0700610 end
611
Jorge Canizales461b0942015-06-02 20:40:50 -0700612 # RPC library for ProtocolBuffers, based on gRPC
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700613 s.subspec 'ProtoRPC' do |ss|
614 src_dir = "#{objc_dir}/ProtoRPC"
615 ss.source_files = "#{src_dir}/*.{h,m}"
616 ss.header_mappings_dir = "#{objc_dir}"
Jorge Canizales8957cae2015-04-22 23:40:18 -0700617
Jorge Canizalesea9b4fd2015-06-21 13:37:28 -0700618 ss.dependency 'gRPC/GRPCClient'
619 ss.dependency 'gRPC/RxLibrary'
Craig Tillerba496452015-09-21 17:15:19 -0700620 ss.dependency 'Protobuf', '~> 3.0.0-alpha-4'
Jorge Canizales8957cae2015-04-22 23:40:18 -0700621 end
Jorge Canizalesc2d7ecb2015-02-27 01:22:41 -0800622end