OLD | NEW |
---|---|
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("../../webrtc.gni") | 10 import("../../webrtc.gni") |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 deps = [ | 94 deps = [ |
95 ":desktop_capture", | 95 ":desktop_capture", |
96 ":desktop_capture_mock", | 96 ":desktop_capture_mock", |
97 ":primitives", | 97 ":primitives", |
98 "../..:webrtc_common", | 98 "../..:webrtc_common", |
99 "../../rtc_base:rtc_base_approved", | 99 "../../rtc_base:rtc_base_approved", |
100 "../../system_wrappers", | 100 "../../system_wrappers", |
101 "../../test:test_support", | 101 "../../test:test_support", |
102 "//testing/gmock", | 102 "//testing/gmock", |
103 ] | 103 ] |
104 if (is_mac) { | |
105 deps += [ ":objc_desktop_capture" ] | |
106 } | |
104 if (rtc_desktop_capture_supported) { | 107 if (rtc_desktop_capture_supported) { |
105 sources += [ | 108 sources += [ |
106 "screen_capturer_helper_unittest.cc", | 109 "screen_capturer_helper_unittest.cc", |
107 "screen_capturer_mac_unittest.cc", | 110 "screen_capturer_mac_unittest.cc", |
108 "screen_capturer_unittest.cc", | 111 "screen_capturer_unittest.cc", |
109 "window_capturer_unittest.cc", | 112 "window_capturer_unittest.cc", |
110 ] | 113 ] |
111 deps += [ ":desktop_capture_mock" ] | 114 deps += [ ":desktop_capture_mock" ] |
112 } | 115 } |
113 if (!build_with_chromium && is_clang) { | 116 if (!build_with_chromium && is_clang) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 ] | 159 ] |
157 | 160 |
158 deps = [ | 161 deps = [ |
159 ":primitives", | 162 ":primitives", |
160 "../../rtc_base:rtc_base_approved", | 163 "../../rtc_base:rtc_base_approved", |
161 "../../test:test_support", | 164 "../../test:test_support", |
162 ] | 165 ] |
163 } | 166 } |
164 } | 167 } |
165 | 168 |
169 if (is_mac) { | |
170 rtc_source_set("objc_desktop_capture") { | |
kjellander_webrtc
2017/08/14 04:36:26
We seem to have a mix of prefixed objc_ targets an
mbonadei
2017/08/15 14:55:39
Done.
| |
171 check_includes = false | |
kjellander_webrtc
2017/08/14 04:36:26
Please include a comment referencing a bug trackin
mbonadei
2017/08/15 14:55:39
In ps#2 we have removed the circular dependency.
| |
172 sources = [ | |
173 "mac/desktop_configuration.h", | |
174 "mac/desktop_configuration.mm", | |
175 "mouse_cursor_monitor_mac.mm", | |
176 "screen_capturer_mac.mm", | |
177 "window_capturer_mac.mm", | |
178 ] | |
179 | |
180 # deps = [ ":desktop_capture" ] | |
Sergey Ulanov
2017/08/14 17:53:18
Remove this?
mbonadei
2017/08/15 14:55:39
Done.
| |
181 } | |
182 } | |
183 | |
166 rtc_static_library("desktop_capture") { | 184 rtc_static_library("desktop_capture") { |
167 sources = [ | 185 sources = [ |
168 "blank_detector_desktop_capturer_wrapper.cc", | 186 "blank_detector_desktop_capturer_wrapper.cc", |
169 "blank_detector_desktop_capturer_wrapper.h", | 187 "blank_detector_desktop_capturer_wrapper.h", |
170 "cropped_desktop_frame.cc", | 188 "cropped_desktop_frame.cc", |
171 "cropped_desktop_frame.h", | 189 "cropped_desktop_frame.h", |
172 "cropping_window_capturer.cc", | 190 "cropping_window_capturer.cc", |
173 "cropping_window_capturer.h", | 191 "cropping_window_capturer.h", |
174 "cropping_window_capturer_win.cc", | 192 "cropping_window_capturer_win.cc", |
175 "desktop_and_cursor_composer.cc", | 193 "desktop_and_cursor_composer.cc", |
176 "desktop_and_cursor_composer.h", | 194 "desktop_and_cursor_composer.h", |
177 "desktop_capture_options.cc", | 195 "desktop_capture_options.cc", |
178 "desktop_capture_options.h", | 196 "desktop_capture_options.h", |
179 "desktop_capturer.cc", | 197 "desktop_capturer.cc", |
180 "desktop_capturer.h", | 198 "desktop_capturer.h", |
181 "desktop_capturer_differ_wrapper.cc", | 199 "desktop_capturer_differ_wrapper.cc", |
182 "desktop_capturer_differ_wrapper.h", | 200 "desktop_capturer_differ_wrapper.h", |
183 "desktop_frame_rotation.cc", | 201 "desktop_frame_rotation.cc", |
184 "desktop_frame_rotation.h", | 202 "desktop_frame_rotation.h", |
185 "desktop_frame_win.cc", | 203 "desktop_frame_win.cc", |
186 "desktop_frame_win.h", | 204 "desktop_frame_win.h", |
187 "differ_block.cc", | 205 "differ_block.cc", |
188 "differ_block.h", | 206 "differ_block.h", |
189 "fallback_desktop_capturer_wrapper.cc", | 207 "fallback_desktop_capturer_wrapper.cc", |
190 "fallback_desktop_capturer_wrapper.h", | 208 "fallback_desktop_capturer_wrapper.h", |
191 "mac/desktop_configuration.h", | |
192 "mac/desktop_configuration.mm", | |
193 "mac/desktop_configuration_monitor.cc", | 209 "mac/desktop_configuration_monitor.cc", |
194 "mac/desktop_configuration_monitor.h", | 210 "mac/desktop_configuration_monitor.h", |
195 "mac/full_screen_chrome_window_detector.cc", | 211 "mac/full_screen_chrome_window_detector.cc", |
196 "mac/full_screen_chrome_window_detector.h", | 212 "mac/full_screen_chrome_window_detector.h", |
197 "mac/scoped_pixel_buffer_object.cc", | 213 "mac/scoped_pixel_buffer_object.cc", |
198 "mac/scoped_pixel_buffer_object.h", | 214 "mac/scoped_pixel_buffer_object.h", |
199 "mac/window_list_utils.cc", | 215 "mac/window_list_utils.cc", |
200 "mac/window_list_utils.h", | 216 "mac/window_list_utils.h", |
201 "mouse_cursor.cc", | 217 "mouse_cursor.cc", |
202 "mouse_cursor.h", | 218 "mouse_cursor.h", |
203 "mouse_cursor_monitor.h", | 219 "mouse_cursor_monitor.h", |
204 "mouse_cursor_monitor_mac.mm", | |
205 "mouse_cursor_monitor_win.cc", | 220 "mouse_cursor_monitor_win.cc", |
206 "resolution_change_detector.cc", | 221 "resolution_change_detector.cc", |
207 "resolution_change_detector.h", | 222 "resolution_change_detector.h", |
208 "rgba_color.cc", | 223 "rgba_color.cc", |
209 "rgba_color.h", | 224 "rgba_color.h", |
210 "screen_capture_frame_queue.h", | 225 "screen_capture_frame_queue.h", |
211 "screen_capturer_helper.cc", | 226 "screen_capturer_helper.cc", |
212 "screen_capturer_helper.h", | 227 "screen_capturer_helper.h", |
213 "screen_capturer_mac.mm", | |
214 "screen_capturer_win.cc", | 228 "screen_capturer_win.cc", |
215 "win/cursor.cc", | 229 "win/cursor.cc", |
216 "win/cursor.h", | 230 "win/cursor.h", |
217 "win/d3d_device.cc", | 231 "win/d3d_device.cc", |
218 "win/d3d_device.h", | 232 "win/d3d_device.h", |
219 "win/desktop.cc", | 233 "win/desktop.cc", |
220 "win/desktop.h", | 234 "win/desktop.h", |
221 "win/display_configuration_monitor.cc", | 235 "win/display_configuration_monitor.cc", |
222 "win/display_configuration_monitor.h", | 236 "win/display_configuration_monitor.h", |
223 "win/dxgi_adapter_duplicator.cc", | 237 "win/dxgi_adapter_duplicator.cc", |
(...skipping 18 matching lines...) Expand all Loading... | |
242 "win/screen_capture_utils.cc", | 256 "win/screen_capture_utils.cc", |
243 "win/screen_capture_utils.h", | 257 "win/screen_capture_utils.h", |
244 "win/screen_capturer_win_directx.cc", | 258 "win/screen_capturer_win_directx.cc", |
245 "win/screen_capturer_win_directx.h", | 259 "win/screen_capturer_win_directx.h", |
246 "win/screen_capturer_win_gdi.cc", | 260 "win/screen_capturer_win_gdi.cc", |
247 "win/screen_capturer_win_gdi.h", | 261 "win/screen_capturer_win_gdi.h", |
248 "win/screen_capturer_win_magnifier.cc", | 262 "win/screen_capturer_win_magnifier.cc", |
249 "win/screen_capturer_win_magnifier.h", | 263 "win/screen_capturer_win_magnifier.h", |
250 "win/window_capture_utils.cc", | 264 "win/window_capture_utils.cc", |
251 "win/window_capture_utils.h", | 265 "win/window_capture_utils.h", |
252 "window_capturer_mac.mm", | |
253 "window_capturer_win.cc", | 266 "window_capturer_win.cc", |
254 ] | 267 ] |
255 | 268 |
256 if (use_x11) { | 269 if (use_x11) { |
257 sources += [ | 270 sources += [ |
258 "mouse_cursor_monitor_x11.cc", | 271 "mouse_cursor_monitor_x11.cc", |
259 "screen_capturer_x11.cc", | 272 "screen_capturer_x11.cc", |
260 "window_capturer_x11.cc", | 273 "window_capturer_x11.cc", |
261 "x11/shared_x_display.cc", | 274 "x11/shared_x_display.cc", |
262 "x11/shared_x_display.h", | 275 "x11/shared_x_display.h", |
263 "x11/x_error_trap.cc", | 276 "x11/x_error_trap.cc", |
264 "x11/x_error_trap.h", | 277 "x11/x_error_trap.h", |
265 "x11/x_server_pixel_buffer.cc", | 278 "x11/x_server_pixel_buffer.cc", |
266 "x11/x_server_pixel_buffer.h", | 279 "x11/x_server_pixel_buffer.h", |
267 ] | 280 ] |
268 configs += [ "//build/config/linux:x11" ] | 281 configs += [ "//build/config/linux:x11" ] |
269 } | 282 } |
270 | 283 |
271 if (!is_win && !is_mac && !use_x11) { | 284 if (!is_win && !is_mac && !use_x11) { |
272 sources += [ | 285 sources += [ |
273 "mouse_cursor_monitor_null.cc", | 286 "mouse_cursor_monitor_null.cc", |
274 "screen_capturer_null.cc", | 287 "screen_capturer_null.cc", |
275 "window_capturer_null.cc", | 288 "window_capturer_null.cc", |
276 ] | 289 ] |
277 } | 290 } |
278 | 291 |
279 if (is_mac) { | |
280 libs = [ | |
281 "AppKit.framework", | |
282 "IOKit.framework", | |
283 "OpenGL.framework", | |
284 ] | |
285 } | |
286 | |
287 if (is_win) { | 292 if (is_win) { |
288 libs = [ | 293 libs = [ |
289 "d3d11.lib", | 294 "d3d11.lib", |
290 "dxgi.lib", | 295 "dxgi.lib", |
291 ] | 296 ] |
292 } | 297 } |
293 | 298 |
294 deps = [ | 299 deps = [ |
295 ":primitives", | 300 ":primitives", |
296 "../..:webrtc_common", | 301 "../..:webrtc_common", |
297 "../../rtc_base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3 806. | 302 "../../rtc_base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3 806. |
298 "../../system_wrappers", | 303 "../../system_wrappers", |
299 "//third_party/libyuv", | 304 "//third_party/libyuv", |
300 ] | 305 ] |
301 | 306 |
307 if (is_mac) { | |
308 deps += [ ":objc_desktop_capture" ] | |
309 libs = [ | |
Sergey Ulanov
2017/08/14 17:53:18
maybe move this to objc_desktop_capture?
mbonadei
2017/08/15 14:55:39
Done.
| |
310 "AppKit.framework", | |
311 "IOKit.framework", | |
312 "OpenGL.framework", | |
313 ] | |
314 } | |
315 | |
302 if (use_desktop_capture_differ_sse2) { | 316 if (use_desktop_capture_differ_sse2) { |
303 deps += [ ":desktop_capture_differ_sse2" ] | 317 deps += [ ":desktop_capture_differ_sse2" ] |
304 } | 318 } |
305 } | 319 } |
306 | 320 |
307 if (use_desktop_capture_differ_sse2) { | 321 if (use_desktop_capture_differ_sse2) { |
308 # Have to be compiled as a separate target because it needs to be compiled | 322 # Have to be compiled as a separate target because it needs to be compiled |
309 # with SSE2 enabled. | 323 # with SSE2 enabled. |
310 rtc_static_library("desktop_capture_differ_sse2") { | 324 rtc_static_library("desktop_capture_differ_sse2") { |
311 visibility = [ ":*" ] | 325 visibility = [ ":*" ] |
312 sources = [ | 326 sources = [ |
313 "differ_vector_sse2.cc", | 327 "differ_vector_sse2.cc", |
314 "differ_vector_sse2.h", | 328 "differ_vector_sse2.h", |
315 ] | 329 ] |
316 | 330 |
317 if (is_posix) { | 331 if (is_posix) { |
318 cflags = [ "-msse2" ] | 332 cflags = [ "-msse2" ] |
319 } | 333 } |
320 } | 334 } |
321 } | 335 } |
OLD | NEW |