OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
6 import("//build/config/crypto.gni") | 6 import("//build/config/crypto.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//build/split_static_library.gni") | 9 import("//build/split_static_library.gni") |
10 import("//chrome/common/features.gni") | 10 import("//chrome/common/features.gni") |
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1140 "webui/uber/uber_ui.h", | 1140 "webui/uber/uber_ui.h", |
1141 "window_sizer/window_sizer.cc", | 1141 "window_sizer/window_sizer.cc", |
1142 "window_sizer/window_sizer.h", | 1142 "window_sizer/window_sizer.h", |
1143 ] | 1143 ] |
1144 deps += [ | 1144 deps += [ |
1145 "//apps", | 1145 "//apps", |
1146 "//chrome/browser/profile_resetter:profile_reset_report_proto", | 1146 "//chrome/browser/profile_resetter:profile_reset_report_proto", |
1147 "//chrome/common:features", | 1147 "//chrome/common:features", |
1148 "//components/feedback/proto", | 1148 "//components/feedback/proto", |
1149 "//components/proximity_auth/webui", | 1149 "//components/proximity_auth/webui", |
| 1150 "//components/web_modal", |
1150 "//device/bluetooth", | 1151 "//device/bluetooth", |
1151 "//mash/public/interfaces", | 1152 "//mash/public/interfaces", |
1152 ] | 1153 ] |
1153 } | 1154 } |
1154 | 1155 |
1155 if (enable_basic_printing || enable_print_preview) { | 1156 if (enable_basic_printing || enable_print_preview) { |
1156 deps += [ "//printing" ] | 1157 deps += [ "//printing" ] |
1157 } | 1158 } |
1158 | 1159 |
1159 if (enable_nacl) { | 1160 if (enable_nacl) { |
(...skipping 1804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2964 ] | 2965 ] |
2965 if (!is_chrome_branded) { | 2966 if (!is_chrome_branded) { |
2966 deps -= [ "//google_update" ] | 2967 deps -= [ "//google_update" ] |
2967 sources -= [ "webui/help/version_updater_win.cc" ] | 2968 sources -= [ "webui/help/version_updater_win.cc" ] |
2968 sources += [ | 2969 sources += [ |
2969 "webui/help/version_updater_basic.cc", | 2970 "webui/help/version_updater_basic.cc", |
2970 "webui/help/version_updater_basic.h", | 2971 "webui/help/version_updater_basic.h", |
2971 ] | 2972 ] |
2972 } | 2973 } |
2973 } else { # 'OS!="win" | 2974 } else { # 'OS!="win" |
2974 if (toolkit_views) { | 2975 # The Cast Linux build sets toolkit_views to false, but many files in this |
| 2976 # target include views-related files unconditionally, causing `gn check` |
| 2977 # to fail on this variant. Since this target is only referenced (but not |
| 2978 # compiled) on this variant, it's okay to add this "incorrect" dependency |
| 2979 # to Cast Linux builds so that `gn check` passes. |
| 2980 if (toolkit_views || (is_chromecast && is_linux)) { |
2975 public_deps += [ | 2981 public_deps += [ |
2976 "//ui/views", | 2982 "//ui/views", |
2977 "//ui/views/controls/webview", | 2983 "//ui/views/controls/webview", |
2978 ] | 2984 ] |
2979 } | 2985 } |
2980 } | 2986 } |
2981 if (is_desktop_linux) { | 2987 if (is_desktop_linux) { |
2982 sources += [ | 2988 sources += [ |
2983 "input_method/input_method_engine.cc", | 2989 "input_method/input_method_engine.cc", |
2984 "input_method/input_method_engine.h", | 2990 "input_method/input_method_engine.h", |
2985 "input_method/input_method_engine_base.cc", | 2991 "input_method/input_method_engine_base.cc", |
2986 "input_method/input_method_engine_base.h", | 2992 "input_method/input_method_engine_base.h", |
2987 "views/apps/chrome_app_window_client_views_linux.cc", | 2993 "views/apps/chrome_app_window_client_views_linux.cc", |
2988 "views/first_run_dialog.cc", | 2994 "views/first_run_dialog.cc", |
2989 "views/first_run_dialog.h", | 2995 "views/first_run_dialog.h", |
2990 "views/frame/browser_desktop_window_tree_host.h", | 2996 "views/frame/browser_desktop_window_tree_host.h", |
2991 "views/frame/browser_desktop_window_tree_host_x11.cc", | |
2992 "views/frame/browser_desktop_window_tree_host_x11.h", | |
2993 "views/frame/desktop_browser_frame_auralinux.cc", | 2997 "views/frame/desktop_browser_frame_auralinux.cc", |
2994 "views/frame/desktop_browser_frame_auralinux.h", | 2998 "views/frame/desktop_browser_frame_auralinux.h", |
2995 "views/frame/global_menu_bar_registrar_x11.cc", | |
2996 "views/frame/global_menu_bar_registrar_x11.h", | |
2997 "views/frame/global_menu_bar_x11.cc", | |
2998 "views/frame/global_menu_bar_x11.h", | |
2999 "views/frame/native_browser_frame_factory_auralinux.cc", | 2999 "views/frame/native_browser_frame_factory_auralinux.cc", |
3000 "views/javascript_app_modal_dialog_views_x11.cc", | |
3001 "views/javascript_app_modal_dialog_views_x11.h", | |
3002 "views/status_icons/status_icon_linux_wrapper.cc", | 3000 "views/status_icons/status_icon_linux_wrapper.cc", |
3003 "views/status_icons/status_icon_linux_wrapper.h", | 3001 "views/status_icons/status_icon_linux_wrapper.h", |
3004 "webui/help/version_updater_basic.cc", | 3002 "webui/help/version_updater_basic.cc", |
3005 "webui/help/version_updater_basic.h", | 3003 "webui/help/version_updater_basic.h", |
3006 ] | 3004 ] |
3007 deps += [ | 3005 deps += [ |
3008 "//ui/base/ime", | 3006 "//ui/base/ime", |
3009 "//ui/events:dom_keycode_converter", | 3007 "//ui/events:dom_keycode_converter", |
3010 ] | 3008 ] |
| 3009 |
| 3010 if (use_x11) { |
| 3011 sources += [ |
| 3012 "views/frame/browser_desktop_window_tree_host_x11.cc", |
| 3013 "views/frame/browser_desktop_window_tree_host_x11.h", |
| 3014 "views/frame/global_menu_bar_registrar_x11.cc", |
| 3015 "views/frame/global_menu_bar_registrar_x11.h", |
| 3016 "views/frame/global_menu_bar_x11.cc", |
| 3017 "views/frame/global_menu_bar_x11.h", |
| 3018 "views/javascript_app_modal_dialog_views_x11.cc", |
| 3019 "views/javascript_app_modal_dialog_views_x11.h", |
| 3020 ] |
| 3021 } |
3011 } | 3022 } |
3012 if (is_linux) { # Both desktop Linux and ChromeOS. | 3023 if (is_linux) { # Both desktop Linux and ChromeOS. |
3013 sources += [ | 3024 sources += [ |
3014 "certificate_dialogs.cc", | 3025 "certificate_dialogs.cc", |
3015 "certificate_dialogs.h", | 3026 "certificate_dialogs.h", |
3016 "webui/certificate_viewer_ui.cc", | 3027 "webui/certificate_viewer_ui.cc", |
3017 "webui/certificate_viewer_ui.h", | 3028 "webui/certificate_viewer_ui.h", |
3018 "webui/certificate_viewer_webui.cc", | 3029 "webui/certificate_viewer_webui.cc", |
3019 "webui/certificate_viewer_webui.h", | 3030 "webui/certificate_viewer_webui.h", |
3020 ] | 3031 ] |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3330 ] | 3341 ] |
3331 } | 3342 } |
3332 if (enable_service_discovery) { | 3343 if (enable_service_discovery) { |
3333 sources += [ | 3344 sources += [ |
3334 "webui/local_discovery/local_discovery_ui.cc", | 3345 "webui/local_discovery/local_discovery_ui.cc", |
3335 "webui/local_discovery/local_discovery_ui.h", | 3346 "webui/local_discovery/local_discovery_ui.h", |
3336 "webui/local_discovery/local_discovery_ui_handler.cc", | 3347 "webui/local_discovery/local_discovery_ui_handler.cc", |
3337 "webui/local_discovery/local_discovery_ui_handler.h", | 3348 "webui/local_discovery/local_discovery_ui_handler.h", |
3338 ] | 3349 ] |
3339 } | 3350 } |
3340 | |
3341 if (is_chromecast && is_linux) { | |
3342 # The Chromecast build sets toolkit_views to false but some targets in the | |
3343 # build still reference views. But this target is referenced on the Cast | |
3344 # bot (though not currently compiled) but is configured as Linux. This | |
3345 # necessitates these extra dependencies to pass "gn check". | |
3346 deps += [ | |
3347 "//chrome/browser/media/router", | |
3348 "//components/web_modal", | |
3349 "//ui/base/x", | |
3350 "//ui/events/devices/x11", | |
3351 "//ui/events/keycodes:x11", | |
3352 "//ui/views", | |
3353 "//ui/views/controls/webview", | |
3354 ] | |
3355 } | |
3356 } | 3351 } |
3357 | 3352 |
3358 # In GYP this is part of test_support_common. | 3353 # In GYP this is part of test_support_common. |
3359 static_library("test_support") { | 3354 static_library("test_support") { |
3360 testonly = true | 3355 testonly = true |
3361 | 3356 |
3362 sources = [ | 3357 sources = [ |
3363 "cocoa/cocoa_test_helper.h", | 3358 "cocoa/cocoa_test_helper.h", |
3364 "cocoa/cocoa_test_helper.mm", | 3359 "cocoa/cocoa_test_helper.mm", |
3365 "cocoa/run_loop_testing.h", | 3360 "cocoa/run_loop_testing.h", |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3434 "passwords/passwords_model_delegate_mock.cc", | 3429 "passwords/passwords_model_delegate_mock.cc", |
3435 "passwords/passwords_model_delegate_mock.h", | 3430 "passwords/passwords_model_delegate_mock.h", |
3436 ] | 3431 ] |
3437 deps += [ "//chrome/test:test_support_ui" ] | 3432 deps += [ "//chrome/test:test_support_ui" ] |
3438 } | 3433 } |
3439 | 3434 |
3440 if (enable_extensions) { | 3435 if (enable_extensions) { |
3441 deps += [ "//extensions/browser" ] | 3436 deps += [ "//extensions/browser" ] |
3442 } | 3437 } |
3443 } | 3438 } |
OLD | NEW |