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

Commit 965f87d

Browse files
godofredoczanderso
andauthored
Archive windows gen_snapshot.exe. (#35414)
* Archive windows gen_snapshot.exe. This is required to enable engine_v2 recipes for windows platform. Bug: flutter/flutter#81855 * Add dep to generate gen_snapshot.exe. * Use target platform name rather than host. * Use prebuilt_arch. * Use platform_name instead of is_win. * Remove android check. * Fix output name. * Separate platform and cpu in name. * Remove failing line. * Use dart_target_arch rather than target_cpu in windows. * Add dart_target_arch to scope. * Add support for android_cpu. * Fix android_cpu variable name. * Rebase to ToT * Try to use target cpu directly. * Use host os instead of is_win. * Build engine artifacts for win. * Update build/archives/BUILD.gn Co-authored-by: Zachary Anderson <[email protected]> * Update build/archives/BUILD.gn Co-authored-by: Zachary Anderson <[email protected]> * Update build/archives/BUILD.gn Co-authored-by: Zachary Anderson <[email protected]> Co-authored-by: Zachary Anderson <[email protected]>
1 parent 91656a5 commit 965f87d

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

build/archives/BUILD.gn

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,3 +300,16 @@ if (is_mac) {
300300
]
301301
}
302302
}
303+
304+
if (host_os == "win") {
305+
zip_bundle("archive_win_gen_snapshot") {
306+
deps = [ "//flutter:gen_snapshot" ]
307+
output = "$full_target_platform_name-$flutter_runtime_mode/windows-x64.zip"
308+
files = [
309+
{
310+
source = "$root_out_dir/gen_snapshot/gen_snapshot.exe"
311+
destination = "gen_snapshot.exe"
312+
},
313+
]
314+
}
315+
}

common/config.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,4 @@ if (flutter_prebuilt_dart_sdk) {
132132
# see https://github.com/flutter/flutter/issues/74322
133133
build_engine_artifacts =
134134
current_toolchain == host_toolchain ||
135-
(is_linux && !is_chromeos && current_cpu != "arm") || is_mac
135+
(is_linux && !is_chromeos && current_cpu != "arm") || is_mac || is_win

0 commit comments

Comments
 (0)