Skip to content

Commit

Permalink
Fix gn problem impacting fuchsia builds. (flutter#31615)
Browse files Browse the repository at this point in the history
  • Loading branch information
godofredoc authored Feb 22, 2022
1 parent 197d178 commit 4e1056d
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 53 deletions.
6 changes: 4 additions & 2 deletions build/archives/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ if (build_engine_artifacts && flutter_prebuilt_dart_sdk) {
}

# Archives Flutter Web SDK
group("flutter_web_sdk") {
deps = [ "//flutter/web_sdk:flutter_web_sdk_archive" ]
if (!is_fuchsia) {
group("flutter_web_sdk") {
deps = [ "//flutter/web_sdk:flutter_web_sdk_archive" ]
}
}
105 changes: 54 additions & 51 deletions web_sdk/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -566,57 +566,60 @@ _kernel_worker("flutter_dartdevc_kernel_sdk_outline_sound") {
}

# Archives Flutter Web SDK
zip_bundle("flutter_web_sdk_archive") {
output = "flutter-web-sdk-${host_os_cpu_name}.zip"
deps = [
":flutter_dartdevc_canvaskit_html_kernel_sdk",
":flutter_dartdevc_canvaskit_html_kernel_sdk_sound",
":flutter_dartdevc_canvaskit_kernel_sdk",
":flutter_dartdevc_canvaskit_kernel_sdk_sound",
":flutter_dartdevc_kernel_sdk",
":flutter_dartdevc_kernel_sdk_outline",
":flutter_dartdevc_kernel_sdk_outline_sound",
":flutter_dartdevc_kernel_sdk_sound",
":web_engine_sources",
":web_ui_library",
":web_ui_sources",
]
sources = get_target_outputs(":flutter_dartdevc_canvaskit_html_kernel_sdk")
sources +=
get_target_outputs(":flutter_dartdevc_canvaskit_html_kernel_sdk_sound")
sources += get_target_outputs(":flutter_dartdevc_canvaskit_kernel_sdk")
sources += get_target_outputs(":flutter_dartdevc_canvaskit_kernel_sdk_sound")
sources += get_target_outputs(":flutter_dartdevc_kernel_sdk")
sources += get_target_outputs(":flutter_dartdevc_kernel_sdk_outline")
sources += get_target_outputs(":flutter_dartdevc_kernel_sdk_outline_sound")
sources += get_target_outputs(":flutter_dartdevc_kernel_sdk_sound")
sources += get_target_outputs(":web_ui_library")
tmp_files = []
foreach(source, sources) {
tmp_files += [
{
source = source
destination = rebase_path(source, "$root_build_dir")
},
]
}
foreach(source, web_ui_sources) {
rebased_path = rebase_path(source, "//flutter/lib/web_ui/lib")
tmp_files += [
{
source = source
destination = "flutter_web_sdk/lib/ui/$rebased_path"
},
]
}
foreach(source, web_engine_sources) {
rebased_path = rebase_path(source, "//flutter/lib/web_ui/lib/src")
tmp_files += [
{
source = source
destination = "flutter_web_sdk/lib/_engine/$rebased_path"
},
if (!is_fuchsia) {
zip_bundle("flutter_web_sdk_archive") {
output = "flutter-web-sdk-${host_os_cpu_name}.zip"
deps = [
":flutter_dartdevc_canvaskit_html_kernel_sdk",
":flutter_dartdevc_canvaskit_html_kernel_sdk_sound",
":flutter_dartdevc_canvaskit_kernel_sdk",
":flutter_dartdevc_canvaskit_kernel_sdk_sound",
":flutter_dartdevc_kernel_sdk",
":flutter_dartdevc_kernel_sdk_outline",
":flutter_dartdevc_kernel_sdk_outline_sound",
":flutter_dartdevc_kernel_sdk_sound",
":web_engine_sources",
":web_ui_library",
":web_ui_sources",
]
sources = get_target_outputs(":flutter_dartdevc_canvaskit_html_kernel_sdk")
sources +=
get_target_outputs(":flutter_dartdevc_canvaskit_html_kernel_sdk_sound")
sources += get_target_outputs(":flutter_dartdevc_canvaskit_kernel_sdk")
sources +=
get_target_outputs(":flutter_dartdevc_canvaskit_kernel_sdk_sound")
sources += get_target_outputs(":flutter_dartdevc_kernel_sdk")
sources += get_target_outputs(":flutter_dartdevc_kernel_sdk_outline")
sources += get_target_outputs(":flutter_dartdevc_kernel_sdk_outline_sound")
sources += get_target_outputs(":flutter_dartdevc_kernel_sdk_sound")
sources += get_target_outputs(":web_ui_library")
tmp_files = []
foreach(source, sources) {
tmp_files += [
{
source = source
destination = rebase_path(source, "$root_build_dir")
},
]
}
foreach(source, web_ui_sources) {
rebased_path = rebase_path(source, "//flutter/lib/web_ui/lib")
tmp_files += [
{
source = source
destination = "flutter_web_sdk/lib/ui/$rebased_path"
},
]
}
foreach(source, web_engine_sources) {
rebased_path = rebase_path(source, "//flutter/lib/web_ui/lib/src")
tmp_files += [
{
source = source
destination = "flutter_web_sdk/lib/_engine/$rebased_path"
},
]
}
files = tmp_files
}
files = tmp_files
}

0 comments on commit 4e1056d

Please sign in to comment.