From e6865e01a96d149c0e1b4d72122b6807df75dd00 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Fri, 17 Jan 2020 09:51:07 -0800 Subject: [PATCH] Fix boringssl podspec with new paths --- src/objective-c/BoringSSL-GRPC.podspec | 46 +++++++++---------- .../BoringSSL-GRPC.podspec.template | 46 +++++++++---------- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/src/objective-c/BoringSSL-GRPC.podspec b/src/objective-c/BoringSSL-GRPC.podspec index 902dce03a07..3543b5532d1 100644 --- a/src/objective-c/BoringSSL-GRPC.podspec +++ b/src/objective-c/BoringSSL-GRPC.podspec @@ -123,39 +123,39 @@ Pod::Spec.new do |s| # for public headers and the other for implementation. Each gets its own `header_mappings_dir`, # making the linter happy. s.subspec 'Interface' do |ss| - ss.header_mappings_dir = 'include/openssl' - ss.source_files = 'include/openssl/*.h' + ss.header_mappings_dir = 'src/include/openssl' + ss.source_files = 'src/include/openssl/*.h' end s.subspec 'Implementation' do |ss| - ss.header_mappings_dir = '.' - ss.source_files = 'ssl/*.{h,c,cc}', - 'ssl/**/*.{h,c,cc}', - 'crypto/*.{h,c,cc}', - 'crypto/**/*.{h,c,cc}', + ss.header_mappings_dir = 'src' + ss.source_files = 'src/ssl/*.{h,c,cc}', + 'src/ssl/**/*.{h,c,cc}', + 'src/crypto/*.{h,c,cc}', + 'src/crypto/**/*.{h,c,cc}', # We have to include fiat because spake25519 depends on it - 'third_party/fiat/*.{h,c,cc}', + 'src/third_party/fiat/*.{h,c,cc}', # Include the err_data.c generated in prepare_command below - 'err_data.c' + 'src/err_data.c' - ss.private_header_files = 'ssl/*.h', - 'ssl/**/*.h', - 'crypto/*.h', - 'crypto/**/*.h', - 'third_party/fiat/*.h' + ss.private_header_files = 'src/ssl/*.h', + 'src/ssl/**/*.h', + 'src/crypto/*.h', + 'src/crypto/**/*.h', + 'src/third_party/fiat/*.h' # bcm.c includes other source files, creating duplicated symbols. Since it is not used, we # explicitly exclude it from the pod. # TODO (mxyan): Work with BoringSSL team to remove this hack. - ss.exclude_files = 'crypto/fipsmodule/bcm.c', - '**/*_test.*', - '**/test_*.*', - '**/test/*.*' + ss.exclude_files = 'src/crypto/fipsmodule/bcm.c', + 'src/**/*_test.*', + 'src/**/test_*.*', + 'src/**/test/*.*' ss.dependency "#{s.name}/Interface", version end s.prepare_command = <<-END_OF_COMMAND # Add a module map and an umbrella header - cat > include/openssl/umbrella.h < src/include/openssl/umbrella.h < include/openssl/BoringSSL.modulemap < src/include/openssl/BoringSSL.modulemap < err_data.c < src/err_data.c < include/openssl/umbrella.h < src/include/openssl/umbrella.h < include/openssl/BoringSSL.modulemap < src/include/openssl/BoringSSL.modulemap < err_data.c < src/err_data.c <