2016-09-23 14:47:36 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-07-30 20:34:31 +00:00
|
|
|
import("build/config/gclient_args.gni")
|
2018-05-03 21:07:13 +00:00
|
|
|
import("build/dart/dart_host_sdk_toolchain.gni")
|
2017-11-02 19:02:18 +00:00
|
|
|
|
2018-01-18 06:05:56 +00:00
|
|
|
targetting_fuchsia = target_os == "fuchsia"
|
|
|
|
|
2016-09-23 14:47:36 +00:00
|
|
|
# This target will be built if no target is specified when invoking ninja.
|
|
|
|
group("default") {
|
2018-01-18 06:05:56 +00:00
|
|
|
if (targetting_fuchsia) {
|
2016-12-13 21:02:52 +00:00
|
|
|
# Fuchsia has run_vm_tests marked testonly.
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-09-23 14:47:36 +00:00
|
|
|
deps = [
|
2018-06-18 22:31:32 +00:00
|
|
|
":runtime",
|
2016-09-23 14:47:36 +00:00
|
|
|
]
|
2019-08-09 19:00:24 +00:00
|
|
|
if (defined(checkout_llvm) && checkout_llvm) {
|
2019-07-30 20:34:31 +00:00
|
|
|
deps += [
|
|
|
|
":llvm_codegen"
|
|
|
|
]
|
|
|
|
}
|
2016-09-23 14:47:36 +00:00
|
|
|
}
|
|
|
|
|
2016-09-29 20:23:00 +00:00
|
|
|
group("most") {
|
2019-07-31 12:54:52 +00:00
|
|
|
import("runtime/runtime_args.gni")
|
2018-01-18 06:05:56 +00:00
|
|
|
if (targetting_fuchsia) {
|
2016-12-13 21:02:52 +00:00
|
|
|
# Fuchsia has run_vm_tests marked testonly.
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-09-29 20:23:00 +00:00
|
|
|
deps = [
|
|
|
|
":create_sdk",
|
|
|
|
":dart2js",
|
|
|
|
":dartanalyzer",
|
|
|
|
":dartdevc",
|
|
|
|
":runtime",
|
|
|
|
":samples",
|
|
|
|
]
|
2019-07-31 12:54:52 +00:00
|
|
|
if (dart_target_arch != "arm") {
|
|
|
|
deps += [ ":analysis_server" ]
|
|
|
|
}
|
2016-09-29 20:23:00 +00:00
|
|
|
}
|
|
|
|
|
2016-09-23 14:47:36 +00:00
|
|
|
group("runtime") {
|
2018-06-18 22:31:32 +00:00
|
|
|
import("runtime/runtime_args.gni")
|
|
|
|
|
2018-01-18 06:05:56 +00:00
|
|
|
if (targetting_fuchsia) {
|
2016-12-13 21:02:52 +00:00
|
|
|
# Fuchsia has run_vm_tests marked testonly.
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-09-23 14:47:36 +00:00
|
|
|
deps = [
|
2016-09-29 20:23:00 +00:00
|
|
|
"runtime/bin:dart",
|
|
|
|
"runtime/bin:process_test",
|
2016-10-26 15:50:54 +00:00
|
|
|
"runtime/bin:run_vm_tests",
|
2016-09-29 20:23:00 +00:00
|
|
|
"runtime/bin:sample_extension",
|
2016-10-26 15:50:54 +00:00
|
|
|
"runtime/bin:test_extension",
|
2019-01-29 15:10:34 +00:00
|
|
|
"runtime/bin:entrypoints_verification_test_extension",
|
2019-02-13 12:42:47 +00:00
|
|
|
"runtime/bin:ffi_test_dynamic_library",
|
|
|
|
"runtime/bin:ffi_test_functions",
|
2017-11-01 21:13:28 +00:00
|
|
|
"runtime/vm:kernel_platform_files($host_toolchain)",
|
2017-01-31 17:47:51 +00:00
|
|
|
"utils/kernel-service:kernel-service",
|
2016-09-29 20:23:00 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2018-06-18 22:31:32 +00:00
|
|
|
group("runtime_kernel") {
|
2018-07-10 17:32:43 +00:00
|
|
|
if (targetting_fuchsia) {
|
|
|
|
# Fuchsia has run_vm_tests marked testonly.
|
|
|
|
testonly = true
|
|
|
|
}
|
2018-06-18 22:31:32 +00:00
|
|
|
deps = [
|
|
|
|
":runtime",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-09-29 20:23:00 +00:00
|
|
|
group("runtime_precompiled") {
|
|
|
|
deps = [
|
2016-10-26 15:50:54 +00:00
|
|
|
"runtime/bin:dart_precompiled_runtime",
|
2017-01-10 00:58:09 +00:00
|
|
|
"runtime/bin:process_test",
|
2016-09-29 20:23:00 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-04-19 16:00:12 +00:00
|
|
|
group("create_sdk") {
|
2018-04-24 16:03:45 +00:00
|
|
|
public_deps = [
|
2017-04-19 16:00:12 +00:00
|
|
|
"sdk:create_sdk",
|
2016-09-29 20:23:00 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-11-06 19:06:18 +00:00
|
|
|
if (defined(dart_host_sdk_toolchain) &&
|
|
|
|
dart_host_sdk_toolchain != host_toolchain) {
|
2017-11-02 19:02:18 +00:00
|
|
|
group("create_host_sdk") {
|
|
|
|
deps = [
|
|
|
|
"sdk:create_sdk($dart_host_sdk_toolchain)",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-29 20:23:00 +00:00
|
|
|
group("dart2js") {
|
|
|
|
deps = [
|
2016-10-26 15:50:54 +00:00
|
|
|
"utils/compiler:dart2js",
|
2016-09-29 20:23:00 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("dartanalyzer") {
|
|
|
|
deps = [
|
2016-10-26 15:50:54 +00:00
|
|
|
"utils/dartanalyzer",
|
2016-09-29 20:23:00 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("dartdevc") {
|
|
|
|
deps = [
|
2016-10-26 15:50:54 +00:00
|
|
|
"utils/dartdevc",
|
2016-09-29 20:23:00 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("dartfmt") {
|
|
|
|
deps = [
|
2016-10-26 15:50:54 +00:00
|
|
|
"utils/dartfmt",
|
2016-09-29 20:23:00 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("analysis_server") {
|
|
|
|
deps = [
|
2016-10-26 15:50:54 +00:00
|
|
|
"utils/analysis_server",
|
2016-09-29 20:23:00 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2019-07-30 20:34:31 +00:00
|
|
|
group("check_llvm") {
|
2019-08-09 19:00:24 +00:00
|
|
|
if (defined(checkout_llvm) && checkout_llvm) {
|
2019-07-31 20:29:11 +00:00
|
|
|
deps = [
|
|
|
|
"runtime/llvm_codegen/test",
|
|
|
|
]
|
|
|
|
}
|
2019-07-30 20:34:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group("llvm_codegen") {
|
2019-08-09 19:00:24 +00:00
|
|
|
if (defined(checkout_llvm) && checkout_llvm) {
|
2019-07-31 20:29:11 +00:00
|
|
|
deps = [
|
|
|
|
"runtime/llvm_codegen/codegen",
|
|
|
|
"runtime/llvm_codegen/bit",
|
|
|
|
]
|
|
|
|
}
|
2019-07-30 20:34:31 +00:00
|
|
|
}
|
|
|
|
|
2016-09-29 20:23:00 +00:00
|
|
|
# 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 = [
|
2016-10-26 15:50:54 +00:00
|
|
|
":create_sdk",
|
2016-09-29 20:23:00 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("samples") {
|
|
|
|
deps = [
|
2016-10-26 15:50:54 +00:00
|
|
|
"runtime/bin:sample_extension",
|
2016-09-23 14:47:36 +00:00
|
|
|
]
|
|
|
|
}
|
2017-01-19 18:11:27 +00:00
|
|
|
|
2018-06-04 21:35:39 +00:00
|
|
|
# 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.
|
2018-05-29 16:35:34 +00:00
|
|
|
group("observatory_archive") {
|
|
|
|
deps = [
|
2018-06-04 21:35:39 +00:00
|
|
|
"runtime/observatory:copy_observatory_archive",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("compressed_observatory_archive") {
|
|
|
|
deps = [
|
|
|
|
"runtime/observatory:copy_compressed_observatory_archive",
|
2018-05-29 16:35:34 +00:00
|
|
|
]
|
|
|
|
}
|