mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Ensure dart2js and kernel worker snapshots are copied out of gen dir (flutter/engine#7692)
This commit is contained in:
parent
523504006e
commit
640c17334f
@ -4,6 +4,18 @@
|
||||
|
||||
import("$flutter_root/common/config.gni")
|
||||
|
||||
# Temporary snapshot copy rules until we can use the full SDK.
|
||||
_flutter_sdk_snapshots = [
|
||||
[
|
||||
"dart2js",
|
||||
"//third_party/dart/utils/compiler:dart2js",
|
||||
],
|
||||
[
|
||||
"kernel_worker",
|
||||
"//third_party/dart/utils/bazel:kernel_worker",
|
||||
],
|
||||
]
|
||||
|
||||
group("flutter") {
|
||||
testonly = true
|
||||
|
||||
@ -23,9 +35,10 @@ group("flutter") {
|
||||
public_deps += [
|
||||
"$flutter_root/frontend_server",
|
||||
"//third_party/dart:create_sdk",
|
||||
"//third_party/dart:dart2js",
|
||||
"//third_party/dart/utils/bazel:kernel_worker",
|
||||
]
|
||||
foreach(snapshot, _flutter_sdk_snapshots) {
|
||||
public_deps += [ ":copy_flutter_${snapshot[0]}_snapshot" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -63,3 +76,17 @@ group("dist") {
|
||||
"$flutter_root/sky/dist",
|
||||
]
|
||||
}
|
||||
|
||||
foreach(snapshot, _flutter_sdk_snapshots) {
|
||||
copy("copy_flutter_${snapshot[0]}_snapshot") {
|
||||
deps = [
|
||||
snapshot[1],
|
||||
]
|
||||
sources = [
|
||||
"$root_gen_dir/${snapshot[0]}.dart.snapshot",
|
||||
]
|
||||
outputs = [
|
||||
"$root_out_dir/dart-sdk/bin/snapshots/flutter_{{source_file_part}}",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user