Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: content/browser/BUILD.gn

Issue 2867213004: [Mojo Video Capture] Hook up video capture service behind a feature flag (Closed)
Patch Set: Incorporate more suggestions from Patch Set 3 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
20 source_set("browser") { 14 source_set("browser") {
21 # Only the public target should depend on this. All other targets (even 15 # Only the public target should depend on this. All other targets (even
22 # internal content ones) should depend on the public one. 16 # internal content ones) should depend on the public one.
23 visibility = [ 17 visibility = [
24 ":for_content_tests", # See top of //content/BUILD.gn for why. 18 ":for_content_tests", # See top of //content/BUILD.gn for why.
25 "//content/app:*", 19 "//content/app:*",
26 "//content/public/browser:browser_sources", 20 "//content/public/browser:browser_sources",
27 ] 21 ]
28 22
29 configs += [ 23 configs += [
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 "//services/service_manager", 115 "//services/service_manager",
122 "//services/service_manager/embedder", 116 "//services/service_manager/embedder",
123 "//services/service_manager/public/cpp", 117 "//services/service_manager/public/cpp",
124 "//services/service_manager/public/interfaces", 118 "//services/service_manager/public/interfaces",
125 "//services/service_manager/runner/common", 119 "//services/service_manager/runner/common",
126 "//services/service_manager/runner/host:lib", 120 "//services/service_manager/runner/host:lib",
127 "//services/shape_detection:lib", 121 "//services/shape_detection:lib",
128 "//services/shape_detection/public/interfaces", 122 "//services/shape_detection/public/interfaces",
129 "//services/ui/gpu/interfaces", 123 "//services/ui/gpu/interfaces",
130 "//services/ui/public/cpp/gpu", 124 "//services/ui/public/cpp/gpu",
125 "//services/video_capture/public/cpp",
126 "//services/video_capture/public/interfaces:constants",
131 "//skia", 127 "//skia",
132 "//sql", 128 "//sql",
133 "//storage/browser", 129 "//storage/browser",
134 "//storage/common", 130 "//storage/common",
135 "//third_party/WebKit/public:blink_headers", 131 "//third_party/WebKit/public:blink_headers",
136 "//third_party/WebKit/public:features", 132 "//third_party/WebKit/public:features",
137 "//third_party/WebKit/public:image_resources", 133 "//third_party/WebKit/public:image_resources",
138 "//third_party/WebKit/public:mojo_bindings", 134 "//third_party/WebKit/public:mojo_bindings",
139 "//third_party/WebKit/public:resources", 135 "//third_party/WebKit/public:resources",
140 "//third_party/angle:angle_common", 136 "//third_party/angle:angle_common",
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 "renderer_host/media/media_stream_requester.h", 1212 "renderer_host/media/media_stream_requester.h",
1217 "renderer_host/media/media_stream_track_metrics_host.cc", 1213 "renderer_host/media/media_stream_track_metrics_host.cc",
1218 "renderer_host/media/media_stream_track_metrics_host.h", 1214 "renderer_host/media/media_stream_track_metrics_host.h",
1219 "renderer_host/media/media_stream_ui_proxy.cc", 1215 "renderer_host/media/media_stream_ui_proxy.cc",
1220 "renderer_host/media/media_stream_ui_proxy.h", 1216 "renderer_host/media/media_stream_ui_proxy.h",
1221 "renderer_host/media/render_frame_audio_output_stream_factory.cc", 1217 "renderer_host/media/render_frame_audio_output_stream_factory.cc",
1222 "renderer_host/media/render_frame_audio_output_stream_factory.h", 1218 "renderer_host/media/render_frame_audio_output_stream_factory.h",
1223 "renderer_host/media/renderer_audio_output_stream_factory_context.h", 1219 "renderer_host/media/renderer_audio_output_stream_factory_context.h",
1224 "renderer_host/media/renderer_audio_output_stream_factory_context_impl.cc", 1220 "renderer_host/media/renderer_audio_output_stream_factory_context_impl.cc",
1225 "renderer_host/media/renderer_audio_output_stream_factory_context_impl.h", 1221 "renderer_host/media/renderer_audio_output_stream_factory_context_impl.h",
1222 "renderer_host/media/service_launched_video_capture_device.cc",
1223 "renderer_host/media/service_launched_video_capture_device.h",
1224 "renderer_host/media/service_video_capture_device_launcher.cc",
1225 "renderer_host/media/service_video_capture_device_launcher.h",
1226 "renderer_host/media/service_video_capture_provider.cc",
1227 "renderer_host/media/service_video_capture_provider.h",
1226 "renderer_host/media/video_capture_controller.cc", 1228 "renderer_host/media/video_capture_controller.cc",
1227 "renderer_host/media/video_capture_controller.h", 1229 "renderer_host/media/video_capture_controller.h",
1228 "renderer_host/media/video_capture_controller_event_handler.h", 1230 "renderer_host/media/video_capture_controller_event_handler.h",
1229 "renderer_host/media/video_capture_device_launch_observer.h", 1231 "renderer_host/media/video_capture_device_launch_observer.h",
1230 "renderer_host/media/video_capture_gpu_jpeg_decoder.cc", 1232 "renderer_host/media/video_capture_gpu_jpeg_decoder.cc",
1231 "renderer_host/media/video_capture_gpu_jpeg_decoder.h", 1233 "renderer_host/media/video_capture_gpu_jpeg_decoder.h",
1232 "renderer_host/media/video_capture_host.cc", 1234 "renderer_host/media/video_capture_host.cc",
1233 "renderer_host/media/video_capture_host.h", 1235 "renderer_host/media/video_capture_host.h",
1234 "renderer_host/media/video_capture_manager.cc", 1236 "renderer_host/media/video_capture_manager.cc",
1235 "renderer_host/media/video_capture_manager.h", 1237 "renderer_host/media/video_capture_manager.h",
1236 "renderer_host/media/video_capture_provider.h", 1238 "renderer_host/media/video_capture_provider.h",
1239 "renderer_host/media/video_capture_provider_switcher.cc",
1240 "renderer_host/media/video_capture_provider_switcher.h",
1237 "renderer_host/native_web_keyboard_event_aura.cc", 1241 "renderer_host/native_web_keyboard_event_aura.cc",
1238 "renderer_host/native_web_keyboard_event_mac.mm", 1242 "renderer_host/native_web_keyboard_event_mac.mm",
1239 "renderer_host/offscreen_canvas_provider_impl.cc", 1243 "renderer_host/offscreen_canvas_provider_impl.cc",
1240 "renderer_host/offscreen_canvas_provider_impl.h", 1244 "renderer_host/offscreen_canvas_provider_impl.h",
1241 "renderer_host/offscreen_canvas_surface_impl.cc", 1245 "renderer_host/offscreen_canvas_surface_impl.cc",
1242 "renderer_host/offscreen_canvas_surface_impl.h", 1246 "renderer_host/offscreen_canvas_surface_impl.h",
1243 "renderer_host/overscroll_configuration.cc", 1247 "renderer_host/overscroll_configuration.cc",
1244 "renderer_host/overscroll_controller.cc", 1248 "renderer_host/overscroll_controller.cc",
1245 "renderer_host/overscroll_controller.h", 1249 "renderer_host/overscroll_controller.h",
1246 "renderer_host/overscroll_controller_delegate.h", 1250 "renderer_host/overscroll_controller_delegate.h",
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 1610
1607 deps += [ 1611 deps += [
1608 "//jingle:jingle_glue", 1612 "//jingle:jingle_glue",
1609 "//third_party/webrtc/base:rtc_base", 1613 "//third_party/webrtc/base:rtc_base",
1610 "//third_party/webrtc/media:rtc_media_base", 1614 "//third_party/webrtc/media:rtc_media_base",
1611 "//third_party/webrtc/modules/desktop_capture:primitives", 1615 "//third_party/webrtc/modules/desktop_capture:primitives",
1612 "//third_party/webrtc_overrides:init_webrtc", 1616 "//third_party/webrtc_overrides:init_webrtc",
1613 ] 1617 ]
1614 } 1618 }
1615 1619
1616 if (enable_mojo_video_capture) {
1617 sources += [
1618 "renderer_host/media/service_launched_video_capture_device.cc",
1619 "renderer_host/media/service_launched_video_capture_device.h",
1620 "renderer_host/media/service_video_capture_device_launcher.cc",
1621 "renderer_host/media/service_video_capture_device_launcher.h",
1622 "renderer_host/media/service_video_capture_provider.cc",
1623 "renderer_host/media/service_video_capture_provider.h",
1624 ]
1625
1626 deps += [
1627 "//services/video_capture/public/cpp",
1628 "//services/video_capture/public/interfaces:constants",
1629 ]
1630 }
1631
1632 # Desktop screen capture implementations, conditionally built depending on 1620 # Desktop screen capture implementations, conditionally built depending on
1633 # the available implementations for each platform. 1621 # the available implementations for each platform.
1634 if (is_linux || is_mac || is_win) { 1622 if (is_linux || is_mac || is_win) {
1635 defines += [ "ENABLE_SCREEN_CAPTURE=1" ] 1623 defines += [ "ENABLE_SCREEN_CAPTURE=1" ]
1636 sources += [ 1624 sources += [
1637 "media/capture/cursor_renderer.cc", 1625 "media/capture/cursor_renderer.cc",
1638 "media/capture/cursor_renderer.h", 1626 "media/capture/cursor_renderer.h",
1639 "media/capture/web_contents_video_capture_device.cc", 1627 "media/capture/web_contents_video_capture_device.cc",
1640 "media/capture/web_contents_video_capture_device.h", 1628 "media/capture/web_contents_video_capture_device.h",
1641 "media/capture/window_activity_tracker.cc", 1629 "media/capture/window_activity_tracker.cc",
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
2135 if (!is_component_build) { 2123 if (!is_component_build) {
2136 public_deps = [ 2124 public_deps = [
2137 ":browser", 2125 ":browser",
2138 ] 2126 ]
2139 } else { 2127 } else {
2140 public_deps = [ 2128 public_deps = [
2141 "//third_party/leveldatabase", 2129 "//third_party/leveldatabase",
2142 ] 2130 ]
2143 } 2131 }
2144 } 2132 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698