From 7080182ae977ca3a82d8c790a8355ca1453d6735 Mon Sep 17 00:00:00 2001 From: AJ Heller Date: Tue, 11 May 2021 15:33:28 -0700 Subject: [PATCH] Add EventEngine's port.h to the podspec (#26220) This file is needed for the Objective-C cocoapod build. --- gRPC-Core.podspec | 1 + templates/gRPC-Core.podspec.template | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gRPC-Core.podspec b/gRPC-Core.podspec index fa907c1785e..fbd7146ede5 100644 --- a/gRPC-Core.podspec +++ b/gRPC-Core.podspec @@ -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', diff --git a/templates/gRPC-Core.podspec.template b/templates/gRPC-Core.podspec.template index 95609e787c3..254ebf50181 100644 --- a/templates/gRPC-Core.podspec.template +++ b/templates/gRPC-Core.podspec.template @@ -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