Files
sdk/utils/analysis_server/BUILD.gn
T
Ryan Macnak d907fbb72b [build] Fix more invocations to use relative paths.
Change-Id: I417ff793567a8adbbc4cc4fd4f77792c9a451f89
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/506280
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2026-05-26 10:19:40 -07:00

37 lines
1.4 KiB
Plaintext

# Copyright (c) 2016, 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")
aot_snapshot("analysis_server_aot") {
main_dart = "../../pkg/analysis_server/bin/server.dart"
name = "analysis_server_aot"
output = "$root_gen_dir/analysis_server_aot.dart.snapshot"
args = [ "-Dbuilt_as_aot=true" ]
}
aot_snapshot("analysis_server_aot_product") {
main_dart = "../../pkg/analysis_server/bin/server.dart"
name = "analysis_server_aot_product"
output = "$root_gen_dir/analysis_server_aot_product.dart.snapshot"
args = [ "-Dbuilt_as_aot=true" ]
# dartaotruntime in the dart sdk 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 dartdevc_aot snapshot in an SDK build are
# always compatible with each other.
force_product_mode = !dart_debug
}
application_snapshot("analysis_server") {
main_dart = "../../pkg/analysis_server/bin/server.dart"
training_args = [
"--sdk=" + rebase_path("../../sdk/", root_build_dir),
"--train-using=" + rebase_path("../../pkg/compiler/lib", root_build_dir),
]
}