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

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

Issue 2828793003: GN: Tighten up test target visibility + refactorings (Closed)
Patch Set: Disable Win compile warning Created 3 years, 8 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
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 if (!is_android && !is_ios) { # Generated targets makes this check break.
39 visibility = [ "//webrtc/modules:modules_tests" ]
40 }
38 sources = [] 41 sources = []
39 deps = [] 42 deps = []
40 if (rtc_desktop_capture_supported) { 43 if (rtc_desktop_capture_supported) {
41 deps += [ 44 deps += [
42 ":desktop_capture_mock", 45 ":desktop_capture_mock",
43 ":primitives", 46 ":primitives",
44 ":screen_drawer", 47 ":screen_drawer",
45 "../../base:rtc_base", 48 "../../base:rtc_base",
46 "../../base:rtc_base_approved", 49 "../../base:rtc_base_approved",
47 "../../system_wrappers", 50 "../../system_wrappers",
48 "../../test:test_support", 51 "../../test:test_support",
49 "../../test:video_test_support", 52 "../../test:video_test_support",
50 ] 53 ]
51 sources += [ 54 sources += [
52 "screen_capturer_integration_test.cc", 55 "screen_capturer_integration_test.cc",
53 "screen_drawer_unittest.cc", 56 "screen_drawer_unittest.cc",
54 ] 57 ]
55 } 58 }
56 } 59 }
57 60
58 rtc_source_set("desktop_capture_unittests") { 61 rtc_source_set("desktop_capture_unittests") {
59 testonly = true 62 testonly = true
63 if (!is_android && !is_ios) { # Generated targets makes this check break.
64 visibility = [ "//webrtc/modules:modules_unittests" ]
65 }
60 sources = [ 66 sources = [
61 "blank_detector_desktop_capturer_wrapper_unittest.cc", 67 "blank_detector_desktop_capturer_wrapper_unittest.cc",
62 "desktop_and_cursor_composer_unittest.cc", 68 "desktop_and_cursor_composer_unittest.cc",
63 "desktop_capturer_differ_wrapper_unittest.cc", 69 "desktop_capturer_differ_wrapper_unittest.cc",
64 "desktop_frame_rotation_unittest.cc", 70 "desktop_frame_rotation_unittest.cc",
65 "desktop_region_unittest.cc", 71 "desktop_region_unittest.cc",
66 "differ_block_unittest.cc", 72 "differ_block_unittest.cc",
67 "fallback_desktop_capturer_wrapper_unittest.cc", 73 "fallback_desktop_capturer_wrapper_unittest.cc",
68 "mouse_cursor_monitor_unittest.cc", 74 "mouse_cursor_monitor_unittest.cc",
69 "rgba_color_unittest.cc", 75 "rgba_color_unittest.cc",
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 sources = [ 295 sources = [
290 "differ_vector_sse2.cc", 296 "differ_vector_sse2.cc",
291 "differ_vector_sse2.h", 297 "differ_vector_sse2.h",
292 ] 298 ]
293 299
294 if (is_posix) { 300 if (is_posix) {
295 cflags = [ "-msse2" ] 301 cflags = [ "-msse2" ]
296 } 302 }
297 } 303 }
298 } 304 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698