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

Side by Side Diff: chrome/browser/ui/BUILD.gn

Issue 2272173002: Fix most chrome/browser/ui "gn check" problems. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/ui/apps/chrome_app_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//build/split_static_library.gni") 8 import("//build/split_static_library.gni")
9 import("//chrome/common/features.gni") 9 import("//chrome/common/features.gni")
10 import("//media/media_options.gni") 10 import("//media/media_options.gni")
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 "//components/sync", 53 "//components/sync",
54 "//content/public/browser", 54 "//content/public/browser",
55 ] 55 ]
56 deps = [ 56 deps = [
57 # NOTE: New dependencies should generally be added in the OS!="ios" 57 # NOTE: New dependencies should generally be added in the OS!="ios"
58 # dependencies block below, rather than here. 58 # dependencies block below, rather than here.
59 "//base", 59 "//base",
60 "//chrome:extra_resources", 60 "//chrome:extra_resources",
61 "//chrome:resources", 61 "//chrome:resources",
62 "//chrome:strings", 62 "//chrome:strings",
63 "//chrome/app:command_ids",
63 "//chrome/app/resources:platform_locale_settings", 64 "//chrome/app/resources:platform_locale_settings",
64 "//chrome/app/theme:theme_resources", 65 "//chrome/app/theme:theme_resources",
65 "//chrome/common", 66 "//chrome/common",
66 "//components/app_modal", 67 "//components/app_modal",
67 "//components/autofill/core/browser", 68 "//components/autofill/core/browser",
68 "//components/bookmarks/browser", 69 "//components/bookmarks/browser",
70 "//components/bookmarks/managed",
69 "//components/browser_sync/browser", 71 "//components/browser_sync/browser",
70 "//components/certificate_reporting:cert_logger_proto", 72 "//components/certificate_reporting:cert_logger_proto",
71 "//components/certificate_reporting:encrypted_cert_logger_proto", 73 "//components/certificate_reporting:encrypted_cert_logger_proto",
74 "//components/content_settings/content/common",
72 "//components/content_settings/core/browser", 75 "//components/content_settings/core/browser",
76 "//components/crash/content/app",
77 "//components/crx_file",
73 "//components/data_reduction_proxy/core/browser", 78 "//components/data_reduction_proxy/core/browser",
74 "//components/device_event_log", 79 "//components/device_event_log",
75 "//components/dom_distiller/content/browser", 80 "//components/dom_distiller/content/browser",
76 "//components/dom_distiller/webui", 81 "//components/dom_distiller/webui",
77 "//components/domain_reliability", 82 "//components/domain_reliability",
78 "//components/favicon/content", 83 "//components/favicon/content",
79 "//components/favicon/core", 84 "//components/favicon/core",
80 "//components/feedback", 85 "//components/feedback",
81 "//components/flags_ui", 86 "//components/flags_ui",
82 "//components/gcm_driver", 87 "//components/gcm_driver",
83 "//components/google/core/browser", 88 "//components/google/core/browser",
84 "//components/guest_view/browser", 89 "//components/guest_view/browser",
85 "//components/history/core/browser", 90 "//components/history/content/browser",
86 "//components/infobars/core", 91 "//components/infobars/core",
87 "//components/invalidation/impl", 92 "//components/invalidation/impl",
88 "//components/keyed_service/content", 93 "//components/keyed_service/content",
89 "//components/keyed_service/core", 94 "//components/keyed_service/core",
90 "//components/metrics:profiler", 95 "//components/metrics:profiler",
91 "//components/mime_util", 96 "//components/mime_util",
97 "//components/ntp_snippets",
98 "//components/ntp_tiles",
99 "//components/offline_pages",
100 "//components/offline_pages/background:background_offliner",
92 "//components/omnibox/browser", 101 "//components/omnibox/browser",
93 "//components/onc", 102 "//components/onc",
94 "//components/password_manager/content/browser", 103 "//components/password_manager/content/browser",
95 "//components/password_manager/core/browser", 104 "//components/password_manager/core/browser",
105 "//components/password_manager/sync/browser",
96 "//components/pdf/browser", 106 "//components/pdf/browser",
97 "//components/policy:generated", 107 "//components/policy:generated",
98 "//components/pref_registry", 108 "//components/pref_registry",
99 "//components/proximity_auth", 109 "//components/proximity_auth",
100 "//components/proxy_config", 110 "//components/proxy_config",
101 "//components/query_parser", 111 "//components/query_parser",
102 "//components/rappor", 112 "//components/rappor",
103 "//components/renderer_context_menu", 113 "//components/renderer_context_menu",
104 "//components/resources", 114 "//components/resources",
115 "//components/safe_json",
105 "//components/search", 116 "//components/search",
106 "//components/search_engines", 117 "//components/search_engines",
107 "//components/security_interstitials/core", 118 "//components/security_interstitials/core",
108 "//components/security_state", 119 "//components/security_state",
120 "//components/sessions",
109 "//components/signin/core/account_id", 121 "//components/signin/core/account_id",
110 "//components/signin/core/browser", 122 "//components/signin/core/browser",
123 "//components/spellcheck/browser",
111 "//components/ssl_errors", 124 "//components/ssl_errors",
112 "//components/startup_metric_utils/browser:lib", 125 "//components/startup_metric_utils/browser:lib",
113 "//components/strings", 126 "//components/strings",
127 "//components/subresource_filter/content/browser",
128 "//components/supervised_user_error_page",
114 "//components/sync", 129 "//components/sync",
115 "//components/sync_sessions", 130 "//components/sync_sessions",
131 "//components/syncable_prefs",
116 "//components/toolbar", 132 "//components/toolbar",
117 "//components/translate/core/browser", 133 "//components/tracing:startup_tracing",
134 "//components/translate/content/browser",
135 "//components/undo",
118 "//components/update_client", 136 "//components/update_client",
119 "//components/upload_list", 137 "//components/upload_list",
138 "//components/user_manager",
120 "//components/user_prefs", 139 "//components/user_prefs",
140 "//components/variations",
141 "//components/variations/service",
121 "//components/version_ui", 142 "//components/version_ui",
143 "//components/web_cache/browser",
122 "//components/web_resource", 144 "//components/web_resource",
123 "//components/zoom", 145 "//components/zoom",
146 "//content/app/resources",
124 "//content/public/common", 147 "//content/public/common",
125 "//crypto", 148 "//crypto",
126 "//device/core", 149 "//device/core",
150 "//device/usb",
127 "//services/shell/runner/common", 151 "//services/shell/runner/common",
128 "//skia", 152 "//skia",
129 "//third_party/cacheinvalidation", 153 "//third_party/cacheinvalidation",
154 "//third_party/cld:cld_version",
130 "//third_party/icu", 155 "//third_party/icu",
131 "//third_party/zlib", 156 "//third_party/zlib",
132 "//ui/accessibility", 157 "//ui/accessibility",
133 "//ui/base", 158 "//ui/base",
134 "//ui/content_accelerators", 159 "//ui/content_accelerators",
135 "//ui/display", 160 "//ui/display",
136 "//ui/events", 161 "//ui/events",
137 "//ui/events:gesture_detection", 162 "//ui/events:gesture_detection",
138 "//ui/gfx", 163 "//ui/gfx",
139 "//ui/gfx/geometry", 164 "//ui/gfx/geometry",
140 "//ui/message_center", 165 "//ui/message_center",
141 "//ui/native_theme", 166 "//ui/native_theme",
142 "//ui/resources", 167 "//ui/resources",
143 "//ui/shell_dialogs", 168 "//ui/shell_dialogs",
144 "//ui/snapshot", 169 "//ui/snapshot",
145 "//ui/strings", 170 "//ui/strings",
146 ] 171 ]
172 allow_circular_includes_from = []
147 173
148 if (enable_extensions) { 174 if (enable_extensions) {
149 deps += [ "//extensions/browser" ] 175 deps += [
176 "//components/drive",
177 "//extensions/browser",
178 ]
150 } 179 }
151 180
152 if (is_chromeos && use_cras) { 181 if (is_chromeos && use_cras) {
153 defines += [ "USE_CRAS" ] 182 defines += [ "USE_CRAS" ]
154 } 183 }
155 184
156 if (!is_ios) { 185 if (!is_ios) {
157 sources += rebase_path(gypi_values.chrome_browser_ui_non_ios_sources, 186 sources += rebase_path(gypi_values.chrome_browser_ui_non_ios_sources,
158 ".", 187 ".",
159 "//chrome") 188 "//chrome")
160 sources += rebase_path(gypi_values.chrome_browser_ui_toolbar_model_sources, 189 sources += rebase_path(gypi_values.chrome_browser_ui_toolbar_model_sources,
161 ".", 190 ".",
162 "//chrome") 191 "//chrome")
163 deps += [ 192 deps += [
164 "//chrome/browser/devtools", 193 "//chrome/browser/devtools",
165 "//chrome/browser/ui/views",
166 "//chrome/browser/ui/webui/engagement:mojo_bindings", 194 "//chrome/browser/ui/webui/engagement:mojo_bindings",
167 "//chrome/browser/ui/webui/omnibox:mojo_bindings", 195 "//chrome/browser/ui/webui/omnibox:mojo_bindings",
168 "//chrome/browser/ui/webui/plugins:mojo_bindings", 196 "//chrome/browser/ui/webui/plugins:mojo_bindings",
169 "//chrome/browser/ui/webui/usb_internals:mojo_bindings", 197 "//chrome/browser/ui/webui/usb_internals:mojo_bindings",
170 "//chrome/common/net", 198 "//chrome/common/net",
171 "//chrome/installer/util:with_no_strings", 199 "//chrome/installer/util:with_no_strings",
172 "//components/autofill/content/browser:risk_proto", 200 "//components/autofill/content/browser:risk_proto",
201 "//components/browsing_data/core",
173 "//components/browsing_data_ui", 202 "//components/browsing_data_ui",
174 "//components/bubble:bubble", 203 "//components/bubble:bubble",
175 "//components/crash/core/browser", 204 "//components/crash/core/browser",
176 "//components/net_log", 205 "//components/net_log",
177 "//components/power", 206 "//components/power",
178 "//components/suggestions/proto", 207 "//components/suggestions/proto",
179 "//components/url_formatter", 208 "//components/url_formatter",
180 "//device/nfc", 209 "//device/nfc",
181 "//media", 210 "//media",
182 "//net:net_with_v8", 211 "//net:net_with_v8",
183 "//net:stale_while_revalidate_experiment_domains", 212 "//net:stale_while_revalidate_experiment_domains",
184 "//storage/browser", 213 "//storage/browser",
185 "//storage/common", 214 "//storage/common",
186 "//third_party/WebKit/public:resources", 215 "//third_party/WebKit/public:resources",
187 "//third_party/adobe/flash:flapper_version_h", 216 "//third_party/adobe/flash:flapper_version_h",
188 "//third_party/brotli", 217 "//third_party/brotli",
189 "//third_party/leveldatabase", 218 "//third_party/leveldatabase",
190 "//third_party/libjingle", 219 "//third_party/libjingle",
191 "//third_party/re2", 220 "//third_party/re2",
221 "//ui/base",
192 "//ui/base/ime", 222 "//ui/base/ime",
193 "//ui/compositor", 223 "//ui/compositor",
194 "//ui/surface", 224 "//ui/surface",
195 "//ui/web_dialogs", 225 "//ui/web_dialogs",
196 "//v8", 226 "//v8",
197 ] 227 ]
198 } else { 228 } else {
199 # iOS. 229 # iOS.
200 sources += 230 sources +=
201 rebase_path(gypi_values.chrome_browser_ui_ios_sources, ".", "//chrome") 231 rebase_path(gypi_values.chrome_browser_ui_ios_sources, ".", "//chrome")
202 deps += [ "//net" ] 232 deps += [ "//net" ]
203 } 233 }
204 234
205 if (!android_java_ui && !is_ios) { 235 if (!android_java_ui && !is_ios) {
206 sources += rebase_path(gypi_values.chrome_browser_ui_non_mobile_sources, 236 sources += rebase_path(gypi_values.chrome_browser_ui_non_mobile_sources,
207 ".", 237 ".",
208 "//chrome") 238 "//chrome")
209 sources += 239 sources +=
210 rebase_path(gypi_values.chrome_browser_ui_omnibox_non_mobile_sources, 240 rebase_path(gypi_values.chrome_browser_ui_omnibox_non_mobile_sources,
211 ".", 241 ".",
212 "//chrome") 242 "//chrome")
213 deps += [ 243 deps += [
244 "//apps",
214 "//chrome/browser/profile_resetter:profile_reset_report_proto", 245 "//chrome/browser/profile_resetter:profile_reset_report_proto",
215 "//chrome/common:features", 246 "//chrome/common:features",
216 "//components/feedback/proto", 247 "//components/feedback/proto",
217 "//components/proximity_auth/webui", 248 "//components/proximity_auth/webui",
218 "//device/bluetooth", 249 "//device/bluetooth",
219 ] 250 ]
220 } 251 }
221 252
222 if (enable_basic_printing || enable_print_preview) { 253 if (enable_basic_printing || enable_print_preview) {
223 deps += [ "//printing" ] 254 deps += [ "//printing" ]
224 } 255 }
225 256
226 if (enable_nacl) { 257 if (enable_nacl) {
227 sources += 258 sources +=
228 rebase_path(gypi_values.chrome_browser_ui_nacl_sources, ".", "//chrome") 259 rebase_path(gypi_values.chrome_browser_ui_nacl_sources, ".", "//chrome")
229 deps += [ "//native_client/src/trusted/service_runtime:sel" ] 260 deps += [ "//components/nacl/browser" ]
230 } 261 }
231 if (enable_plugins) { 262 if (enable_plugins) {
232 sources += rebase_path(gypi_values.chrome_browser_ui_plugin_sources, 263 sources += rebase_path(gypi_values.chrome_browser_ui_plugin_sources,
233 ".", 264 ".",
234 "//chrome") 265 "//chrome")
235 deps += [ "//ppapi/proxy:ipc" ] 266 deps += [ "//ppapi/proxy:ipc" ]
236 } 267 }
237 if (safe_browsing_mode == 1) { 268 if (safe_browsing_mode == 1) {
238 deps += [ 269 deps += [
239 "//chrome/browser/safe_browsing:chunk_proto", 270 "//chrome/browser/safe_browsing:chunk_proto",
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 ] 320 ]
290 } else { # Not ash. 321 } else { # Not ash.
291 sources += rebase_path(gypi_values.chrome_browser_ui_non_ash_sources, 322 sources += rebase_path(gypi_values.chrome_browser_ui_non_ash_sources,
292 ".", 323 ".",
293 "//chrome") 324 "//chrome")
294 } 325 }
295 if (toolkit_views) { 326 if (toolkit_views) {
296 sources += rebase_path(gypi_values.chrome_browser_ui_views_sources, 327 sources += rebase_path(gypi_values.chrome_browser_ui_views_sources,
297 ".", 328 ".",
298 "//chrome") 329 "//chrome")
299 deps += [ "//components/constrained_window" ] 330 deps += [
331 "//chrome/browser/ui/views",
332 "//components/constrained_window",
333 "//services/ui/public/cpp/input_devices",
334 ]
335 allow_circular_includes_from += [ "//chrome/browser/ui/views" ]
300 336
301 if (enable_extensions) { 337 if (enable_extensions) {
302 deps += [ "//extensions/components/native_app_window" ] 338 deps += [ "//extensions/components/native_app_window" ]
303 } 339 }
304 340
305 if (is_chromeos) { 341 if (is_chromeos) {
306 sources += 342 sources +=
307 rebase_path(gypi_values.chrome_browser_ui_views_chromeos_sources, 343 rebase_path(gypi_values.chrome_browser_ui_views_chromeos_sources,
308 ".", 344 ".",
309 "//chrome") 345 "//chrome")
(...skipping 14 matching lines...) Expand all
324 "//services/ui/public/interfaces", 360 "//services/ui/public/interfaces",
325 ] 361 ]
326 362
327 # TODO(erg): These files hard depend on mus, and thus can't be in a gyp 363 # TODO(erg): These files hard depend on mus, and thus can't be in a gyp
328 # build. When gyp goes away, merge this back into the sources list. 364 # build. When gyp goes away, merge this back into the sources list.
329 sources += [ 365 sources += [
330 "views/tabs/window_finder_mus.cc", 366 "views/tabs/window_finder_mus.cc",
331 "views/tabs/window_finder_mus.h", 367 "views/tabs/window_finder_mus.h",
332 ] 368 ]
333 } 369 }
370 deps += [ "//ui/views/mus" ]
371
334 if (enable_extensions) { 372 if (enable_extensions) {
335 sources += rebase_path( 373 sources += rebase_path(
336 gypi_values.chrome_browser_ui_views_extensions_non_mac_sources, 374 gypi_values.chrome_browser_ui_views_extensions_non_mac_sources,
337 ".", 375 ".",
338 "//chrome") 376 "//chrome")
339 } 377 }
340 } 378 }
341 if (use_ash) { 379 if (use_ash) {
342 sources += rebase_path(gypi_values.chrome_browser_ui_ash_views_sources, 380 sources += rebase_path(gypi_values.chrome_browser_ui_ash_views_sources,
343 ".", 381 ".",
344 "//chrome") 382 "//chrome")
345 } 383 }
346 } else {
347 # !toolkit_views
348 if (!is_ios) {
349 deps -= [ "//chrome/browser/ui/views" ]
350 }
351 } 384 }
352 if (use_gio) { 385 if (use_gio) {
353 deps += [ "//build/linux/libgio" ] 386 deps += [ "//build/linux/libgio" ]
354 } 387 }
355 if (use_aura && !use_ozone && is_desktop_linux) { 388 if (use_aura && !use_ozone && is_desktop_linux) {
356 deps += [ 389 deps += [
357 # gtk2 is the only component that can interact with gtk2 in our new 390 # gtk2 is the only component that can interact with gtk2 in our new
358 # world. 391 # world.
359 "//chrome/browser/ui/libgtk2ui", 392 "//chrome/browser/ui/libgtk2ui",
360 ] 393 ]
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 if (!enable_themes) { 441 if (!enable_themes) {
409 sources -= [ "webui/theme_source.cc" ] 442 sources -= [ "webui/theme_source.cc" ]
410 } 443 }
411 if (enable_print_preview) { 444 if (enable_print_preview) {
412 sources += rebase_path(gypi_values.chrome_browser_ui_print_preview_sources, 445 sources += rebase_path(gypi_values.chrome_browser_ui_print_preview_sources,
413 ".", 446 ".",
414 "//chrome") 447 "//chrome")
415 } 448 }
416 449
417 if (is_android) { 450 if (is_android) {
418 deps += [ "//crypto:platform" ] 451 deps += [
452 "//components/navigation_interception",
453 "//crypto:platform",
454 "//device/usb/mojo",
455 "//device/usb/public/interfaces",
456 "//ui/android",
457 ]
419 458
420 if (android_java_ui) { 459 if (android_java_ui) {
421 sources += 460 sources +=
422 rebase_path(gypi_values.chrome_browser_ui_android_java_ui_sources, 461 rebase_path(gypi_values.chrome_browser_ui_android_java_ui_sources,
423 ".", 462 ".",
424 "//chrome") 463 "//chrome")
425 deps += [ 464 deps += [
426 "//chrome/browser:jni_headers", 465 "//chrome/browser:jni_headers",
427 "//components/web_contents_delegate_android", 466 "//components/web_contents_delegate_android",
428 ] 467 ]
429 deps -= [ "//ui/events" ] 468 deps -= [ "//ui/events" ]
430 } 469 }
470 } else {
471 sources += [ "browser_window.h" ]
sky 2016/08/26 20:10:25 ICK! I suspect this is a bug that android is inclu
brettw 2016/08/26 20:14:31 Yes, there is a lot of win.
431 } 472 }
432 473
433 if (is_mac) { 474 if (is_mac) {
434 sources += 475 sources +=
435 rebase_path(gypi_values.chrome_browser_ui_mac_sources, ".", "//chrome") 476 rebase_path(gypi_values.chrome_browser_ui_mac_sources, ".", "//chrome")
436 deps += [ 477 deps += [
437 ":generate_localizer", 478 ":generate_localizer",
438 "//third_party/apple_sample_code", 479 "//third_party/apple_sample_code",
439 "//third_party/google_toolbox_for_mac", 480 "//third_party/google_toolbox_for_mac",
440 "//third_party/molokocacao", 481 "//third_party/molokocacao",
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 "//ui/events:dom_keycode_converter", 535 "//ui/events:dom_keycode_converter",
495 ] 536 ]
496 if (!is_chrome_branded) { 537 if (!is_chrome_branded) {
497 deps -= [ "//google_update" ] 538 deps -= [ "//google_update" ]
498 sources -= [ "webui/help/version_updater_win.cc" ] 539 sources -= [ "webui/help/version_updater_win.cc" ]
499 sources += [ 540 sources += [
500 "webui/help/version_updater_basic.cc", 541 "webui/help/version_updater_basic.cc",
501 "webui/help/version_updater_basic.h", 542 "webui/help/version_updater_basic.h",
502 ] 543 ]
503 } 544 }
504 if (enable_app_list) {
505 deps += [ "//ui/app_list" ]
506 }
507 } else { # 'OS!="win" 545 } else { # 'OS!="win"
508 if (toolkit_views) { 546 if (toolkit_views) {
509 public_deps += [ 547 public_deps += [
510 "//ui/views", 548 "//ui/views",
511 "//ui/views/controls/webview", 549 "//ui/views/controls/webview",
512 ] 550 ]
513 } 551 }
514 } 552 }
515 if (is_desktop_linux) { 553 if (is_desktop_linux) {
516 sources += rebase_path(gypi_values.chrome_browser_ui_desktop_linux_sources, 554 sources += rebase_path(gypi_values.chrome_browser_ui_desktop_linux_sources,
(...skipping 12 matching lines...) Expand all
529 deps += [ "//build/linux:fontconfig" ] 567 deps += [ "//build/linux:fontconfig" ]
530 if (use_dbus) { 568 if (use_dbus) {
531 deps += [ "//dbus" ] 569 deps += [ "//dbus" ]
532 } 570 }
533 } 571 }
534 if (use_x11) { 572 if (use_x11) {
535 sources += rebase_path(gypi_values.chrome_browser_ui_x11_sources, 573 sources += rebase_path(gypi_values.chrome_browser_ui_x11_sources,
536 ".", 574 ".",
537 "//chrome") 575 "//chrome")
538 configs += [ "//build/config/linux:x11" ] 576 configs += [ "//build/config/linux:x11" ]
539 deps += [ "//ui/events/devices" ] 577 deps += [
578 "//ui/events/devices",
579 "//ui/events/devices/x11",
580 ]
540 if (is_chromeos) { 581 if (is_chromeos) {
541 sources -= [ "views/tabs/window_finder_x11.cc" ] 582 sources -= [ "views/tabs/window_finder_x11.cc" ]
542 } 583 }
543 } 584 }
544 } 585 }
545 586
546 if (use_udev) { 587 if (use_udev) {
547 deps += [ "//device/udev_linux" ] 588 deps += [ "//device/udev_linux" ]
548 } 589 }
549 590
(...skipping 29 matching lines...) Expand all
579 "//third_party/libaddressinput", 620 "//third_party/libaddressinput",
580 "//third_party/libaddressinput:strings", 621 "//third_party/libaddressinput:strings",
581 ] 622 ]
582 } 623 }
583 if (enable_extensions) { 624 if (enable_extensions) {
584 deps += [ 625 deps += [
585 "//chrome/browser/extensions", 626 "//chrome/browser/extensions",
586 "//chrome/common/extensions/api", 627 "//chrome/common/extensions/api",
587 "//chrome/common/extensions/api:api_registration", 628 "//chrome/common/extensions/api:api_registration",
588 ] 629 ]
589 allow_circular_includes_from = [ "//chrome/browser/extensions" ] 630 allow_circular_includes_from += [ "//chrome/browser/extensions" ]
590 sources += rebase_path(gypi_values.chrome_browser_ui_extensions_sources, 631 sources += rebase_path(gypi_values.chrome_browser_ui_extensions_sources,
591 ".", 632 ".",
592 "//chrome") 633 "//chrome")
593 } 634 }
594 if (enable_google_now && !is_android) { 635 if (enable_google_now && !is_android) {
595 sources += rebase_path( 636 sources += rebase_path(
596 gypi_values.chrome_browser_ui_google_now_non_android_sources, 637 gypi_values.chrome_browser_ui_google_now_non_android_sources,
597 ".", 638 ".",
598 "//chrome") 639 "//chrome")
599 } 640 }
600 if (enable_media_router && !is_android && !is_ios) { 641 if (enable_media_router && !is_android && !is_ios) {
601 sources += rebase_path(gypi_values.chrome_browser_ui_media_router_sources, 642 sources += rebase_path(gypi_values.chrome_browser_ui_media_router_sources,
602 ".", 643 ".",
603 "//chrome") 644 "//chrome")
604 if (is_mac && !mac_views_browser) { 645 if (is_mac && !mac_views_browser) {
605 sources -= [ 646 sources -= [
606 # This file is compiled on GYP but never referenced on Mac. Since it's 647 # This file is compiled on GYP but never referenced on Mac. Since it's
607 # in a static library, it never gets pulled in and we never try to link 648 # in a static library, it never gets pulled in and we never try to link
608 # it (it doesn't link). In GN, source sets force us to get this rule 649 # it (it doesn't link). In GN, source sets force us to get this rule
609 # correct. 650 # correct.
610 "views/toolbar/media_router_action_platform_delegate_views.cc", 651 "views/toolbar/media_router_action_platform_delegate_views.cc",
611 "views/toolbar/media_router_action_platform_delegate_views.h", 652 "views/toolbar/media_router_action_platform_delegate_views.h",
612 ] 653 ]
613 } 654 }
614 deps += [ "//chrome/browser/media/router" ] 655 deps += [
656 "//chrome/browser/media/router",
657 "//components/web_modal",
658 ]
615 } 659 }
616 if (enable_webrtc) { 660 if (enable_webrtc) {
617 sources += rebase_path(gypi_values.chrome_browser_ui_webrtc_sources, 661 sources += rebase_path(gypi_values.chrome_browser_ui_webrtc_sources,
618 ".", 662 ".",
619 "//chrome") 663 "//chrome")
620 } 664 }
621 if (enable_service_discovery) { 665 if (enable_service_discovery) {
622 sources += 666 sources +=
623 rebase_path(gypi_values.chrome_browser_ui_service_discovery_sources, 667 rebase_path(gypi_values.chrome_browser_ui_service_discovery_sources,
624 ".", 668 ".",
(...skipping 19 matching lines...) Expand all
644 root_build_dir, 688 root_build_dir,
645 "//chrome") 689 "//chrome")
646 } 690 }
647 } 691 }
648 692
649 # In GYP this is part of test_support_common. 693 # In GYP this is part of test_support_common.
650 static_library("test_support") { 694 static_library("test_support") {
651 testonly = true 695 testonly = true
652 696
653 sources = [ 697 sources = [
654 "browser.h",
655 "cocoa/cocoa_test_helper.h", 698 "cocoa/cocoa_test_helper.h",
656 "cocoa/cocoa_test_helper.mm", 699 "cocoa/cocoa_test_helper.mm",
657 "cocoa/run_loop_testing.h", 700 "cocoa/run_loop_testing.h",
658 "cocoa/run_loop_testing.mm", 701 "cocoa/run_loop_testing.mm",
659 "exclusive_access/fullscreen_controller_state_test.cc", 702 "exclusive_access/fullscreen_controller_state_test.cc",
660 "exclusive_access/fullscreen_controller_state_test.h", 703 "exclusive_access/fullscreen_controller_state_test.h",
661 "exclusive_access/fullscreen_controller_state_tests.h", 704 "exclusive_access/fullscreen_controller_state_tests.h",
662 "exclusive_access/fullscreen_controller_test.cc", 705 "exclusive_access/fullscreen_controller_test.cc",
663 "exclusive_access/fullscreen_controller_test.h", 706 "exclusive_access/fullscreen_controller_test.h",
664 "find_bar/find_bar_host_unittest_util.h", 707 "find_bar/find_bar_host_unittest_util.h",
665 "login/login_handler_test_utils.cc", 708 "login/login_handler_test_utils.cc",
666 "login/login_handler_test_utils.h", 709 "login/login_handler_test_utils.h",
667 "test/test_confirm_bubble_model.cc", 710 "test/test_confirm_bubble_model.cc",
668 "test/test_confirm_bubble_model.h", 711 "test/test_confirm_bubble_model.h",
669 "toolbar/test_toolbar_action_view_controller.cc", 712 "toolbar/test_toolbar_action_view_controller.cc",
670 "toolbar/test_toolbar_action_view_controller.h", 713 "toolbar/test_toolbar_action_view_controller.h",
671 ] 714 ]
672 715 public_deps = [
673 if (!is_ios && !is_android) { 716 ":ui",
674 sources += [ 717 ]
675 "passwords/manage_passwords_ui_controller_mock.cc", 718 deps = [
676 "passwords/manage_passwords_ui_controller_mock.h", 719 "//chrome/app/theme:theme_resources",
677 "passwords/password_dialog_controller_mock.cc", 720 "//chrome/browser",
678 "passwords/password_dialog_controller_mock.h", 721 "//chrome/browser/devtools",
679 "passwords/passwords_model_delegate_mock.cc", 722 "//components/password_manager/core/browser",
680 "passwords/passwords_model_delegate_mock.h", 723 "//components/sessions",
681 ] 724 "//components/toolbar",
682 } 725 "//components/translate/content/browser",
726 "//components/zoom",
727 "//content/public/browser",
728 "//content/public/common",
729 "//content/test:test_support",
730 "//net:test_support",
731 "//skia",
732 "//testing/gtest",
733 "//ui/base",
734 "//ui/shell_dialogs",
735 ]
683 736
684 if (toolkit_views && (!is_mac || mac_views_browser)) { 737 if (toolkit_views && (!is_mac || mac_views_browser)) {
685 sources += [ 738 sources += [
686 "views/find_bar_host_unittest_util_views.cc", 739 "views/find_bar_host_unittest_util_views.cc",
687 "views/toolbar/browser_action_test_util_views.cc", 740 "views/toolbar/browser_action_test_util_views.cc",
688 ] 741 ]
742 deps += [ "//ui/aura" ]
689 } else { 743 } else {
690 sources += [ 744 sources += [
691 "cocoa/extensions/browser_action_test_util_mac.mm", 745 "cocoa/extensions/browser_action_test_util_mac.mm",
692 "cocoa/find_bar/find_bar_host_unittest_util_cocoa.mm", 746 "cocoa/find_bar/find_bar_host_unittest_util_cocoa.mm",
693 ] 747 ]
694 } 748 }
695 749
696 if (is_android) { 750 if (is_android) {
697 sources -= [ 751 sources -= [
698 "exclusive_access/fullscreen_controller_state_test.cc", 752 "exclusive_access/fullscreen_controller_state_test.cc",
699 "exclusive_access/fullscreen_controller_state_test.h", 753 "exclusive_access/fullscreen_controller_state_test.h",
700 "exclusive_access/fullscreen_controller_state_tests.h", 754 "exclusive_access/fullscreen_controller_state_tests.h",
701 "exclusive_access/fullscreen_controller_test.cc", 755 "exclusive_access/fullscreen_controller_test.cc",
702 "exclusive_access/fullscreen_controller_test.h", 756 "exclusive_access/fullscreen_controller_test.h",
703 "test/test_confirm_bubble_model.cc", 757 "test/test_confirm_bubble_model.cc",
704 "test/test_confirm_bubble_model.h", 758 "test/test_confirm_bubble_model.h",
705 ] 759 ]
760 } else {
761 sources += [
762 "passwords/manage_passwords_ui_controller_mock.cc",
763 "passwords/manage_passwords_ui_controller_mock.h",
764 "passwords/password_dialog_controller_mock.cc",
765 "passwords/password_dialog_controller_mock.h",
766 "passwords/passwords_model_delegate_mock.cc",
767 "passwords/passwords_model_delegate_mock.h",
768 ]
769 deps += [ "//chrome/test:test_support_ui" ]
706 } 770 }
707 771
708 public_deps = [ 772 if (enable_extensions) {
709 ":ui", 773 deps += [ "//extensions/browser" ]
710 ] 774 }
711 deps = [
712 "//chrome/app/theme:theme_resources",
713 "//chrome/browser",
714 "//content/public/browser",
715 "//content/public/common",
716 "//content/test:test_support",
717 "//net:test_support",
718 "//skia",
719 "//testing/gtest",
720 "//ui/base",
721 ]
722 } 775 }
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/ui/apps/chrome_app_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698