ab44b20ab8
Add the fixes that were done after original CL landed.
This reverts commit 97bc401163.
TEST=ci
Change-Id: I26373aecc325e4c0c379c92e779aa301e3a58c5a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/441700
Reviewed-by: Brian Quinlan <bquinlan@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
63 lines
1.7 KiB
Plaintext
63 lines
1.7 KiB
Plaintext
# 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("../aot_snapshot.gni")
|
|
import("../application_snapshot.gni")
|
|
|
|
group("dartdev_aot") {
|
|
public_deps = [
|
|
":copy_prebuilt_devtools",
|
|
":dartdev_aot_snapshot",
|
|
]
|
|
}
|
|
|
|
aot_snapshot("dartdev_aot_profile_snapshot") {
|
|
main_dart = "../../pkg/dartdev/bin/dartdev.dart"
|
|
output = "$root_out_dir/dartdev_aot_profile.dart.snapshot"
|
|
}
|
|
|
|
aot_snapshot("dartdev_aot_snapshot") {
|
|
main_dart = "../../pkg/dartdev/bin/dartdev.dart"
|
|
output = "$root_out_dir/dartdev_aot.dart.snapshot"
|
|
|
|
# dart has dart_product_config applied to it,
|
|
# so it is built in product mode in both release and
|
|
# product builds, and is only built in debug mode in debug
|
|
# builds. The following line ensures that the dart
|
|
# and dartdev_aot snapshot in an SDK build are
|
|
# always compatible with each other.
|
|
force_product_mode = !dart_debug
|
|
}
|
|
|
|
group("dartdev") {
|
|
public_deps = [
|
|
":copy_dartdev_snapshot",
|
|
":copy_prebuilt_devtools",
|
|
]
|
|
}
|
|
|
|
application_snapshot("generate_dartdev_snapshot") {
|
|
main_dart = "../../pkg/dartdev/bin/dartdev.dart"
|
|
training_args = [ "--help" ]
|
|
output = "$root_gen_dir/dartdev.dart.snapshot"
|
|
}
|
|
|
|
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" ]
|
|
}
|
|
|
|
copy_tree("copy_prebuilt_devtools") {
|
|
visibility = [
|
|
":dartdev",
|
|
":dartdev_aot",
|
|
]
|
|
source = "../../third_party/devtools/web"
|
|
dest = "$root_out_dir/devtools"
|
|
exclude = "{}"
|
|
}
|