Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Fix cpp-wrappers archive. #39400

Merged
merged 2 commits into from
Feb 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions shell/platform/windows/client_wrapper/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
}