| 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 = [ | 14 visibility = [ "//content/public/browser:browser_sources" ] |
| 15 ":for_content_tests", | |
| 16 "//content/public/browser:browser_sources", | |
| 17 ] | |
| 18 | 15 |
| 19 configs += [ | 16 configs += [ |
| 20 "//build/config:precompiled_headers", | 17 "//build/config:precompiled_headers", |
| 21 "//content:content_implementation", | 18 "//content:content_implementation", |
| 22 "//content/public/common:mojo_shell_client", | 19 "//content/public/common:mojo_shell_client", |
| 23 "//third_party/WebKit/public:debug_devtools", | 20 "//third_party/WebKit/public:debug_devtools", |
| 24 "//v8:external_startup_data", | 21 "//v8:external_startup_data", |
| 25 ] | 22 ] |
| 26 defines = [] | 23 defines = [] |
| 27 libs = [] | 24 libs = [] |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 if (enable_webvr && is_android) { | 519 if (enable_webvr && is_android) { |
| 523 sources += [ | 520 sources += [ |
| 524 "vr/android/cardboard/cardboard_vr_device.cc", | 521 "vr/android/cardboard/cardboard_vr_device.cc", |
| 525 "vr/android/cardboard/cardboard_vr_device.h", | 522 "vr/android/cardboard/cardboard_vr_device.h", |
| 526 "vr/android/cardboard/cardboard_vr_device_provider.cc", | 523 "vr/android/cardboard/cardboard_vr_device_provider.cc", |
| 527 "vr/android/cardboard/cardboard_vr_device_provider.h", | 524 "vr/android/cardboard/cardboard_vr_device_provider.h", |
| 528 ] | 525 ] |
| 529 } | 526 } |
| 530 } | 527 } |
| 531 | 528 |
| 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 | |
| 542 mojo_application_manifest("chrome_manifest") { | 529 mojo_application_manifest("chrome_manifest") { |
| 543 type = "exe" | 530 type = "exe" |
| 544 application_name = "chrome" | 531 application_name = "chrome" |
| 545 source = "mojo/chrome_manifest.json" | 532 source = "mojo/chrome_manifest.json" |
| 546 } | 533 } |
| 547 | 534 |
| 548 mojo_application_manifest("chrome_renderer_manifest") { | 535 mojo_application_manifest("chrome_renderer_manifest") { |
| 549 type = "exe" | 536 type = "exe" |
| 550 application_name = "chrome_renderer" | 537 application_name = "chrome_renderer" |
| 551 source = "mojo/chrome_renderer_manifest.json" | 538 source = "mojo/chrome_renderer_manifest.json" |
| 552 } | 539 } |
| OLD | NEW |