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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//extensions/features/features.gni") | 6 import("//extensions/features/features.gni") |
7 | 7 |
8 group("browser") { | 8 group("browser") { |
9 public_deps = [ | |
10 "//extensions/browser:browser_context_keyed_service_factories", | |
11 "//extensions/browser:browser_sources", | |
12 "//extensions/browser/api:api_registration", | |
13 ] | |
14 | |
15 if (enable_extensions) { | 9 if (enable_extensions) { |
16 # Includes all API implementations and the ExtensionsApiClient | 10 # Includes all API implementations and the ExtensionsApiClient |
17 # interface. Moving an API from src/chrome to src/extensions implies | 11 # interface. Moving an API from src/chrome to src/extensions implies |
18 # it can be cleanly disabled with enable_extensions=false. | 12 # it can be cleanly disabled with enable_extensions=false. |
19 # TODO: Eventually the entire extensions module should not be built | 13 # TODO: Eventually the entire extensions module should not be built |
20 # when enable_extensions=false. | 14 # when enable_extensions=false. |
21 public_deps += [ "//extensions/browser/api" ] | 15 public_deps = [ |
| 16 "//extensions/browser:browser_context_keyed_service_factories", |
| 17 "//extensions/browser:browser_sources", |
| 18 "//extensions/browser/api", |
| 19 "//extensions/browser/api:api_registration", |
| 20 ] |
22 } | 21 } |
23 } | 22 } |
24 | 23 |
25 # Isolate the instantiation of BrowserContextKeyedServiceFactories. | 24 # Isolate the instantiation of BrowserContextKeyedServiceFactories. |
26 source_set("browser_context_keyed_service_factories") { | 25 source_set("browser_context_keyed_service_factories") { |
27 visibility = [ ":*" ] | 26 visibility = [ ":*" ] |
28 | 27 |
29 sources = [ | 28 sources = [ |
30 "browser_context_keyed_service_factories.cc", | 29 "browser_context_keyed_service_factories.cc", |
31 "browser_context_keyed_service_factories.h", | 30 "browser_context_keyed_service_factories.h", |
(...skipping 19 matching lines...) Expand all Loading... |
51 "//components/pref_registry", | 50 "//components/pref_registry", |
52 "//components/sessions", | 51 "//components/sessions", |
53 "//components/update_client", | 52 "//components/update_client", |
54 "//components/version_info", | 53 "//components/version_info", |
55 "//components/web_cache/browser", | 54 "//components/web_cache/browser", |
56 "//components/web_modal", | 55 "//components/web_modal", |
57 "//components/zoom", | 56 "//components/zoom", |
58 "//content/public/browser", | 57 "//content/public/browser", |
59 "//content/public/common", | 58 "//content/public/common", |
60 "//crypto:platform", | 59 "//crypto:platform", |
61 "//extensions/common", | |
62 "//extensions/common/api", | |
63 "//extensions/features", | |
64 "//extensions/strings", | |
65 "//google_apis", | 60 "//google_apis", |
66 "//ui/display", | 61 "//ui/display", |
67 ] | 62 ] |
68 | 63 |
| 64 if (enable_extensions) { |
| 65 deps += [ |
| 66 "//extensions/common", |
| 67 "//extensions/common/api", |
| 68 "//extensions/features", |
| 69 "//extensions/strings", |
| 70 ] |
| 71 } |
| 72 |
69 configs += [ | 73 configs += [ |
70 "//build/config:precompiled_headers", | 74 "//build/config:precompiled_headers", |
71 | 75 |
72 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 76 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
73 "//build/config/compiler:no_size_t_to_int_warning", | 77 "//build/config/compiler:no_size_t_to_int_warning", |
74 ] | 78 ] |
75 | 79 |
76 if (enable_extensions) { | 80 if (enable_extensions) { |
77 sources = [ | 81 sources = [ |
78 "api_activity_monitor.cc", | 82 "api_activity_monitor.cc", |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 deps = [ | 353 deps = [ |
350 ":browser", | 354 ":browser", |
351 "//base", | 355 "//base", |
352 "//components/guest_view/browser:test_support", | 356 "//components/guest_view/browser:test_support", |
353 "//components/storage_monitor:test_support", | 357 "//components/storage_monitor:test_support", |
354 "//content/test:test_support", | 358 "//content/test:test_support", |
355 "//device/base:mocks", | 359 "//device/base:mocks", |
356 "//device/bluetooth:mocks", | 360 "//device/bluetooth:mocks", |
357 "//device/hid:mocks", | 361 "//device/hid:mocks", |
358 "//device/usb:test_support", | 362 "//device/usb:test_support", |
359 "//extensions:test_support", | |
360 "//extensions/common", | |
361 "//extensions/common/api", | |
362 "//extensions/shell:app_shell_lib", | |
363 "//extensions/shell:browser_tests", | |
364 "//net:test_support", | 363 "//net:test_support", |
365 ] | 364 ] |
366 | 365 |
| 366 if (enable_extensions) { |
| 367 deps += [ |
| 368 "//extensions:test_support", |
| 369 "//extensions/common", |
| 370 "//extensions/common/api", |
| 371 "//extensions/shell:app_shell_lib", |
| 372 "//extensions/shell:browser_tests", |
| 373 ] |
| 374 } |
| 375 |
367 if (is_mac) { | 376 if (is_mac) { |
368 # Needed for App Shell.app's Helper. | 377 # Needed for App Shell.app's Helper. |
369 deps += [ "//extensions/shell:app_shell" ] | 378 deps += [ "//extensions/shell:app_shell" ] |
370 } | 379 } |
371 if (is_chromeos) { | 380 if (is_chromeos) { |
372 sources += [ "api/virtual_keyboard/virtual_keyboard_apitest.cc" ] | 381 sources += [ "api/virtual_keyboard/virtual_keyboard_apitest.cc" ] |
373 | 382 |
374 deps += [ "//chromeos" ] | 383 deps += [ "//chromeos" ] |
375 } | 384 } |
376 } | 385 } |
377 | 386 |
378 source_set("test_support") { | 387 source_set("test_support") { |
379 testonly = true | 388 testonly = true |
380 sources = [ | 389 sources = [ |
381 "preload_check_test_util.cc", | 390 "preload_check_test_util.cc", |
382 "preload_check_test_util.h", | 391 "preload_check_test_util.h", |
383 ] | 392 ] |
384 | 393 |
385 deps = [ | 394 deps = [ |
386 "//base", | 395 "//base", |
387 "//extensions/browser", | |
388 "//extensions/common", | |
389 "//testing/gtest", | 396 "//testing/gtest", |
390 ] | 397 ] |
| 398 |
| 399 if (enable_extensions) { |
| 400 deps += [ |
| 401 "//extensions/browser", |
| 402 "//extensions/common", |
| 403 ] |
| 404 } |
391 } | 405 } |
392 | 406 |
393 source_set("unit_tests") { | 407 source_set("unit_tests") { |
394 testonly = true | 408 testonly = true |
395 sources = [ | 409 sources = [ |
396 "api/alarms/alarms_api_unittest.cc", | 410 "api/alarms/alarms_api_unittest.cc", |
397 "api/api_resource_manager_unittest.cc", | 411 "api/api_resource_manager_unittest.cc", |
398 "api/bluetooth/bluetooth_event_router_unittest.cc", | 412 "api/bluetooth/bluetooth_event_router_unittest.cc", |
399 "api/cast_channel/cast_auth_util_unittest.cc", | 413 "api/cast_channel/cast_auth_util_unittest.cc", |
400 "api/cast_channel/cast_channel_api_unittest.cc", | 414 "api/cast_channel/cast_channel_api_unittest.cc", |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 "//components/onc", | 503 "//components/onc", |
490 "//components/pref_registry:pref_registry", | 504 "//components/pref_registry:pref_registry", |
491 "//components/prefs:test_support", | 505 "//components/prefs:test_support", |
492 "//components/sync_preferences:test_support", | 506 "//components/sync_preferences:test_support", |
493 "//components/update_client", | 507 "//components/update_client", |
494 "//components/url_matcher", | 508 "//components/url_matcher", |
495 "//components/user_prefs", | 509 "//components/user_prefs", |
496 "//content/test:test_support", | 510 "//content/test:test_support", |
497 "//device/bluetooth:mocks", | 511 "//device/bluetooth:mocks", |
498 "//device/power_save_blocker", | 512 "//device/power_save_blocker", |
499 "//extensions:extensions_browser_resources", | |
500 "//extensions:test_support", | |
501 "//extensions/common", | |
502 "//extensions/common/api", | |
503 "//extensions/features", | |
504 "//ipc:test_support", | 513 "//ipc:test_support", |
505 "//net:test_support", | 514 "//net:test_support", |
506 "//storage/browser:test_support", | 515 "//storage/browser:test_support", |
507 "//third_party/leveldatabase", | 516 "//third_party/leveldatabase", |
508 "//third_party/zlib/google:zip", | 517 "//third_party/zlib/google:zip", |
509 ] | 518 ] |
510 | 519 |
| 520 if (enable_extensions) { |
| 521 deps += [ |
| 522 "//extensions:extensions_browser_resources", |
| 523 "//extensions:test_support", |
| 524 "//extensions/common", |
| 525 "//extensions/common/api", |
| 526 "//extensions/features", |
| 527 ] |
| 528 } |
| 529 |
511 if (is_chromeos) { | 530 if (is_chromeos) { |
512 sources += [ | 531 sources += [ |
513 "api/audio/audio_device_id_calculator_unittest.cc", | 532 "api/audio/audio_device_id_calculator_unittest.cc", |
514 "api/webcam_private/visca_webcam_unittest.cc", | 533 "api/webcam_private/visca_webcam_unittest.cc", |
515 ] | 534 ] |
516 | 535 |
517 deps += [ "//chromeos:test_support" ] | 536 deps += [ "//chromeos:test_support" ] |
518 } | 537 } |
519 } | 538 } |
OLD | NEW |