43c2d2c6d2
This reverts commit 60823bdaf6.
Change-Id: I10a8421cb1fc5738bfb56d3c4e68d05bb3b4edd9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144680
Reviewed-by: Jaime Wren <jwren@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
38 lines
1.3 KiB
Plaintext
38 lines
1.3 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")
|
|
|
|
group("dartdev") {
|
|
deps = [ ":copy_dartdev_snapshot" ]
|
|
}
|
|
|
|
copy("copy_dartdev_snapshot") {
|
|
visibility = [ ":dartdev" ]
|
|
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" ]
|
|
inputs = dartdev_files + dartfix_files
|
|
output = "$root_gen_dir/dartdev.dart.snapshot"
|
|
}
|