Index: webrtc/modules/BUILD.gn |
diff --git a/webrtc/modules/BUILD.gn b/webrtc/modules/BUILD.gn |
index a559c4b5fbb9a9337aa84956cd94bd278c6d8570..8ee981061b5f729ff0111cdf078fbf43097338d0 100644 |
--- a/webrtc/modules/BUILD.gn |
+++ b/webrtc/modules/BUILD.gn |
@@ -8,11 +8,10 @@ |
import("../build/webrtc.gni") |
import("audio_coding/audio_coding.gni") |
-import("desktop_capture/desktop_capture.gni") |
declare_args() { |
# Desktop capturer is supported only on Windows, OSX and Linux. |
- rtc_desktop_capture_supported = rtc_desktop_capture_supported |
+ rtc_desktop_capture_supported = is_win || is_mac || is_linux |
} |
group("modules") { |
@@ -103,11 +102,8 @@ |
] |
if (rtc_desktop_capture_supported) { |
- deps += [ "desktop_capture:screen_drawer" ] |
- sources += [ |
- "desktop_capture/screen_capturer_integration_test.cc", |
- "desktop_capture/screen_drawer_unittest.cc", |
- ] |
+ deps += [ "desktop_capture:desktop_capture_test_tools" ] |
+ sources += [ "desktop_capture/screen_capturer_integration_test.cc" ] |
} |
data = modules_tests_resources |
@@ -548,10 +544,14 @@ |
} |
if (rtc_desktop_capture_supported) { |
- deps += [ "desktop_capture:desktop_capture_mock" ] |
+ deps += [ "desktop_capture:desktop_capture_test_tools" ] |
sources += [ |
"desktop_capture/desktop_and_cursor_composer_unittest.cc", |
- "desktop_capture/desktop_capturer_differ_wrapper_unittest.cc", |
+ "desktop_capture/desktop_frame_generator.cc", |
+ "desktop_capture/desktop_frame_generator.h", |
+ "desktop_capture/fake_desktop_capturer.h", |
+ "desktop_capture/fake_screen_capturer.cc", |
+ "desktop_capture/fake_screen_capturer.h", |
"desktop_capture/mouse_cursor_monitor_unittest.cc", |
"desktop_capture/rgba_color_unittest.cc", |
"desktop_capture/screen_capturer_differ_wrapper_unittest.cc", |
@@ -559,6 +559,7 @@ |
"desktop_capture/screen_capturer_mac_unittest.cc", |
"desktop_capture/screen_capturer_mock_objects.h", |
"desktop_capture/screen_capturer_unittest.cc", |
+ "desktop_capture/screen_drawer_unittest.cc", |
"desktop_capture/win/cursor_unittest.cc", |
"desktop_capture/win/cursor_unittest_resources.h", |
"desktop_capture/win/cursor_unittest_resources.rc", |