Commit f4918417 authored by Byoungkown's avatar Byoungkown Committed by Commit Bot

[Jumbo] Add support for jumbo compilation in components/metrics

The code in components/metrics takes about >3CPU minutes to build.
Building effort will fall to about 1 CPU minutes using jumbo builds[1].
When building using jumbo, files gets merged.
It means that you cannot duplicate symbol names within the component,
not even in anonymous namespaces.

[1] https://chromium.googlesource.com/chromium/src/+/lkgr/docs/jumbo.md

Bug: 869381
Change-Id: I5287f8366ea78b6e97c51d04489ec3c2ed28fab6
Reviewed-on: https://chromium-review.googlesource.com/1239133
Commit-Queue: Byoungkwon Ko <codeimpl@gmail.com>
Reviewed-by: default avatarAlexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595473}
parent 7bbea0a5
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//build/config/jumbo.gni")
import("//testing/test.gni") import("//testing/test.gni")
static_library("metrics") { jumbo_static_library("metrics") {
sources = [ sources = [
"call_stack_profile_metrics_provider.cc", "call_stack_profile_metrics_provider.cc",
"call_stack_profile_metrics_provider.h", "call_stack_profile_metrics_provider.h",
...@@ -181,7 +182,7 @@ if (!is_ios) { ...@@ -181,7 +182,7 @@ if (!is_ios) {
} }
} }
static_library("net") { jumbo_static_library("net") {
sources = [ sources = [
"net/cellular_logic_helper.cc", "net/cellular_logic_helper.cc",
"net/cellular_logic_helper.h", "net/cellular_logic_helper.h",
...@@ -321,7 +322,7 @@ source_set("call_stack_profile_collector") { ...@@ -321,7 +322,7 @@ source_set("call_stack_profile_collector") {
] ]
} }
static_library("test_support") { jumbo_static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"test_enabled_state_provider.cc", "test_enabled_state_provider.cc",
......
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