db42b359c3
- Adds a parameter to DartDevelopmentServiceLauncher.start, as well as DartDevelopmentService.startDevelopmentService - Adds an `--app-name` command line argument to the DDS cli. - Passes this app name through when registering VmService URIs on DTD. Bug: https://github.com/flutter/flutter/issues/184251 Change-Id: Ica4487214a69a165fe891d4b8de12d72b052783c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/491360 Auto-Submit: Jake Macdonald <jakemac@google.com> Commit-Queue: Jake Macdonald <jakemac@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>
54 lines
1.5 KiB
Plaintext
54 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("../../runtime/runtime_args.gni")
|
|
import("../aot_snapshot.gni")
|
|
import("../application_snapshot.gni")
|
|
|
|
group("dds_aot") {
|
|
public_deps = [
|
|
":dds_aot_product_snapshot",
|
|
":dds_aot_snapshot",
|
|
"../dtd:dtd_aot_snapshot",
|
|
]
|
|
}
|
|
|
|
aot_snapshot("dds_aot_snapshot") {
|
|
main_dart = "../../pkg/dds/bin/dds.dart"
|
|
output = "$root_out_dir/dds_aot.dart.snapshot"
|
|
}
|
|
|
|
aot_snapshot("dds_aot_product_snapshot") {
|
|
main_dart = "../../pkg/dds/bin/dds.dart"
|
|
output = "$root_out_dir/dds_aot_product.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 dartdevc_aot snapshot in an SDK build are
|
|
# always compatible with each other.
|
|
force_product_mode = !dart_debug
|
|
}
|
|
|
|
group("dds") {
|
|
public_deps = [
|
|
":copy_dds_snapshot",
|
|
"../dtd",
|
|
]
|
|
}
|
|
|
|
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 = [ "--help" ]
|
|
output = "$root_gen_dir/dds.dart.snapshot"
|
|
}
|