| 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("../../build/webrtc.gni") | 10 import("../../build/webrtc.gni") |
| 11 | 11 |
| 12 use_desktop_capture_differ_sse2 = current_cpu == "x86" || current_cpu == "x64" | 12 use_desktop_capture_differ_sse2 = current_cpu == "x86" || current_cpu == "x64" |
| 13 | 13 |
| 14 rtc_static_library("primitives") { | 14 rtc_static_library("primitives") { |
| 15 sources = [ | 15 sources = [ |
| 16 "desktop_capture_types.h", | 16 "desktop_capture_types.h", |
| 17 "desktop_frame.cc", | 17 "desktop_frame.cc", |
| 18 "desktop_frame.h", | 18 "desktop_frame.h", |
| 19 "desktop_geometry.cc", | 19 "desktop_geometry.cc", |
| 20 "desktop_geometry.h", | 20 "desktop_geometry.h", |
| 21 "desktop_region.cc", | 21 "desktop_region.cc", |
| 22 "desktop_region.h", | 22 "desktop_region.h", |
| 23 "shared_desktop_frame.cc", | 23 "shared_desktop_frame.cc", |
| 24 "shared_desktop_frame.h", | 24 "shared_desktop_frame.h", |
| 25 "shared_memory.cc", | |
| 26 "shared_memory.h", | |
| 27 ] | 25 ] |
| 28 | 26 |
| 29 deps = [ | 27 deps = [ |
| 30 "../..:webrtc_common", | |
| 31 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. | 28 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. |
| 32 "../../system_wrappers:system_wrappers", | |
| 33 ] | 29 ] |
| 34 } | 30 } |
| 35 | 31 |
| 36 if (rtc_include_tests) { | 32 if (rtc_include_tests) { |
| 37 source_set("rgba_color") { | 33 source_set("rgba_color") { |
| 38 testonly = true | 34 testonly = true |
| 39 | 35 |
| 40 public_deps = [ | 36 public_deps = [ |
| 41 ":desktop_capture", | 37 ":desktop_capture", |
| 42 ] | 38 ] |
| 43 | 39 |
| 44 sources = [ | 40 sources = [ |
| 45 "rgba_color.cc", | 41 "rgba_color.cc", |
| 46 "rgba_color.h", | 42 "rgba_color.h", |
| 47 ] | 43 ] |
| 48 deps = [ | |
| 49 ":primitives", | |
| 50 "../..:webrtc_common", | |
| 51 ] | |
| 52 } | 44 } |
| 53 | 45 |
| 54 source_set("screen_drawer") { | 46 source_set("screen_drawer") { |
| 55 testonly = true | 47 testonly = true |
| 56 | 48 |
| 57 public_deps = [ | 49 public_deps = [ |
| 58 ":rgba_color", | 50 ":rgba_color", |
| 59 ] | 51 ] |
| 60 | 52 |
| 61 sources = [ | 53 sources = [ |
| 62 "screen_drawer.cc", | 54 "screen_drawer.cc", |
| 63 "screen_drawer.h", | 55 "screen_drawer.h", |
| 64 "screen_drawer_linux.cc", | 56 "screen_drawer_linux.cc", |
| 65 "screen_drawer_mac.cc", | 57 "screen_drawer_mac.cc", |
| 66 "screen_drawer_win.cc", | 58 "screen_drawer_win.cc", |
| 67 ] | 59 ] |
| 68 deps = [ | |
| 69 ":primitives", | |
| 70 "../../base:rtc_base_approved", | |
| 71 "../../system_wrappers:system_wrappers", | |
| 72 ] | |
| 73 } | 60 } |
| 74 | 61 |
| 75 source_set("desktop_capture_mock") { | 62 source_set("desktop_capture_mock") { |
| 76 testonly = true | 63 testonly = true |
| 77 | 64 |
| 78 public_deps = [ | 65 public_deps = [ |
| 79 ":desktop_capture", | 66 ":desktop_capture", |
| 80 ":rgba_color", | 67 ":rgba_color", |
| 81 "//testing/gmock", | 68 "//testing/gmock", |
| 82 ] | 69 ] |
| 83 | 70 |
| 84 sources = [ | 71 sources = [ |
| 85 "desktop_frame_generator.cc", | 72 "desktop_frame_generator.cc", |
| 86 "desktop_frame_generator.h", | 73 "desktop_frame_generator.h", |
| 87 "fake_desktop_capturer.cc", | 74 "fake_desktop_capturer.cc", |
| 88 "fake_desktop_capturer.h", | 75 "fake_desktop_capturer.h", |
| 89 "mock_desktop_capturer_callback.cc", | 76 "mock_desktop_capturer_callback.cc", |
| 90 "mock_desktop_capturer_callback.h", | 77 "mock_desktop_capturer_callback.h", |
| 91 ] | 78 "screen_capturer_mock_objects.h", |
| 92 deps = [ | |
| 93 ":primitives", | |
| 94 "../../base:rtc_base_approved", | |
| 95 "../../test:test_support", | |
| 96 ] | 79 ] |
| 97 } | 80 } |
| 98 } | 81 } |
| 99 | 82 |
| 100 rtc_static_library("desktop_capture") { | 83 rtc_static_library("desktop_capture") { |
| 101 sources = [ | 84 sources = [ |
| 102 "cropped_desktop_frame.cc", | 85 "cropped_desktop_frame.cc", |
| 103 "cropped_desktop_frame.h", | 86 "cropped_desktop_frame.h", |
| 104 "cropping_window_capturer.cc", | 87 "cropping_window_capturer.cc", |
| 105 "cropping_window_capturer.h", | 88 "cropping_window_capturer.h", |
| (...skipping 25 matching lines...) Expand all Loading... |
| 131 "mouse_cursor.cc", | 114 "mouse_cursor.cc", |
| 132 "mouse_cursor.h", | 115 "mouse_cursor.h", |
| 133 "mouse_cursor_monitor.h", | 116 "mouse_cursor_monitor.h", |
| 134 "mouse_cursor_monitor_mac.mm", | 117 "mouse_cursor_monitor_mac.mm", |
| 135 "mouse_cursor_monitor_win.cc", | 118 "mouse_cursor_monitor_win.cc", |
| 136 "screen_capture_frame_queue.h", | 119 "screen_capture_frame_queue.h", |
| 137 "screen_capturer_helper.cc", | 120 "screen_capturer_helper.cc", |
| 138 "screen_capturer_helper.h", | 121 "screen_capturer_helper.h", |
| 139 "screen_capturer_mac.mm", | 122 "screen_capturer_mac.mm", |
| 140 "screen_capturer_win.cc", | 123 "screen_capturer_win.cc", |
| 124 "shared_memory.cc", |
| 125 "shared_memory.h", |
| 141 "win/cursor.cc", | 126 "win/cursor.cc", |
| 142 "win/cursor.h", | 127 "win/cursor.h", |
| 143 "win/d3d_device.cc", | 128 "win/d3d_device.cc", |
| 144 "win/d3d_device.h", | 129 "win/d3d_device.h", |
| 145 "win/desktop.cc", | 130 "win/desktop.cc", |
| 146 "win/desktop.h", | 131 "win/desktop.h", |
| 147 "win/dxgi_adapter_duplicator.cc", | 132 "win/dxgi_adapter_duplicator.cc", |
| 148 "win/dxgi_adapter_duplicator.h", | 133 "win/dxgi_adapter_duplicator.h", |
| 149 "win/dxgi_duplicator_controller.cc", | 134 "win/dxgi_duplicator_controller.cc", |
| 150 "win/dxgi_duplicator_controller.h", | 135 "win/dxgi_duplicator_controller.h", |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 191 |
| 207 if (is_win) { | 192 if (is_win) { |
| 208 libs = [ | 193 libs = [ |
| 209 "d3d11.lib", | 194 "d3d11.lib", |
| 210 "dxgi.lib", | 195 "dxgi.lib", |
| 211 ] | 196 ] |
| 212 } | 197 } |
| 213 | 198 |
| 214 deps = [ | 199 deps = [ |
| 215 ":primitives", | 200 ":primitives", |
| 216 "../..:webrtc_common", | |
| 217 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. | 201 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. |
| 218 "../../system_wrappers", | 202 "../../system_wrappers", |
| 219 "//third_party/libyuv", | 203 "//third_party/libyuv", |
| 220 ] | 204 ] |
| 221 | 205 |
| 222 if (use_desktop_capture_differ_sse2) { | 206 if (use_desktop_capture_differ_sse2) { |
| 223 deps += [ ":desktop_capture_differ_sse2" ] | 207 deps += [ ":desktop_capture_differ_sse2" ] |
| 224 } | 208 } |
| 225 } | 209 } |
| 226 | 210 |
| 227 if (use_desktop_capture_differ_sse2) { | 211 if (use_desktop_capture_differ_sse2) { |
| 228 # Have to be compiled as a separate target because it needs to be compiled | 212 # Have to be compiled as a separate target because it needs to be compiled |
| 229 # with SSE2 enabled. | 213 # with SSE2 enabled. |
| 230 rtc_static_library("desktop_capture_differ_sse2") { | 214 rtc_static_library("desktop_capture_differ_sse2") { |
| 231 visibility = [ ":*" ] | 215 visibility = [ ":*" ] |
| 232 sources = [ | 216 sources = [ |
| 233 "differ_vector_sse2.cc", | 217 "differ_vector_sse2.cc", |
| 234 "differ_vector_sse2.h", | 218 "differ_vector_sse2.h", |
| 235 ] | 219 ] |
| 236 | 220 |
| 237 if (is_posix) { | 221 if (is_posix) { |
| 238 cflags = [ "-msse2" ] | 222 cflags = [ "-msse2" ] |
| 239 } | 223 } |
| 240 } | 224 } |
| 241 } | 225 } |
| OLD | NEW |