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

Unified Diff: webrtc/modules/desktop_capture/BUILD.gn

Issue 2468753002: Add CreateWindowCapturer() and CreateScreenCapturer() in DesktopCapturer (Closed)
Patch Set: Build break without X11 Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/modules/desktop_capture/desktop_capture.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/desktop_capture/BUILD.gn
diff --git a/webrtc/modules/desktop_capture/BUILD.gn b/webrtc/modules/desktop_capture/BUILD.gn
index 5529537f5f3550e25aa222fc7f4d8868c9a1f370..1cb421ef352132d7f5cfa888de5d539c8a676a86 100644
--- a/webrtc/modules/desktop_capture/BUILD.gn
+++ b/webrtc/modules/desktop_capture/BUILD.gn
@@ -8,6 +8,7 @@
import("//build/config/ui.gni")
import("../../build/webrtc.gni")
+import("desktop_capture.gni")
use_desktop_capture_differ_sse2 =
!is_ios && (current_cpu == "x86" || current_cpu == "x64")
@@ -31,7 +32,7 @@ rtc_static_library("primitives") {
}
if (rtc_include_tests) {
- source_set("desktop_capture_test_tools") {
+ source_set("rgba_color") {
testonly = true
public_deps = [
@@ -41,6 +42,17 @@ if (rtc_include_tests) {
sources = [
"rgba_color.cc",
"rgba_color.h",
+ ]
+ }
+
+ source_set("screen_drawer") {
+ testonly = true
+
+ public_deps = [
+ ":rgba_color",
+ ]
+
+ sources = [
"screen_drawer.cc",
"screen_drawer.h",
"screen_drawer_linux.cc",
@@ -48,6 +60,25 @@ if (rtc_include_tests) {
"screen_drawer_win.cc",
]
}
+
+ source_set("desktop_capture_mock") {
+ testonly = true
+
+ public_deps = [
+ ":desktop_capture",
+ ":rgba_color",
+ ]
+
+ sources = [
+ "desktop_frame_generator.cc",
+ "desktop_frame_generator.h",
+ "fake_desktop_capturer.h",
+ "fake_screen_capturer.cc",
+ "fake_screen_capturer.h",
+ "mock_desktop_capturer_callback.h",
+ "screen_capturer_mock_objects.h",
+ ]
+ }
}
rtc_static_library("desktop_capture") {
@@ -151,6 +182,8 @@ rtc_static_library("desktop_capture") {
if (!is_ios) {
sources += [
+ "desktop_capturer_differ_wrapper.cc",
+ "desktop_capturer_differ_wrapper.h",
"differ_block.cc",
"differ_block.h",
"screen_capturer_differ_wrapper.cc",
@@ -182,6 +215,10 @@ rtc_static_library("desktop_capture") {
if (use_desktop_capture_differ_sse2) {
deps += [ ":desktop_capture_differ_sse2" ]
}
+
+ if (rtc_desktop_capture_supported) {
+ defines = [ "RTC_DESKTOP_CAPTURE_SUPPORTED" ]
+ }
}
if (use_desktop_capture_differ_sse2) {
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/modules/desktop_capture/desktop_capture.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698