From 9cf89587964e15d65cca70084ba1e88eec60cf91 Mon Sep 17 00:00:00 2001 From: godofredoc Date: Mon, 6 Feb 2023 15:22:04 -0800 Subject: [PATCH] Fix cpp-wrappers archive. (flutter/engine#39400) * Fix cpp-wrappers archive. * Include wrapper headers. --- .../platform/windows/client_wrapper/BUILD.gn | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/shell/platform/windows/client_wrapper/BUILD.gn b/engine/src/flutter/shell/platform/windows/client_wrapper/BUILD.gn index 99b9f0c8b2..88d25d75c9 100644 --- a/engine/src/flutter/shell/platform/windows/client_wrapper/BUILD.gn +++ b/engine/src/flutter/shell/platform/windows/client_wrapper/BUILD.gn @@ -120,24 +120,26 @@ zip_bundle("client_wrapper_archive") { "//flutter/shell/platform/common/client_wrapper:client_wrapper", ] tmp_files = [] - foreach(source, client_wrapper_file_archive_list) { + foreach(source_file, client_wrapper_file_archive_list) { tmp_files += [ { - source = "//flutter/shell/platform/common/client_wrapper/$source" - destination = "cpp_client_wrapper/$source" + source = "//flutter/shell/platform/common/client_wrapper/$source_file" + destination = "cpp_client_wrapper/$source_file" }, ] } # Windows specific source code files - foreach(source, win_client_wrapper_file_archive_list) { + foreach(source_file, win_client_wrapper_file_archive_list) { tmp_files += [ { - source = "//flutter/shell/platform/windows/client_wrapper/$source" - destination = "cpp_client_wrapper/$source" + source = "//flutter/shell/platform/windows/client_wrapper/$source_file" + destination = "cpp_client_wrapper/$source_file" }, ] } + + # Headers headers = core_cpp_client_wrapper_includes + core_cpp_client_wrapper_internal_headers foreach(header, headers) { @@ -150,5 +152,18 @@ zip_bundle("client_wrapper_archive") { }, ] } + + # Wrapper includes + foreach(header, _wrapper_includes) { + rebased_path = + rebase_path("//flutter/shell/platform/windows/client_wrapper/$header", + "//flutter/shell/platform/windows/client_wrapper") + tmp_files += [ + { + source = header + destination = "cpp_client_wrapper/$rebased_path" + }, + ] + } files = tmp_files }