[observatory] Top-level observatory_archive rule copies to root_out_dir

Change-Id: I165d5391f8ae36ec4201d25907c90a526d8b8c6b
Reviewed-on: https://dart-review.googlesource.com/58360
Commit-Queue: Zach Anderson <zra@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
Zach Anderson 2018-06-04 21:35:39 +00:00 committed by commit-bot@chromium.org
parent 6449e67c5d
commit 9847c06e76
2 changed files with 46 additions and 3 deletions

View file

@ -51,7 +51,8 @@ group("runtime") {
group("runtime_kernel") {
import("runtime/runtime_args.gni")
target_supports_aot = dart_target_arch == "arm" || dart_target_arch == "arm64" || dart_target_arch == "x64"
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.
@ -67,7 +68,7 @@ group("runtime_kernel") {
]
if (target_supports_aot) {
deps += ["runtime/bin:precompiler_entry_points_json"]
deps += [ "runtime/bin:precompiler_entry_points_json" ]
}
}
@ -139,9 +140,19 @@ group("samples") {
]
}
# 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:observatory_archive"
"runtime/observatory:copy_observatory_archive",
]
}
group("compressed_observatory_archive") {
deps = [
"runtime/observatory:copy_compressed_observatory_archive",
]
}

View file

@ -118,10 +118,42 @@ observatory_archive("compressed_observatory_archive") {
compress = true
}
copy("copy_compressed_observatory_archive") {
archive_target = ":compressed_observatory_archive"
deps = [
archive_target,
]
archive_dir = get_label_info(archive_target, "target_gen_dir")
archive_name = get_label_info(archive_target, "name")
archive_file = "${archive_dir}/${archive_name}.tar"
sources = [
archive_file,
]
outputs = [
"$root_out_dir/${archive_name}.tar",
]
}
observatory_archive("observatory_archive") {
compress = false
}
copy("copy_observatory_archive") {
archive_target = ":observatory_archive"
deps = [
archive_target,
]
archive_dir = get_label_info(archive_target, "target_gen_dir")
archive_name = get_label_info(archive_target, "name")
archive_file = "${archive_dir}/${archive_name}.tar"
sources = [
archive_file,
]
outputs = [
"$root_out_dir/${archive_name}.tar",
]
}
# Generates a .cc file containing the bytes of the observatory archive in a C
# array.
#