1# This file has been automatically generated from a template file.
2# Please make modifications to `templates/gRPC-C++.podspec.template`
3# instead. This file can be regenerated from the template by running
4# `tools/buildgen/generate_projects.sh`.
5
6# gRPC C++ CocoaPods podspec
7#
8# Copyright 2017 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
23Pod::Spec.new do |s|
24  s.name     = 'gRPC-C++'
25  # TODO (mxyan): use version that match gRPC version when pod is stabilized
26  # version = '1.23.0-dev'
27  version = '0.0.9-dev'
28  s.version  = version
29  s.summary  = 'gRPC C++ library'
30  s.homepage = 'https://grpc.io'
31  s.license  = 'Apache License, Version 2.0'
32  s.authors  = { 'The gRPC contributors' => 'grpc-packages@google.com' }
33
34  grpc_version = '1.23.0-dev'
35
36  s.source = {
37    :git => 'https://github.com/grpc/grpc.git',
38    :tag => "v#{grpc_version}",
39  }
40
41  s.ios.deployment_target = '7.0'
42  s.osx.deployment_target = '10.9'
43  s.tvos.deployment_target = '10.0'
44
45  s.requires_arc = false
46
47  name = 'grpcpp'
48  # Use `grpcpp` as framework name so that `#include <grpcpp/xxx.h>` works when built as
49  # framework.
50  s.module_name = name
51
52  # Add include prefix `grpcpp` so that `#include <grpcpp/xxx.h>` works when built as static
53  # library.
54  s.header_dir = name
55
56  s.pod_target_xcconfig = {
57    'HEADER_SEARCH_PATHS' => '"$(inherited)" "$(PODS_TARGET_SRCROOT)/include"',
58    'USER_HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)"',
59    'GCC_PREPROCESSOR_DEFINITIONS' => '"$(inherited)" "COCOAPODS=1" "PB_NO_PACKED_STRUCTS=1"',
60    'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
61    'CLANG_WARN_DOCUMENTATION_COMMENTS' => 'NO',
62
63    # If we don't set these two settings, `include/grpc/support/time.h` and
64    # `src/core/lib/support/string.h` shadow the system `<time.h>` and `<string.h>`, breaking the
65    # build.
66    'USE_HEADERMAP' => 'NO',
67    'ALWAYS_SEARCH_USER_PATHS' => 'NO',
68  }
69
70  s.libraries = 'c++'
71
72  s.default_subspecs = 'Interface', 'Implementation'
73
74  # Certificates, to be able to establish TLS connections:
75  s.resource_bundles = { 'gRPCCertificates-Cpp' => ['etc/roots.pem'] }
76
77  s.header_mappings_dir = 'include/grpcpp'
78
79  s.subspec 'Interface' do |ss|
80    ss.header_mappings_dir = 'include/grpcpp'
81
82    ss.source_files = 'include/grpcpp/alarm.h',
83                      'include/grpcpp/alarm_impl.h',
84                      'include/grpcpp/channel.h',
85                      'include/grpcpp/channel_impl.h',
86                      'include/grpcpp/client_context.h',
87                      'include/grpcpp/completion_queue.h',
88                      'include/grpcpp/completion_queue_impl.h',
89                      'include/grpcpp/create_channel.h',
90                      'include/grpcpp/create_channel_impl.h',
91                      'include/grpcpp/create_channel_posix.h',
92                      'include/grpcpp/create_channel_posix_impl.h',
93                      'include/grpcpp/ext/health_check_service_server_builder_option.h',
94                      'include/grpcpp/generic/async_generic_service.h',
95                      'include/grpcpp/generic/generic_stub.h',
96                      'include/grpcpp/generic/generic_stub_impl.h',
97                      'include/grpcpp/grpcpp.h',
98                      'include/grpcpp/health_check_service_interface.h',
99                      'include/grpcpp/health_check_service_interface_impl.h',
100                      'include/grpcpp/impl/call.h',
101                      'include/grpcpp/impl/channel_argument_option.h',
102                      'include/grpcpp/impl/client_unary_call.h',
103                      'include/grpcpp/impl/codegen/core_codegen.h',
104                      'include/grpcpp/impl/grpc_library.h',
105                      'include/grpcpp/impl/method_handler_impl.h',
106                      'include/grpcpp/impl/rpc_method.h',
107                      'include/grpcpp/impl/rpc_service_method.h',
108                      'include/grpcpp/impl/serialization_traits.h',
109                      'include/grpcpp/impl/server_builder_option.h',
110                      'include/grpcpp/impl/server_builder_option_impl.h',
111                      'include/grpcpp/impl/server_builder_plugin.h',
112                      'include/grpcpp/impl/server_initializer.h',
113                      'include/grpcpp/impl/server_initializer_impl.h',
114                      'include/grpcpp/impl/service_type.h',
115                      'include/grpcpp/resource_quota.h',
116                      'include/grpcpp/resource_quota_impl.h',
117                      'include/grpcpp/security/auth_context.h',
118                      'include/grpcpp/security/auth_metadata_processor.h',
119                      'include/grpcpp/security/auth_metadata_processor_impl.h',
120                      'include/grpcpp/security/credentials.h',
121                      'include/grpcpp/security/credentials_impl.h',
122                      'include/grpcpp/security/server_credentials.h',
123                      'include/grpcpp/security/server_credentials_impl.h',
124                      'include/grpcpp/server.h',
125                      'include/grpcpp/server_builder.h',
126                      'include/grpcpp/server_builder_impl.h',
127                      'include/grpcpp/server_context.h',
128                      'include/grpcpp/server_impl.h',
129                      'include/grpcpp/server_posix.h',
130                      'include/grpcpp/server_posix_impl.h',
131                      'include/grpcpp/support/async_stream.h',
132                      'include/grpcpp/support/async_stream_impl.h',
133                      'include/grpcpp/support/async_unary_call.h',
134                      'include/grpcpp/support/async_unary_call_impl.h',
135                      'include/grpcpp/support/byte_buffer.h',
136                      'include/grpcpp/support/channel_arguments.h',
137                      'include/grpcpp/support/channel_arguments_impl.h',
138                      'include/grpcpp/support/client_callback.h',
139                      'include/grpcpp/support/client_callback_impl.h',
140                      'include/grpcpp/support/client_interceptor.h',
141                      'include/grpcpp/support/config.h',
142                      'include/grpcpp/support/interceptor.h',
143                      'include/grpcpp/support/message_allocator.h',
144                      'include/grpcpp/support/proto_buffer_reader.h',
145                      'include/grpcpp/support/proto_buffer_writer.h',
146                      'include/grpcpp/support/server_callback.h',
147                      'include/grpcpp/support/server_callback_impl.h',
148                      'include/grpcpp/support/server_interceptor.h',
149                      'include/grpcpp/support/slice.h',
150                      'include/grpcpp/support/status.h',
151                      'include/grpcpp/support/status_code_enum.h',
152                      'include/grpcpp/support/string_ref.h',
153                      'include/grpcpp/support/stub_options.h',
154                      'include/grpcpp/support/sync_stream.h',
155                      'include/grpcpp/support/sync_stream_impl.h',
156                      'include/grpcpp/support/time.h',
157                      'include/grpcpp/support/validate_service_config.h',
158                      'include/grpcpp/impl/codegen/async_generic_service.h',
159                      'include/grpcpp/impl/codegen/async_stream.h',
160                      'include/grpcpp/impl/codegen/async_stream_impl.h',
161                      'include/grpcpp/impl/codegen/async_unary_call.h',
162                      'include/grpcpp/impl/codegen/async_unary_call_impl.h',
163                      'include/grpcpp/impl/codegen/byte_buffer.h',
164                      'include/grpcpp/impl/codegen/call.h',
165                      'include/grpcpp/impl/codegen/call_hook.h',
166                      'include/grpcpp/impl/codegen/call_op_set.h',
167                      'include/grpcpp/impl/codegen/call_op_set_interface.h',
168                      'include/grpcpp/impl/codegen/callback_common.h',
169                      'include/grpcpp/impl/codegen/channel_interface.h',
170                      'include/grpcpp/impl/codegen/client_callback.h',
171                      'include/grpcpp/impl/codegen/client_callback_impl.h',
172                      'include/grpcpp/impl/codegen/client_context.h',
173                      'include/grpcpp/impl/codegen/client_context_impl.h',
174                      'include/grpcpp/impl/codegen/client_interceptor.h',
175                      'include/grpcpp/impl/codegen/client_unary_call.h',
176                      'include/grpcpp/impl/codegen/completion_queue.h',
177                      'include/grpcpp/impl/codegen/completion_queue_impl.h',
178                      'include/grpcpp/impl/codegen/completion_queue_tag.h',
179                      'include/grpcpp/impl/codegen/config.h',
180                      'include/grpcpp/impl/codegen/core_codegen_interface.h',
181                      'include/grpcpp/impl/codegen/create_auth_context.h',
182                      'include/grpcpp/impl/codegen/grpc_library.h',
183                      'include/grpcpp/impl/codegen/intercepted_channel.h',
184                      'include/grpcpp/impl/codegen/interceptor.h',
185                      'include/grpcpp/impl/codegen/interceptor_common.h',
186                      'include/grpcpp/impl/codegen/message_allocator.h',
187                      'include/grpcpp/impl/codegen/metadata_map.h',
188                      'include/grpcpp/impl/codegen/method_handler_impl.h',
189                      'include/grpcpp/impl/codegen/rpc_method.h',
190                      'include/grpcpp/impl/codegen/rpc_service_method.h',
191                      'include/grpcpp/impl/codegen/security/auth_context.h',
192                      'include/grpcpp/impl/codegen/serialization_traits.h',
193                      'include/grpcpp/impl/codegen/server_callback.h',
194                      'include/grpcpp/impl/codegen/server_callback_impl.h',
195                      'include/grpcpp/impl/codegen/server_context.h',
196                      'include/grpcpp/impl/codegen/server_context_impl.h',
197                      'include/grpcpp/impl/codegen/server_interceptor.h',
198                      'include/grpcpp/impl/codegen/server_interface.h',
199                      'include/grpcpp/impl/codegen/service_type.h',
200                      'include/grpcpp/impl/codegen/slice.h',
201                      'include/grpcpp/impl/codegen/status.h',
202                      'include/grpcpp/impl/codegen/status_code_enum.h',
203                      'include/grpcpp/impl/codegen/string_ref.h',
204                      'include/grpcpp/impl/codegen/stub_options.h',
205                      'include/grpcpp/impl/codegen/sync_stream.h',
206                      'include/grpcpp/impl/codegen/sync_stream_impl.h',
207                      'include/grpcpp/impl/codegen/time.h',
208                      'include/grpcpp/impl/codegen/sync.h'
209  end
210
211  s.subspec 'Implementation' do |ss|
212    ss.header_mappings_dir = '.'
213    ss.dependency "#{s.name}/Interface", version
214    ss.dependency 'gRPC-Core', grpc_version
215    ss.dependency 'nanopb', '~> 0.3'
216
217    ss.source_files = 'include/grpcpp/impl/codegen/core_codegen.h',
218                      'src/cpp/client/secure_credentials.h',
219                      'src/cpp/common/secure_auth_context.h',
220                      'src/cpp/server/secure_server_credentials.h',
221                      'src/cpp/client/create_channel_internal.h',
222                      'src/cpp/common/channel_filter.h',
223                      'src/cpp/server/dynamic_thread_pool.h',
224                      'src/cpp/server/external_connection_acceptor_impl.h',
225                      'src/cpp/server/health/default_health_check_service.h',
226                      'src/cpp/server/thread_pool_interface.h',
227                      'src/cpp/thread_manager/thread_manager.h',
228                      'src/cpp/client/insecure_credentials.cc',
229                      'src/cpp/client/secure_credentials.cc',
230                      'src/cpp/common/auth_property_iterator.cc',
231                      'src/cpp/common/secure_auth_context.cc',
232                      'src/cpp/common/secure_channel_arguments.cc',
233                      'src/cpp/common/secure_create_auth_context.cc',
234                      'src/cpp/server/insecure_server_credentials.cc',
235                      'src/cpp/server/secure_server_credentials.cc',
236                      'src/cpp/client/channel_cc.cc',
237                      'src/cpp/client/client_context.cc',
238                      'src/cpp/client/client_interceptor.cc',
239                      'src/cpp/client/create_channel.cc',
240                      'src/cpp/client/create_channel_internal.cc',
241                      'src/cpp/client/create_channel_posix.cc',
242                      'src/cpp/client/credentials_cc.cc',
243                      'src/cpp/client/generic_stub.cc',
244                      'src/cpp/common/alarm.cc',
245                      'src/cpp/common/channel_arguments.cc',
246                      'src/cpp/common/channel_filter.cc',
247                      'src/cpp/common/completion_queue_cc.cc',
248                      'src/cpp/common/core_codegen.cc',
249                      'src/cpp/common/resource_quota_cc.cc',
250                      'src/cpp/common/rpc_method.cc',
251                      'src/cpp/common/validate_service_config.cc',
252                      'src/cpp/common/version_cc.cc',
253                      'src/cpp/server/async_generic_service.cc',
254                      'src/cpp/server/channel_argument_option.cc',
255                      'src/cpp/server/create_default_thread_pool.cc',
256                      'src/cpp/server/dynamic_thread_pool.cc',
257                      'src/cpp/server/external_connection_acceptor_impl.cc',
258                      'src/cpp/server/health/default_health_check_service.cc',
259                      'src/cpp/server/health/health_check_service.cc',
260                      'src/cpp/server/health/health_check_service_server_builder_option.cc',
261                      'src/cpp/server/server_builder.cc',
262                      'src/cpp/server/server_cc.cc',
263                      'src/cpp/server/server_context.cc',
264                      'src/cpp/server/server_credentials.cc',
265                      'src/cpp/server/server_posix.cc',
266                      'src/cpp/thread_manager/thread_manager.cc',
267                      'src/cpp/util/byte_buffer_cc.cc',
268                      'src/cpp/util/status.cc',
269                      'src/cpp/util/string_ref.cc',
270                      'src/cpp/util/time_cc.cc',
271                      'src/cpp/codegen/codegen_init.cc',
272                      'src/core/lib/gpr/alloc.h',
273                      'src/core/lib/gpr/arena.h',
274                      'src/core/lib/gpr/env.h',
275                      'src/core/lib/gpr/mpscq.h',
276                      'src/core/lib/gpr/murmur_hash.h',
277                      'src/core/lib/gpr/spinlock.h',
278                      'src/core/lib/gpr/string.h',
279                      'src/core/lib/gpr/string_windows.h',
280                      'src/core/lib/gpr/time_precise.h',
281                      'src/core/lib/gpr/tls.h',
282                      'src/core/lib/gpr/tls_gcc.h',
283                      'src/core/lib/gpr/tls_msvc.h',
284                      'src/core/lib/gpr/tls_pthread.h',
285                      'src/core/lib/gpr/tmpfile.h',
286                      'src/core/lib/gpr/useful.h',
287                      'src/core/lib/gprpp/abstract.h',
288                      'src/core/lib/gprpp/arena.h',
289                      'src/core/lib/gprpp/atomic.h',
290                      'src/core/lib/gprpp/fork.h',
291                      'src/core/lib/gprpp/global_config.h',
292                      'src/core/lib/gprpp/global_config_custom.h',
293                      'src/core/lib/gprpp/global_config_env.h',
294                      'src/core/lib/gprpp/global_config_generic.h',
295                      'src/core/lib/gprpp/host_port.h',
296                      'src/core/lib/gprpp/manual_constructor.h',
297                      'src/core/lib/gprpp/map.h',
298                      'src/core/lib/gprpp/memory.h',
299                      'src/core/lib/gprpp/pair.h',
300                      'src/core/lib/gprpp/sync.h',
301                      'src/core/lib/gprpp/thd.h',
302                      'src/core/lib/profiling/timers.h',
303                      'src/core/ext/transport/chttp2/transport/bin_decoder.h',
304                      'src/core/ext/transport/chttp2/transport/bin_encoder.h',
305                      'src/core/ext/transport/chttp2/transport/chttp2_transport.h',
306                      'src/core/ext/transport/chttp2/transport/context_list.h',
307                      'src/core/ext/transport/chttp2/transport/flow_control.h',
308                      'src/core/ext/transport/chttp2/transport/frame.h',
309                      'src/core/ext/transport/chttp2/transport/frame_data.h',
310                      'src/core/ext/transport/chttp2/transport/frame_goaway.h',
311                      'src/core/ext/transport/chttp2/transport/frame_ping.h',
312                      'src/core/ext/transport/chttp2/transport/frame_rst_stream.h',
313                      'src/core/ext/transport/chttp2/transport/frame_settings.h',
314                      'src/core/ext/transport/chttp2/transport/frame_window_update.h',
315                      'src/core/ext/transport/chttp2/transport/hpack_encoder.h',
316                      'src/core/ext/transport/chttp2/transport/hpack_parser.h',
317                      'src/core/ext/transport/chttp2/transport/hpack_table.h',
318                      'src/core/ext/transport/chttp2/transport/http2_settings.h',
319                      'src/core/ext/transport/chttp2/transport/huffsyms.h',
320                      'src/core/ext/transport/chttp2/transport/incoming_metadata.h',
321                      'src/core/ext/transport/chttp2/transport/internal.h',
322                      'src/core/ext/transport/chttp2/transport/stream_map.h',
323                      'src/core/ext/transport/chttp2/transport/varint.h',
324                      'src/core/ext/transport/chttp2/alpn/alpn.h',
325                      'src/core/ext/filters/http/client/http_client_filter.h',
326                      'src/core/ext/filters/http/message_compress/message_compress_filter.h',
327                      'src/core/ext/filters/http/server/http_server_filter.h',
328                      'src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h',
329                      'src/core/ext/filters/client_channel/lb_policy/xds/xds.h',
330                      'src/core/lib/security/context/security_context.h',
331                      'src/core/lib/security/credentials/alts/alts_credentials.h',
332                      'src/core/lib/security/credentials/composite/composite_credentials.h',
333                      'src/core/lib/security/credentials/credentials.h',
334                      'src/core/lib/security/credentials/fake/fake_credentials.h',
335                      'src/core/lib/security/credentials/google_default/google_default_credentials.h',
336                      'src/core/lib/security/credentials/iam/iam_credentials.h',
337                      'src/core/lib/security/credentials/jwt/json_token.h',
338                      'src/core/lib/security/credentials/jwt/jwt_credentials.h',
339                      'src/core/lib/security/credentials/jwt/jwt_verifier.h',
340                      'src/core/lib/security/credentials/local/local_credentials.h',
341                      'src/core/lib/security/credentials/oauth2/oauth2_credentials.h',
342                      'src/core/lib/security/credentials/plugin/plugin_credentials.h',
343                      'src/core/lib/security/credentials/ssl/ssl_credentials.h',
344                      'src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h',
345                      'src/core/lib/security/credentials/tls/spiffe_credentials.h',
346                      'src/core/lib/security/security_connector/alts/alts_security_connector.h',
347                      'src/core/lib/security/security_connector/fake/fake_security_connector.h',
348                      'src/core/lib/security/security_connector/load_system_roots.h',
349                      'src/core/lib/security/security_connector/load_system_roots_linux.h',
350                      'src/core/lib/security/security_connector/local/local_security_connector.h',
351                      'src/core/lib/security/security_connector/security_connector.h',
352                      'src/core/lib/security/security_connector/ssl/ssl_security_connector.h',
353                      'src/core/lib/security/security_connector/ssl_utils.h',
354                      'src/core/lib/security/security_connector/tls/spiffe_security_connector.h',
355                      'src/core/lib/security/transport/auth_filters.h',
356                      'src/core/lib/security/transport/secure_endpoint.h',
357                      'src/core/lib/security/transport/security_handshaker.h',
358                      'src/core/lib/security/transport/target_authority_table.h',
359                      'src/core/lib/security/transport/tsi_error.h',
360                      'src/core/lib/security/util/json_util.h',
361                      'src/core/tsi/alts/crypt/gsec.h',
362                      'src/core/tsi/alts/frame_protector/alts_counter.h',
363                      'src/core/tsi/alts/frame_protector/alts_crypter.h',
364                      'src/core/tsi/alts/frame_protector/alts_frame_protector.h',
365                      'src/core/tsi/alts/frame_protector/alts_record_protocol_crypter_common.h',
366                      'src/core/tsi/alts/frame_protector/frame_handler.h',
367                      'src/core/tsi/alts/handshaker/alts_handshaker_client.h',
368                      'src/core/tsi/alts/handshaker/alts_shared_resource.h',
369                      'src/core/tsi/alts/handshaker/alts_tsi_handshaker.h',
370                      'src/core/tsi/alts/handshaker/alts_tsi_handshaker_private.h',
371                      'src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h',
372                      'src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.h',
373                      'src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol.h',
374                      'src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.h',
375                      'src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h',
376                      'src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h',
377                      'src/core/lib/security/credentials/alts/check_gcp_environment.h',
378                      'src/core/lib/security/credentials/alts/grpc_alts_credentials_options.h',
379                      'src/core/tsi/alts/handshaker/alts_handshaker_service_api.h',
380                      'src/core/tsi/alts/handshaker/alts_handshaker_service_api_util.h',
381                      'src/core/tsi/alts/handshaker/alts_tsi_utils.h',
382                      'src/core/tsi/alts/handshaker/transport_security_common_api.h',
383                      'src/core/tsi/alts/handshaker/altscontext.pb.h',
384                      'src/core/tsi/alts/handshaker/handshaker.pb.h',
385                      'src/core/tsi/alts/handshaker/transport_security_common.pb.h',
386                      'src/core/tsi/transport_security.h',
387                      'src/core/tsi/transport_security_interface.h',
388                      'src/core/ext/transport/chttp2/client/authority.h',
389                      'src/core/ext/transport/chttp2/client/chttp2_connector.h',
390                      'src/core/ext/filters/client_channel/backup_poller.h',
391                      'src/core/ext/filters/client_channel/client_channel.h',
392                      'src/core/ext/filters/client_channel/client_channel_channelz.h',
393                      'src/core/ext/filters/client_channel/client_channel_factory.h',
394                      'src/core/ext/filters/client_channel/connector.h',
395                      'src/core/ext/filters/client_channel/global_subchannel_pool.h',
396                      'src/core/ext/filters/client_channel/health/health_check_client.h',
397                      'src/core/ext/filters/client_channel/http_connect_handshaker.h',
398                      'src/core/ext/filters/client_channel/http_proxy.h',
399                      'src/core/ext/filters/client_channel/lb_policy.h',
400                      'src/core/ext/filters/client_channel/lb_policy_factory.h',
401                      'src/core/ext/filters/client_channel/lb_policy_registry.h',
402                      'src/core/ext/filters/client_channel/local_subchannel_pool.h',
403                      'src/core/ext/filters/client_channel/parse_address.h',
404                      'src/core/ext/filters/client_channel/proxy_mapper.h',
405                      'src/core/ext/filters/client_channel/proxy_mapper_registry.h',
406                      'src/core/ext/filters/client_channel/resolver.h',
407                      'src/core/ext/filters/client_channel/resolver_factory.h',
408                      'src/core/ext/filters/client_channel/resolver_registry.h',
409                      'src/core/ext/filters/client_channel/resolver_result_parsing.h',
410                      'src/core/ext/filters/client_channel/resolving_lb_policy.h',
411                      'src/core/ext/filters/client_channel/retry_throttle.h',
412                      'src/core/ext/filters/client_channel/server_address.h',
413                      'src/core/ext/filters/client_channel/service_config.h',
414                      'src/core/ext/filters/client_channel/subchannel.h',
415                      'src/core/ext/filters/client_channel/subchannel_interface.h',
416                      'src/core/ext/filters/client_channel/subchannel_pool_interface.h',
417                      'src/core/ext/filters/deadline/deadline_filter.h',
418                      'src/core/ext/filters/client_channel/health/health.pb.h',
419                      'src/core/tsi/fake_transport_security.h',
420                      'src/core/tsi/local_transport_security.h',
421                      'src/core/tsi/ssl/session_cache/ssl_session.h',
422                      'src/core/tsi/ssl/session_cache/ssl_session_cache.h',
423                      'src/core/tsi/ssl_transport_security.h',
424                      'src/core/tsi/ssl_types.h',
425                      'src/core/tsi/transport_security_grpc.h',
426                      'src/core/tsi/grpc_shadow_boringssl.h',
427                      'src/core/ext/transport/chttp2/server/chttp2_server.h',
428                      'src/core/ext/transport/inproc/inproc_transport.h',
429                      'src/core/lib/avl/avl.h',
430                      'src/core/lib/backoff/backoff.h',
431                      'src/core/lib/channel/channel_args.h',
432                      'src/core/lib/channel/channel_stack.h',
433                      'src/core/lib/channel/channel_stack_builder.h',
434                      'src/core/lib/channel/channel_trace.h',
435                      'src/core/lib/channel/channelz.h',
436                      'src/core/lib/channel/channelz_registry.h',
437                      'src/core/lib/channel/connected_channel.h',
438                      'src/core/lib/channel/context.h',
439                      'src/core/lib/channel/handshaker.h',
440                      'src/core/lib/channel/handshaker_factory.h',
441                      'src/core/lib/channel/handshaker_registry.h',
442                      'src/core/lib/channel/status_util.h',
443                      'src/core/lib/compression/algorithm_metadata.h',
444                      'src/core/lib/compression/compression_args.h',
445                      'src/core/lib/compression/compression_internal.h',
446                      'src/core/lib/compression/message_compress.h',
447                      'src/core/lib/compression/stream_compression.h',
448                      'src/core/lib/compression/stream_compression_gzip.h',
449                      'src/core/lib/compression/stream_compression_identity.h',
450                      'src/core/lib/debug/stats.h',
451                      'src/core/lib/debug/stats_data.h',
452                      'src/core/lib/gprpp/debug_location.h',
453                      'src/core/lib/gprpp/inlined_vector.h',
454                      'src/core/lib/gprpp/optional.h',
455                      'src/core/lib/gprpp/orphanable.h',
456                      'src/core/lib/gprpp/ref_counted.h',
457                      'src/core/lib/gprpp/ref_counted_ptr.h',
458                      'src/core/lib/gprpp/string_view.h',
459                      'src/core/lib/http/format_request.h',
460                      'src/core/lib/http/httpcli.h',
461                      'src/core/lib/http/parser.h',
462                      'src/core/lib/iomgr/block_annotate.h',
463                      'src/core/lib/iomgr/buffer_list.h',
464                      'src/core/lib/iomgr/call_combiner.h',
465                      'src/core/lib/iomgr/cfstream_handle.h',
466                      'src/core/lib/iomgr/closure.h',
467                      'src/core/lib/iomgr/combiner.h',
468                      'src/core/lib/iomgr/dynamic_annotations.h',
469                      'src/core/lib/iomgr/endpoint.h',
470                      'src/core/lib/iomgr/endpoint_cfstream.h',
471                      'src/core/lib/iomgr/endpoint_pair.h',
472                      'src/core/lib/iomgr/error.h',
473                      'src/core/lib/iomgr/error_cfstream.h',
474                      'src/core/lib/iomgr/error_internal.h',
475                      'src/core/lib/iomgr/ev_epoll1_linux.h',
476                      'src/core/lib/iomgr/ev_epollex_linux.h',
477                      'src/core/lib/iomgr/ev_poll_posix.h',
478                      'src/core/lib/iomgr/ev_posix.h',
479                      'src/core/lib/iomgr/exec_ctx.h',
480                      'src/core/lib/iomgr/executor.h',
481                      'src/core/lib/iomgr/executor/mpmcqueue.h',
482                      'src/core/lib/iomgr/gethostname.h',
483                      'src/core/lib/iomgr/grpc_if_nametoindex.h',
484                      'src/core/lib/iomgr/internal_errqueue.h',
485                      'src/core/lib/iomgr/iocp_windows.h',
486                      'src/core/lib/iomgr/iomgr.h',
487                      'src/core/lib/iomgr/iomgr_custom.h',
488                      'src/core/lib/iomgr/iomgr_internal.h',
489                      'src/core/lib/iomgr/iomgr_posix.h',
490                      'src/core/lib/iomgr/is_epollexclusive_available.h',
491                      'src/core/lib/iomgr/load_file.h',
492                      'src/core/lib/iomgr/lockfree_event.h',
493                      'src/core/lib/iomgr/nameser.h',
494                      'src/core/lib/iomgr/polling_entity.h',
495                      'src/core/lib/iomgr/pollset.h',
496                      'src/core/lib/iomgr/pollset_custom.h',
497                      'src/core/lib/iomgr/pollset_set.h',
498                      'src/core/lib/iomgr/pollset_set_custom.h',
499                      'src/core/lib/iomgr/pollset_set_windows.h',
500                      'src/core/lib/iomgr/pollset_windows.h',
501                      'src/core/lib/iomgr/port.h',
502                      'src/core/lib/iomgr/resolve_address.h',
503                      'src/core/lib/iomgr/resolve_address_custom.h',
504                      'src/core/lib/iomgr/resource_quota.h',
505                      'src/core/lib/iomgr/sockaddr.h',
506                      'src/core/lib/iomgr/sockaddr_custom.h',
507                      'src/core/lib/iomgr/sockaddr_posix.h',
508                      'src/core/lib/iomgr/sockaddr_utils.h',
509                      'src/core/lib/iomgr/sockaddr_windows.h',
510                      'src/core/lib/iomgr/socket_factory_posix.h',
511                      'src/core/lib/iomgr/socket_mutator.h',
512                      'src/core/lib/iomgr/socket_utils.h',
513                      'src/core/lib/iomgr/socket_utils_posix.h',
514                      'src/core/lib/iomgr/socket_windows.h',
515                      'src/core/lib/iomgr/sys_epoll_wrapper.h',
516                      'src/core/lib/iomgr/tcp_client.h',
517                      'src/core/lib/iomgr/tcp_client_posix.h',
518                      'src/core/lib/iomgr/tcp_custom.h',
519                      'src/core/lib/iomgr/tcp_posix.h',
520                      'src/core/lib/iomgr/tcp_server.h',
521                      'src/core/lib/iomgr/tcp_server_utils_posix.h',
522                      'src/core/lib/iomgr/tcp_windows.h',
523                      'src/core/lib/iomgr/time_averaged_stats.h',
524                      'src/core/lib/iomgr/timer.h',
525                      'src/core/lib/iomgr/timer_custom.h',
526                      'src/core/lib/iomgr/timer_heap.h',
527                      'src/core/lib/iomgr/timer_manager.h',
528                      'src/core/lib/iomgr/udp_server.h',
529                      'src/core/lib/iomgr/unix_sockets_posix.h',
530                      'src/core/lib/iomgr/wakeup_fd_pipe.h',
531                      'src/core/lib/iomgr/wakeup_fd_posix.h',
532                      'src/core/lib/json/json.h',
533                      'src/core/lib/json/json_common.h',
534                      'src/core/lib/json/json_reader.h',
535                      'src/core/lib/json/json_writer.h',
536                      'src/core/lib/slice/b64.h',
537                      'src/core/lib/slice/percent_encoding.h',
538                      'src/core/lib/slice/slice_hash_table.h',
539                      'src/core/lib/slice/slice_internal.h',
540                      'src/core/lib/slice/slice_string_helpers.h',
541                      'src/core/lib/slice/slice_utils.h',
542                      'src/core/lib/slice/slice_weak_hash_table.h',
543                      'src/core/lib/surface/api_trace.h',
544                      'src/core/lib/surface/call.h',
545                      'src/core/lib/surface/call_test_only.h',
546                      'src/core/lib/surface/channel.h',
547                      'src/core/lib/surface/channel_init.h',
548                      'src/core/lib/surface/channel_stack_type.h',
549                      'src/core/lib/surface/completion_queue.h',
550                      'src/core/lib/surface/completion_queue_factory.h',
551                      'src/core/lib/surface/event_string.h',
552                      'src/core/lib/surface/init.h',
553                      'src/core/lib/surface/lame_client.h',
554                      'src/core/lib/surface/server.h',
555                      'src/core/lib/surface/validate_metadata.h',
556                      'src/core/lib/transport/bdp_estimator.h',
557                      'src/core/lib/transport/byte_stream.h',
558                      'src/core/lib/transport/connectivity_state.h',
559                      'src/core/lib/transport/error_utils.h',
560                      'src/core/lib/transport/http2_errors.h',
561                      'src/core/lib/transport/metadata.h',
562                      'src/core/lib/transport/metadata_batch.h',
563                      'src/core/lib/transport/pid_controller.h',
564                      'src/core/lib/transport/static_metadata.h',
565                      'src/core/lib/transport/status_conversion.h',
566                      'src/core/lib/transport/status_metadata.h',
567                      'src/core/lib/transport/timeout_encoding.h',
568                      'src/core/lib/transport/transport.h',
569                      'src/core/lib/transport/transport_impl.h',
570                      'src/core/lib/uri/uri_parser.h',
571                      'src/core/lib/debug/trace.h',
572                      'src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h',
573                      'src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h',
574                      'src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h',
575                      'src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h',
576                      'src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h',
577                      'src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/google/protobuf/duration.pb.h',
578                      'src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/google/protobuf/timestamp.pb.h',
579                      'src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h',
580                      'src/core/ext/filters/client_channel/lb_policy/xds/xds_channel.h',
581                      'src/core/ext/filters/client_channel/lb_policy/xds/xds_client_stats.h',
582                      'src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.h',
583                      'src/core/ext/filters/client_channel/lb_policy/subchannel_list.h',
584                      'src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h',
585                      'src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h',
586                      'src/core/ext/filters/client_channel/resolver/dns/dns_resolver_selection.h',
587                      'src/core/ext/filters/max_age/max_age_filter.h',
588                      'src/core/ext/filters/message_size/message_size_filter.h',
589                      'src/core/ext/filters/http/client_authority_filter.h',
590                      'src/core/ext/filters/workarounds/workaround_cronet_compression_filter.h',
591                      'src/core/ext/filters/workarounds/workaround_utils.h'
592
593    ss.private_header_files = 'include/grpcpp/impl/codegen/core_codegen.h',
594                              'src/cpp/client/secure_credentials.h',
595                              'src/cpp/common/secure_auth_context.h',
596                              'src/cpp/server/secure_server_credentials.h',
597                              'src/cpp/client/create_channel_internal.h',
598                              'src/cpp/common/channel_filter.h',
599                              'src/cpp/server/dynamic_thread_pool.h',
600                              'src/cpp/server/external_connection_acceptor_impl.h',
601                              'src/cpp/server/health/default_health_check_service.h',
602                              'src/cpp/server/thread_pool_interface.h',
603                              'src/cpp/thread_manager/thread_manager.h',
604                              'src/core/lib/gpr/alloc.h',
605                              'src/core/lib/gpr/arena.h',
606                              'src/core/lib/gpr/env.h',
607                              'src/core/lib/gpr/mpscq.h',
608                              'src/core/lib/gpr/murmur_hash.h',
609                              'src/core/lib/gpr/spinlock.h',
610                              'src/core/lib/gpr/string.h',
611                              'src/core/lib/gpr/string_windows.h',
612                              'src/core/lib/gpr/time_precise.h',
613                              'src/core/lib/gpr/tls.h',
614                              'src/core/lib/gpr/tls_gcc.h',
615                              'src/core/lib/gpr/tls_msvc.h',
616                              'src/core/lib/gpr/tls_pthread.h',
617                              'src/core/lib/gpr/tmpfile.h',
618                              'src/core/lib/gpr/useful.h',
619                              'src/core/lib/gprpp/abstract.h',
620                              'src/core/lib/gprpp/arena.h',
621                              'src/core/lib/gprpp/atomic.h',
622                              'src/core/lib/gprpp/fork.h',
623                              'src/core/lib/gprpp/global_config.h',
624                              'src/core/lib/gprpp/global_config_custom.h',
625                              'src/core/lib/gprpp/global_config_env.h',
626                              'src/core/lib/gprpp/global_config_generic.h',
627                              'src/core/lib/gprpp/host_port.h',
628                              'src/core/lib/gprpp/manual_constructor.h',
629                              'src/core/lib/gprpp/map.h',
630                              'src/core/lib/gprpp/memory.h',
631                              'src/core/lib/gprpp/pair.h',
632                              'src/core/lib/gprpp/sync.h',
633                              'src/core/lib/gprpp/thd.h',
634                              'src/core/lib/profiling/timers.h',
635                              'src/core/lib/avl/avl.h',
636                              'src/core/lib/backoff/backoff.h',
637                              'src/core/lib/channel/channel_args.h',
638                              'src/core/lib/channel/channel_stack.h',
639                              'src/core/lib/channel/channel_stack_builder.h',
640                              'src/core/lib/channel/channel_trace.h',
641                              'src/core/lib/channel/channelz.h',
642                              'src/core/lib/channel/channelz_registry.h',
643                              'src/core/lib/channel/connected_channel.h',
644                              'src/core/lib/channel/context.h',
645                              'src/core/lib/channel/handshaker.h',
646                              'src/core/lib/channel/handshaker_factory.h',
647                              'src/core/lib/channel/handshaker_registry.h',
648                              'src/core/lib/channel/status_util.h',
649                              'src/core/lib/compression/algorithm_metadata.h',
650                              'src/core/lib/compression/compression_args.h',
651                              'src/core/lib/compression/compression_internal.h',
652                              'src/core/lib/compression/message_compress.h',
653                              'src/core/lib/compression/stream_compression.h',
654                              'src/core/lib/compression/stream_compression_gzip.h',
655                              'src/core/lib/compression/stream_compression_identity.h',
656                              'src/core/lib/debug/stats.h',
657                              'src/core/lib/debug/stats_data.h',
658                              'src/core/lib/gprpp/debug_location.h',
659                              'src/core/lib/gprpp/inlined_vector.h',
660                              'src/core/lib/gprpp/optional.h',
661                              'src/core/lib/gprpp/orphanable.h',
662                              'src/core/lib/gprpp/ref_counted.h',
663                              'src/core/lib/gprpp/ref_counted_ptr.h',
664                              'src/core/lib/gprpp/string_view.h',
665                              'src/core/lib/http/format_request.h',
666                              'src/core/lib/http/httpcli.h',
667                              'src/core/lib/http/parser.h',
668                              'src/core/lib/iomgr/block_annotate.h',
669                              'src/core/lib/iomgr/buffer_list.h',
670                              'src/core/lib/iomgr/call_combiner.h',
671                              'src/core/lib/iomgr/cfstream_handle.h',
672                              'src/core/lib/iomgr/closure.h',
673                              'src/core/lib/iomgr/combiner.h',
674                              'src/core/lib/iomgr/dynamic_annotations.h',
675                              'src/core/lib/iomgr/endpoint.h',
676                              'src/core/lib/iomgr/endpoint_cfstream.h',
677                              'src/core/lib/iomgr/endpoint_pair.h',
678                              'src/core/lib/iomgr/error.h',
679                              'src/core/lib/iomgr/error_cfstream.h',
680                              'src/core/lib/iomgr/error_internal.h',
681                              'src/core/lib/iomgr/ev_epoll1_linux.h',
682                              'src/core/lib/iomgr/ev_epollex_linux.h',
683                              'src/core/lib/iomgr/ev_poll_posix.h',
684                              'src/core/lib/iomgr/ev_posix.h',
685                              'src/core/lib/iomgr/exec_ctx.h',
686                              'src/core/lib/iomgr/executor.h',
687                              'src/core/lib/iomgr/executor/mpmcqueue.h',
688                              'src/core/lib/iomgr/gethostname.h',
689                              'src/core/lib/iomgr/grpc_if_nametoindex.h',
690                              'src/core/lib/iomgr/internal_errqueue.h',
691                              'src/core/lib/iomgr/iocp_windows.h',
692                              'src/core/lib/iomgr/iomgr.h',
693                              'src/core/lib/iomgr/iomgr_custom.h',
694                              'src/core/lib/iomgr/iomgr_internal.h',
695                              'src/core/lib/iomgr/iomgr_posix.h',
696                              'src/core/lib/iomgr/is_epollexclusive_available.h',
697                              'src/core/lib/iomgr/load_file.h',
698                              'src/core/lib/iomgr/lockfree_event.h',
699                              'src/core/lib/iomgr/nameser.h',
700                              'src/core/lib/iomgr/polling_entity.h',
701                              'src/core/lib/iomgr/pollset.h',
702                              'src/core/lib/iomgr/pollset_custom.h',
703                              'src/core/lib/iomgr/pollset_set.h',
704                              'src/core/lib/iomgr/pollset_set_custom.h',
705                              'src/core/lib/iomgr/pollset_set_windows.h',
706                              'src/core/lib/iomgr/pollset_windows.h',
707                              'src/core/lib/iomgr/port.h',
708                              'src/core/lib/iomgr/resolve_address.h',
709                              'src/core/lib/iomgr/resolve_address_custom.h',
710                              'src/core/lib/iomgr/resource_quota.h',
711                              'src/core/lib/iomgr/sockaddr.h',
712                              'src/core/lib/iomgr/sockaddr_custom.h',
713                              'src/core/lib/iomgr/sockaddr_posix.h',
714                              'src/core/lib/iomgr/sockaddr_utils.h',
715                              'src/core/lib/iomgr/sockaddr_windows.h',
716                              'src/core/lib/iomgr/socket_factory_posix.h',
717                              'src/core/lib/iomgr/socket_mutator.h',
718                              'src/core/lib/iomgr/socket_utils.h',
719                              'src/core/lib/iomgr/socket_utils_posix.h',
720                              'src/core/lib/iomgr/socket_windows.h',
721                              'src/core/lib/iomgr/sys_epoll_wrapper.h',
722                              'src/core/lib/iomgr/tcp_client.h',
723                              'src/core/lib/iomgr/tcp_client_posix.h',
724                              'src/core/lib/iomgr/tcp_custom.h',
725                              'src/core/lib/iomgr/tcp_posix.h',
726                              'src/core/lib/iomgr/tcp_server.h',
727                              'src/core/lib/iomgr/tcp_server_utils_posix.h',
728                              'src/core/lib/iomgr/tcp_windows.h',
729                              'src/core/lib/iomgr/time_averaged_stats.h',
730                              'src/core/lib/iomgr/timer.h',
731                              'src/core/lib/iomgr/timer_custom.h',
732                              'src/core/lib/iomgr/timer_heap.h',
733                              'src/core/lib/iomgr/timer_manager.h',
734                              'src/core/lib/iomgr/udp_server.h',
735                              'src/core/lib/iomgr/unix_sockets_posix.h',
736                              'src/core/lib/iomgr/wakeup_fd_pipe.h',
737                              'src/core/lib/iomgr/wakeup_fd_posix.h',
738                              'src/core/lib/json/json.h',
739                              'src/core/lib/json/json_common.h',
740                              'src/core/lib/json/json_reader.h',
741                              'src/core/lib/json/json_writer.h',
742                              'src/core/lib/slice/b64.h',
743                              'src/core/lib/slice/percent_encoding.h',
744                              'src/core/lib/slice/slice_hash_table.h',
745                              'src/core/lib/slice/slice_internal.h',
746                              'src/core/lib/slice/slice_string_helpers.h',
747                              'src/core/lib/slice/slice_utils.h',
748                              'src/core/lib/slice/slice_weak_hash_table.h',
749                              'src/core/lib/surface/api_trace.h',
750                              'src/core/lib/surface/call.h',
751                              'src/core/lib/surface/call_test_only.h',
752                              'src/core/lib/surface/channel.h',
753                              'src/core/lib/surface/channel_init.h',
754                              'src/core/lib/surface/channel_stack_type.h',
755                              'src/core/lib/surface/completion_queue.h',
756                              'src/core/lib/surface/completion_queue_factory.h',
757                              'src/core/lib/surface/event_string.h',
758                              'src/core/lib/surface/init.h',
759                              'src/core/lib/surface/lame_client.h',
760                              'src/core/lib/surface/server.h',
761                              'src/core/lib/surface/validate_metadata.h',
762                              'src/core/lib/transport/bdp_estimator.h',
763                              'src/core/lib/transport/byte_stream.h',
764                              'src/core/lib/transport/connectivity_state.h',
765                              'src/core/lib/transport/error_utils.h',
766                              'src/core/lib/transport/http2_errors.h',
767                              'src/core/lib/transport/metadata.h',
768                              'src/core/lib/transport/metadata_batch.h',
769                              'src/core/lib/transport/pid_controller.h',
770                              'src/core/lib/transport/static_metadata.h',
771                              'src/core/lib/transport/status_conversion.h',
772                              'src/core/lib/transport/status_metadata.h',
773                              'src/core/lib/transport/timeout_encoding.h',
774                              'src/core/lib/transport/transport.h',
775                              'src/core/lib/transport/transport_impl.h',
776                              'src/core/lib/uri/uri_parser.h',
777                              'src/core/lib/debug/trace.h',
778                              'src/core/ext/transport/inproc/inproc_transport.h',
779                              'src/core/ext/filters/client_channel/health/health.pb.h'
780  end
781
782  s.subspec 'Protobuf' do |ss|
783    ss.header_mappings_dir = 'include/grpcpp'
784    ss.dependency "#{s.name}/Interface", version
785
786    ss.source_files = 'include/grpcpp/impl/codegen/proto_buffer_reader.h',
787                      'include/grpcpp/impl/codegen/proto_buffer_writer.h',
788                      'include/grpcpp/impl/codegen/proto_utils.h',
789                      'include/grpcpp/impl/codegen/config_protobuf.h',
790                      'include/grpcpp/impl/codegen/config_protobuf.h'
791  end
792
793  s.prepare_command = <<-END_OF_COMMAND
794    find src/cpp/ -type f ! -path '*.grpc_back' -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include "(pb(_.*)?\\.h)";#include <nanopb/\\1>;g'
795    find src/cpp/ -type f -path '*.grpc_back' -print0 | xargs -0 rm
796    find src/core/ -type f ! -path '*.grpc_back' -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include "(pb(_.*)?\\.h)";#include <nanopb/\\1>;g'
797    find src/core/ -type f -path '*.grpc_back' -print0 | xargs -0 rm
798  END_OF_COMMAND
799end
800