Commit 09e1e797 authored by Oscar Johansson's avatar Oscar Johansson Committed by Commit Bot

Enable jumbo support in components/password_manager/

Without jumbo, password_manager takes around 3.6 CPU
minutes to build. With jumbo and chunk size 50,
password_manager takes around 11 seconds to build,
a decrease by around 94 %.

This commit enables jumbo support in
components/password_manager.

Bug: 869381
Change-Id: Icce9d9800a01d452d63ba137c52c2a0495359da8
Reviewed-on: https://chromium-review.googlesource.com/1166963
Commit-Queue: Oscar Johansson <oscarj@opera.com>
Reviewed-by: default avatarVadym Doroshenko <dvadym@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582109}
parent 838ac360
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# 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.
static_library("browser") { import("//build/config/jumbo.gni")
jumbo_static_library("browser") {
sources = [ sources = [
"bad_message.cc", "bad_message.cc",
"bad_message.h", "bad_message.h",
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# 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/libfuzzer/fuzzer_test.gni") import("//testing/libfuzzer/fuzzer_test.gni")
import("//third_party/protobuf/proto_library.gni") import("//third_party/protobuf/proto_library.gni")
...@@ -12,7 +13,7 @@ if (is_android) { ...@@ -12,7 +13,7 @@ if (is_android) {
# TODO(crbug.com/706392): Fix password reuse detection for Android. # TODO(crbug.com/706392): Fix password reuse detection for Android.
password_reuse_detection_support = !is_android && !is_ios password_reuse_detection_support = !is_android && !is_ios
static_library("browser") { jumbo_static_library("browser") {
sources = [ sources = [
"android_affiliation/affiliated_match_helper.cc", "android_affiliation/affiliated_match_helper.cc",
"android_affiliation/affiliated_match_helper.h", "android_affiliation/affiliated_match_helper.h",
...@@ -234,7 +235,7 @@ proto_library("proto") { ...@@ -234,7 +235,7 @@ proto_library("proto") {
] ]
} }
static_library("password_hash_data") { jumbo_static_library("password_hash_data") {
sources = [ sources = [
"password_hash_data.cc", "password_hash_data.cc",
"password_hash_data.h", "password_hash_data.h",
...@@ -260,7 +261,7 @@ static_library("hash_password_manager") { ...@@ -260,7 +261,7 @@ static_library("hash_password_manager") {
] ]
} }
static_library("test_support") { jumbo_static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"android_affiliation/fake_affiliation_api.cc", "android_affiliation/fake_affiliation_api.cc",
......
...@@ -3,8 +3,9 @@ ...@@ -3,8 +3,9 @@
# found in the LICENSE file. # found in the LICENSE file.
import("//build/buildflag_header.gni") import("//build/buildflag_header.gni")
import("//build/config/jumbo.gni")
static_library("common") { jumbo_static_library("common") {
sources = [ sources = [
"credential_manager_types.cc", "credential_manager_types.cc",
"credential_manager_types.h", "credential_manager_types.h",
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# 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.
static_library("browser") { import("//build/config/jumbo.gni")
jumbo_static_library("browser") {
sources = [ sources = [
"password_data_type_controller.cc", "password_data_type_controller.cc",
"password_data_type_controller.h", "password_data_type_controller.h",
......
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