367ee916d6
VM developers rarely run the create_sdk build as it's significantly slower than just building the VM. Since DartDev is coupled to the VM, we should build it to ensure that there's no snapshot errors due to old snapshots from previous create_sdk builds. Change-Id: I7626e0f3c791f2a6e69830641d9abf043ec5138f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144465 Reviewed-by: Jaime Wren <jwren@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
33 lines
1.1 KiB
Plaintext
33 lines
1.1 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("../application_snapshot.gni")
|
|
|
|
dartdev_files = exec_script("../../tools/list_dart_files.py",
|
|
[
|
|
"absolute",
|
|
rebase_path("../../pkg/dartdev"),
|
|
],
|
|
"list lines")
|
|
|
|
dartfix_files = exec_script("../../tools/list_dart_files.py",
|
|
[
|
|
"absolute",
|
|
rebase_path("../../pkg/dartfix"),
|
|
],
|
|
"list lines")
|
|
|
|
copy("dartdev") {
|
|
deps = [ ":dartdev_snapshot" ]
|
|
sources = [ "$root_gen_dir/dartdev.dart.snapshot" ]
|
|
outputs = [ "$root_out_dir/dartdev.dart.snapshot" ]
|
|
}
|
|
|
|
application_snapshot("dartdev_snapshot") {
|
|
main_dart = "../../pkg/dartdev/bin/dartdev.dart"
|
|
training_args = [ "--help" ]
|
|
inputs = dartdev_files + dartfix_files
|
|
output = "$root_gen_dir/dartdev.dart.snapshot"
|
|
}
|