🌐 AI搜索 & 代理 主页
blob: 5dbba45bff0d41f154e7d27abc5f88cb8832b022 [file] [log] [blame]
Zachary Anderson7e1b7e52016-09-23 14:47:361# Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2# for details. All rights reserved. Use of this source code is governed by a
3# BSD-style license that can be found in the LICENSE file.
4
Zach Anderson48775872018-05-03 21:07:135import("build/dart/dart_host_sdk_toolchain.gni")
Zachary Andersona99cdab2017-11-02 19:02:186
James Robinson138d5872018-01-18 06:05:567targetting_fuchsia = target_os == "fuchsia"
8
Zachary Anderson7e1b7e52016-09-23 14:47:369# This target will be built if no target is specified when invoking ninja.
10group("default") {
James Robinson138d5872018-01-18 06:05:5611 if (targetting_fuchsia) {
Zachary Anderson7f55ad82016-12-13 21:02:5212 # Fuchsia has run_vm_tests marked testonly.
13 testonly = true
14 }
Zachary Anderson7e1b7e52016-09-23 14:47:3615 deps = [
asivabc7220a2018-06-18 22:31:3216 ":runtime",
Zachary Anderson7e1b7e52016-09-23 14:47:3617 ]
18}
19
Zachary Anderson7c784ce2016-09-29 20:23:0020group("most") {
James Robinson138d5872018-01-18 06:05:5621 if (targetting_fuchsia) {
Zachary Anderson7f55ad82016-12-13 21:02:5222 # Fuchsia has run_vm_tests marked testonly.
23 testonly = true
24 }
Zachary Anderson7c784ce2016-09-29 20:23:0025 deps = [
26 ":analysis_server",
27 ":create_sdk",
28 ":dart2js",
29 ":dartanalyzer",
30 ":dartdevc",
31 ":runtime",
32 ":samples",
33 ]
34}
35
Zachary Anderson7e1b7e52016-09-23 14:47:3636group("runtime") {
asivabc7220a2018-06-18 22:31:3237 import("runtime/runtime_args.gni")
38
39 target_supports_aot = dart_target_arch == "arm" ||
40 dart_target_arch == "arm64" || dart_target_arch == "x64"
41
James Robinson138d5872018-01-18 06:05:5642 if (targetting_fuchsia) {
Zachary Anderson7f55ad82016-12-13 21:02:5243 # Fuchsia has run_vm_tests marked testonly.
44 testonly = true
45 }
Zachary Anderson7e1b7e52016-09-23 14:47:3646 deps = [
Zachary Anderson7c784ce2016-09-29 20:23:0047 "runtime/bin:dart",
Zachary Anderson02eebb02017-11-01 21:13:2848 "runtime/bin:dart_bootstrap($host_toolchain)",
Zachary Anderson7c784ce2016-09-29 20:23:0049 "runtime/bin:process_test",
Zachary Andersonc1313a52016-10-26 15:50:5450 "runtime/bin:run_vm_tests",
Zachary Anderson7c784ce2016-09-29 20:23:0051 "runtime/bin:sample_extension",
Zachary Andersonc1313a52016-10-26 15:50:5452 "runtime/bin:test_extension",
Zachary Anderson02eebb02017-11-01 21:13:2853 "runtime/vm:kernel_platform_files($host_toolchain)",
Ryan Macnak9eb216a2017-01-31 17:47:5154
Martin Kustermann75414792017-03-02 15:04:3055 # TODO(rmacnak): Link this into 'dart'.
Siva Chandra4b73d122018-01-12 20:40:4156 "utils/kernel-service:copy_kernel_service_snapshot",
Ryan Macnak9eb216a2017-01-31 17:47:5157 "utils/kernel-service:kernel-service",
Zachary Anderson7c784ce2016-09-29 20:23:0058 ]
Vyacheslav Egorov37f56d62018-02-26 17:08:4759
60 if (target_supports_aot) {
Zach Anderson9847c062018-06-04 21:35:3961 deps += [ "runtime/bin:precompiler_entry_points_json" ]
Vyacheslav Egorov37f56d62018-02-26 17:08:4762 }
Zachary Anderson7c784ce2016-09-29 20:23:0063}
64
asivabc7220a2018-06-18 22:31:3265group("runtime_kernel") {
Zach Anderson876ce432018-07-10 17:32:4366 if (targetting_fuchsia) {
67 # Fuchsia has run_vm_tests marked testonly.
68 testonly = true
69 }
asivabc7220a2018-06-18 22:31:3270 deps = [
71 ":runtime",
72 ]
73}
74
Zachary Anderson7c784ce2016-09-29 20:23:0075group("runtime_precompiled") {
76 deps = [
Zachary Anderson02eebb02017-11-01 21:13:2877 "runtime/bin:dart_bootstrap($host_toolchain)",
Zachary Andersonc1313a52016-10-26 15:50:5478 "runtime/bin:dart_precompiled_runtime",
Florian Schneiderc7aba7d2017-01-10 00:58:0979 "runtime/bin:process_test",
Zachary Anderson7c784ce2016-09-29 20:23:0080 ]
81}
82
Zachary Andersonb6bb2972017-04-19 16:00:1283group("create_sdk") {
Ryan Macnakdb875452018-04-24 16:03:4584 public_deps = [
Zachary Andersonb6bb2972017-04-19 16:00:1285 "sdk:create_sdk",
Zachary Anderson7c784ce2016-09-29 20:23:0086 ]
Zachary Anderson7c784ce2016-09-29 20:23:0087}
88
P.Y. Laligandab25f542017-11-06 19:06:1889if (defined(dart_host_sdk_toolchain) &&
90 dart_host_sdk_toolchain != host_toolchain) {
Zachary Andersona99cdab2017-11-02 19:02:1891 group("create_host_sdk") {
92 deps = [
93 "sdk:create_sdk($dart_host_sdk_toolchain)",
94 ]
95 }
96}
97
Zachary Anderson7c784ce2016-09-29 20:23:0098group("dart2js") {
99 deps = [
Zachary Andersonc1313a52016-10-26 15:50:54100 "utils/compiler:dart2js",
Zachary Anderson7c784ce2016-09-29 20:23:00101 ]
102}
103
104group("dartanalyzer") {
105 deps = [
Zachary Andersonc1313a52016-10-26 15:50:54106 "utils/dartanalyzer",
Zachary Anderson7c784ce2016-09-29 20:23:00107 ]
108}
109
110group("dartdevc") {
111 deps = [
Zachary Andersonc1313a52016-10-26 15:50:54112 "utils/dartdevc",
Zachary Anderson7c784ce2016-09-29 20:23:00113 ]
114}
115
116group("dartfmt") {
117 deps = [
Zachary Andersonc1313a52016-10-26 15:50:54118 "utils/dartfmt",
Zachary Anderson7c784ce2016-09-29 20:23:00119 ]
120}
121
122group("analysis_server") {
123 deps = [
Zachary Andersonc1313a52016-10-26 15:50:54124 "utils/analysis_server",
Zachary Anderson7c784ce2016-09-29 20:23:00125 ]
126}
127
128# This is the target that is built on the dart2js build bots.
129# It must depend on anything that is required by the dart2js
130# test suites.
131group("dart2js_bot") {
132 deps = [
Zachary Andersonc1313a52016-10-26 15:50:54133 ":create_sdk",
Zachary Anderson7c784ce2016-09-29 20:23:00134 ]
135}
136
137group("samples") {
138 deps = [
Zachary Andersonc1313a52016-10-26 15:50:54139 "runtime/bin:sample_extension",
Zachary Anderson7e1b7e52016-09-23 14:47:36140 ]
141}
Zachary Anderson306b0ec2017-01-19 18:11:27142
Zach Anderson9847c062018-06-04 21:35:39143# This rule and the compressed_observatory_archive rule are for the Fuchsia
144# bots that pre-build the Observatory. They copy the observatory tar files to
145# the root build output directory for convenient access by the Fuchsia buildbot
146# scripts.
Zach Anderson736ddd92018-05-29 16:35:34147group("observatory_archive") {
148 deps = [
Zach Anderson9847c062018-06-04 21:35:39149 "runtime/observatory:copy_observatory_archive",
150 ]
151}
152
153group("compressed_observatory_archive") {
154 deps = [
155 "runtime/observatory:copy_compressed_observatory_archive",
Zach Anderson736ddd92018-05-29 16:35:34156 ]
157}