Add EventEngine's port.h to the podspec (#26220)

This file is needed for the Objective-C cocoapod build.
pull/26225/head
AJ Heller 4 years ago committed by GitHub
parent 8a2754487c
commit 7080182ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      gRPC-Core.podspec
  2. 4
      templates/gRPC-Core.podspec.template

@ -117,6 +117,7 @@ Pod::Spec.new do |s|
'include/grpc/byte_buffer_reader.h',
'include/grpc/census.h',
'include/grpc/compression.h',
'include/grpc/event_engine/port.h',
'include/grpc/fork.h',
'include/grpc/grpc.h',
'include/grpc/grpc_posix.h',

@ -59,11 +59,13 @@
files.update(lib.get(field, []))
return list(sorted(files))
# Wrapped languages don't need to access EventEngine APIs.
# Wrapped languages don't need to access EventEngine APIs. `port.h` is a
# special case - it's needed in some security code.
event_engine_files = [
file
for file in list_lib_files("grpc", ("public_headers", "headers", "src"))
if '/event_engine/' in file
and not file.endswith('/port.h')
]
# ObjectiveC doesn't use c-ares so we don't need address_sorting files at all

Loading…
Cancel
Save