Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Unified Diff: chrome/browser/ui/BUILD.gn

Issue 2371583002: [Chromecast] Correct some Cast dependencies in //chrome/browser/ui. (Closed)
Patch Set: More correct fixes Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/aura/accessibility/ax_tree_source_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/BUILD.gn
diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn
index 1b74c39cfddd99f0a113822298ac6623870c8ad4..77603ee2cf5adc541f0690df7774d1e5f7e86016 100644
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -1147,6 +1147,7 @@ split_static_library("ui") {
"//chrome/common:features",
"//components/feedback/proto",
"//components/proximity_auth/webui",
+ "//components/web_modal",
"//device/bluetooth",
"//mash/public/interfaces",
]
@@ -2971,7 +2972,12 @@ split_static_library("ui") {
]
}
} else { # 'OS!="win"
- if (toolkit_views) {
+ # The Cast Linux build sets toolkit_views to false, but many files in this
+ # target include views-related files unconditionally, causing `gn check`
+ # to fail on this variant. Since this target is only referenced (but not
+ # compiled) on this variant, it's okay to add this "incorrect" dependency
+ # to Cast Linux builds so that `gn check` passes.
+ if (toolkit_views || (is_chromecast && is_linux)) {
public_deps += [
"//ui/views",
"//ui/views/controls/webview",
@@ -2988,17 +2994,9 @@ split_static_library("ui") {
"views/first_run_dialog.cc",
"views/first_run_dialog.h",
"views/frame/browser_desktop_window_tree_host.h",
- "views/frame/browser_desktop_window_tree_host_x11.cc",
- "views/frame/browser_desktop_window_tree_host_x11.h",
"views/frame/desktop_browser_frame_auralinux.cc",
"views/frame/desktop_browser_frame_auralinux.h",
- "views/frame/global_menu_bar_registrar_x11.cc",
- "views/frame/global_menu_bar_registrar_x11.h",
- "views/frame/global_menu_bar_x11.cc",
- "views/frame/global_menu_bar_x11.h",
"views/frame/native_browser_frame_factory_auralinux.cc",
- "views/javascript_app_modal_dialog_views_x11.cc",
- "views/javascript_app_modal_dialog_views_x11.h",
"views/status_icons/status_icon_linux_wrapper.cc",
"views/status_icons/status_icon_linux_wrapper.h",
"webui/help/version_updater_basic.cc",
@@ -3008,6 +3006,19 @@ split_static_library("ui") {
"//ui/base/ime",
"//ui/events:dom_keycode_converter",
]
+
+ if (use_x11) {
+ sources += [
+ "views/frame/browser_desktop_window_tree_host_x11.cc",
+ "views/frame/browser_desktop_window_tree_host_x11.h",
+ "views/frame/global_menu_bar_registrar_x11.cc",
+ "views/frame/global_menu_bar_registrar_x11.h",
+ "views/frame/global_menu_bar_x11.cc",
+ "views/frame/global_menu_bar_x11.h",
+ "views/javascript_app_modal_dialog_views_x11.cc",
+ "views/javascript_app_modal_dialog_views_x11.h",
+ ]
+ }
}
if (is_linux) { # Both desktop Linux and ChromeOS.
sources += [
@@ -3337,22 +3348,6 @@ split_static_library("ui") {
"webui/local_discovery/local_discovery_ui_handler.h",
]
}
-
- if (is_chromecast && is_linux) {
- # The Chromecast build sets toolkit_views to false but some targets in the
- # build still reference views. But this target is referenced on the Cast
- # bot (though not currently compiled) but is configured as Linux. This
- # necessitates these extra dependencies to pass "gn check".
- deps += [
- "//chrome/browser/media/router",
- "//components/web_modal",
- "//ui/base/x",
- "//ui/events/devices/x11",
- "//ui/events/keycodes:x11",
- "//ui/views",
- "//ui/views/controls/webview",
- ]
- }
}
# In GYP this is part of test_support_common.
« no previous file with comments | « no previous file | chrome/browser/ui/aura/accessibility/ax_tree_source_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698