Skip to content

Commit

Permalink
[infra] Support archiving the built Dart SDK in the non-prebuilt case (
Browse files Browse the repository at this point in the history
…flutter#34605)

[infra] Support archiving the built Dart SDK in the non-prebuilt case

Bug: flutter/flutter#106494
  • Loading branch information
whesse authored Jul 19, 2022
1 parent b71b935 commit a7cd19b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build/archives/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,25 @@ if (build_engine_artifacts && flutter_prebuilt_dart_sdk) {
}
}

# If there is no prebuilt sdk, create the dart sdk archive from the built sdk.
if (build_engine_artifacts && !flutter_prebuilt_dart_sdk) {
zip_bundle_from_file("dart_sdk_archive") {
deps = [ "//third_party/dart:create_sdk" ]
output = "dart-sdk-$full_target_platform_name.zip"
if (is_mac) {
# Mac artifacts sometimes use mac and sometimes darwin. Standardizing the
# names will require changes in the list of artifacts the tool is downloading.
output = "dart-sdk-darwin-$target_cpu.zip"
}
files = [
{
source = rebase_path("$root_build_dir/dart-sdk")
destination = "dart-sdk"
},
]
}
}

# Archives Flutter Web SDK
if (!is_fuchsia) {
group("flutter_web_sdk") {
Expand Down

0 comments on commit a7cd19b

Please sign in to comment.