mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
![Siva Annamalai](/assets/img/avatar_default.png)
This reverts commitb59583edea
. Reason for revert: <INSERT REASONING HERE> Original change's description: > Reland "[VM/SDK]" > > This is a reland ofb4146411d0
> > Original change's description: > > [VM/SDK] > > > > - Switch the kernel isolate to run in Dart2 mode > > - Refactor build rules so bootstrapping of the front end happens > > with a prebuilt dart sdk > > - Refactor application snapshot build rules so the kernel application > > snapshot rule does not get into a cyclic dependency during the > > bootstrap stage > > > > Change-Id: Id16b2859e0b299b2d689971d03a247cb94d0aa26 > > Reviewed-on: https://dart-review.googlesource.com/61660 > > Commit-Queue: Siva Annamalai <asiva@google.com> > > Reviewed-by: Zach Anderson <zra@google.com> > > Change-Id: I2a3fa8ed4f331cf3de89ddff5cf8e478809dae39 > Reviewed-on: https://dart-review.googlesource.com/65841 > Reviewed-by: Siva Annamalai <asiva@google.com> TBR=zra@google.com,asiva@google.com # Not skipping CQ checks because original CL landed > 1 day ago. Change-Id: I6077236481bec9089ead881c902036b0817114fc Reviewed-on: https://dart-review.googlesource.com/66240 Reviewed-by: Siva Annamalai <asiva@google.com> Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Siva Annamalai <asiva@google.com>
158 lines
3.2 KiB
Plaintext
158 lines
3.2 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("build/dart/dart_host_sdk_toolchain.gni")
|
|
|
|
targetting_fuchsia = target_os == "fuchsia"
|
|
|
|
# This target will be built if no target is specified when invoking ninja.
|
|
group("default") {
|
|
if (targetting_fuchsia) {
|
|
# Fuchsia has run_vm_tests marked testonly.
|
|
testonly = true
|
|
}
|
|
deps = [
|
|
":runtime",
|
|
]
|
|
}
|
|
|
|
group("most") {
|
|
if (targetting_fuchsia) {
|
|
# Fuchsia has run_vm_tests marked testonly.
|
|
testonly = true
|
|
}
|
|
deps = [
|
|
":analysis_server",
|
|
":create_sdk",
|
|
":dart2js",
|
|
":dartanalyzer",
|
|
":dartdevc",
|
|
":runtime",
|
|
":samples",
|
|
]
|
|
}
|
|
|
|
group("runtime") {
|
|
import("runtime/runtime_args.gni")
|
|
|
|
target_supports_aot = dart_target_arch == "arm" ||
|
|
dart_target_arch == "arm64" || dart_target_arch == "x64"
|
|
|
|
if (targetting_fuchsia) {
|
|
# Fuchsia has run_vm_tests marked testonly.
|
|
testonly = true
|
|
}
|
|
deps = [
|
|
"runtime/bin:dart",
|
|
"runtime/bin:dart_bootstrap($host_toolchain)",
|
|
"runtime/bin:process_test",
|
|
"runtime/bin:run_vm_tests",
|
|
"runtime/bin:sample_extension",
|
|
"runtime/bin:test_extension",
|
|
"runtime/vm:kernel_platform_files($host_toolchain)",
|
|
|
|
# TODO(rmacnak): Link this into 'dart'.
|
|
"utils/kernel-service:copy_kernel_service_snapshot",
|
|
"utils/kernel-service:kernel-service",
|
|
]
|
|
|
|
if (target_supports_aot) {
|
|
deps += [ "runtime/bin:precompiler_entry_points_json" ]
|
|
}
|
|
}
|
|
|
|
group("runtime_kernel") {
|
|
if (targetting_fuchsia) {
|
|
# Fuchsia has run_vm_tests marked testonly.
|
|
testonly = true
|
|
}
|
|
deps = [
|
|
":runtime",
|
|
]
|
|
}
|
|
|
|
group("runtime_precompiled") {
|
|
deps = [
|
|
"runtime/bin:dart_bootstrap($host_toolchain)",
|
|
"runtime/bin:dart_precompiled_runtime",
|
|
"runtime/bin:process_test",
|
|
]
|
|
}
|
|
|
|
group("create_sdk") {
|
|
public_deps = [
|
|
"sdk:create_sdk",
|
|
]
|
|
}
|
|
|
|
if (defined(dart_host_sdk_toolchain) &&
|
|
dart_host_sdk_toolchain != host_toolchain) {
|
|
group("create_host_sdk") {
|
|
deps = [
|
|
"sdk:create_sdk($dart_host_sdk_toolchain)",
|
|
]
|
|
}
|
|
}
|
|
|
|
group("dart2js") {
|
|
deps = [
|
|
"utils/compiler:dart2js",
|
|
]
|
|
}
|
|
|
|
group("dartanalyzer") {
|
|
deps = [
|
|
"utils/dartanalyzer",
|
|
]
|
|
}
|
|
|
|
group("dartdevc") {
|
|
deps = [
|
|
"utils/dartdevc",
|
|
]
|
|
}
|
|
|
|
group("dartfmt") {
|
|
deps = [
|
|
"utils/dartfmt",
|
|
]
|
|
}
|
|
|
|
group("analysis_server") {
|
|
deps = [
|
|
"utils/analysis_server",
|
|
]
|
|
}
|
|
|
|
# This is the target that is built on the dart2js build bots.
|
|
# It must depend on anything that is required by the dart2js
|
|
# test suites.
|
|
group("dart2js_bot") {
|
|
deps = [
|
|
":create_sdk",
|
|
]
|
|
}
|
|
|
|
group("samples") {
|
|
deps = [
|
|
"runtime/bin:sample_extension",
|
|
]
|
|
}
|
|
|
|
# This rule and the compressed_observatory_archive rule are for the Fuchsia
|
|
# bots that pre-build the Observatory. They copy the observatory tar files to
|
|
# the root build output directory for convenient access by the Fuchsia buildbot
|
|
# scripts.
|
|
group("observatory_archive") {
|
|
deps = [
|
|
"runtime/observatory:copy_observatory_archive",
|
|
]
|
|
}
|
|
|
|
group("compressed_observatory_archive") {
|
|
deps = [
|
|
"runtime/observatory:copy_compressed_observatory_archive",
|
|
]
|
|
}
|