Update BUILD.gn

This commit is contained in:
Alexander David Frick 2023-01-25 04:42:47 -06:00 committed by GitHub
parent 4379de2b1a
commit 757bfa019d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
# Copyright 2022 The Chromium Authors and Alex313031
# Copyright 2023 The Chromium Authors and Alex313031.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@ -71,6 +71,14 @@ if (!is_chromeos_lacros) {
]
}
config("pdb_larger_than_4gb") {
if (is_win) {
# Increasing the PDB page size to allow PDBs larger than 4GB. Not all
# tools can handle such large PDBs yet, so opt-in when needed.
ldflags = [ "/pdbpagesize:8192" ]
}
}
# To add a unit test to this target, make a "unit_tests" source_set in your
# component(it's important to use a source_set instead of a static library or
# no tests will run) and add a reference here.You can add more than one unit
@ -95,6 +103,8 @@ test("components_unittests") {
]
}
configs += [ ":pdb_larger_than_4gb" ]
# Add only ":unit_tests" dependencies here.If your tests have dependencies
#(this would at least include the component itself), they should be on the
# test source set and not here.
@ -103,6 +113,7 @@ test("components_unittests") {
"//base",
"//components/apdu:unit_tests",
"//components/assist_ranker:unit_tests",
"//components/attribution_reporting:unit_tests",
"//components/autofill/core/browser:unit_tests",
"//components/autofill/core/common:unit_tests",
"//components/base32:unit_tests",
@ -133,6 +144,7 @@ test("components_unittests") {
"//components/download:unit_tests",
"//components/encrypted_messages:unit_tests",
"//components/enterprise:unit_tests",
"//components/enterprise/common:unit_tests",
"//components/favicon/core:unit_tests",
"//components/favicon_base:unit_tests",
"//components/feature_engagement:unit_tests",
@ -159,6 +171,7 @@ test("components_unittests") {
"//components/memory_pressure:unit_tests",
"//components/metrics:unit_tests",
"//components/metrics/demographics:unit_tests",
"//components/named_mojo_ipc_server:unit_tests",
"//components/navigation_metrics:unit_tests",
"//components/net_log:unit_tests",
"//components/network_session_configurator/browser:unit_tests",
@ -176,6 +189,7 @@ test("components_unittests") {
"//components/policy/core/browser:unit_tests",
"//components/policy/core/common:unit_tests",
"//components/power_bookmarks/core:unit_tests",
"//components/power_bookmarks/storage:unit_tests",
"//components/power_scheduler:unit_tests",
"//components/prefs:unit_tests",
"//components/profile_metrics:unit_tests",
@ -234,7 +248,6 @@ test("components_unittests") {
"//components/url_formatter/spoof_checks/common_words:unit_tests",
"//components/url_formatter/spoof_checks/top_domains:unit_tests",
"//components/url_matcher:unit_tests",
"//components/url_param_filter/core:unit_tests",
"//components/url_pattern_index:unit_tests",
"//components/variations:unit_tests",
"//components/variations/field_trial_config:unit_tests",
@ -309,7 +322,6 @@ test("components_unittests") {
"//components/signin/public/identity_manager/objc:unit_tests",
"//components/translate/ios/browser:unit_tests",
"//components/ukm/ios:unit_tests",
"//components/url_param_filter/ios:unit_tests",
]
} else { #!is_ios
deps += [
@ -335,6 +347,7 @@ test("components_unittests") {
"//components/continuous_search/browser:unit_tests",
"//components/continuous_search/common:unit_tests",
"//components/custom_handlers:unit_tests",
"//components/devtools/simple_devtools_protocol_client:unit_tests",
"//components/digital_asset_links:unit_tests",
"//components/discardable_memory/client:unit_tests",
"//components/discardable_memory/common:unit_tests",
@ -416,7 +429,6 @@ test("components_unittests") {
"//components/translate/content/browser:unit_tests",
"//components/translate/content/renderer:unit_tests",
"//components/ukm/content:unit_tests",
"//components/url_param_filter/content:unit_tests",
"//components/url_rewrite:unit_tests",
"//components/user_education/common:unit_tests",
"//components/value_store:unit_tests",
@ -463,7 +475,6 @@ test("components_unittests") {
deps += [
"//base:base_java_unittest_support",
"//components/android_autofill/browser:unit_tests",
"//components/autofill_assistant/browser/android:unit_tests",
"//components/browser_ui/sms/android:unit_tests",
"//components/cdm/browser:unit_tests",
"//components/component_updater/android:embedded_component_loader_java",
@ -483,6 +494,7 @@ test("components_unittests") {
"//components/media_router/browser/android:test_support_java",
"//components/messages/android:java",
"//components/messages/android:unit_tests",
"//components/metrics:metrics_java",
"//components/offline_items_collection/core:native_java_unittests_java",
"//components/paint_preview/browser/android:java",
"//components/paint_preview/player/android:unit_tests",
@ -543,6 +555,7 @@ test("components_unittests") {
deps += [
"//components/commerce/core:commerce_heuristics_data_unittests",
"//components/commerce/core:feature_list_unittests",
"//components/commerce/core:heuristics_provider_unittests",
"//components/commerce/core/subscriptions:subscriptions_unit_tests",
"//components/commerce/core/webui:unit_tests",
]
@ -577,10 +590,7 @@ test("components_unittests") {
}
if (is_mac) {
deps += [
"//components/metal_util:unit_tests",
"//components/power_metrics:unit_tests",
]
deps += [ "//components/power_metrics:unit_tests" ]
}
if (toolkit_views) {
@ -594,7 +604,7 @@ test("components_unittests") {
]
}
if (enable_basic_printing) {
if (enable_printing) {
deps += [
"//components/printing/browser/print_to_pdf:unit_tests",
"//components/printing/common:unit_tests",
@ -668,6 +678,11 @@ test("components_unittests") {
]
}
# Only supported on cast-enabled platforms.
if (enable_cast_receiver) {
deps += [ "//components/cast_receiver:unit_tests" ]
}
# On LaCrOS, tests use ash - chrome as a window manager, thus the dependency.
# On other platforms, no components should depend on Chrome.
# Since //chrome depends on //extensions, we also only assert_no_deps on
@ -899,6 +914,7 @@ if (!is_ios) {
"//components/browser_ui/client_certificate/android",
"//components/browser_ui/client_certificate/android:java",
"//components/download/internal/common:internal_java",
"//components/metrics:metrics_java",
"//components/version_info",
"//content/public/test/android:android_test_message_pump_support_java",
"//content/shell:content_shell_app",
@ -938,7 +954,7 @@ if (!is_ios) {
]
}
if (enable_basic_printing) {
if (enable_printing) {
sources += [ "printing/test/print_render_frame_helper_browsertest.cc" ]
deps += [
"//build:chromeos_buildflags",