Skip to content

Commit

Permalink
[gn] mac entitlement config when dart sdk is non prebuilt (flutter#35016
Browse files Browse the repository at this point in the history
)
  • Loading branch information
XilaiZhang authored Aug 4, 2022
1 parent 81f5400 commit 6f47e37
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions build/archives/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -172,17 +172,22 @@ 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"
},
]
if (is_mac) {
output = "dart-sdk-darwin-$target_cpu.zip"
deps += [ ":dart_sdk_entitlement_config" ]
files += [
{
source = "$target_gen_dir/dart_sdk_entitlements.txt"
destination = "entitlements.txt"
},
]
}
}
}

Expand Down

0 comments on commit 6f47e37

Please sign in to comment.