Commit 4897a61f authored by brettw's avatar brettw Committed by Commit bot

Remove link_chrome_on_windows GN flag.

This flag was used to disable linking when the bots were too behind. It's not needed any more.

Review URL: https://codereview.chromium.org/974543002

Cr-Commit-Position: refs/heads/master@{#318795}
parent 7b6ab410
...@@ -352,8 +352,7 @@ test("ash_unittests") { ...@@ -352,8 +352,7 @@ test("ash_unittests") {
} }
} }
if (!is_win || link_chrome_on_windows) { executable("ash_shell") {
executable("ash_shell") {
testonly = true testonly = true
sources = [ sources = [
"shell/shell_main.cc", "shell/shell_main.cc",
...@@ -373,9 +372,9 @@ if (!is_win || link_chrome_on_windows) { ...@@ -373,9 +372,9 @@ if (!is_win || link_chrome_on_windows) {
if (is_chromeos) { if (is_chromeos) {
deps += [ "//device/bluetooth" ] deps += [ "//device/bluetooth" ]
} }
} }
test("ash_shell_unittests") { test("ash_shell_unittests") {
sources = [ sources = [
"shell/window_watcher_unittest.cc", "shell/window_watcher_unittest.cc",
"test/ash_unittests.cc", "test/ash_unittests.cc",
...@@ -395,5 +394,4 @@ if (!is_win || link_chrome_on_windows) { ...@@ -395,5 +394,4 @@ if (!is_win || link_chrome_on_windows) {
if (is_chromeos) { if (is_chromeos) {
deps += [ "//ui/display" ] deps += [ "//ui/display" ]
} }
}
} }
...@@ -113,11 +113,6 @@ declare_args() { ...@@ -113,11 +113,6 @@ declare_args() {
# toolchains. # toolchains.
cros_use_custom_toolchain = false cros_use_custom_toolchain = false
} }
# TODO(brettw) remove this flag (and therefore enable linking all targets) on
# Windows when we have sufficient bot capacity. In the meantime, you can
# enable linking for local compiles.
link_chrome_on_windows = true
} }
# TODO(dpranke): Remove these asserts when os and cpu_arch are removed. # TODO(dpranke): Remove these asserts when os and cpu_arch are removed.
......
...@@ -731,8 +731,7 @@ source_set("test_support") { ...@@ -731,8 +731,7 @@ source_set("test_support") {
} }
} }
if (!is_win || link_chrome_on_windows) { test("cc_unittests") {
test("cc_unittests") {
sources = [ sources = [
"animation/animation_unittest.cc", "animation/animation_unittest.cc",
"animation/keyframed_animation_curve_unittest.cc", "animation/keyframed_animation_curve_unittest.cc",
...@@ -886,7 +885,6 @@ if (!is_win || link_chrome_on_windows) { ...@@ -886,7 +885,6 @@ if (!is_win || link_chrome_on_windows) {
"//ui/gfx:test_support", "//ui/gfx:test_support",
"//ui/gl", "//ui/gl",
] ]
}
} }
test("cc_perftests") { test("cc_perftests") {
......
...@@ -72,7 +72,7 @@ component("blink") { ...@@ -72,7 +72,7 @@ component("blink") {
# GYP version: //cc/blink/cc_blink_tests.gyp:cc_blink_unittests # GYP version: //cc/blink/cc_blink_tests.gyp:cc_blink_unittests
# TODO(GYP): make linking work on the mac. # TODO(GYP): make linking work on the mac.
if (!is_mac && (!is_win || link_chrome_on_windows)) { if (!is_mac) {
test("cc_blink_unittests") { test("cc_blink_unittests") {
sources = [ sources = [
"web_animation_unittest.cc", "web_animation_unittest.cc",
......
...@@ -12,16 +12,7 @@ if (is_android) { ...@@ -12,16 +12,7 @@ if (is_android) {
import("//build/config/android/rules.gni") import("//build/config/android/rules.gni")
} }
if (is_win && !link_chrome_on_windows) { if (!is_android) {
# When linking is disabled on Windows, create a dummy Chrome target to
# make targets work that depend on Chrome.
group("chrome") {
}
group("main_dll") {
}
}
if (!is_android && (!is_win || link_chrome_on_windows)) {
# TODO(GYP) for Windows need to the the reorder-imports step which probably # TODO(GYP) for Windows need to the the reorder-imports step which probably
# means adding another target and renaming this to chrome_initial like in GYP. # means adding another target and renaming this to chrome_initial like in GYP.
executable("chrome") { executable("chrome") {
...@@ -153,8 +144,7 @@ if (!is_android && (!is_win || link_chrome_on_windows)) { ...@@ -153,8 +144,7 @@ if (!is_android && (!is_win || link_chrome_on_windows)) {
} }
} # !is_android } # !is_android
if (!is_win || link_chrome_on_windows) { shared_library("main_dll") {
shared_library("main_dll") {
configs += [ "//build/config/compiler:wexit_time_destructors" ] configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [ deps = [
...@@ -236,7 +226,6 @@ if (!is_win || link_chrome_on_windows) { ...@@ -236,7 +226,6 @@ if (!is_win || link_chrome_on_windows) {
if (enable_plugins) { if (enable_plugins) {
deps += [ "//pdf" ] deps += [ "//pdf" ]
} }
}
} }
# GYP version: chromium_browser_dependencies variable in chrome.gyp # GYP version: chromium_browser_dependencies variable in chrome.gyp
......
...@@ -215,7 +215,7 @@ source_set("test_support_unit") { ...@@ -215,7 +215,7 @@ source_set("test_support_unit") {
] ]
} }
if (!is_android && (!is_win || link_chrome_on_windows)) { if (!is_android) {
import("//chrome/chrome_tests.gni") import("//chrome/chrome_tests.gni")
test("interactive_ui_tests") { test("interactive_ui_tests") {
......
...@@ -221,8 +221,7 @@ group("all_components") { ...@@ -221,8 +221,7 @@ group("all_components") {
# component (it's important to use a source_set instead of a static library or # 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 # no tests will run) and add a reference here. You can add more than one unit
# test target if convenient. # test target if convenient.
if (!is_win || link_chrome_on_windows) { test("components_unittests") {
test("components_unittests") {
sources = [ sources = [
"test/run_all_unittests.cc", "test/run_all_unittests.cc",
] ]
...@@ -285,9 +284,9 @@ if (!is_win || link_chrome_on_windows) { ...@@ -285,9 +284,9 @@ if (!is_win || link_chrome_on_windows) {
if (is_win) { if (is_win) {
deps += [ "//components/browser_watcher:unit_tests" ] deps += [ "//components/browser_watcher:unit_tests" ]
} }
} }
repack("components_tests_pak") { repack("components_tests_pak") {
sources = [ sources = [
"$root_gen_dir/components/components_resources.pak", "$root_gen_dir/components/components_resources.pak",
"$root_gen_dir/components/strings/components_strings_en-US.pak", "$root_gen_dir/components/strings/components_strings_en-US.pak",
...@@ -305,5 +304,4 @@ if (!is_win || link_chrome_on_windows) { ...@@ -305,5 +304,4 @@ if (!is_win || link_chrome_on_windows) {
"//ui/resources", "//ui/resources",
"//ui/strings", "//ui/strings",
] ]
}
} }
...@@ -482,7 +482,7 @@ repack("pak") { ...@@ -482,7 +482,7 @@ repack("pak") {
# TODO(GYP): Figure out what this should be on android # TODO(GYP): Figure out what this should be on android
# and make linking this work on the Mac. # and make linking this work on the Mac.
if (!is_android && !is_mac && (!is_win || link_chrome_on_windows)) { if (!is_android && !is_mac) {
executable("content_shell") { executable("content_shell") {
testonly = true testonly = true
......
...@@ -247,7 +247,7 @@ if (!is_ios) { ...@@ -247,7 +247,7 @@ if (!is_ios) {
} # !is_ios } # !is_ios
# TODO(GYP) enable content_browsertests on Mac when it links. # TODO(GYP) enable content_browsertests on Mac when it links.
if (!is_mac && (!is_win || link_chrome_on_windows)) { if (!is_mac) {
test("content_browsertests") { test("content_browsertests") {
sources = sources =
rebase_path(content_tests_gypi_values.content_browsertests_sources, rebase_path(content_tests_gypi_values.content_browsertests_sources,
...@@ -439,7 +439,7 @@ if (!is_mac && (!is_win || link_chrome_on_windows)) { ...@@ -439,7 +439,7 @@ if (!is_mac && (!is_win || link_chrome_on_windows)) {
} }
} }
if (!is_mac && (!is_win || link_chrome_on_windows)) { # TODO(GYP) enable on Mac once it links. if (!is_mac) { # TODO(GYP) enable on Mac once it links.
test("content_unittests") { test("content_unittests") {
sources = rebase_path(content_tests_gypi_values.content_unittests_sources, sources = rebase_path(content_tests_gypi_values.content_unittests_sources,
".", ".",
...@@ -631,7 +631,7 @@ if (!is_mac && (!is_win || link_chrome_on_windows)) { # TODO(GYP) enable on Mac ...@@ -631,7 +631,7 @@ if (!is_mac && (!is_win || link_chrome_on_windows)) { # TODO(GYP) enable on Mac
} }
} }
if (!is_mac && (!is_win || link_chrome_on_windows)) { # TODO(GYP) enable on Mac once it links. if (!is_mac) { # TODO(GYP) enable on Mac once it links.
test("content_perftests") { test("content_perftests") {
sources = [ sources = [
"../browser/net/sqlite_persistent_cookie_store_perftest.cc", "../browser/net/sqlite_persistent_cookie_store_perftest.cc",
......
...@@ -127,7 +127,7 @@ source_set("app_shell_lib") { ...@@ -127,7 +127,7 @@ source_set("app_shell_lib") {
} }
} }
if (!(is_chromeos && !use_ozone) && (!is_win || link_chrome_on_windows)) { if (!(is_chromeos && !use_ozone)) {
executable("app_shell") { executable("app_shell") {
# testonly because :app_shell_lib is testonly. See :app_shell_lib comment. # testonly because :app_shell_lib is testonly. See :app_shell_lib comment.
testonly = true testonly = true
......
...@@ -198,8 +198,7 @@ source_set("test_support") { ...@@ -198,8 +198,7 @@ source_set("test_support") {
} }
} }
if (!is_win || link_chrome_on_windows) { test("google_apis_unittests") {
test("google_apis_unittests") {
sources = [ sources = [
"gaia/gaia_auth_fetcher_unittest.cc", "gaia/gaia_auth_fetcher_unittest.cc",
"gaia/gaia_auth_util_unittest.cc", "gaia/gaia_auth_util_unittest.cc",
...@@ -238,5 +237,4 @@ if (!is_win || link_chrome_on_windows) { ...@@ -238,5 +237,4 @@ if (!is_win || link_chrome_on_windows) {
"drive/time_util_unittest.cc", "drive/time_util_unittest.cc",
] ]
} }
}
} }
...@@ -66,8 +66,7 @@ source_set("test_support") { ...@@ -66,8 +66,7 @@ source_set("test_support") {
] ]
} }
if (!is_win || link_chrome_on_windows) { test("gl_tests") {
test("gl_tests") {
sources = [ sources = [
"command_buffer/tests/compressed_texture_test.cc", "command_buffer/tests/compressed_texture_test.cc",
"command_buffer/tests/gl_bind_uniform_location_unittest.cc", "command_buffer/tests/gl_bind_uniform_location_unittest.cc",
...@@ -133,9 +132,9 @@ if (!is_win || link_chrome_on_windows) { ...@@ -133,9 +132,9 @@ if (!is_win || link_chrome_on_windows) {
# '../third_party/angle/src/build_angle.gyp:libGLESv2', # '../third_party/angle/src/build_angle.gyp:libGLESv2',
# ], # ],
# }], # }],
} }
test("gpu_unittests") { test("gpu_unittests") {
sources = [ sources = [
"command_buffer/client/buffer_tracker_unittest.cc", "command_buffer/client/buffer_tracker_unittest.cc",
"command_buffer/client/client_test_helper.cc", "command_buffer/client/client_test_helper.cc",
...@@ -249,9 +248,9 @@ if (!is_win || link_chrome_on_windows) { ...@@ -249,9 +248,9 @@ if (!is_win || link_chrome_on_windows) {
"//gpu/command_buffer/client:gles2_c_lib", "//gpu/command_buffer/client:gles2_c_lib",
"//gpu/command_buffer/client:gles2_implementation", "//gpu/command_buffer/client:gles2_implementation",
] ]
} }
test("gpu_perftests") { test("gpu_perftests") {
sources = [ sources = [
"perftests/measurements.cc", "perftests/measurements.cc",
"perftests/run_all_tests.cc", "perftests/run_all_tests.cc",
...@@ -267,9 +266,9 @@ if (!is_win || link_chrome_on_windows) { ...@@ -267,9 +266,9 @@ if (!is_win || link_chrome_on_windows) {
"//ui/gfx/geometry", "//ui/gfx/geometry",
"//ui/gl", "//ui/gl",
] ]
} }
test("angle_unittests") { test("angle_unittests") {
sources = [ sources = [
"angle_unittest_main.cc", "angle_unittest_main.cc",
] ]
...@@ -282,5 +281,4 @@ if (!is_win || link_chrome_on_windows) { ...@@ -282,5 +281,4 @@ if (!is_win || link_chrome_on_windows) {
"//testing/gtest", "//testing/gtest",
"//third_party/angle:translator_static", "//third_party/angle:translator_static",
] ]
}
} }
...@@ -83,7 +83,7 @@ component("blink") { ...@@ -83,7 +83,7 @@ component("blink") {
} }
} }
if (!is_mac && (!is_win || link_chrome_on_windows)) { if (!is_mac) {
# TODO(GYP): Make linking this work on the mac. # TODO(GYP): Make linking this work on the mac.
test("media_blink_unittests") { test("media_blink_unittests") {
deps = [ deps = [
......
...@@ -218,8 +218,7 @@ static_library("test_support") { ...@@ -218,8 +218,7 @@ static_library("test_support") {
] ]
} }
if (!is_win || link_chrome_on_windows) { test("app_list_unittests") {
test("app_list_unittests") {
sources = [ sources = [
"app_list_item_list_unittest.cc", "app_list_item_list_unittest.cc",
"app_list_model_unittest.cc", "app_list_model_unittest.cc",
...@@ -282,5 +281,4 @@ if (!is_win || link_chrome_on_windows) { ...@@ -282,5 +281,4 @@ if (!is_win || link_chrome_on_windows) {
"cocoa/test/apps_grid_controller_test_helper.mm", "cocoa/test/apps_grid_controller_test_helper.mm",
] ]
} }
}
} }
...@@ -243,8 +243,7 @@ executable("demo") { ...@@ -243,8 +243,7 @@ executable("demo") {
} }
} }
if (!is_win || link_chrome_on_windows) { executable("bench") {
executable("bench") {
output_name = "aura_bench" output_name = "aura_bench"
testonly = true testonly = true
...@@ -272,9 +271,9 @@ if (!is_win || link_chrome_on_windows) { ...@@ -272,9 +271,9 @@ if (!is_win || link_chrome_on_windows) {
if (use_x11) { if (use_x11) {
deps += [ "//ui/gfx/x" ] deps += [ "//ui/gfx/x" ]
} }
} }
test("aura_unittests") { test("aura_unittests") {
sources = [ sources = [
"gestures/gesture_recognizer_unittest.cc", "gestures/gesture_recognizer_unittest.cc",
"test/run_all_unittests.cc", "test/run_all_unittests.cc",
...@@ -301,5 +300,4 @@ if (!is_win || link_chrome_on_windows) { ...@@ -301,5 +300,4 @@ if (!is_win || link_chrome_on_windows) {
if (is_linux) { if (is_linux) {
deps += [ "//third_party/mesa" ] deps += [ "//third_party/mesa" ]
} }
}
} }
...@@ -93,8 +93,7 @@ build_closure("inputview") { ...@@ -93,8 +93,7 @@ build_closure("inputview") {
path = rebase_path("//third_party/google_input_tools") path = rebase_path("//third_party/google_input_tools")
} }
if (!is_win || link_chrome_on_windows) { test("keyboard_unittests") {
test("keyboard_unittests") {
sources = [ sources = [
"keyboard_controller_unittest.cc", "keyboard_controller_unittest.cc",
"test/run_all_unittests.cc", "test/run_all_unittests.cc",
...@@ -121,5 +120,4 @@ if (!is_win || link_chrome_on_windows) { ...@@ -121,5 +120,4 @@ if (!is_win || link_chrome_on_windows) {
"//ui/wm", "//ui/wm",
"//url", "//url",
] ]
}
} }
...@@ -176,8 +176,7 @@ static_library("test_support") { ...@@ -176,8 +176,7 @@ static_library("test_support") {
] ]
} }
if (!is_win || link_chrome_on_windows) { test("message_center_unittests") {
test("message_center_unittests") {
sources = [ sources = [
"test/run_all_unittests.cc", "test/run_all_unittests.cc",
] ]
...@@ -236,5 +235,4 @@ if (!is_win || link_chrome_on_windows) { ...@@ -236,5 +235,4 @@ if (!is_win || link_chrome_on_windows) {
] ]
} }
} # enable_notifications && !is_android } # enable_notifications && !is_android
}
} }
...@@ -56,8 +56,7 @@ component("snapshot") { ...@@ -56,8 +56,7 @@ component("snapshot") {
} }
} }
if (!is_win || link_chrome_on_windows) { test("snapshot_unittests") {
test("snapshot_unittests") {
sources = [ sources = [
"snapshot_aura_unittest.cc", "snapshot_aura_unittest.cc",
"snapshot_mac_unittest.mm", "snapshot_mac_unittest.mm",
...@@ -88,5 +87,4 @@ if (!is_win || link_chrome_on_windows) { ...@@ -88,5 +87,4 @@ if (!is_win || link_chrome_on_windows) {
} else { } else {
sources -= [ "snapshot_aura_unittest.cc" ] sources -= [ "snapshot_aura_unittest.cc" ]
} }
}
} }
...@@ -162,8 +162,7 @@ static_library("test_support") { ...@@ -162,8 +162,7 @@ static_library("test_support") {
} }
} }
if (!is_win || link_chrome_on_windows) { test("views_unittests") {
test("views_unittests") {
sources = gypi_values.views_unittests_sources sources = gypi_values.views_unittests_sources
deps = [ deps = [
...@@ -260,7 +259,6 @@ if (!is_win || link_chrome_on_windows) { ...@@ -260,7 +259,6 @@ if (!is_win || link_chrome_on_windows) {
"widget/window_reorderer_unittest.cc", "widget/window_reorderer_unittest.cc",
] ]
} }
}
} }
if (is_mac) { if (is_mac) {
......
...@@ -88,8 +88,7 @@ component("views_examples_lib") { ...@@ -88,8 +88,7 @@ component("views_examples_lib") {
} }
} }
if (!is_win || link_chrome_on_windows) { executable("views_examples_exe") {
executable("views_examples_exe") {
testonly = true testonly = true
sources = [ sources = [
...@@ -117,7 +116,6 @@ if (!is_win || link_chrome_on_windows) { ...@@ -117,7 +116,6 @@ if (!is_win || link_chrome_on_windows) {
if (use_x11) { if (use_x11) {
deps += [ "//ui/gfx/x" ] deps += [ "//ui/gfx/x" ]
} }
}
} }
component("views_examples_with_content_lib") { component("views_examples_with_content_lib") {
......
...@@ -115,8 +115,7 @@ static_library("test_support") { ...@@ -115,8 +115,7 @@ static_library("test_support") {
] ]
} }
if (!is_win || link_chrome_on_windows) { test("wm_unittests") {
test("wm_unittests") {
sources = [ sources = [
"core/capture_controller_unittest.cc", "core/capture_controller_unittest.cc",
"core/compound_event_filter_unittest.cc", "core/compound_event_filter_unittest.cc",
...@@ -149,5 +148,4 @@ if (!is_win || link_chrome_on_windows) { ...@@ -149,5 +148,4 @@ if (!is_win || link_chrome_on_windows) {
"//ui/gfx/geometry", "//ui/gfx/geometry",
"//ui/gl", "//ui/gl",
] ]
}
} }
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