mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
605b211c89
Fix `application_snapshot`'s depfile to track the sources of the application instead of the compiler. Split compiling the compiler into a separate GN target with its own depfile. Bug: https://github.com/flutter/flutter/issues/81074 Change-Id: I0fb23ada40a6241ee3dde7f6cfebdd121b9a4224 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/197020 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
22 lines
673 B
Text
22 lines
673 B
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("../application_snapshot.gni")
|
|
|
|
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 = []
|
|
output = "$root_gen_dir/dds.dart.snapshot"
|
|
}
|