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("//gpu/vulkan/features.gni") | 7 import("//gpu/vulkan/features.gni") |
8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
9 import("//ppapi/features/features.gni") | 9 import("//ppapi/features/features.gni") |
10 import("//printing/features/features.gni") | 10 import("//printing/features/features.gni") |
11 import("//third_party/WebKit/public/public_features.gni") | 11 import("//third_party/WebKit/public/public_features.gni") |
12 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") | 12 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
13 | 13 |
| 14 declare_args() { |
| 15 # Include code in the build that is only needed when using the video |
| 16 # capture Mojo service, which is currently experimental. |
| 17 enable_mojo_video_capture = false |
| 18 } |
| 19 |
14 source_set("browser") { | 20 source_set("browser") { |
15 # Only the public target should depend on this. All other targets (even | 21 # Only the public target should depend on this. All other targets (even |
16 # internal content ones) should depend on the public one. | 22 # internal content ones) should depend on the public one. |
17 visibility = [ | 23 visibility = [ |
18 ":for_content_tests", # See top of //content/BUILD.gn for why. | 24 ":for_content_tests", # See top of //content/BUILD.gn for why. |
19 "//content/app:*", | 25 "//content/app:*", |
20 "//content/public/browser:browser_sources", | 26 "//content/public/browser:browser_sources", |
21 ] | 27 ] |
22 | 28 |
23 configs += [ | 29 configs += [ |
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1568 | 1574 |
1569 deps += [ | 1575 deps += [ |
1570 "//jingle:jingle_glue", | 1576 "//jingle:jingle_glue", |
1571 "//third_party/webrtc/base:rtc_base", | 1577 "//third_party/webrtc/base:rtc_base", |
1572 "//third_party/webrtc/media:rtc_media_base", | 1578 "//third_party/webrtc/media:rtc_media_base", |
1573 "//third_party/webrtc/modules/desktop_capture:primitives", | 1579 "//third_party/webrtc/modules/desktop_capture:primitives", |
1574 "//third_party/webrtc_overrides:init_webrtc", | 1580 "//third_party/webrtc_overrides:init_webrtc", |
1575 ] | 1581 ] |
1576 } | 1582 } |
1577 | 1583 |
| 1584 if (enable_mojo_video_capture) { |
| 1585 sources += [ |
| 1586 "renderer_host/media/mojo_service_launched_video_capture_device.cc", |
| 1587 "renderer_host/media/mojo_service_launched_video_capture_device.h", |
| 1588 "renderer_host/media/mojo_service_video_capture_device_launcher.cc", |
| 1589 "renderer_host/media/mojo_service_video_capture_device_launcher.h", |
| 1590 "renderer_host/media/mojo_service_video_capture_provider.cc", |
| 1591 "renderer_host/media/mojo_service_video_capture_provider.h", |
| 1592 ] |
| 1593 |
| 1594 deps += [ |
| 1595 "//services/video_capture/public/cpp", |
| 1596 "//services/video_capture/public/interfaces:constants", |
| 1597 ] |
| 1598 } |
| 1599 |
1578 # Desktop screen capture implementations, conditionally built depending on | 1600 # Desktop screen capture implementations, conditionally built depending on |
1579 # the available implementations for each platform. | 1601 # the available implementations for each platform. |
1580 if (is_linux || is_mac || is_win) { | 1602 if (is_linux || is_mac || is_win) { |
1581 defines += [ "ENABLE_SCREEN_CAPTURE=1" ] | 1603 defines += [ "ENABLE_SCREEN_CAPTURE=1" ] |
1582 sources += [ | 1604 sources += [ |
1583 "media/capture/cursor_renderer.cc", | 1605 "media/capture/cursor_renderer.cc", |
1584 "media/capture/cursor_renderer.h", | 1606 "media/capture/cursor_renderer.h", |
1585 "media/capture/web_contents_video_capture_device.cc", | 1607 "media/capture/web_contents_video_capture_device.cc", |
1586 "media/capture/web_contents_video_capture_device.h", | 1608 "media/capture/web_contents_video_capture_device.h", |
1587 "media/capture/window_activity_tracker.cc", | 1609 "media/capture/window_activity_tracker.cc", |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2073 if (!is_component_build) { | 2095 if (!is_component_build) { |
2074 public_deps = [ | 2096 public_deps = [ |
2075 ":browser", | 2097 ":browser", |
2076 ] | 2098 ] |
2077 } else { | 2099 } else { |
2078 public_deps = [ | 2100 public_deps = [ |
2079 "//third_party/leveldatabase", | 2101 "//third_party/leveldatabase", |
2080 ] | 2102 ] |
2081 } | 2103 } |
2082 } | 2104 } |
OLD | NEW |