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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 sources += [ | 51 sources += [ |
52 "screen_capturer_integration_test.cc", | 52 "screen_capturer_integration_test.cc", |
53 "screen_drawer_unittest.cc", | 53 "screen_drawer_unittest.cc", |
54 ] | 54 ] |
55 } | 55 } |
56 } | 56 } |
57 | 57 |
58 rtc_source_set("desktop_capture_unittests") { | 58 rtc_source_set("desktop_capture_unittests") { |
59 testonly = true | 59 testonly = true |
60 sources = [ | 60 sources = [ |
61 "blank_detector_desktop_capturer_wrapper_unittest.cc", | |
62 "desktop_and_cursor_composer_unittest.cc", | 61 "desktop_and_cursor_composer_unittest.cc", |
63 "desktop_capturer_differ_wrapper_unittest.cc", | 62 "desktop_capturer_differ_wrapper_unittest.cc", |
64 "desktop_frame_rotation_unittest.cc", | 63 "desktop_frame_rotation_unittest.cc", |
65 "desktop_region_unittest.cc", | 64 "desktop_region_unittest.cc", |
66 "differ_block_unittest.cc", | 65 "differ_block_unittest.cc", |
67 "fallback_desktop_capturer_wrapper_unittest.cc", | 66 "fallback_desktop_capturer_wrapper_unittest.cc", |
68 "mouse_cursor_monitor_unittest.cc", | 67 "mouse_cursor_monitor_unittest.cc", |
69 "rgba_color_unittest.cc", | 68 "rgba_color_unittest.cc", |
70 "test_utils.cc", | 69 "test_utils.cc", |
71 "test_utils.h", | 70 "test_utils.h", |
72 "test_utils_unittest.cc", | 71 "test_utils_unittest.cc", |
73 "win/cursor_unittest.cc", | 72 "win/cursor_unittest.cc", |
74 "win/cursor_unittest_resources.h", | 73 "win/cursor_unittest_resources.h", |
75 "win/cursor_unittest_resources.rc", | 74 "win/cursor_unittest_resources.rc", |
76 ] | 75 ] |
77 deps = [ | 76 deps = [ |
78 ":desktop_capture", | 77 ":desktop_capture", |
79 ":desktop_capture_mock", | 78 ":desktop_capture_mock", |
80 ":primitives", | 79 ":primitives", |
| 80 ":rgba_color", |
81 "../..:webrtc_common", | 81 "../..:webrtc_common", |
82 "../../base:rtc_base_approved", | 82 "../../base:rtc_base_approved", |
83 "../../system_wrappers:system_wrappers", | 83 "../../system_wrappers:system_wrappers", |
84 "../../test:test_support", | 84 "../../test:test_support", |
85 "//testing/gmock", | 85 "//testing/gmock", |
86 ] | 86 ] |
87 if (rtc_desktop_capture_supported) { | 87 if (rtc_desktop_capture_supported) { |
88 sources += [ | 88 sources += [ |
89 "screen_capturer_helper_unittest.cc", | 89 "screen_capturer_helper_unittest.cc", |
90 "screen_capturer_mac_unittest.cc", | 90 "screen_capturer_mac_unittest.cc", |
91 "screen_capturer_unittest.cc", | 91 "screen_capturer_unittest.cc", |
92 "window_capturer_unittest.cc", | 92 "window_capturer_unittest.cc", |
93 ] | 93 ] |
94 deps += [ ":desktop_capture_mock" ] | 94 deps += [ ":desktop_capture_mock" ] |
95 } | 95 } |
96 if (!build_with_chromium && is_clang) { | 96 if (!build_with_chromium && is_clang) { |
97 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 97 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
98 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 98 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
99 } | 99 } |
100 } | 100 } |
101 | 101 |
102 source_set("screen_drawer") { | 102 source_set("rgba_color") { |
103 testonly = true | 103 testonly = true |
104 | 104 |
105 public_deps = [ | 105 public_deps = [ |
106 ":desktop_capture", | 106 ":desktop_capture", |
107 ] | 107 ] |
108 | 108 |
109 sources = [ | 109 sources = [ |
| 110 "rgba_color.cc", |
| 111 "rgba_color.h", |
| 112 ] |
| 113 |
| 114 deps = [ |
| 115 ":primitives", |
| 116 "../..:webrtc_common", |
| 117 ] |
| 118 } |
| 119 |
| 120 source_set("screen_drawer") { |
| 121 testonly = true |
| 122 |
| 123 public_deps = [ |
| 124 ":rgba_color", |
| 125 ] |
| 126 |
| 127 sources = [ |
110 "screen_drawer.cc", | 128 "screen_drawer.cc", |
111 "screen_drawer.h", | 129 "screen_drawer.h", |
112 "screen_drawer_linux.cc", | 130 "screen_drawer_linux.cc", |
113 "screen_drawer_mac.cc", | 131 "screen_drawer_mac.cc", |
114 "screen_drawer_win.cc", | 132 "screen_drawer_win.cc", |
115 ] | 133 ] |
116 | 134 |
117 deps = [ | 135 deps = [ |
118 ":primitives", | 136 ":primitives", |
119 "../../base:rtc_base_approved", | 137 "../../base:rtc_base_approved", |
120 "../../system_wrappers", | 138 "../../system_wrappers", |
121 ] | 139 ] |
122 } | 140 } |
123 | 141 |
124 source_set("desktop_capture_mock") { | 142 source_set("desktop_capture_mock") { |
125 testonly = true | 143 testonly = true |
126 | 144 |
127 public_deps = [ | 145 public_deps = [ |
128 ":desktop_capture", | 146 ":desktop_capture", |
| 147 ":rgba_color", |
129 "//testing/gmock", | 148 "//testing/gmock", |
130 ] | 149 ] |
131 | 150 |
132 sources = [ | 151 sources = [ |
133 "desktop_frame_generator.cc", | 152 "desktop_frame_generator.cc", |
134 "desktop_frame_generator.h", | 153 "desktop_frame_generator.h", |
135 "fake_desktop_capturer.cc", | 154 "fake_desktop_capturer.cc", |
136 "fake_desktop_capturer.h", | 155 "fake_desktop_capturer.h", |
137 "mock_desktop_capturer_callback.cc", | 156 "mock_desktop_capturer_callback.cc", |
138 "mock_desktop_capturer_callback.h", | 157 "mock_desktop_capturer_callback.h", |
139 ] | 158 ] |
140 | 159 |
141 deps = [ | 160 deps = [ |
142 ":primitives", | 161 ":primitives", |
143 "../../base:rtc_base_approved", | 162 "../../base:rtc_base_approved", |
144 "../../test:test_support", | 163 "../../test:test_support", |
145 ] | 164 ] |
146 } | 165 } |
147 } | 166 } |
148 | 167 |
149 rtc_static_library("desktop_capture") { | 168 rtc_static_library("desktop_capture") { |
150 sources = [ | 169 sources = [ |
151 "blank_detector_desktop_capturer_wrapper.cc", | |
152 "blank_detector_desktop_capturer_wrapper.h", | |
153 "cropped_desktop_frame.cc", | 170 "cropped_desktop_frame.cc", |
154 "cropped_desktop_frame.h", | 171 "cropped_desktop_frame.h", |
155 "cropping_window_capturer.cc", | 172 "cropping_window_capturer.cc", |
156 "cropping_window_capturer.h", | 173 "cropping_window_capturer.h", |
157 "cropping_window_capturer_win.cc", | 174 "cropping_window_capturer_win.cc", |
158 "desktop_and_cursor_composer.cc", | 175 "desktop_and_cursor_composer.cc", |
159 "desktop_and_cursor_composer.h", | 176 "desktop_and_cursor_composer.h", |
160 "desktop_capture_options.cc", | 177 "desktop_capture_options.cc", |
161 "desktop_capture_options.h", | 178 "desktop_capture_options.h", |
162 "desktop_capturer.cc", | 179 "desktop_capturer.cc", |
(...skipping 18 matching lines...) Expand all Loading... |
181 "mac/scoped_pixel_buffer_object.h", | 198 "mac/scoped_pixel_buffer_object.h", |
182 "mac/window_list_utils.cc", | 199 "mac/window_list_utils.cc", |
183 "mac/window_list_utils.h", | 200 "mac/window_list_utils.h", |
184 "mouse_cursor.cc", | 201 "mouse_cursor.cc", |
185 "mouse_cursor.h", | 202 "mouse_cursor.h", |
186 "mouse_cursor_monitor.h", | 203 "mouse_cursor_monitor.h", |
187 "mouse_cursor_monitor_mac.mm", | 204 "mouse_cursor_monitor_mac.mm", |
188 "mouse_cursor_monitor_win.cc", | 205 "mouse_cursor_monitor_win.cc", |
189 "resolution_change_detector.cc", | 206 "resolution_change_detector.cc", |
190 "resolution_change_detector.h", | 207 "resolution_change_detector.h", |
191 "rgba_color.cc", | |
192 "rgba_color.h", | |
193 "screen_capture_frame_queue.h", | 208 "screen_capture_frame_queue.h", |
194 "screen_capturer_helper.cc", | 209 "screen_capturer_helper.cc", |
195 "screen_capturer_helper.h", | 210 "screen_capturer_helper.h", |
196 "screen_capturer_mac.mm", | 211 "screen_capturer_mac.mm", |
197 "screen_capturer_win.cc", | 212 "screen_capturer_win.cc", |
198 "win/cursor.cc", | 213 "win/cursor.cc", |
199 "win/cursor.h", | 214 "win/cursor.h", |
200 "win/d3d_device.cc", | 215 "win/d3d_device.cc", |
201 "win/d3d_device.h", | 216 "win/d3d_device.h", |
202 "win/desktop.cc", | 217 "win/desktop.cc", |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 sources = [ | 304 sources = [ |
290 "differ_vector_sse2.cc", | 305 "differ_vector_sse2.cc", |
291 "differ_vector_sse2.h", | 306 "differ_vector_sse2.h", |
292 ] | 307 ] |
293 | 308 |
294 if (is_posix) { | 309 if (is_posix) { |
295 cflags = [ "-msse2" ] | 310 cflags = [ "-msse2" ] |
296 } | 311 } |
297 } | 312 } |
298 } | 313 } |
OLD | NEW |