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