Files
sdk/utils/dds/BUILD.gn
T
asiva df266b8a44 [Reland] [dartdev] Use an AOT snapshot for dds
This change enables use of an AOT snapshot for dds execution.

TEST=ci

Change-Id: I1eba2913a4160dee5de663622aa9106dd1d83c04
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/327710
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2023-09-26 18:27:02 +00:00

48 lines
1.5 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("../aot_snapshot.gni")
import("../application_snapshot.gni")
group("dds") {
public_deps = [ ":copy_dds_snapshot" ]
}
group("dds_aot") {
public_deps = [ ":copy_dds_aot_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" ]
}
copy("copy_dds_aot_snapshot") {
visibility = [ ":dds_aot" ]
public_deps = [ ":generate_dds_aot_snapshot" ]
sources = [ "$root_gen_dir/dds_aot.dart.snapshot" ]
outputs = [ "$root_out_dir/dds_aot.dart.snapshot" ]
}
application_snapshot("generate_dds_snapshot") {
main_dart = "../../pkg/dds/bin/dds.dart"
training_args = []
output = "$root_gen_dir/dds.dart.snapshot"
}
aot_snapshot("generate_dds_aot_snapshot") {
main_dart = "../../pkg/dds/bin/dds.dart"
output = "$root_gen_dir/dds_aot.dart.snapshot"
# dartaotruntime 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 dartaotruntime
# and frontend_server_aot snapshot in an SDK build are
# always compatible with each other.
force_product_mode = !dart_debug
}