[cleanup] Reformat BUILD.gn file

... using up-to-date git cl format.

Bug: v8:10155
Change-Id: Ie29b492a7831fe2d7c0de247d16f9b7be9e42a5b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2026730
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66024}
This commit is contained in:
Igor Sheludko 2020-01-29 12:27:10 +01:00 committed by Commit Bot
parent 68cc5c6796
commit 861da54fcb

240
BUILD.gn
View File

@ -834,15 +834,9 @@ template("asm_to_inline_asm") {
assert(emit_builtins_as_inline_asm)
script = "tools/snapshot/asm_to_inline_asm.py"
deps = [
":run_mksnapshot_" + name,
]
sources = [
"$target_gen_dir/embedded${suffix}.S",
]
outputs = [
"$target_gen_dir/embedded${suffix}.cc",
]
deps = [ ":run_mksnapshot_" + name ]
sources = [ "$target_gen_dir/embedded${suffix}.S" ]
outputs = [ "$target_gen_dir/embedded${suffix}.cc" ]
args = invoker.args
args += [
rebase_path("$target_gen_dir/embedded${suffix}.S", root_build_dir),
@ -856,9 +850,7 @@ if (is_android && enable_java_templates) {
if (v8_use_external_startup_data) {
# We don't support side-by-side snapshots on Android within Chromium.
assert(!v8_use_multi_snapshots)
deps = [
"//v8",
]
deps = [ "//v8" ]
renaming_sources = [ "$root_out_dir/snapshot_blob.bin" ]
if (current_cpu == "arm" || current_cpu == "x86" ||
current_cpu == "mipsel") {
@ -942,16 +934,12 @@ action("postmortem-metadata") {
"$target_gen_dir/torque-generated/instance-types-tq.h",
]
outputs = [
"$target_gen_dir/debug-support.cc",
]
outputs = [ "$target_gen_dir/debug-support.cc" ]
args = rebase_path(outputs, root_build_dir) +
rebase_path(sources, root_build_dir)
deps = [
":run_torque",
]
deps = [ ":run_torque" ]
}
torque_files = [
@ -1137,9 +1125,7 @@ template("run_torque") {
"test/cctest/:*",
]
deps = [
":torque($toolchain)",
]
deps = [ ":torque($toolchain)" ]
script = "tools/run.py"
@ -1225,17 +1211,13 @@ if (v8_verify_torque_generation_invariance) {
rebase_path("$target_gen_dir/torque-generated_x86", root_build_dir),
rebase_path(report_file, root_build_dir),
]
outputs = [
report_file,
]
outputs = [ report_file ]
}
}
group("v8_maybe_icu") {
if (v8_enable_i18n_support) {
public_deps = [
"//third_party/icu",
]
public_deps = [ "//third_party/icu" ]
}
}
@ -1247,9 +1229,7 @@ v8_source_set("torque_generated_initializers") {
":run_torque",
]
public_deps = [
":v8_maybe_icu",
]
public_deps = [ ":v8_maybe_icu" ]
sources = [
"$target_gen_dir/torque-generated/csa-types-tq.h",
@ -1277,9 +1257,7 @@ v8_source_set("torque_generated_definitions") {
":run_torque",
]
public_deps = [
":v8_maybe_icu",
]
public_deps = [ ":v8_maybe_icu" ]
sources = [
"$target_gen_dir/torque-generated/class-definitions-tq.cc",
@ -1293,12 +1271,8 @@ v8_source_set("torque_generated_definitions") {
action("generate_bytecode_builtins_list") {
script = "tools/run.py"
outputs = [
"$target_gen_dir/builtins-generated/bytecodes-builtins-list.h",
]
deps = [
":bytecode_builtins_list_generator($v8_generator_toolchain)",
]
outputs = [ "$target_gen_dir/builtins-generated/bytecodes-builtins-list.h" ]
deps = [ ":bytecode_builtins_list_generator($v8_generator_toolchain)" ]
args = [
"./" + rebase_path(
get_label_info(
@ -1330,9 +1304,7 @@ template("run_mksnapshot") {
action("run_mksnapshot_" + name) {
visibility = [ ":*" ] # Only targets in this file can depend on this.
deps = [
":mksnapshot($v8_snapshot_toolchain)",
]
deps = [ ":mksnapshot($v8_snapshot_toolchain)" ]
script = "tools/run.py"
@ -1463,9 +1435,7 @@ if (v8_use_multi_snapshots) {
action("v8_dump_build_config") {
script = "tools/testrunner/utils/dump_build_config.py"
outputs = [
"$root_out_dir/v8_build_config.json",
]
outputs = [ "$root_out_dir/v8_build_config.json" ]
is_gcov_coverage = v8_code_coverage && !is_clang
is_full_debug = v8_enable_debugging_features && !v8_optimized_debug
args = [
@ -1519,9 +1489,7 @@ v8_source_set("v8_snapshot") {
# Do not publicize any header to remove build dependency.
public = []
sources = [
"src/init/setup-isolate-deserialize.cc",
]
sources = [ "src/init/setup-isolate-deserialize.cc" ]
if (emit_builtins_as_inline_asm) {
deps += [ ":asm_to_inline_asm_default" ]
sources += [ "$target_gen_dir/embedded.cc" ]
@ -1561,9 +1529,7 @@ v8_source_set("v8_initializers") {
"test/cctest:*",
]
deps = [
":torque_generated_initializers",
]
deps = [ ":torque_generated_initializers" ]
sources = [
### gcmole(all) ###
@ -1686,18 +1652,14 @@ v8_source_set("v8_initializers") {
v8_source_set("v8_init") {
visibility = [ ":*" ] # Only targets in this file can depend on this.
deps = [
":v8_initializers",
]
deps = [ ":v8_initializers" ]
sources = [
### gcmole(all) ###
"src/init/setup-isolate-full.cc",
]
public_deps = [
":v8_maybe_icu",
]
public_deps = [ ":v8_maybe_icu" ]
configs = [ ":internal_config" ]
}
@ -1734,9 +1696,7 @@ v8_header_set("v8_headers") {
"include/v8-wasm-trap-handler-win.h",
]
deps = [
":v8_version",
]
deps = [ ":v8_version" ]
}
# This is split out to share basic headers with Torque.
@ -1744,13 +1704,9 @@ v8_header_set("v8_shared_internal_headers") {
visibility = [ ":*" ] # Only targets in this file can depend on this.
configs = [ ":internal_config" ]
sources = [
"src/common/globals.h",
]
sources = [ "src/common/globals.h" ]
deps = [
":v8_headers",
]
deps = [ ":v8_headers" ]
}
v8_compiler_sources = [
@ -2031,13 +1987,9 @@ v8_source_set("v8_compiler") {
group("v8_compiler_for_mksnapshot") {
if (is_debug && !v8_optimized_debug && v8_enable_fast_mksnapshot) {
deps = [
":v8_compiler_opt",
]
deps = [ ":v8_compiler_opt" ]
} else {
deps = [
":v8_compiler",
]
deps = [ ":v8_compiler" ]
}
}
@ -3490,13 +3442,9 @@ v8_source_set("torque_base") {
"src/torque/utils.h",
]
deps = [
":v8_shared_internal_headers",
]
deps = [ ":v8_shared_internal_headers" ]
public_deps = [
":v8_libbase",
]
public_deps = [ ":v8_libbase" ]
# The use of exceptions for Torque in violation of the Chromium style-guide
# is justified by the fact that it is only used from the non-essential
@ -3539,9 +3487,7 @@ v8_source_set("torque_ls_base") {
"src/torque/ls/message.h",
]
public_deps = [
":torque_base",
]
public_deps = [ ":torque_base" ]
# The use of exceptions for Torque in violation of the Chromium style-guide
# is justified by the fact that it is only used from the non-essential
@ -3642,9 +3588,7 @@ v8_component("v8_libbase") {
public_configs = [ ":libbase_config" ]
deps = [
":v8_headers",
]
deps = [ ":v8_headers" ]
public_deps = []
@ -3830,9 +3774,7 @@ v8_source_set("v8_libsampler") {
public_configs = [ ":libsampler_config" ]
deps = [
":v8_libbase",
]
deps = [ ":v8_libbase" ]
}
v8_source_set("fuzzer_support") {
@ -3845,9 +3787,7 @@ v8_source_set("fuzzer_support") {
configs = [ ":internal_config_base" ]
deps = [
":v8",
]
deps = [ ":v8" ]
public_deps = [
":v8_libbase",
@ -3969,9 +3909,7 @@ if (current_toolchain == v8_snapshot_toolchain) {
v8_executable("torque") {
visibility = [ ":*" ] # Only targets in this file can depend on this.
sources = [
"src/torque/torque.cc",
]
sources = [ "src/torque/torque.cc" ]
deps = [
":torque_base",
@ -4001,9 +3939,7 @@ if (current_toolchain == v8_snapshot_toolchain) {
v8_executable("torque-language-server") {
visibility = [ ":*" ] # Only targets in this file can depend on this.
sources = [
"src/torque/ls/torque-language-server.cc",
]
sources = [ "src/torque/ls/torque-language-server.cc" ]
deps = [
":torque_base",
@ -4035,9 +3971,7 @@ if (v8_enable_i18n_support) {
v8_executable("gen-regexp-special-case") {
visibility = [ ":*" ] # Only targets in this file can depend on this.
sources = [
"src/regexp/gen-regexp-special-case.cc",
]
sources = [ "src/regexp/gen-regexp-special-case.cc" ]
deps = [
":v8_libbase",
@ -4054,15 +3988,11 @@ if (v8_enable_i18n_support) {
script = "tools/run.py"
deps = [
":gen-regexp-special-case($v8_generator_toolchain)",
]
deps = [ ":gen-regexp-special-case($v8_generator_toolchain)" ]
output_file = "$target_gen_dir/src/regexp/special-case.cc"
outputs = [
output_file,
]
outputs = [ output_file ]
args = [
"./" + rebase_path(
@ -4108,17 +4038,13 @@ group("gn_all") {
}
group("v8_python_base") {
data = [
".vpython",
]
data = [ ".vpython" ]
}
group("v8_clusterfuzz") {
testonly = true
deps = [
":d8",
]
deps = [ ":d8" ]
if (v8_multi_arch_build) {
deps += [
@ -4134,9 +4060,7 @@ group("v8_clusterfuzz") {
group("v8_archive") {
testonly = true
deps = [
":d8",
]
deps = [ ":d8" ]
if (!is_win) {
# On windows, cctest doesn't link with v8_static_library.
@ -4179,9 +4103,7 @@ group("v8_fuzzers") {
if (is_component_build) {
v8_component("v8") {
sources = [
"src/utils/v8dll-main.cc",
]
sources = [ "src/utils/v8dll-main.cc" ]
public_deps = [
":v8_base",
@ -4196,9 +4118,7 @@ if (is_component_build) {
v8_component("v8_for_testing") {
testonly = true
sources = [
"src/utils/v8dll-main.cc",
]
sources = [ "src/utils/v8dll-main.cc" ]
public_deps = [
":torque_base",
@ -4287,9 +4207,7 @@ v8_executable("d8") {
}
v8_executable("v8_hello_world") {
sources = [
"samples/hello-world.cc",
]
sources = [ "samples/hello-world.cc" ]
configs = [
# Note: don't use :internal_config here because this target will get
@ -4307,9 +4225,7 @@ v8_executable("v8_hello_world") {
}
v8_executable("v8_sample_process") {
sources = [
"samples/process.cc",
]
sources = [ "samples/process.cc" ]
configs = [
# Note: don't use :internal_config here because this target will get
@ -4328,9 +4244,7 @@ v8_executable("v8_sample_process") {
if (want_v8_shell) {
v8_executable("v8_shell") {
sources = [
"samples/shell.cc",
]
sources = [ "samples/shell.cc" ]
configs = [
# Note: don't use :internal_config here because this target will get
@ -4357,22 +4271,16 @@ template("v8_fuzzer") {
"//build/win:default_exe_manifest",
]
sources = [
"test/fuzzer/fuzzer.cc",
]
sources = [ "test/fuzzer/fuzzer.cc" ]
configs = [ ":external_config" ]
}
}
v8_source_set("json_fuzzer") {
sources = [
"test/fuzzer/json.cc",
]
sources = [ "test/fuzzer/json.cc" ]
deps = [
":fuzzer_support",
]
deps = [ ":fuzzer_support" ]
configs = [
":external_config",
@ -4384,13 +4292,9 @@ v8_fuzzer("json_fuzzer") {
}
v8_source_set("multi_return_fuzzer") {
sources = [
"test/fuzzer/multi-return.cc",
]
sources = [ "test/fuzzer/multi-return.cc" ]
deps = [
":fuzzer_support",
]
deps = [ ":fuzzer_support" ]
configs = [
":external_config",
@ -4402,13 +4306,9 @@ v8_fuzzer("multi_return_fuzzer") {
}
v8_source_set("parser_fuzzer") {
sources = [
"test/fuzzer/parser.cc",
]
sources = [ "test/fuzzer/parser.cc" ]
deps = [
":fuzzer_support",
]
deps = [ ":fuzzer_support" ]
configs = [
":external_config",
@ -4425,9 +4325,7 @@ v8_source_set("regexp_builtins_fuzzer") {
"test/fuzzer/regexp_builtins/mjsunit.js.h",
]
deps = [
":fuzzer_support",
]
deps = [ ":fuzzer_support" ]
configs = [
":external_config",
@ -4439,13 +4337,9 @@ v8_fuzzer("regexp_builtins_fuzzer") {
}
v8_source_set("regexp_fuzzer") {
sources = [
"test/fuzzer/regexp.cc",
]
sources = [ "test/fuzzer/regexp.cc" ]
deps = [
":fuzzer_support",
]
deps = [ ":fuzzer_support" ]
configs = [
":external_config",
@ -4467,9 +4361,7 @@ v8_source_set("wasm_module_runner") {
":run_torque",
]
public_deps = [
":v8_maybe_icu",
]
public_deps = [ ":v8_maybe_icu" ]
configs = [
":external_config",
@ -4478,9 +4370,7 @@ v8_source_set("wasm_module_runner") {
}
v8_source_set("wasm_fuzzer") {
sources = [
"test/fuzzer/wasm.cc",
]
sources = [ "test/fuzzer/wasm.cc" ]
deps = [
":fuzzer_support",
@ -4498,9 +4388,7 @@ v8_fuzzer("wasm_fuzzer") {
}
v8_source_set("wasm_async_fuzzer") {
sources = [
"test/fuzzer/wasm-async.cc",
]
sources = [ "test/fuzzer/wasm-async.cc" ]
deps = [
":fuzzer_support",
@ -4549,9 +4437,7 @@ v8_source_set("lib_wasm_fuzzer_common") {
":run_torque",
]
public_deps = [
":v8_maybe_icu",
]
public_deps = [ ":v8_maybe_icu" ]
configs = [
":external_config",
@ -4676,9 +4562,7 @@ if (!build_with_chromium && v8_use_perfetto) {
# This target should be used only by the protoc compiler and by test targets.
source_set("protobuf_full") {
deps = [
":protobuf_lite",
]
deps = [ ":protobuf_lite" ]
sources = [
"third_party/protobuf/src/google/protobuf/any.cc",
"third_party/protobuf/src/google/protobuf/any.pb.cc",
@ -4748,9 +4632,7 @@ if (!build_with_chromium && v8_use_perfetto) {
if (current_toolchain == host_toolchain) {
source_set("protoc_lib") {
deps = [
":protobuf_full",
]
deps = [ ":protobuf_full" ]
sources = [
"third_party/protobuf/src/google/protobuf/compiler/code_generator.cc",
"third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc",
@ -4789,9 +4671,7 @@ if (!build_with_chromium && v8_use_perfetto) {
":protoc_lib",
"//build/win:default_exe_manifest",
]
sources = [
"src/protobuf/protobuf-compiler-main.cc",
]
sources = [ "src/protobuf/protobuf-compiler-main.cc" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
}