v8/tools/BUILD.gn
Michael Achenbach bc15e20a03 [gcmole] Optimize data dependencies
This (micro)optimizes data dependencies of gcmole in two ways:

1. Only bundle icu folders 'common' and 'i18n', omitting particularly
icu's data and test folder, which aren't needed for running gcmole.
This reduces gcmole bundle size from 377MB to 239MB, reducing upload
and download times by a few seconds on g1 bots.

2. Process gcmole data dependencies during GN time only when gcmole
is configured via gn flag. Currently, the dependency files are also
processed on all other bots that aren't running gcmole.

Bug: v8:12660
Change-Id: Ib708fa2957e6e33698e51b2aee45929f4d467935
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4076331
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/main@{#84648}
2022-12-05 14:03:39 +00:00

73 lines
1.6 KiB
Plaintext

# Copyright 2016 the V8 project authors. 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/config/sanitizers/sanitizers.gni")
import("../gni/v8.gni")
group("gn_all") {
testonly = true
data_deps = [
":v8_check_static_initializers",
"debug_helper:v8_debug_helper",
"jsfunfuzz:v8_jsfunfuzz",
]
if (v8_gcmole) {
data_deps += [ "gcmole:v8_gcmole_files" ]
}
if (is_win) {
data_deps += [ "v8windbg" ]
}
if (v8_enable_webassembly) {
data_deps += [ "wasm:wami" ]
}
}
group("v8_check_static_initializers") {
data_deps = [ "..:d8" ]
data = [ "check-static-initializers.sh" ]
}
group("v8_android_test_runner_deps") {
testonly = true
if (is_android && !build_with_chromium) {
data_deps = [ "//build/android:test_runner_py" ]
data = [
# This is used by android.py, but not included by test_runner_py above.
"//third_party/catapult/devil/devil/android/perf/",
]
}
}
group("v8_testrunner") {
testonly = true
data_deps = [
":v8_android_test_runner_deps",
"..:v8_dump_build_config",
"..:v8_python_base",
]
data = [
# Also add the num-fuzzer wrapper script in order to be able to run the
# num-fuzzer on all existing isolated V8 test suites.
"predictable_wrapper.py",
"run-num-fuzzer.py",
"run-tests.py",
"testrunner/",
]
if (v8_code_coverage && sanitizer_coverage_flags == "bb,trace-pc-guard") {
data += [
"sanitizers/sancov_merger.py",
"../third_party/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/sancov.py",
]
}
}