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.
|
|
|
|
|
|
|
|
# This target will be built if no target is specified when invoking ninja.
|
|
|
|
group("default") {
|
|
|
|
deps = [
|
|
|
|
":runtime",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-09-29 20:23:00 +00:00
|
|
|
group("most") {
|
|
|
|
deps = [
|
|
|
|
":analysis_server",
|
|
|
|
":create_sdk",
|
|
|
|
":dart2js",
|
|
|
|
":dartanalyzer",
|
|
|
|
":dartdevc",
|
|
|
|
":runtime",
|
|
|
|
":samples",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-09-23 14:47:36 +00:00
|
|
|
group("runtime") {
|
|
|
|
deps = [
|
2016-09-29 20:23:00 +00:00
|
|
|
"runtime/bin:dart",
|
|
|
|
"runtime/bin:dart_bootstrap($host_toolchain)",
|
|
|
|
"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",
|
2016-10-27 08:09:22 +00:00
|
|
|
"runtime/vm:patched_sdk",
|
2016-09-29 20:23:00 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("runtime_precompiled") {
|
|
|
|
deps = [
|
|
|
|
"runtime/bin:dart_bootstrap($host_toolchain)",
|
2016-10-26 15:50:54 +00:00
|
|
|
"runtime/bin:dart_precompiled_runtime",
|
2016-10-27 08:09:22 +00:00
|
|
|
"runtime/vm:patched_sdk",
|
2016-09-29 20:23:00 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("runtime_and_noopt") {
|
|
|
|
deps = [
|
|
|
|
"runtime/bin:dart",
|
|
|
|
"runtime/bin:dart_bootstrap($host_toolchain)",
|
2016-10-26 15:50:54 +00:00
|
|
|
"runtime/bin:dart_noopt",
|
2016-09-29 20:23:00 +00:00
|
|
|
"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",
|
2016-10-27 08:09:22 +00:00
|
|
|
"runtime/vm:patched_sdk",
|
2016-09-29 20:23:00 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
action("create_sdk") {
|
|
|
|
deps = [
|
|
|
|
"runtime/bin:dart",
|
|
|
|
"utils/analysis_server",
|
2016-10-22 07:05:39 +00:00
|
|
|
"utils/compiler:dart2js",
|
|
|
|
"utils/compiler:utils_wrapper",
|
2016-09-29 20:23:00 +00:00
|
|
|
"utils/dartanalyzer:generate_dartanalyzer_snapshot",
|
|
|
|
"utils/dartanalyzer:generate_summary_spec",
|
|
|
|
"utils/dartanalyzer:generate_summary_strong",
|
|
|
|
"utils/dartdevc",
|
|
|
|
"utils/dartdoc",
|
|
|
|
"utils/dartfmt",
|
|
|
|
"utils/pub",
|
|
|
|
]
|
|
|
|
|
2016-10-05 14:50:40 +00:00
|
|
|
sdk_lib_files = exec_script("tools/list_dart_files.py",
|
2016-10-26 15:50:54 +00:00
|
|
|
[ rebase_path("sdk/lib") ],
|
|
|
|
"list lines")
|
2016-09-29 20:23:00 +00:00
|
|
|
|
2016-10-26 15:50:54 +00:00
|
|
|
preamble_files =
|
|
|
|
exec_script("tools/list_files.py",
|
|
|
|
[
|
|
|
|
"",
|
|
|
|
rebase_path("sdk/lib/_internal/js_runtime/lib/preambles"),
|
|
|
|
],
|
|
|
|
"list lines")
|
2016-09-29 20:23:00 +00:00
|
|
|
|
|
|
|
sdk_bin_files = exec_script("tools/list_files.py",
|
2016-10-26 15:50:54 +00:00
|
|
|
[
|
|
|
|
"",
|
|
|
|
rebase_path("sdk/bin"),
|
|
|
|
],
|
|
|
|
"list lines")
|
2016-09-29 20:23:00 +00:00
|
|
|
|
|
|
|
inputs = rebase_path(sdk_lib_files, "", "sdk/lib") +
|
2016-10-26 15:50:54 +00:00
|
|
|
rebase_path(preamble_files, "", "sdk/lib") +
|
|
|
|
rebase_path(sdk_bin_files, "", "sdk/bin") +
|
|
|
|
[
|
|
|
|
"sdk/lib/dart_client.platform",
|
|
|
|
"sdk/lib/dart_server.platform",
|
|
|
|
"sdk/lib/dart_shared.platform",
|
|
|
|
"$root_gen_dir/dart2js.dart.snapshot",
|
|
|
|
"$root_gen_dir/utils_wrapper.dart.snapshot",
|
|
|
|
"$root_gen_dir/pub.dart.snapshot",
|
|
|
|
"$root_gen_dir/dartanalyzer.dart.snapshot",
|
|
|
|
"$root_gen_dir/dartdevc.dart.snapshot",
|
|
|
|
"$root_gen_dir/dartfmt.dart.snapshot",
|
|
|
|
"$root_gen_dir/analysis_server.dart.snapshot",
|
|
|
|
"$root_gen_dir/dartdoc.dart.snapshot",
|
|
|
|
"$root_gen_dir/spec.sum",
|
|
|
|
"$root_gen_dir/strong.sum",
|
|
|
|
"tools/VERSION",
|
|
|
|
]
|
2016-09-29 20:23:00 +00:00
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"$root_out_dir/dart-sdk/README",
|
|
|
|
]
|
|
|
|
|
|
|
|
script = "tools/create_sdk.py"
|
|
|
|
args = [
|
|
|
|
"--sdk_output_dir",
|
|
|
|
rebase_path("$root_out_dir/dart-sdk"),
|
|
|
|
"--snapshot_location",
|
|
|
|
rebase_path("$root_gen_dir"),
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
# 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
|
|
|
]
|
|
|
|
}
|