[tools] Add ninja targets that generate all generated .cc files

This adds a new target :generated_cc_files which generates all
generated .cc files and is quick to build (~5sec on my machine).

TBR=yangguo@chromium.org

Change-Id: I51485635671b55302b06f1ea300e86ef1745931e
Bug: v8:8526
Reviewed-on: https://chromium-review.googlesource.com/c/1354881
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57941}
This commit is contained in:
Sigurd Schneider 2018-11-29 11:10:21 +01:00 committed by Commit Bot
parent 3b30f4d350
commit f86946fda3
3 changed files with 34 additions and 0 deletions

View File

@ -4159,3 +4159,19 @@ v8_source_set("wasm_compile_fuzzer") {
v8_fuzzer("wasm_compile_fuzzer") {
}
# Target to build all generated .cc files.
group("v8_generated_cc_files") {
testonly = true
deps = [
":d8_js2c",
":generate_bytecode_builtins_list",
":js2c",
":js2c_experimental_extras",
":js2c_extras",
":run_torque",
"src/inspector:v8_generated_cc_files",
"test/cctest:v8_generated_cc_files",
]
}

View File

@ -137,3 +137,12 @@ v8_source_set("inspector") {
"wasm-translation.h",
]
}
#Target to generate all .cc files.
group("v8_generated_cc_files") {
testonly = true
deps = [
":protocol_generated_sources",
]
}

View File

@ -489,3 +489,12 @@ v8_executable("generate-bytecode-expectations") {
"//build/win:default_exe_manifest",
]
}
#Target to generate all .cc files.
group("v8_generated_cc_files") {
testonly = true
deps = [
":resources",
]
}