Create the frontend_server snapshot as a part of the sdk

This will allow us to use it from webdev, as it now supports DDC output.

Change-Id: I4b82d1c45d2c058abb062dddd2a2c41cc6318c45
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/130134
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Jonah Williams <jonahwilliams@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
This commit is contained in:
Jacob MacDonald 2020-01-06 22:05:19 +00:00 committed by commit-bot@chromium.org
parent 053fb6ad56
commit 24a0601d5b
3 changed files with 21 additions and 1 deletions

View file

@ -182,6 +182,10 @@ _full_sdk_snapshots = [
"pub",
"../utils/pub",
],
[
"frontend_server",
"../utils/kernel-service:frontend_server",
],
]
if (include_dart2native && dart_target_arch != "ia32") {
_full_sdk_snapshots += [ [

View file

@ -182,6 +182,10 @@ _full_sdk_snapshots = [
"pub",
"../utils/pub",
],
[
"frontend_server",
"../utils/kernel-service:frontend_server",
],
]
if (include_dart2native && dart_target_arch != "ia32") {
_full_sdk_snapshots += [ [

View file

@ -59,7 +59,19 @@ application_snapshot("frontend_server") {
"--platform=$sdk_root/vm_platform_strong.dill",
rebase_path(main_dart),
]
output = "$root_out_dir/frontend_server.dart.snapshot"
output = "$root_gen_dir/frontend_server.dart.snapshot"
}
copy("copy_frontend_server") {
deps = [
":frontend_server",
]
sources = [
"$root_gen_dir/frontend_server.dart.snapshot",
]
outputs = [
"$root_out_dir/frontend_server.dart.snapshot",
]
}
template("kernel_service_dill") {