60fef97b0c
snapshots to the root build directory Change-Id: I065baea33074d5f54310c8d132b5599f22cc2c50 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156051 Reviewed-by: Siva Annamalai <asiva@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
31 lines
938 B
Plaintext
31 lines
938 B
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")
|
|
|
|
dds_files = exec_script("../../tools/list_dart_files.py",
|
|
[
|
|
"absolute",
|
|
rebase_path("../../pkg/dds"),
|
|
],
|
|
"list lines")
|
|
|
|
group("dds") {
|
|
public_deps = [ ":copy_dds_snapshot" ]
|
|
}
|
|
|
|
copy("copy_dds_snapshot") {
|
|
visibility = [ ":dds" ]
|
|
public_deps = [ ":generate_dds_snapshot" ]
|
|
sources = [ "$root_gen_dir/dds.dart.snapshot" ]
|
|
outputs = [ "$root_out_dir/dds.dart.snapshot" ]
|
|
}
|
|
|
|
application_snapshot("generate_dds_snapshot") {
|
|
main_dart = "../../pkg/dds/bin/dds.dart"
|
|
training_args = []
|
|
inputs = dds_files
|
|
output = "$root_gen_dir/dds.dart.snapshot"
|
|
}
|