Chromium Code Reviews| 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 source_set("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) { | |
| 16 # Includes all API implementations and the ExtensionsApiClient | |
| 17 # interface. Moving an API from src/chrome to src/extensions implies | |
| 18 # it can be cleanly disabled with enable_extensions=false. | |
| 19 # TODO: Eventually the entire extensions module should not be built | |
| 20 # when enable_extensions=false. | |
| 21 public_deps += [ "//extensions/browser/api" ] | |
| 22 } | |
| 23 } | |
| 24 | |
| 25 # Isolate the instantiation of BrowserContextKeyedServiceFactories. | |
| 26 source_set("browser_context_keyed_service_factories") { | |
| 27 visibility = [ ":*" ] | |
| 28 | |
| 29 sources = [ | |
| 30 "browser_context_keyed_service_factories.cc", | |
| 31 "browser_context_keyed_service_factories.h", | |
| 32 ] | |
| 33 | |
| 34 deps = [ | |
| 35 "//extensions/browser:browser_sources", | |
| 36 "//extensions/browser/api:api", | |
|
Devlin
2017/02/13 22:15:12
nit: I'm pretty sure that in gn,
//extensions/brow
michaelpg
2017/02/13 22:21:02
Yes, it does, I tried to do that everywhere. Thank
| |
| 37 ] | |
| 38 } | |
| 39 | |
| 40 source_set("browser_sources") { | |
| 41 visibility = [ "./*" ] | |
| 42 | |
| 9 sources = [] | 43 sources = [] |
| 10 | 44 |
| 11 deps = [ | 45 deps = [ |
| 12 "//base:i18n", | 46 "//base:i18n", |
| 13 "//components/cast_certificate", | 47 "//components/cast_certificate", |
| 14 "//components/guest_view/browser", | 48 "//components/guest_view/browser", |
| 15 "//components/keyed_service/content", | 49 "//components/keyed_service/content", |
| 16 "//components/keyed_service/core", | 50 "//components/keyed_service/core", |
| 17 "//components/pref_registry", | 51 "//components/pref_registry", |
| 18 "//components/sessions", | 52 "//components/sessions", |
| 19 "//components/update_client", | 53 "//components/update_client", |
| 20 "//components/version_info", | 54 "//components/version_info", |
| 21 "//components/web_cache/browser", | 55 "//components/web_cache/browser", |
| 22 "//components/web_modal", | 56 "//components/web_modal", |
| 23 "//components/zoom", | 57 "//components/zoom", |
| 24 "//content/public/browser", | 58 "//content/public/browser", |
| 59 "//content/public/common", | |
| 25 "//crypto:platform", | 60 "//crypto:platform", |
| 26 "//extensions/browser/api:api_registration", | |
| 27 "//extensions/common", | 61 "//extensions/common", |
| 28 "//extensions/common/api", | 62 "//extensions/common/api", |
| 29 "//extensions/features", | 63 "//extensions/features", |
| 30 "//extensions/strings", | 64 "//extensions/strings", |
| 31 "//google_apis", | 65 "//google_apis", |
| 32 "//ui/display", | 66 "//ui/display", |
| 33 ] | 67 ] |
| 34 | 68 |
| 35 configs += [ | 69 configs += [ |
| 36 "//build/config:precompiled_headers", | 70 "//build/config:precompiled_headers", |
| 37 | 71 |
| 38 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 72 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 39 "//build/config/compiler:no_size_t_to_int_warning", | 73 "//build/config/compiler:no_size_t_to_int_warning", |
| 40 ] | 74 ] |
| 41 | 75 |
| 42 if (enable_extensions) { | 76 if (enable_extensions) { |
| 43 # Includes all API implementations and the ExtensionsApiClient | |
| 44 # interface. Moving an API from src/chrome to src/extensions implies | |
| 45 # it can be cleanly disabled with enable_extensions=false. | |
| 46 # TODO: Eventually the entire extensions module should not be built | |
| 47 # when enable_extensions=false. | |
| 48 sources = [ | 77 sources = [ |
| 49 # NOTE: When moving an API out of Chrome be sure to verify that the | |
| 50 # Android build still compiles. See conditions below. | |
| 51 "api_activity_monitor.cc", | 78 "api_activity_monitor.cc", |
| 52 "api_activity_monitor.h", | 79 "api_activity_monitor.h", |
| 53 "app_sorting.h", | 80 "app_sorting.h", |
| 54 "bad_message.cc", | 81 "bad_message.cc", |
| 55 "bad_message.h", | 82 "bad_message.h", |
| 56 "blacklist_state.h", | 83 "blacklist_state.h", |
| 57 "blob_holder.cc", | 84 "blob_holder.cc", |
| 58 "blob_holder.h", | 85 "blob_holder.h", |
| 59 "blocked_action_type.h", | 86 "blocked_action_type.h", |
| 60 "browser_context_keyed_api_factory.h", | 87 "browser_context_keyed_api_factory.h", |
| 61 "browser_context_keyed_service_factories.cc", | |
| 62 "browser_context_keyed_service_factories.h", | |
| 63 "component_extension_resource_manager.h", | 88 "component_extension_resource_manager.h", |
| 64 "computed_hashes.cc", | 89 "computed_hashes.cc", |
| 65 "computed_hashes.h", | 90 "computed_hashes.h", |
| 66 "content_hash_fetcher.cc", | 91 "content_hash_fetcher.cc", |
| 67 "content_hash_fetcher.h", | 92 "content_hash_fetcher.h", |
| 68 "content_hash_reader.cc", | 93 "content_hash_reader.cc", |
| 69 "content_hash_reader.h", | 94 "content_hash_reader.h", |
| 70 "content_hash_tree.cc", | 95 "content_hash_tree.cc", |
| 71 "content_hash_tree.h", | 96 "content_hash_tree.h", |
| 72 "content_verifier.cc", | 97 "content_verifier.cc", |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 247 "warning_service.h", | 272 "warning_service.h", |
| 248 "warning_service_factory.cc", | 273 "warning_service_factory.cc", |
| 249 "warning_service_factory.h", | 274 "warning_service_factory.h", |
| 250 "warning_set.cc", | 275 "warning_set.cc", |
| 251 "warning_set.h", | 276 "warning_set.h", |
| 252 "web_ui_user_script_loader.cc", | 277 "web_ui_user_script_loader.cc", |
| 253 "web_ui_user_script_loader.h", | 278 "web_ui_user_script_loader.h", |
| 254 ] | 279 ] |
| 255 | 280 |
| 256 public_deps = [ | 281 public_deps = [ |
| 257 "//extensions/browser/api", | |
| 258 "//extensions/browser/app_window", | 282 "//extensions/browser/app_window", |
| 259 "//extensions/browser/guest_view", | 283 "//extensions/browser/guest_view", |
| 260 "//extensions/browser/install", | 284 "//extensions/browser/install", |
| 261 "//extensions/browser/kiosk", | 285 "//extensions/browser/kiosk", |
| 262 "//extensions/browser/updater", | 286 "//extensions/browser/updater", |
| 263 "//extensions/browser/value_store", | 287 "//extensions/browser/value_store", |
| 264 ] | 288 ] |
| 265 | 289 |
| 266 deps += [ | 290 deps += [ |
| 267 "//components/browsing_data/content", | 291 "//components/crx_file", |
| 268 "//components/onc", | 292 "//components/prefs", |
| 269 "//components/storage_monitor", | 293 "//components/sync", |
| 270 "//components/update_client", | 294 "//components/update_client", |
| 271 "//components/variations", | 295 "//components/variations", |
| 272 "//crypto:platform", | 296 "//crypto:platform", |
| 273 "//device/base", | |
| 274 "//device/bluetooth", | |
| 275 "//device/hid", | |
| 276 "//device/power_save_blocker", | |
| 277 "//device/serial", | |
| 278 "//device/usb", | |
| 279 "//extensions:extensions_browser_resources", | 297 "//extensions:extensions_browser_resources", |
| 280 "//extensions/common:mojo", | 298 "//extensions/common:mojo", |
| 281 "//services/service_manager/public/cpp", | 299 "//services/service_manager/public/cpp", |
| 282 ] | 300 ] |
| 283 | |
| 284 if (is_chromeos) { | |
| 285 deps += [ "//chromeos" ] | |
| 286 } | |
| 287 } | 301 } |
| 288 } | 302 } |
| 289 | 303 |
| 290 source_set("browser_tests") { | 304 source_set("browser_tests") { |
| 291 testonly = true | 305 testonly = true |
| 292 sources = [ | 306 sources = [ |
| 293 "api/audio/audio_apitest.cc", | 307 "api/audio/audio_apitest.cc", |
| 294 "api/bluetooth_socket/bluetooth_socket_apitest.cc", | 308 "api/bluetooth_socket/bluetooth_socket_apitest.cc", |
| 295 "api/display_source/display_source_apitest.cc", | 309 "api/display_source/display_source_apitest.cc", |
| 296 "api/display_source/display_source_apitestbase.cc", | 310 "api/display_source/display_source_apitestbase.cc", |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 449 "//net:test_support", | 463 "//net:test_support", |
| 450 "//third_party/leveldatabase", | 464 "//third_party/leveldatabase", |
| 451 "//third_party/zlib:zip", | 465 "//third_party/zlib:zip", |
| 452 ] | 466 ] |
| 453 | 467 |
| 454 if (is_chromeos) { | 468 if (is_chromeos) { |
| 455 sources += [ "api/webcam_private/visca_webcam_unittest.cc" ] | 469 sources += [ "api/webcam_private/visca_webcam_unittest.cc" ] |
| 456 deps += [ "//chromeos:test_support" ] | 470 deps += [ "//chromeos:test_support" ] |
| 457 } | 471 } |
| 458 } | 472 } |
| OLD | NEW |