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") |
(...skipping 15 matching lines...) Expand all Loading... |
26 "shared_memory.h", | 26 "shared_memory.h", |
27 ] | 27 ] |
28 | 28 |
29 deps = [ | 29 deps = [ |
30 "../..:webrtc_common", | 30 "../..:webrtc_common", |
31 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. | 31 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. |
32 ] | 32 ] |
33 } | 33 } |
34 | 34 |
35 if (rtc_include_tests) { | 35 if (rtc_include_tests) { |
| 36 rtc_source_set("desktop_capture_unittests") { |
| 37 testonly = true |
| 38 sources = [] |
| 39 deps = [] |
| 40 if (rtc_desktop_capture_supported || is_android) { |
| 41 deps += [ |
| 42 ":desktop_capture", |
| 43 ":primitives", |
| 44 "../..:webrtc_common", |
| 45 "../../base:rtc_base_approved", |
| 46 "../../system_wrappers:system_wrappers", |
| 47 "../../test:test_support", |
| 48 "//testing/gmock", |
| 49 ] |
| 50 sources += [ |
| 51 "desktop_region_unittest.cc", |
| 52 "differ_block_unittest.cc", |
| 53 ] |
| 54 } |
| 55 if (rtc_desktop_capture_supported) { |
| 56 sources += [ |
| 57 "desktop_and_cursor_composer_unittest.cc", |
| 58 "desktop_capturer_differ_wrapper_unittest.cc", |
| 59 "desktop_frame_rotation_unittest.cc", |
| 60 "mouse_cursor_monitor_unittest.cc", |
| 61 "rgba_color_unittest.cc", |
| 62 "screen_capturer_helper_unittest.cc", |
| 63 "screen_capturer_mac_unittest.cc", |
| 64 "screen_capturer_unittest.cc", |
| 65 "test_utils.cc", |
| 66 "test_utils.h", |
| 67 "test_utils_unittest.cc", |
| 68 "win/cursor_unittest.cc", |
| 69 "win/cursor_unittest_resources.h", |
| 70 "win/cursor_unittest_resources.rc", |
| 71 "window_capturer_unittest.cc", |
| 72 ] |
| 73 deps += [ ":desktop_capture_mock" ] |
| 74 } |
| 75 if (!build_with_chromium && is_clang) { |
| 76 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 77 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 78 } |
| 79 } |
| 80 |
36 source_set("rgba_color") { | 81 source_set("rgba_color") { |
37 testonly = true | 82 testonly = true |
38 | 83 |
39 public_deps = [ | 84 public_deps = [ |
40 ":desktop_capture", | 85 ":desktop_capture", |
41 ] | 86 ] |
42 | 87 |
43 sources = [ | 88 sources = [ |
44 "rgba_color.cc", | 89 "rgba_color.cc", |
45 "rgba_color.h", | 90 "rgba_color.h", |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 sources = [ | 279 sources = [ |
235 "differ_vector_sse2.cc", | 280 "differ_vector_sse2.cc", |
236 "differ_vector_sse2.h", | 281 "differ_vector_sse2.h", |
237 ] | 282 ] |
238 | 283 |
239 if (is_posix) { | 284 if (is_posix) { |
240 cflags = [ "-msse2" ] | 285 cflags = [ "-msse2" ] |
241 } | 286 } |
242 } | 287 } |
243 } | 288 } |
OLD | NEW |