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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("../../build/webrtc.gni") 10 import("../../build/webrtc.gni")
11 import("desktop_capture.gni")
11 12
12 use_desktop_capture_differ_sse2 = 13 use_desktop_capture_differ_sse2 =
13 !is_ios && (current_cpu == "x86" || current_cpu == "x64") 14 !is_ios && (current_cpu == "x86" || current_cpu == "x64")
14 15
15 rtc_static_library("primitives") { 16 rtc_static_library("primitives") {
16 sources = [ 17 sources = [
17 "desktop_capture_types.h", 18 "desktop_capture_types.h",
18 "desktop_frame.cc", 19 "desktop_frame.cc",
19 "desktop_frame.h", 20 "desktop_frame.h",
20 "desktop_geometry.cc", 21 "desktop_geometry.cc",
21 "desktop_geometry.h", 22 "desktop_geometry.h",
22 "desktop_region.cc", 23 "desktop_region.cc",
23 "desktop_region.h", 24 "desktop_region.h",
24 "shared_desktop_frame.cc", 25 "shared_desktop_frame.cc",
25 "shared_desktop_frame.h", 26 "shared_desktop_frame.h",
26 ] 27 ]
27 28
28 deps = [ 29 deps = [
29 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. 30 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806.
30 ] 31 ]
31 } 32 }
32 33
33 if (rtc_include_tests) { 34 if (rtc_include_tests) {
34 source_set("desktop_capture_test_tools") { 35 source_set("rgba_color") {
35 testonly = true 36 testonly = true
36 37
37 public_deps = [ 38 public_deps = [
38 ":desktop_capture", 39 ":desktop_capture",
39 ] 40 ]
40 41
41 sources = [ 42 sources = [
42 "rgba_color.cc", 43 "rgba_color.cc",
43 "rgba_color.h", 44 "rgba_color.h",
45 ]
46 }
47
48 source_set("screen_drawer") {
49 testonly = true
50
51 public_deps = [
52 ":rgba_color",
53 ]
54
55 sources = [
44 "screen_drawer.cc", 56 "screen_drawer.cc",
45 "screen_drawer.h", 57 "screen_drawer.h",
46 "screen_drawer_linux.cc", 58 "screen_drawer_linux.cc",
47 "screen_drawer_mac.cc", 59 "screen_drawer_mac.cc",
48 "screen_drawer_win.cc", 60 "screen_drawer_win.cc",
49 ] 61 ]
50 } 62 }
63
64 source_set("desktop_capture_mock") {
65 testonly = true
66
67 public_deps = [
68 ":desktop_capture",
69 ":rgba_color",
70 ]
71
72 sources = [
73 "desktop_frame_generator.cc",
74 "desktop_frame_generator.h",
75 "fake_desktop_capturer.h",
76 "fake_screen_capturer.cc",
77 "fake_screen_capturer.h",
78 "mock_desktop_capturer_callback.h",
79 "screen_capturer_mock_objects.h",
80 ]
81 }
51 } 82 }
52 83
53 rtc_static_library("desktop_capture") { 84 rtc_static_library("desktop_capture") {
54 sources = [ 85 sources = [
55 "cropped_desktop_frame.cc", 86 "cropped_desktop_frame.cc",
56 "cropped_desktop_frame.h", 87 "cropped_desktop_frame.h",
57 "cropping_window_capturer.cc", 88 "cropping_window_capturer.cc",
58 "cropping_window_capturer.h", 89 "cropping_window_capturer.h",
59 "cropping_window_capturer_win.cc", 90 "cropping_window_capturer_win.cc",
60 "desktop_and_cursor_composer.cc", 91 "desktop_and_cursor_composer.cc",
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 if (!is_win && !is_mac && !use_x11) { 175 if (!is_win && !is_mac && !use_x11) {
145 sources += [ 176 sources += [
146 "mouse_cursor_monitor_null.cc", 177 "mouse_cursor_monitor_null.cc",
147 "screen_capturer_null.cc", 178 "screen_capturer_null.cc",
148 "window_capturer_null.cc", 179 "window_capturer_null.cc",
149 ] 180 ]
150 } 181 }
151 182
152 if (!is_ios) { 183 if (!is_ios) {
153 sources += [ 184 sources += [
185 "desktop_capturer_differ_wrapper.cc",
186 "desktop_capturer_differ_wrapper.h",
154 "differ_block.cc", 187 "differ_block.cc",
155 "differ_block.h", 188 "differ_block.h",
156 "screen_capturer_differ_wrapper.cc", 189 "screen_capturer_differ_wrapper.cc",
157 "screen_capturer_differ_wrapper.h", 190 "screen_capturer_differ_wrapper.h",
158 ] 191 ]
159 } 192 }
160 193
161 if (is_mac) { 194 if (is_mac) {
162 libs = [ 195 libs = [
163 "AppKit.framework", 196 "AppKit.framework",
(...skipping 11 matching lines...) Expand all
175 208
176 deps = [ 209 deps = [
177 ":primitives", 210 ":primitives",
178 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. 211 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806.
179 "../../system_wrappers", 212 "../../system_wrappers",
180 ] 213 ]
181 214
182 if (use_desktop_capture_differ_sse2) { 215 if (use_desktop_capture_differ_sse2) {
183 deps += [ ":desktop_capture_differ_sse2" ] 216 deps += [ ":desktop_capture_differ_sse2" ]
184 } 217 }
218
219 if (rtc_desktop_capture_supported) {
220 defines = [ "RTC_DESKTOP_CAPTURE_SUPPORTED" ]
221 }
185 } 222 }
186 223
187 if (use_desktop_capture_differ_sse2) { 224 if (use_desktop_capture_differ_sse2) {
188 # Have to be compiled as a separate target because it needs to be compiled 225 # Have to be compiled as a separate target because it needs to be compiled
189 # with SSE2 enabled. 226 # with SSE2 enabled.
190 rtc_static_library("desktop_capture_differ_sse2") { 227 rtc_static_library("desktop_capture_differ_sse2") {
191 visibility = [ ":*" ] 228 visibility = [ ":*" ]
192 sources = [ 229 sources = [
193 "differ_vector_sse2.cc", 230 "differ_vector_sse2.cc",
194 "differ_vector_sse2.h", 231 "differ_vector_sse2.h",
195 ] 232 ]
196 233
197 if (is_posix) { 234 if (is_posix) {
198 cflags = [ "-msse2" ] 235 cflags = [ "-msse2" ]
199 } 236 }
200 } 237 }
201 } 238 }
OLDNEW
« 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