From f86946fda35f6c4dc9e542288f8b447ab4dfca5d Mon Sep 17 00:00:00 2001 From: Sigurd Schneider Date: Thu, 29 Nov 2018 11:10:21 +0100 Subject: [PATCH] [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 Reviewed-by: Michael Achenbach Cr-Commit-Position: refs/heads/master@{#57941} --- BUILD.gn | 16 ++++++++++++++++ src/inspector/BUILD.gn | 9 +++++++++ test/cctest/BUILD.gn | 9 +++++++++ 3 files changed, 34 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 8a4e615ea6..0a0eb6c6bc 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -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", + ] +} diff --git a/src/inspector/BUILD.gn b/src/inspector/BUILD.gn index 19f195e6bc..10d476d9ee 100644 --- a/src/inspector/BUILD.gn +++ b/src/inspector/BUILD.gn @@ -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", + ] +} diff --git a/test/cctest/BUILD.gn b/test/cctest/BUILD.gn index aec1322db2..b10ed98a19 100644 --- a/test/cctest/BUILD.gn +++ b/test/cctest/BUILD.gn @@ -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", + ] +}