Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Closed
Changes from 1 commit
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
Next Next commit
Gn target to generate gen_snapshot for windows.
Adds a new target to archive gen_snapshot for windows platforms. A new
target is required because the naming convention is completely different
from the one used for linux or mac.

Bug: flutter/flutter#81855
  • Loading branch information
godofredoc committed Sep 8, 2022
commit 209742e19eb48d4e514b0094d64132d6d0f38a09
13 changes: 13 additions & 0 deletions build/archives/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,16 @@ if (is_mac) {
]
}
}

if (is_win) {
zip_bundle("archive_win_gen_snapshot") {
deps = [ "//third_party/dart/runtime/bin:gen_snapshot" ]
output = "$target_platform_name-$android_cpu-$flutter_runtime_mode/windows-x64.zip"
files = [
{
source = "$root_out_dir/gen_snapshot.exe"
destination = "gen_snapshot.exe"
},
]
}
}