Commit e664a26c authored by brettw's avatar brettw Committed by Commit bot

Convert some component source sets to static library

This is hoping to achieve better build performance.

BUG=627637

Review-Url: https://codereview.chromium.org/2173443003
Cr-Commit-Position: refs/heads/master@{#406996}
parent dd34c463
...@@ -6,7 +6,7 @@ import("//build/config/features.gni") ...@@ -6,7 +6,7 @@ import("//build/config/features.gni")
assert(enable_nacl) assert(enable_nacl)
source_set("browser") { static_library("browser") {
sources = [ sources = [
"bad_message.cc", "bad_message.cc",
"bad_message.h", "bad_message.h",
......
...@@ -6,7 +6,7 @@ import("//build/config/features.gni") ...@@ -6,7 +6,7 @@ import("//build/config/features.gni")
if (enable_nacl) { if (enable_nacl) {
# This is separate so it can be used by ../broker:nacl64. # This is separate so it can be used by ../broker:nacl64.
source_set("minimal") { static_library("minimal") {
sources = [ sources = [
"nacl_cmd_line.cc", "nacl_cmd_line.cc",
"nacl_cmd_line.h", "nacl_cmd_line.h",
...@@ -49,7 +49,7 @@ if (enable_nacl) { ...@@ -49,7 +49,7 @@ if (enable_nacl) {
] ]
} }
source_set("common") { static_library("common") {
sources = [ sources = [
"nacl_host_messages.cc", "nacl_host_messages.cc",
"nacl_host_messages.h", "nacl_host_messages.h",
...@@ -105,7 +105,7 @@ source_set("process_type") { ...@@ -105,7 +105,7 @@ source_set("process_type") {
] ]
} }
source_set("switches") { static_library("switches") {
sources = [ sources = [
"nacl_switches.cc", "nacl_switches.cc",
"nacl_switches.h", "nacl_switches.h",
......
...@@ -6,7 +6,7 @@ import("//build/config/features.gni") ...@@ -6,7 +6,7 @@ import("//build/config/features.gni")
assert(enable_nacl) assert(enable_nacl)
source_set("renderer") { static_library("renderer") {
sources = [ sources = [
"file_downloader.cc", "file_downloader.cc",
"file_downloader.h", "file_downloader.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("nacl_trusted_plugin") { static_library("nacl_trusted_plugin") {
sources = [ sources = [
"module_ppapi.cc", "module_ppapi.cc",
"nacl_subprocess.cc", "nacl_subprocess.cc",
......
...@@ -6,7 +6,7 @@ if (is_android) { ...@@ -6,7 +6,7 @@ if (is_android) {
import("//build/config/android/rules.gni") import("//build/config/android/rules.gni")
} }
source_set("navigation_interception") { static_library("navigation_interception") {
sources = [ sources = [
"intercept_navigation_throttle.cc", "intercept_navigation_throttle.cc",
"intercept_navigation_throttle.h", "intercept_navigation_throttle.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("navigation_metrics") { static_library("navigation_metrics") {
sources = [ sources = [
"navigation_metrics.cc", "navigation_metrics.cc",
"navigation_metrics.h", "navigation_metrics.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("net_log") { static_library("net_log") {
sources = [ sources = [
"chrome_net_log.cc", "chrome_net_log.cc",
"chrome_net_log.h", "chrome_net_log.h",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# found in the LICENSE file. # found in the LICENSE file.
# GYP version: components/network_hints.gypi:predictor # GYP version: components/network_hints.gypi:predictor
source_set("common") { static_library("common") {
sources = [ sources = [
"network_hints_common.cc", "network_hints_common.cc",
"network_hints_common.h", "network_hints_common.h",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# found in the LICENSE file. # found in the LICENSE file.
# GYP version: components/network_hints.gypi:predictor_renderer # GYP version: components/network_hints.gypi:predictor_renderer
source_set("renderer") { static_library("renderer") {
sources = [ sources = [
"dns_prefetch_queue.cc", "dns_prefetch_queue.cc",
"dns_prefetch_queue.h", "dns_prefetch_queue.h",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# GYP version: # GYP version:
# components/components.gyp:network_session_configurator # components/components.gyp:network_session_configurator
source_set("network_session_configurator") { static_library("network_session_configurator") {
sources = [ sources = [
"network_session_configurator.cc", "network_session_configurator.cc",
"network_session_configurator.h", "network_session_configurator.h",
...@@ -25,7 +25,7 @@ source_set("network_session_configurator") { ...@@ -25,7 +25,7 @@ source_set("network_session_configurator") {
# GYP version: # GYP version:
# components/components.gyp:network_session_configurator_switches # components/components.gyp:network_session_configurator_switches
source_set("switches") { static_library("switches") {
sources = [ sources = [
"switches.cc", "switches.cc",
"switches.h", "switches.h",
......
...@@ -10,7 +10,7 @@ if (is_android) { ...@@ -10,7 +10,7 @@ if (is_android) {
} }
# GYP version: components/ntp_snippets.gypi:ntp_snippets # GYP version: components/ntp_snippets.gypi:ntp_snippets
source_set("ntp_snippets") { static_library("ntp_snippets") {
sources = [ sources = [
"content_suggestion.cc", "content_suggestion.cc",
"content_suggestion.h", "content_suggestion.h",
......
...@@ -9,7 +9,7 @@ if (is_android) { ...@@ -9,7 +9,7 @@ if (is_android) {
} }
# GYP version: components/ntp_tiles.gypi:ntp_tiles # GYP version: components/ntp_tiles.gypi:ntp_tiles
source_set("ntp_tiles") { static_library("ntp_tiles") {
sources = [ sources = [
"constants.cc", "constants.cc",
"constants.h", "constants.h",
......
...@@ -69,7 +69,7 @@ static_library("test_support") { ...@@ -69,7 +69,7 @@ static_library("test_support") {
] ]
} }
source_set("switches") { static_library("switches") {
sources = [ sources = [
"offline_page_feature.cc", "offline_page_feature.cc",
"offline_page_feature.h", "offline_page_feature.h",
......
...@@ -8,7 +8,7 @@ if (is_android) { ...@@ -8,7 +8,7 @@ if (is_android) {
import("//build/config/android/rules.gni") import("//build/config/android/rules.gni")
} }
source_set("browser") { static_library("browser") {
sources = [ sources = [
"answers_cache.cc", "answers_cache.cc",
"answers_cache.h", "answers_cache.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("browser") { static_library("browser") {
sources = [ sources = [
"bad_message.cc", "bad_message.cc",
"bad_message.h", "bad_message.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("cpp") { static_library("cpp") {
sources = [ sources = [
"type_converters.cc", "type_converters.cc",
"type_converters.h", "type_converters.h",
......
...@@ -8,7 +8,7 @@ if (is_android) { ...@@ -8,7 +8,7 @@ if (is_android) {
import("//build/config/android/config.gni") import("//build/config/android/config.gni")
} }
source_set("browser") { static_library("browser") {
sources = [ sources = [
"affiliated_match_helper.cc", "affiliated_match_helper.cc",
"affiliated_match_helper.h", "affiliated_match_helper.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("common") { static_library("common") {
sources = [ sources = [
"credential_manager_types.cc", "credential_manager_types.cc",
"credential_manager_types.h", "credential_manager_types.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("browser") { 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",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("content") { static_library("content") {
sources = [ sources = [
"precache_manager.cc", "precache_manager.cc",
"precache_manager.h", "precache_manager.h",
......
...@@ -18,7 +18,7 @@ config("precache_config") { ...@@ -18,7 +18,7 @@ config("precache_config") {
] ]
} }
source_set("core") { static_library("core") {
sources = [ sources = [
"fetcher_pool.h", "fetcher_pool.h",
"precache_database.cc", "precache_database.cc",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("browser") { static_library("browser") {
sources = [ sources = [
"print_manager.cc", "print_manager.cc",
"print_manager.h", "print_manager.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("common") { static_library("common") {
sources = [ sources = [
"print_messages.cc", "print_messages.cc",
"print_messages.h", "print_messages.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("renderer") { static_library("renderer") {
sources = [ sources = [
"print_web_view_helper.cc", "print_web_view_helper.cc",
"print_web_view_helper.h", "print_web_view_helper.h",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import("//testing/test.gni") import("//testing/test.gni")
source_set("proximity_auth") { static_library("proximity_auth") {
sources = [ sources = [
"authenticator.h", "authenticator.h",
"bluetooth_connection.cc", "bluetooth_connection.cc",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import("//testing/test.gni") import("//testing/test.gni")
source_set("ble") { static_library("ble") {
sources = [ sources = [
"bluetooth_low_energy_characteristics_finder.cc", "bluetooth_low_energy_characteristics_finder.cc",
"bluetooth_low_energy_characteristics_finder.h", "bluetooth_low_energy_characteristics_finder.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("logging") { static_library("logging") {
sources = [ sources = [
"log_buffer.cc", "log_buffer.cc",
"log_buffer.h", "log_buffer.h",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# found in the LICENSE file. # found in the LICENSE file.
# GYP version: components/rappor.gypi:rappor # GYP version: components/rappor.gypi:rappor
source_set("rappor") { static_library("rappor") {
sources = [ sources = [
"bloom_filter.cc", "bloom_filter.cc",
"bloom_filter.h", "bloom_filter.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("rlz") { static_library("rlz") {
sources = [ sources = [
"rlz_tracker.cc", "rlz_tracker.cc",
"rlz_tracker.h", "rlz_tracker.h",
......
...@@ -56,7 +56,7 @@ group("safe_browsing_db_mobile") { ...@@ -56,7 +56,7 @@ group("safe_browsing_db_mobile") {
] ]
} }
source_set("database_manager") { static_library("database_manager") {
sources = [ sources = [
"database_manager.cc", "database_manager.cc",
"database_manager.h", "database_manager.h",
...@@ -73,7 +73,7 @@ source_set("database_manager") { ...@@ -73,7 +73,7 @@ source_set("database_manager") {
] ]
} }
source_set("hit_report") { static_library("hit_report") {
sources = [ sources = [
"hit_report.cc", "hit_report.cc",
"hit_report.h", "hit_report.h",
...@@ -85,7 +85,7 @@ source_set("hit_report") { ...@@ -85,7 +85,7 @@ source_set("hit_report") {
] ]
} }
source_set("prefix_set") { static_library("prefix_set") {
sources = [ sources = [
"prefix_set.cc", "prefix_set.cc",
"prefix_set.h", "prefix_set.h",
...@@ -96,7 +96,7 @@ source_set("prefix_set") { ...@@ -96,7 +96,7 @@ source_set("prefix_set") {
] ]
} }
source_set("remote_database_manager") { static_library("remote_database_manager") {
sources = [ sources = [
"remote_database_manager.cc", "remote_database_manager.cc",
"remote_database_manager.h", "remote_database_manager.h",
...@@ -125,7 +125,7 @@ source_set("safe_browsing_api_handler") { ...@@ -125,7 +125,7 @@ source_set("safe_browsing_api_handler") {
] ]
} }
source_set("safe_browsing_api_handler_util") { static_library("safe_browsing_api_handler_util") {
sources = [ sources = [
"safe_browsing_api_handler_util.cc", "safe_browsing_api_handler_util.cc",
"safe_browsing_api_handler_util.h", "safe_browsing_api_handler_util.h",
...@@ -137,7 +137,7 @@ source_set("safe_browsing_api_handler_util") { ...@@ -137,7 +137,7 @@ source_set("safe_browsing_api_handler_util") {
] ]
} }
source_set("test_database_manager") { static_library("test_database_manager") {
sources = [ sources = [
"test_database_manager.cc", "test_database_manager.cc",
"test_database_manager.h", "test_database_manager.h",
...@@ -149,7 +149,7 @@ source_set("test_database_manager") { ...@@ -149,7 +149,7 @@ source_set("test_database_manager") {
] ]
} }
source_set("util") { static_library("util") {
sources = [ sources = [
"util.cc", "util.cc",
"util.h", "util.h",
...@@ -167,7 +167,7 @@ source_set("util") { ...@@ -167,7 +167,7 @@ source_set("util") {
} }
} }
source_set("v4_database") { static_library("v4_database") {
sources = [ sources = [
"v4_database.cc", "v4_database.cc",
"v4_database.h", "v4_database.h",
...@@ -183,7 +183,7 @@ source_set("v4_database") { ...@@ -183,7 +183,7 @@ source_set("v4_database") {
] ]
} }
source_set("v4_get_hash_protocol_manager") { static_library("v4_get_hash_protocol_manager") {
sources = [ sources = [
"v4_get_hash_protocol_manager.cc", "v4_get_hash_protocol_manager.cc",
"v4_get_hash_protocol_manager.h", "v4_get_hash_protocol_manager.h",
...@@ -200,7 +200,7 @@ source_set("v4_get_hash_protocol_manager") { ...@@ -200,7 +200,7 @@ source_set("v4_get_hash_protocol_manager") {
] ]
} }
source_set("v4_local_database_manager") { static_library("v4_local_database_manager") {
sources = [ sources = [
"v4_local_database_manager.cc", "v4_local_database_manager.cc",
"v4_local_database_manager.h", "v4_local_database_manager.h",
...@@ -247,7 +247,7 @@ source_set("v4_store") { ...@@ -247,7 +247,7 @@ source_set("v4_store") {
] ]
} }
source_set("v4_update_protocol_manager") { static_library("v4_update_protocol_manager") {
sources = [ sources = [
"v4_update_protocol_manager.cc", "v4_update_protocol_manager.cc",
"v4_update_protocol_manager.h", "v4_update_protocol_manager.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("utility") { static_library("utility") {
sources = [ sources = [
"safe_json_parser_mojo_impl.cc", "safe_json_parser_mojo_impl.cc",
"safe_json_parser_mojo_impl.h", "safe_json_parser_mojo_impl.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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.
source_set("search") { static_library("search") {
sources = [ sources = [
"search.cc", "search.cc",
"search.h", "search.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