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