| 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("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//content/browser/browser.gni") | 7 import("//content/browser/browser.gni") |
| 8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
| 9 import("//mojo/public/mojo_application_manifest.gni") | 9 import("//mojo/public/mojo_application_manifest.gni") |
| 10 | 10 |
| 11 source_set("browser") { | 11 source_set("browser") { |
| 12 # Only the public target should depend on this. All other targets (even | 12 # Only the public target should depend on this. All other targets (even |
| 13 # internal content ones) should depend on the public one. | 13 # internal content ones) should depend on the public one. |
| 14 visibility = [ "//content/public/browser:browser_sources" ] | 14 visibility = [ |
| 15 ":for_content_tests", # See top of //content/BUILD.gn for why. |
| 16 "//content/public/browser:browser_sources", |
| 17 ] |
| 15 | 18 |
| 16 configs += [ | 19 configs += [ |
| 17 "//build/config:precompiled_headers", | 20 "//build/config:precompiled_headers", |
| 18 "//content:content_implementation", | 21 "//content:content_implementation", |
| 19 "//content/public/common:mojo_shell_client", | 22 "//content/public/common:mojo_shell_client", |
| 20 "//third_party/WebKit/public:debug_devtools", | 23 "//third_party/WebKit/public:debug_devtools", |
| 21 "//v8:external_startup_data", | 24 "//v8:external_startup_data", |
| 22 ] | 25 ] |
| 23 defines = [] | 26 defines = [] |
| 24 libs = [] | 27 libs = [] |
| (...skipping 16 matching lines...) Expand all Loading... |
| 41 "//content:resources", | 44 "//content:resources", |
| 42 "//content/app/resources", | 45 "//content/app/resources", |
| 43 "//content/app/strings", | 46 "//content/app/strings", |
| 44 "//content/browser/background_sync:background_sync_proto", | 47 "//content/browser/background_sync:background_sync_proto", |
| 45 "//content/browser/cache_storage:cache_storage_proto", | 48 "//content/browser/cache_storage:cache_storage_proto", |
| 46 "//content/browser/devtools:gen_devtools_protocol_handler", | 49 "//content/browser/devtools:gen_devtools_protocol_handler", |
| 47 "//content/browser/devtools:resources", | 50 "//content/browser/devtools:resources", |
| 48 "//content/browser/notifications:notification_proto", | 51 "//content/browser/notifications:notification_proto", |
| 49 "//content/browser/service_worker:service_worker_proto", | 52 "//content/browser/service_worker:service_worker_proto", |
| 50 "//content/browser/speech/proto", | 53 "//content/browser/speech/proto", |
| 51 "//content/common:mojo_bindings", | 54 "//content/common", |
| 52 "//content/public/common:common_sources", | 55 "//content/public/common:common_sources", |
| 53 "//content/public/common:mojo_bindings", | 56 "//content/public/common:mojo_bindings", |
| 54 "//crypto", | 57 "//crypto", |
| 55 "//device/battery", | 58 "//device/battery", |
| 56 "//device/bluetooth", | 59 "//device/bluetooth", |
| 57 "//device/vibration", | 60 "//device/vibration", |
| 58 "//gin", | 61 "//gin", |
| 59 "//google_apis", | 62 "//google_apis", |
| 60 "//gpu", | 63 "//gpu", |
| 61 "//gpu/command_buffer/client:gles2_implementation", | 64 "//gpu/command_buffer/client:gles2_implementation", |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 if (enable_webvr && is_android) { | 522 if (enable_webvr && is_android) { |
| 520 sources += [ | 523 sources += [ |
| 521 "vr/android/cardboard/cardboard_vr_device.cc", | 524 "vr/android/cardboard/cardboard_vr_device.cc", |
| 522 "vr/android/cardboard/cardboard_vr_device.h", | 525 "vr/android/cardboard/cardboard_vr_device.h", |
| 523 "vr/android/cardboard/cardboard_vr_device_provider.cc", | 526 "vr/android/cardboard/cardboard_vr_device_provider.cc", |
| 524 "vr/android/cardboard/cardboard_vr_device_provider.h", | 527 "vr/android/cardboard/cardboard_vr_device_provider.h", |
| 525 ] | 528 ] |
| 526 } | 529 } |
| 527 } | 530 } |
| 528 | 531 |
| 532 # See comment at the top of //content/BUILD.gn for how this works. |
| 533 group("for_content_tests") { |
| 534 visibility = [ "//content/test/*" ] |
| 535 if (!is_component_build) { |
| 536 public_deps = [ |
| 537 ":browser", |
| 538 ] |
| 539 } |
| 540 } |
| 541 |
| 529 mojo_application_manifest("chrome_manifest") { | 542 mojo_application_manifest("chrome_manifest") { |
| 530 type = "exe" | 543 type = "exe" |
| 531 application_name = "chrome" | 544 application_name = "chrome" |
| 532 source = "mojo/chrome_manifest.json" | 545 source = "mojo/chrome_manifest.json" |
| 533 } | 546 } |
| 534 | 547 |
| 535 mojo_application_manifest("chrome_renderer_manifest") { | 548 mojo_application_manifest("chrome_renderer_manifest") { |
| 536 type = "exe" | 549 type = "exe" |
| 537 application_name = "chrome_renderer" | 550 application_name = "chrome_renderer" |
| 538 source = "mojo/chrome_renderer_manifest.json" | 551 source = "mojo/chrome_renderer_manifest.json" |
| 539 } | 552 } |
| OLD | NEW |