| Index: content/browser/BUILD.gn
|
| diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
|
| index a08452be25868cc8a74dd6134b23452637d2b65a..952e2e8f07518fc11a8f3ae8ca23bb1a07dedcb7 100644
|
| --- a/content/browser/BUILD.gn
|
| +++ b/content/browser/BUILD.gn
|
| @@ -1500,17 +1500,10 @@ source_set("browser") {
|
| "//third_party/webrtc/media:rtc_media_base",
|
| "//third_party/webrtc/modules/desktop_capture:primitives",
|
| ]
|
| -
|
| - if (is_linux || is_mac || is_win) {
|
| - sources += [
|
| - "media/capture/desktop_capture_device.cc",
|
| - "media/capture/desktop_capture_device.h",
|
| - ]
|
| - deps += [ "//third_party/webrtc/modules/desktop_capture" ]
|
| - }
|
| }
|
|
|
| - # Desktop screen capture implementations that are not dependent on WebRTC.
|
| + # Desktop screen capture implementations, conditionally built depending on
|
| + # the available implementations for each platform.
|
| if (is_linux || is_mac || is_win) {
|
| defines += [ "ENABLE_SCREEN_CAPTURE=1" ]
|
| sources += [
|
| @@ -1541,6 +1534,13 @@ source_set("browser") {
|
| "media/capture/window_activity_tracker_mac.mm",
|
| ]
|
| }
|
| + if (enable_webrtc) {
|
| + sources += [
|
| + "media/capture/desktop_capture_device.cc",
|
| + "media/capture/desktop_capture_device.h",
|
| + ]
|
| + deps += [ "//third_party/webrtc/modules/desktop_capture" ]
|
| + }
|
| }
|
|
|
| if (is_win) {
|
|
|