mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
54dea888a5
The bulid rules generate an appjit snapshot or a kernel file under dartdev.dart.snapshot depending on whether the target_cpu is the same as the host_cpu. Generation of the additional dartdev.dill file is not needed because of this, the logic to start the dartdev isolate tries to load dartdev.dart.snapshot as an appjit snapshot first and if that fails it tries it as a kernel file. TEST=ci Change-Id: I1c985bdf543d3eb5e17d968378053cc558fd8a0f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/306134 Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Siva Annamalai <asiva@google.com>
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
# Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
import("../../build/dart/copy_tree.gni")
|
|
import("../application_snapshot.gni")
|
|
|
|
group("dartdev") {
|
|
public_deps = [
|
|
":copy_dartdev_snapshot",
|
|
":copy_prebuilt_devtools",
|
|
]
|
|
}
|
|
|
|
copy("copy_dartdev_snapshot") {
|
|
visibility = [ ":dartdev" ]
|
|
public_deps = [ ":generate_dartdev_snapshot" ]
|
|
sources = [ "$root_gen_dir/dartdev.dart.snapshot" ]
|
|
outputs = [ "$root_out_dir/dartdev.dart.snapshot" ]
|
|
}
|
|
|
|
application_snapshot("generate_dartdev_snapshot") {
|
|
main_dart = "../../pkg/dartdev/bin/dartdev.dart"
|
|
training_args = [ "--help" ]
|
|
deps = [ "../dds:dds" ]
|
|
vm_args = [ "--sound-null-safety" ]
|
|
output = "$root_gen_dir/dartdev.dart.snapshot"
|
|
}
|
|
|
|
copy_trees("copy_prebuilt_devtools") {
|
|
sources = [
|
|
{
|
|
target = "copy_prebuilt_devtools"
|
|
visibility = [ ":dartdev" ]
|
|
source = "../../third_party/devtools/web"
|
|
dest = "$root_out_dir/devtools"
|
|
ignore_patterns = "{}"
|
|
},
|
|
]
|
|
}
|