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", |
| 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 494 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 |