Index: webrtc/modules/desktop_capture/BUILD.gn |
diff --git a/webrtc/modules/desktop_capture/BUILD.gn b/webrtc/modules/desktop_capture/BUILD.gn |
index ca1e66ec9234c1f4e407b05a95a3ca7e3a5f8446..17135ccb86d49b51a678b8d41aa06f56c268ce06 100644 |
--- a/webrtc/modules/desktop_capture/BUILD.gn |
+++ b/webrtc/modules/desktop_capture/BUILD.gn |
@@ -12,6 +12,20 @@ import("../../build/webrtc.gni") |
use_desktop_capture_differ_sse2 = |
!is_ios && (current_cpu == "x86" || current_cpu == "x64") |
+source_set("primitives") { |
+ sources = [ |
+ "desktop_capture_types.h", |
+ "desktop_frame.cc", |
+ "desktop_frame.h", |
+ "desktop_geometry.cc", |
+ "desktop_geometry.h", |
+ "desktop_region.cc", |
+ "desktop_region.h", |
+ ] |
+ |
+ public_configs = [ "../..:common_inherited_config" ] |
+} |
+ |
source_set("desktop_capture") { |
sources = [ |
"cropped_desktop_frame.cc", |
@@ -23,17 +37,10 @@ source_set("desktop_capture") { |
"desktop_and_cursor_composer.h", |
"desktop_capture_options.cc", |
"desktop_capture_options.h", |
- "desktop_capture_types.h", |
"desktop_capturer.h", |
"desktop_capturer.h", |
- "desktop_frame.cc", |
- "desktop_frame.h", |
"desktop_frame_win.cc", |
"desktop_frame_win.h", |
- "desktop_geometry.cc", |
- "desktop_geometry.h", |
- "desktop_region.cc", |
- "desktop_region.h", |
"differ.cc", |
"differ.h", |
"differ_block.cc", |
@@ -127,6 +134,7 @@ source_set("desktop_capture") { |
} |
deps = [ |
+ ":primitives", |
"../../base:rtc_base_approved", |
"../../system_wrappers", |
] |