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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 "//services/service_manager", | 124 "//services/service_manager", |
119 "//services/service_manager/embedder", | 125 "//services/service_manager/embedder", |
120 "//services/service_manager/public/cpp", | 126 "//services/service_manager/public/cpp", |
121 "//services/service_manager/public/interfaces", | 127 "//services/service_manager/public/interfaces", |
122 "//services/service_manager/runner/common", | 128 "//services/service_manager/runner/common", |
123 "//services/service_manager/runner/host:lib", | 129 "//services/service_manager/runner/host:lib", |
124 "//services/shape_detection:lib", | 130 "//services/shape_detection:lib", |
125 "//services/shape_detection/public/interfaces", | 131 "//services/shape_detection/public/interfaces", |
126 "//services/ui/gpu/interfaces", | 132 "//services/ui/gpu/interfaces", |
127 "//services/ui/public/cpp/gpu", | 133 "//services/ui/public/cpp/gpu", |
128 "//services/video_capture/public/cpp", | |
129 "//services/video_capture/public/interfaces:constants", | |
130 "//skia", | 134 "//skia", |
131 "//sql", | 135 "//sql", |
132 "//storage/browser", | 136 "//storage/browser", |
133 "//storage/common", | 137 "//storage/common", |
134 "//third_party/WebKit/public:blink_headers", | 138 "//third_party/WebKit/public:blink_headers", |
135 "//third_party/WebKit/public:features", | 139 "//third_party/WebKit/public:features", |
136 "//third_party/WebKit/public:image_resources", | 140 "//third_party/WebKit/public:image_resources", |
137 "//third_party/WebKit/public:mojo_bindings", | 141 "//third_party/WebKit/public:mojo_bindings", |
138 "//third_party/WebKit/public:resources", | 142 "//third_party/WebKit/public:resources", |
139 "//third_party/angle:angle_common", | 143 "//third_party/angle:angle_common", |
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1222 "renderer_host/media/media_stream_requester.h", | 1226 "renderer_host/media/media_stream_requester.h", |
1223 "renderer_host/media/media_stream_track_metrics_host.cc", | 1227 "renderer_host/media/media_stream_track_metrics_host.cc", |
1224 "renderer_host/media/media_stream_track_metrics_host.h", | 1228 "renderer_host/media/media_stream_track_metrics_host.h", |
1225 "renderer_host/media/media_stream_ui_proxy.cc", | 1229 "renderer_host/media/media_stream_ui_proxy.cc", |
1226 "renderer_host/media/media_stream_ui_proxy.h", | 1230 "renderer_host/media/media_stream_ui_proxy.h", |
1227 "renderer_host/media/render_frame_audio_output_stream_factory.cc", | 1231 "renderer_host/media/render_frame_audio_output_stream_factory.cc", |
1228 "renderer_host/media/render_frame_audio_output_stream_factory.h", | 1232 "renderer_host/media/render_frame_audio_output_stream_factory.h", |
1229 "renderer_host/media/renderer_audio_output_stream_factory_context.h", | 1233 "renderer_host/media/renderer_audio_output_stream_factory_context.h", |
1230 "renderer_host/media/renderer_audio_output_stream_factory_context_impl.cc", | 1234 "renderer_host/media/renderer_audio_output_stream_factory_context_impl.cc", |
1231 "renderer_host/media/renderer_audio_output_stream_factory_context_impl.h", | 1235 "renderer_host/media/renderer_audio_output_stream_factory_context_impl.h", |
1232 "renderer_host/media/service_launched_video_capture_device.cc", | |
1233 "renderer_host/media/service_launched_video_capture_device.h", | |
1234 "renderer_host/media/service_video_capture_device_launcher.cc", | |
1235 "renderer_host/media/service_video_capture_device_launcher.h", | |
1236 "renderer_host/media/service_video_capture_provider.cc", | |
1237 "renderer_host/media/service_video_capture_provider.h", | |
1238 "renderer_host/media/video_capture_controller.cc", | 1236 "renderer_host/media/video_capture_controller.cc", |
1239 "renderer_host/media/video_capture_controller.h", | 1237 "renderer_host/media/video_capture_controller.h", |
1240 "renderer_host/media/video_capture_controller_event_handler.h", | 1238 "renderer_host/media/video_capture_controller_event_handler.h", |
1241 "renderer_host/media/video_capture_device_launch_observer.h", | 1239 "renderer_host/media/video_capture_device_launch_observer.h", |
1242 "renderer_host/media/video_capture_gpu_jpeg_decoder.cc", | 1240 "renderer_host/media/video_capture_gpu_jpeg_decoder.cc", |
1243 "renderer_host/media/video_capture_gpu_jpeg_decoder.h", | 1241 "renderer_host/media/video_capture_gpu_jpeg_decoder.h", |
1244 "renderer_host/media/video_capture_host.cc", | 1242 "renderer_host/media/video_capture_host.cc", |
1245 "renderer_host/media/video_capture_host.h", | 1243 "renderer_host/media/video_capture_host.h", |
1246 "renderer_host/media/video_capture_manager.cc", | 1244 "renderer_host/media/video_capture_manager.cc", |
1247 "renderer_host/media/video_capture_manager.h", | 1245 "renderer_host/media/video_capture_manager.h", |
1248 "renderer_host/media/video_capture_provider.h", | 1246 "renderer_host/media/video_capture_provider.h", |
1249 "renderer_host/media/video_capture_provider_switcher.cc", | |
1250 "renderer_host/media/video_capture_provider_switcher.h", | |
1251 "renderer_host/native_web_keyboard_event_aura.cc", | 1247 "renderer_host/native_web_keyboard_event_aura.cc", |
1252 "renderer_host/native_web_keyboard_event_mac.mm", | 1248 "renderer_host/native_web_keyboard_event_mac.mm", |
1253 "renderer_host/offscreen_canvas_provider_impl.cc", | 1249 "renderer_host/offscreen_canvas_provider_impl.cc", |
1254 "renderer_host/offscreen_canvas_provider_impl.h", | 1250 "renderer_host/offscreen_canvas_provider_impl.h", |
1255 "renderer_host/offscreen_canvas_surface_impl.cc", | 1251 "renderer_host/offscreen_canvas_surface_impl.cc", |
1256 "renderer_host/offscreen_canvas_surface_impl.h", | 1252 "renderer_host/offscreen_canvas_surface_impl.h", |
1257 "renderer_host/overscroll_configuration.cc", | 1253 "renderer_host/overscroll_configuration.cc", |
1258 "renderer_host/overscroll_controller.cc", | 1254 "renderer_host/overscroll_controller.cc", |
1259 "renderer_host/overscroll_controller.h", | 1255 "renderer_host/overscroll_controller.h", |
1260 "renderer_host/overscroll_controller_delegate.h", | 1256 "renderer_host/overscroll_controller_delegate.h", |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1626 | 1622 |
1627 deps += [ | 1623 deps += [ |
1628 "//jingle:jingle_glue", | 1624 "//jingle:jingle_glue", |
1629 "//third_party/webrtc/base:rtc_base", | 1625 "//third_party/webrtc/base:rtc_base", |
1630 "//third_party/webrtc/media:rtc_media_base", | 1626 "//third_party/webrtc/media:rtc_media_base", |
1631 "//third_party/webrtc/modules/desktop_capture:primitives", | 1627 "//third_party/webrtc/modules/desktop_capture:primitives", |
1632 "//third_party/webrtc_overrides:init_webrtc", | 1628 "//third_party/webrtc_overrides:init_webrtc", |
1633 ] | 1629 ] |
1634 } | 1630 } |
1635 | 1631 |
| 1632 if (enable_mojo_video_capture) { |
| 1633 sources += [ |
| 1634 "renderer_host/media/service_launched_video_capture_device.cc", |
| 1635 "renderer_host/media/service_launched_video_capture_device.h", |
| 1636 "renderer_host/media/service_video_capture_device_launcher.cc", |
| 1637 "renderer_host/media/service_video_capture_device_launcher.h", |
| 1638 "renderer_host/media/service_video_capture_provider.cc", |
| 1639 "renderer_host/media/service_video_capture_provider.h", |
| 1640 ] |
| 1641 |
| 1642 deps += [ |
| 1643 "//services/video_capture/public/cpp", |
| 1644 "//services/video_capture/public/interfaces:constants", |
| 1645 ] |
| 1646 } |
| 1647 |
1636 # Desktop screen capture implementations, conditionally built depending on | 1648 # Desktop screen capture implementations, conditionally built depending on |
1637 # the available implementations for each platform. | 1649 # the available implementations for each platform. |
1638 if (is_linux || is_mac || is_win) { | 1650 if (is_linux || is_mac || is_win) { |
1639 defines += [ "ENABLE_SCREEN_CAPTURE=1" ] | 1651 defines += [ "ENABLE_SCREEN_CAPTURE=1" ] |
1640 sources += [ | 1652 sources += [ |
1641 "media/capture/cursor_renderer.cc", | 1653 "media/capture/cursor_renderer.cc", |
1642 "media/capture/cursor_renderer.h", | 1654 "media/capture/cursor_renderer.h", |
1643 "media/capture/web_contents_video_capture_device.cc", | 1655 "media/capture/web_contents_video_capture_device.cc", |
1644 "media/capture/web_contents_video_capture_device.h", | 1656 "media/capture/web_contents_video_capture_device.h", |
1645 "media/capture/window_activity_tracker.cc", | 1657 "media/capture/window_activity_tracker.cc", |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2137 if (!is_component_build) { | 2149 if (!is_component_build) { |
2138 public_deps = [ | 2150 public_deps = [ |
2139 ":browser", | 2151 ":browser", |
2140 ] | 2152 ] |
2141 } else { | 2153 } else { |
2142 public_deps = [ | 2154 public_deps = [ |
2143 "//third_party/leveldatabase", | 2155 "//third_party/leveldatabase", |
2144 ] | 2156 ] |
2145 } | 2157 } |
2146 } | 2158 } |
OLD | NEW |