Update BUILD.gn
This commit is contained in:
parent
27125c5acf
commit
ee854c8683
1 changed files with 159 additions and 97 deletions
256
BUILD.gn
256
BUILD.gn
|
@ -109,27 +109,18 @@ group("gn_all") {
|
|||
deps += [ "//third_party/abseil-cpp:absl_tests" ]
|
||||
}
|
||||
|
||||
if (!is_android && !is_chromecast) {
|
||||
if (enable_js_type_check) {
|
||||
deps += [ ":webui_closure_compile" ]
|
||||
}
|
||||
|
||||
if (!is_android && !is_castos) {
|
||||
deps += [
|
||||
"//crypto:crypto_unittests",
|
||||
"//google_apis/gcm:gcm_unit_tests",
|
||||
]
|
||||
}
|
||||
|
||||
if (enable_js_type_check) {
|
||||
deps += [ ":webui_closure_compile" ]
|
||||
}
|
||||
|
||||
if (!is_ios && !is_android && !is_chromecast) {
|
||||
deps += [
|
||||
"//ui/accessibility:accessibility_perftests",
|
||||
"//ui/accessibility:accessibility_unittests",
|
||||
"//ui/accessibility/extensions:extension_tests",
|
||||
"//ui/accessibility/extensions:extensions",
|
||||
]
|
||||
}
|
||||
|
||||
if (!is_ios && !is_android && !is_chromecast) {
|
||||
if (!is_ios && !is_android && !is_castos) {
|
||||
deps += [
|
||||
"//chrome",
|
||||
"//chrome/browser/ui/color:dump_colors",
|
||||
|
@ -148,6 +139,10 @@ group("gn_all") {
|
|||
"//tools/perf/clear_system_cache",
|
||||
"//tools/polymer:polymer_tools_python_unittests",
|
||||
"//tools/privacy_budget:privacy_budget_tools",
|
||||
"//ui/accessibility:accessibility_perftests",
|
||||
"//ui/accessibility:accessibility_unittests",
|
||||
"//ui/accessibility/extensions:extension_tests",
|
||||
"//ui/accessibility/extensions:extensions",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -254,7 +249,7 @@ group("gn_all") {
|
|||
]
|
||||
}
|
||||
|
||||
if (is_fuchsia && !is_chromecast) {
|
||||
if (is_fuchsia) {
|
||||
# Add targets that only exist on Fuchsia.
|
||||
deps += [
|
||||
":d8_fuchsia",
|
||||
|
@ -330,10 +325,6 @@ group("gn_all") {
|
|||
]
|
||||
}
|
||||
|
||||
if (is_win && (target_cpu == "x86" || target_cpu == "x64")) {
|
||||
deps += [ "//chrome/browser/browser_switcher/bho:browser_switcher_dlls" ]
|
||||
}
|
||||
|
||||
if (is_win || is_linux) {
|
||||
deps += [ "//tools/traffic_annotation/auditor:traffic_annotation_auditor" ]
|
||||
}
|
||||
|
@ -403,7 +394,7 @@ group("gn_all") {
|
|||
]
|
||||
}
|
||||
|
||||
if (!is_chromecast) {
|
||||
if (!is_cast_android) {
|
||||
deps += [
|
||||
"//android_webview:empty_group",
|
||||
"//android_webview/test",
|
||||
|
@ -609,26 +600,26 @@ group("gn_all") {
|
|||
"//third_party/breakpad:minidump_dump($host_toolchain)",
|
||||
"//third_party/breakpad:minidump_stackwalk($host_toolchain)",
|
||||
]
|
||||
}
|
||||
|
||||
if (!is_android) {
|
||||
deps += [
|
||||
"//chrome/test:chrome_app_unittests",
|
||||
"//gpu/khronos_glcts_support:khronos_glcts_test",
|
||||
"//media/cast:cast_benchmarks",
|
||||
"//media/cast:tap_proxy",
|
||||
"//skia:filter_fuzz_stub",
|
||||
"//skia:image_operations_bench",
|
||||
"//ui/snapshot:snapshot_unittests",
|
||||
]
|
||||
if (is_linux || is_chromeos_lacros) {
|
||||
deps += [
|
||||
"//chrome/test:chrome_app_unittests",
|
||||
"//gpu/khronos_glcts_support:khronos_glcts_test",
|
||||
"//media/cast:cast_benchmarks",
|
||||
"//media/cast:tap_proxy",
|
||||
"//skia:filter_fuzz_stub",
|
||||
"//skia:image_operations_bench",
|
||||
"//ui/snapshot:snapshot_unittests",
|
||||
]
|
||||
|
||||
if (!is_debug && !is_component_build) {
|
||||
deps += [ "//chrome/tools/service_discovery_sniffer" ]
|
||||
}
|
||||
if (!is_debug && !is_component_build) {
|
||||
deps += [ "//chrome/tools/service_discovery_sniffer" ]
|
||||
}
|
||||
}
|
||||
|
||||
if (ozone_platform_x11 && !is_chromecast && target_cpu != "arm") {
|
||||
deps += [ "//gpu/tools/compositor_model_bench" ]
|
||||
}
|
||||
if (ozone_platform_x11 && !is_castos && target_cpu != "arm") {
|
||||
deps += [ "//gpu/tools/compositor_model_bench" ]
|
||||
}
|
||||
|
||||
if (is_mac) {
|
||||
|
@ -683,18 +674,19 @@ group("gn_all") {
|
|||
deps += [ "//third_party/breakpad:symupload($host_toolchain)" ]
|
||||
}
|
||||
|
||||
if (is_chromecast) {
|
||||
# TODO(crbug.com/1330636): Remove the Fuchsia `is_chromecast` condition.
|
||||
if (is_cast_android || is_castos || (is_fuchsia && is_chromecast)) {
|
||||
deps += [ "//chromecast:cast_test_lists" ]
|
||||
}
|
||||
|
||||
if (!is_fuchsia) {
|
||||
deps += [
|
||||
"//chromecast:cast_shell",
|
||||
"//chromecast/cast_core:core_runtime_simple",
|
||||
]
|
||||
if (is_cast_android || is_castos) {
|
||||
deps += [
|
||||
"//chromecast:cast_shell",
|
||||
"//chromecast/cast_core:core_runtime_simple",
|
||||
]
|
||||
|
||||
if (enable_extensions && use_aura) {
|
||||
deps += [ "//chrome/browser/resources/chromeos/accessibility:build" ]
|
||||
}
|
||||
if (enable_extensions && use_aura) {
|
||||
deps += [ "//chrome/browser/resources/chromeos/accessibility:build" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -726,14 +718,15 @@ group("gn_all") {
|
|||
deps += [ "//third_party/sqlite:sqlite_shell" ]
|
||||
}
|
||||
|
||||
if ((is_linux && !is_chromecast) || is_chromeos_lacros || is_fuchsia) {
|
||||
# TODO(https://crbug.com/1329673): Figure out if this should be in gn_all and how cross-platform this is.
|
||||
if ((is_linux && !is_castos) || is_chromeos_lacros || is_fuchsia) {
|
||||
# TODO(https://crbug.com/1329673): Figure out if this should be in gn_all
|
||||
# and how cross-platform this is.
|
||||
deps += [ "//components/services/filesystem:filesystem_service_unittests" ]
|
||||
}
|
||||
|
||||
if ((is_linux && !is_chromecast) || is_chromeos_lacros) {
|
||||
# TODO(https://crbug.com/1329673): Figure out if any of these should be in gn_all
|
||||
# and figure out how cross-platform they are
|
||||
if ((is_linux && !is_castos) || is_chromeos_lacros) {
|
||||
# TODO(https://crbug.com/1329673): Figure out if any of these should be in
|
||||
# gn_all and figure out how cross-platform they are.
|
||||
deps += [
|
||||
"//chrome/installer/util:strings",
|
||||
"//chrome/tools/convert_dict",
|
||||
|
@ -768,8 +761,8 @@ group("gn_all") {
|
|||
}
|
||||
}
|
||||
|
||||
if (((is_linux || is_chromeos) && !is_chromecast) ||
|
||||
(is_win && use_libfuzzer) || (use_libfuzzer && is_mac)) {
|
||||
if ((is_linux && !is_castos) || is_chromeos ||
|
||||
((is_win || is_mac) && use_libfuzzer)) {
|
||||
deps += [
|
||||
"//testing/libfuzzer/fuzzers",
|
||||
"//third_party/freetype-testing:fuzzers",
|
||||
|
@ -832,11 +825,11 @@ group("gn_all") {
|
|||
|
||||
if (build_dawn_tests) {
|
||||
deps += [
|
||||
"//third_party/dawn/src/dawn/fuzzers:fuzzers",
|
||||
"//third_party/dawn/src/dawn/tests:dawn_end2end_tests",
|
||||
"//third_party/dawn/src/dawn/tests:dawn_unittests",
|
||||
"//third_party/dawn/src/fuzzers/dawn:dawn_fuzzers",
|
||||
"//third_party/dawn/src/tint:tint_unittests",
|
||||
"//third_party/dawn/src/tint/fuzzers",
|
||||
"//third_party/dawn/test/tint:tint_unittests",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -856,6 +849,12 @@ group("gn_all") {
|
|||
"//mojo/public/rust",
|
||||
"//mojo/public/rust:mojo_rust_tests",
|
||||
"//third_party/rust/autocxx/chromium_integration/tests",
|
||||
|
||||
# TODO(crbug.com/1291994): Determine whether it makes sense to build/run
|
||||
# this even on Android. If not, remove this and figure out how to run it
|
||||
# only on desktop testers.
|
||||
"//tools/crates/gnrt:gnrt_unittests",
|
||||
"//tools/crates/gnrt($host_toolchain)",
|
||||
]
|
||||
}
|
||||
if (enable_rust) {
|
||||
|
@ -1055,13 +1054,13 @@ if (!is_ios) {
|
|||
testonly = true
|
||||
|
||||
if (is_fuchsia || is_android) {
|
||||
# On Fuchsia/Android, ChromeDriver runs on the host, not the device.
|
||||
if (!is_chromecast) {
|
||||
# On Fuchsia and non-Cast Android, ChromeDriver runs on the host, not the
|
||||
# device.
|
||||
if (!is_cast_android) {
|
||||
deps = [ "//chrome/test/chromedriver:chromedriver($host_toolchain)" ]
|
||||
|
||||
if (is_android) {
|
||||
deps += [ "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk" ]
|
||||
}
|
||||
}
|
||||
if (is_android && !is_cast_android) {
|
||||
deps += [ "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk" ]
|
||||
}
|
||||
} else {
|
||||
deps = [
|
||||
|
@ -1081,6 +1080,7 @@ if (!is_ios) {
|
|||
|
||||
deps = [
|
||||
":blink_web_tests",
|
||||
":blink_wpt_tests",
|
||||
"//third_party/blink/public:all_blink",
|
||||
]
|
||||
}
|
||||
|
@ -1089,7 +1089,10 @@ if (!is_ios) {
|
|||
# third_party/blink/tools/run_web_tests.py
|
||||
group("run_web_tests") {
|
||||
testonly = true
|
||||
deps = [ ":blink_web_tests" ]
|
||||
deps = [
|
||||
":blink_web_tests",
|
||||
":blink_wpt_tests",
|
||||
]
|
||||
}
|
||||
|
||||
if (!is_chromeos_ash && !is_ios && !is_fuchsia && !is_android) {
|
||||
|
@ -1212,8 +1215,8 @@ if (!is_ios) {
|
|||
"//third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json",
|
||||
"//third_party/blink/web_tests/external/wpt/common/",
|
||||
"//third_party/blink/web_tests/external/wpt/resources/",
|
||||
"//third_party/blink/web_tests/fast/harness/results.html",
|
||||
"//third_party/blink/web_tests/resources/",
|
||||
"//third_party/blink/web_tests/wpt_internal/",
|
||||
"//third_party/pywebsocket3/src/mod_pywebsocket/",
|
||||
"//third_party/test_fonts/test_fonts/",
|
||||
"//third_party/wpt_tools/",
|
||||
|
@ -1326,7 +1329,6 @@ if (!is_ios) {
|
|||
"//third_party/blink/web_tests/document-transition/",
|
||||
"//third_party/blink/web_tests/dom/",
|
||||
"//third_party/blink/web_tests/editing/",
|
||||
"//third_party/blink/web_tests/external/",
|
||||
"//third_party/blink/web_tests/fast/",
|
||||
"//third_party/blink/web_tests/fonts/",
|
||||
"//third_party/blink/web_tests/fragmentation/",
|
||||
|
@ -1392,7 +1394,6 @@ if (!is_ios) {
|
|||
"//third_party/blink/web_tests/webaudio/",
|
||||
"//third_party/blink/web_tests/webexposed/",
|
||||
"//third_party/blink/web_tests/webgpu/",
|
||||
"//third_party/blink/web_tests/wpt_internal/",
|
||||
"//third_party/blink/web_tests/xmlviewer/",
|
||||
|
||||
# === Test Case Folders Ends ===
|
||||
|
@ -1433,6 +1434,71 @@ if (!is_ios) {
|
|||
}
|
||||
}
|
||||
|
||||
script_test("blink_wpt_tests") {
|
||||
script = _common_web_test_script
|
||||
|
||||
args = _common_web_test_args
|
||||
|
||||
data_deps = [ ":blink_web_tests_support_data" ]
|
||||
data = [
|
||||
"//third_party/blink/perf_tests/",
|
||||
"//third_party/blink/web_tests/SmokeTests/Default.txt",
|
||||
"//third_party/blink/web_tests/VirtualTestSuites",
|
||||
|
||||
# List all test expectations here
|
||||
"//third_party/blink/web_tests/ASANExpectations",
|
||||
"//third_party/blink/web_tests/LeakExpectations",
|
||||
"//third_party/blink/web_tests/MSANExpectations",
|
||||
"//third_party/blink/web_tests/NeverFixTests",
|
||||
"//third_party/blink/web_tests/SlowTests",
|
||||
"//third_party/blink/web_tests/StaleTestExpectations",
|
||||
"//third_party/blink/web_tests/TestExpectations",
|
||||
"//third_party/blink/web_tests/WebDriverExpectations",
|
||||
"//third_party/blink/web_tests/WebGPUExpectations",
|
||||
|
||||
# Generic baselines
|
||||
"//third_party/blink/web_tests/platform/generic/",
|
||||
|
||||
# === List Test Cases folders here ===
|
||||
"//third_party/blink/web_tests/external/",
|
||||
"//third_party/blink/web_tests/wpt_internal/",
|
||||
|
||||
# === Test Case Folders Ends ===
|
||||
]
|
||||
|
||||
if (is_win || is_linux || is_fuchsia) {
|
||||
data += [
|
||||
"//third_party/blink/web_tests/platform/win/",
|
||||
"//third_party/blink/web_tests/platform/win10/",
|
||||
"//third_party/blink/web_tests/platform/win7/",
|
||||
]
|
||||
if (is_linux || is_fuchsia) {
|
||||
data += [ "//third_party/blink/web_tests/platform/linux/" ]
|
||||
}
|
||||
if (is_fuchsia) {
|
||||
data += [ "//third_party/blink/web_tests/platform/fuchsia/" ]
|
||||
}
|
||||
} else if (is_mac) {
|
||||
data += [
|
||||
"//third_party/blink/web_tests/SmokeTests/Mac.txt",
|
||||
"//third_party/blink/web_tests/platform/mac/",
|
||||
"//third_party/blink/web_tests/platform/mac-mac10.13/",
|
||||
"//third_party/blink/web_tests/platform/mac-mac10.14/",
|
||||
"//third_party/blink/web_tests/platform/mac-mac10.15/",
|
||||
"//third_party/blink/web_tests/platform/mac-mac11-arm64/",
|
||||
]
|
||||
}
|
||||
|
||||
# flag-specific tests only runs on linux as of now
|
||||
if (is_linux) {
|
||||
data += [
|
||||
"//third_party/blink/web_tests/FlagSpecificConfig",
|
||||
"//third_party/blink/web_tests/FlagExpectations/",
|
||||
"//third_party/blink/web_tests/flag-specific/",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
script_test("devtools_web_tests") {
|
||||
# This target differs from :blink_web_tests in that it uses the
|
||||
# same test harness but runs an entirely different set of tests
|
||||
|
@ -1475,7 +1541,7 @@ if (!is_ios) {
|
|||
data = [
|
||||
"//third_party/blink/web_tests/FlagSpecificConfig",
|
||||
"//third_party/blink/web_tests/WebGPUExpectations",
|
||||
"//third_party/blink/web_tests/external/wpt/webgpu/",
|
||||
"//third_party/blink/web_tests/wpt_internal/",
|
||||
"//third_party/webgpu-cts/scripts/",
|
||||
]
|
||||
}
|
||||
|
@ -1556,7 +1622,7 @@ assert(
|
|||
group("chromium_builder_perf") {
|
||||
testonly = true
|
||||
|
||||
if (!is_ios && !is_android && !is_chromecast) {
|
||||
if (!is_ios && !is_android && !is_castos) {
|
||||
data_deps = [
|
||||
"//cc:cc_perftests",
|
||||
"//chrome/test:load_library_perf_tests",
|
||||
|
@ -1568,47 +1634,44 @@ group("chromium_builder_perf") {
|
|||
"//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
|
||||
]
|
||||
|
||||
if (is_android) {
|
||||
data += [ "//third_party/android_sdk/public/platform-tools/adb" ]
|
||||
}
|
||||
|
||||
if (!is_chromeos_ash) {
|
||||
data_deps += [ "//chrome/test:performance_browser_tests" ]
|
||||
}
|
||||
if (is_linux || is_chromeos_lacros) {
|
||||
if (is_official_build) {
|
||||
# In GN builds, this is controlled by the 'linux_dump_symbols'
|
||||
# flag, which defaults to 1 for official builds. For now,
|
||||
# we skip the separate flag and just key off of is_official_build.
|
||||
data_deps += [ "//chrome:linux_symbols" ]
|
||||
}
|
||||
|
||||
data_deps += [ "//tools/perf/clear_system_cache" ]
|
||||
}
|
||||
|
||||
if (is_win) {
|
||||
data_deps += [ "//chrome/installer/mini_installer:mini_installer" ]
|
||||
} else {
|
||||
if (!is_win) {
|
||||
data_deps +=
|
||||
[ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ]
|
||||
}
|
||||
if (is_win || is_android) {
|
||||
data_deps += [
|
||||
"//components:components_perftests",
|
||||
"//third_party/angle/src/tests:angle_perftests",
|
||||
]
|
||||
}
|
||||
|
||||
if ((is_linux && !is_castos) || is_chromeos_lacros) {
|
||||
if (is_official_build) {
|
||||
# In GN builds, this is controlled by the 'linux_dump_symbols'
|
||||
# flag, which defaults to 1 for official builds. For now,
|
||||
# we skip the separate flag and just key off of is_official_build.
|
||||
data_deps += [ "//chrome:linux_symbols" ]
|
||||
}
|
||||
|
||||
# An `if (is_fuchsia)` condition in //chrome/test/BUILD.gn prevents this
|
||||
# target from being defined.
|
||||
# TODO(crbug.com/1310086): Resolve that and remove this exception.
|
||||
if (is_fuchsia) {
|
||||
data_deps -= [ "//chrome/test:performance_test_suite" ]
|
||||
}
|
||||
data_deps += [ "//tools/perf/clear_system_cache" ]
|
||||
}
|
||||
|
||||
if (is_win) {
|
||||
data_deps += [
|
||||
"//chrome/installer/mini_installer:mini_installer",
|
||||
"//components:components_perftests",
|
||||
"//third_party/angle/src/tests:angle_perftests",
|
||||
]
|
||||
}
|
||||
|
||||
# An `if (is_fuchsia)` condition in //chrome/test/BUILD.gn prevents this
|
||||
# target from being defined.
|
||||
# TODO(crbug.com/1310086): Resolve that and remove this exception.
|
||||
if (is_fuchsia) {
|
||||
data_deps -= [ "//chrome/test:performance_test_suite" ]
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_ios && !is_android && !is_chromecast) {
|
||||
if (!is_ios && !is_android && !is_castos) {
|
||||
group("chromium_builder_asan") {
|
||||
testonly = true
|
||||
|
||||
|
@ -1671,7 +1734,6 @@ if (enable_js_type_check) {
|
|||
"chrome/test:closure_compile",
|
||||
"components/neterror/resources:closure_compile",
|
||||
"components/security_interstitials:closure_compile",
|
||||
"components/sync/driver/resources:closure_compile",
|
||||
"mojo/public/tools/bindings/generators/js_templates/lite/test:closure_compile",
|
||||
"ui/webui/resources:closure_compile",
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue