Commit 2870b5ce authored by Takuto Ikuta's avatar Takuto Ikuta Committed by Commit Bot

Optimize build dependency for headless

snapshot is not necessary to be there when compiling.
This change allows src for headless to be compiled before generating snapshot.

This dependency optimization improves build parallelism and build time of chrome on Z840 linux with goma -j1000 reduced from 6m14.035s to 4m45.244s when goma's backend cache cannot be used.

Change-Id: I90e302f4b9da8ec252020755636483006f332a80
Reviewed-on: https://chromium-review.googlesource.com/1013958Reviewed-by: default avatarSami Kyöstilä <skyostil@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551202}
parent 1e72048c
...@@ -444,6 +444,9 @@ component("headless") { ...@@ -444,6 +444,9 @@ component("headless") {
"//net", "//net",
] ]
data_deps = []
data = []
if (enable_basic_printing) { if (enable_basic_printing) {
public_deps += [ "//skia" ] public_deps += [ "//skia" ]
} }
...@@ -520,10 +523,10 @@ component("headless") { ...@@ -520,10 +523,10 @@ component("headless") {
sources += [ "$root_out_dir/natives_blob.bin" ] sources += [ "$root_out_dir/natives_blob.bin" ]
public_deps += [ "//v8" ] public_deps += [ "//v8" ]
if (use_v8_context_snapshot) { if (use_v8_context_snapshot) {
sources += [ "$root_out_dir/v8_context_snapshot.bin" ] data += [ "$root_out_dir/v8_context_snapshot.bin" ]
public_deps += [ "//tools/v8_context_snapshot" ] data_deps += [ "//tools/v8_context_snapshot" ]
} else { } else {
sources += [ "$root_out_dir/snapshot_blob.bin" ] data += [ "$root_out_dir/snapshot_blob.bin" ]
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment