Commit df98f897 authored by Daniel Bratell's avatar Daniel Bratell Committed by Commit Bot

Jumbo for blink/platform unit_tests (-9 CPU minutes)

This adds support for jumbo compilation (merging cc files into larger
translation units for faster compilations) in blink's platform
unit tests.

It shaves 9 CPU minutes from the compilation time which is roughly half
of the remaining time needed to compile blink/platform.

Bug: 761475
Change-Id: Iaafdd9a4b00951a6274582a8e90707e7d3ee7028
Reviewed-on: https://chromium-review.googlesource.com/718203
Commit-Queue: Daniel Bratell <bratell@opera.com>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#508947}
parent 3ec0c4b2
......@@ -1650,7 +1650,7 @@ jumbo_component("platform") {
}
}
static_library("test_support") {
jumbo_static_library("test_support") {
visibility += [ "//third_party/WebKit/*" ]
testonly = true
......@@ -1736,8 +1736,15 @@ static_library("test_support") {
}
test("blink_platform_unittests") {
deps = [
":blink_platform_unittests_sources",
]
}
jumbo_source_set("blink_platform_unittests_sources") {
visibility = [] # Allow re-assignment of list.
visibility = [ "*" ]
testonly = true
sources = [
"DecimalTest.cpp",
......@@ -2055,7 +2062,7 @@ if (current_cpu == "x86" || current_cpu == "x64") {
# This source set is used for fuzzers that need an environment similar to unit
# tests.
source_set("blink_fuzzer_test_support") {
jumbo_source_set("blink_fuzzer_test_support") {
testonly = true
visibility = [] # Allow re-assignment of list.
visibility = [ "*" ]
......@@ -2181,7 +2188,7 @@ blink_text_codec_fuzzer("WINDOWS_1252") {
# NOTE: These are legacy unit tests and tests that require a Platform
# object. Do not add more unless the test requires a Platform object.
# These tests are a part of the webkit_unit_tests binary.
source_set("unit_tests") {
jumbo_source_set("unit_tests") {
testonly = true
visibility = []
visibility = [ "//third_party/WebKit/Source/*" ]
......
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