060e4e208c
The `dart analyze` command is quite separate from the `dart language-server` command. This CL adds support for `dart analyze`. Work towards https://github.com/dart-lang/sdk/issues/50498 Change-Id: I60a846ae5d3452c2bb050bd07502084ff44b82c0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/425188 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>
37 lines
1.3 KiB
Plaintext
37 lines
1.3 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/"),
|
|
"--train-using=" + rebase_path("../../pkg/compiler/lib"),
|
|
]
|
|
}
|