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 | 9 |
10 source_set("browser") { | 10 source_set("browser") { |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 } | 494 } |
495 | 495 |
496 if (is_linux) { | 496 if (is_linux) { |
497 deps += [ "//third_party/boringssl" ] | 497 deps += [ "//third_party/boringssl" ] |
498 } | 498 } |
499 | 499 |
500 if (enable_mojo_media) { | 500 if (enable_mojo_media) { |
501 configs += [ "//media/mojo/services:mojo_media_config" ] | 501 configs += [ "//media/mojo/services:mojo_media_config" ] |
502 } | 502 } |
503 | 503 |
504 if (enable_webvr) { | |
505 sources += [ | |
506 "vr/vr_device.cc", | |
507 "vr/vr_device.h", | |
508 "vr/vr_device_manager.cc", | |
509 "vr/vr_device_manager.h", | |
510 "vr/vr_device_provider.h", | |
511 ] | |
512 } | |
513 | |
514 if (enable_webvr && is_android) { | |
515 sources += [ | |
516 "vr/android/cardboard/cardboard_vr_device.cc", | |
517 "vr/android/cardboard/cardboard_vr_device.h", | |
518 "vr/android/cardboard/cardboard_vr_device_provider.cc", | |
519 "vr/android/cardboard/cardboard_vr_device_provider.h", | |
520 ] | |
521 } | |
522 | |
523 if (use_ozone) { | 504 if (use_ozone) { |
524 deps += [ "//ui/ozone" ] | 505 deps += [ "//ui/ozone" ] |
525 } | 506 } |
526 | 507 |
527 if (!is_mac && !is_android) { | 508 if (!is_mac && !is_android) { |
528 sources -= [ | 509 sources -= [ |
529 "gpu/gpu_surface_tracker.cc", | 510 "gpu/gpu_surface_tracker.cc", |
530 "gpu/gpu_surface_tracker.h", | 511 "gpu/gpu_surface_tracker.h", |
531 ] | 512 ] |
532 } | 513 } |
| 514 |
| 515 if (enable_webvr) { |
| 516 deps += [ "//device/vr" ] |
| 517 } |
533 } | 518 } |
534 | 519 |
535 # See comment at the top of //content/BUILD.gn for how this works. | 520 # See comment at the top of //content/BUILD.gn for how this works. |
536 group("for_content_tests") { | 521 group("for_content_tests") { |
537 visibility = [ "//content/test/*" ] | 522 visibility = [ "//content/test/*" ] |
538 if (!is_component_build) { | 523 if (!is_component_build) { |
539 public_deps = [ | 524 public_deps = [ |
540 ":browser", | 525 ":browser", |
541 ] | 526 ] |
542 } else { | 527 } else { |
543 public_deps = [ | 528 public_deps = [ |
544 "//third_party/leveldatabase", | 529 "//third_party/leveldatabase", |
545 ] | 530 ] |
546 } | 531 } |
547 } | 532 } |
OLD | NEW |