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