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