mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Archive windows gen_snapshot.exe. (flutter/engine#35414)
* Archive windows gen_snapshot.exe. This is required to enable engine_v2 recipes for windows platform. Bug: https://github.com/flutter/flutter/issues/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 <zanderso@users.noreply.github.com> * Update build/archives/BUILD.gn Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com> * Update build/archives/BUILD.gn Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com> Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
This commit is contained in:
parent
e3f249ab52
commit
2e8d995cb6
@ -300,3 +300,16 @@ if (is_mac) {
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
if (host_os == "win") {
|
||||
zip_bundle("archive_win_gen_snapshot") {
|
||||
deps = [ "//flutter:gen_snapshot" ]
|
||||
output = "$full_target_platform_name-$flutter_runtime_mode/windows-x64.zip"
|
||||
files = [
|
||||
{
|
||||
source = "$root_out_dir/gen_snapshot/gen_snapshot.exe"
|
||||
destination = "gen_snapshot.exe"
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@ -132,4 +132,4 @@ if (flutter_prebuilt_dart_sdk) {
|
||||
# see https://github.com/flutter/flutter/issues/74322
|
||||
build_engine_artifacts =
|
||||
current_toolchain == host_toolchain ||
|
||||
(is_linux && !is_chromeos && current_cpu != "arm") || is_mac
|
||||
(is_linux && !is_chromeos && current_cpu != "arm") || is_mac || is_win
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user