45ae00676a
TEST=ci Issue: https://github.com/dart-lang/sdk/issues/46620 Change-Id: I74c45ed1525248447e769cc832366728e7a017fc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208020 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Alexander Aprelev <aam@google.com>
23 lines
947 B
Dart
23 lines
947 B
Dart
// Copyright (c) 2018, 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 'package:kernel/target/targets.dart' show targets, TargetFlags;
|
|
import 'package:vm/target/dart_runner.dart' show DartRunnerTarget;
|
|
import 'package:vm/target/flutter.dart' show FlutterTarget;
|
|
import 'package:vm/target/flutter_runner.dart' show FlutterRunnerTarget;
|
|
import 'package:vm/target/vm.dart' show VmTarget;
|
|
|
|
bool _installed = false;
|
|
|
|
void installAdditionalTargets() {
|
|
if (!_installed) {
|
|
targets["dart_runner"] = (TargetFlags flags) => DartRunnerTarget(flags);
|
|
targets["flutter"] = (TargetFlags flags) => FlutterTarget(flags);
|
|
targets["flutter_runner"] =
|
|
(TargetFlags flags) => FlutterRunnerTarget(flags);
|
|
targets["vm"] = (TargetFlags flags) => VmTarget(flags);
|
|
_installed = true;
|
|
}
|
|
}
|