Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Side by Side Diff: webrtc/modules/desktop_capture/BUILD.gn

Issue 2828793003: GN: Tighten up test target visibility + refactorings (Closed)
Patch Set: Move out fec_test_helper from rtc_include_tests Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/congestion_controller/BUILD.gn ('k') | webrtc/modules/media_file/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 17 matching lines...) Expand all
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_modules_tests") { 36 rtc_source_set("desktop_capture_modules_tests") {
37 testonly = true 37 testonly = true
38
39 # Skip restricting visibility on mobile platforms since the tests on those
40 # gets additional generated targets which would require many lines here to
41 # cover (which would be confusing to read and hard to maintain).
42 if (!is_android && !is_ios) {
43 visibility = [ "//webrtc/modules:modules_tests" ]
44 }
38 sources = [] 45 sources = []
39 deps = [] 46 deps = []
40 if (rtc_desktop_capture_supported) { 47 if (rtc_desktop_capture_supported) {
41 deps += [ 48 deps += [
42 ":desktop_capture_mock", 49 ":desktop_capture_mock",
43 ":primitives", 50 ":primitives",
44 ":screen_drawer", 51 ":screen_drawer",
45 "../../base:rtc_base", 52 "../../base:rtc_base",
46 "../../base:rtc_base_approved", 53 "../../base:rtc_base_approved",
47 "../../system_wrappers", 54 "../../system_wrappers",
48 "../../test:test_support", 55 "../../test:test_support",
49 "../../test:video_test_support", 56 "../../test:video_test_support",
50 ] 57 ]
51 sources += [ 58 sources += [
52 "screen_capturer_integration_test.cc", 59 "screen_capturer_integration_test.cc",
53 "screen_drawer_unittest.cc", 60 "screen_drawer_unittest.cc",
54 ] 61 ]
55 } 62 }
56 } 63 }
57 64
58 rtc_source_set("desktop_capture_unittests") { 65 rtc_source_set("desktop_capture_unittests") {
59 testonly = true 66 testonly = true
67
68 # Skip restricting visibility on mobile platforms since the tests on those
69 # gets additional generated targets which would require many lines here to
70 # cover (which would be confusing to read and hard to maintain).
71 if (!is_android && !is_ios) {
72 visibility = [ "//webrtc/modules:modules_unittests" ]
73 }
60 sources = [ 74 sources = [
61 "blank_detector_desktop_capturer_wrapper_unittest.cc", 75 "blank_detector_desktop_capturer_wrapper_unittest.cc",
62 "desktop_and_cursor_composer_unittest.cc", 76 "desktop_and_cursor_composer_unittest.cc",
63 "desktop_capturer_differ_wrapper_unittest.cc", 77 "desktop_capturer_differ_wrapper_unittest.cc",
64 "desktop_frame_rotation_unittest.cc", 78 "desktop_frame_rotation_unittest.cc",
65 "desktop_region_unittest.cc", 79 "desktop_region_unittest.cc",
66 "differ_block_unittest.cc", 80 "differ_block_unittest.cc",
67 "fallback_desktop_capturer_wrapper_unittest.cc", 81 "fallback_desktop_capturer_wrapper_unittest.cc",
68 "mouse_cursor_monitor_unittest.cc", 82 "mouse_cursor_monitor_unittest.cc",
69 "rgba_color_unittest.cc", 83 "rgba_color_unittest.cc",
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 sources = [ 307 sources = [
294 "differ_vector_sse2.cc", 308 "differ_vector_sse2.cc",
295 "differ_vector_sse2.h", 309 "differ_vector_sse2.h",
296 ] 310 ]
297 311
298 if (is_posix) { 312 if (is_posix) {
299 cflags = [ "-msse2" ] 313 cflags = [ "-msse2" ]
300 } 314 }
301 } 315 }
302 } 316 }
OLDNEW
« no previous file with comments | « webrtc/modules/congestion_controller/BUILD.gn ('k') | webrtc/modules/media_file/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698