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

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

Issue 2976293002: Remove remains of webrtc/base (Closed)
Patch Set: Add README.md Created 3 years, 5 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 10 matching lines...) Expand all
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", 25 "shared_memory.cc",
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 "../../rtc_base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3 806.
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 38
39 # Skip restricting visibility on mobile platforms since the tests on those 39 # Skip restricting visibility on mobile platforms since the tests on those
40 # gets additional generated targets which would require many lines here to 40 # gets additional generated targets which would require many lines here to
41 # cover (which would be confusing to read and hard to maintain). 41 # cover (which would be confusing to read and hard to maintain).
42 if (!is_android && !is_ios) { 42 if (!is_android && !is_ios) {
43 visibility = [ "..:modules_tests" ] 43 visibility = [ "..:modules_tests" ]
44 } 44 }
45 sources = [] 45 sources = []
46 deps = [] 46 deps = []
47 if (rtc_desktop_capture_supported) { 47 if (rtc_desktop_capture_supported) {
48 deps += [ 48 deps += [
49 ":desktop_capture_mock", 49 ":desktop_capture_mock",
50 ":primitives", 50 ":primitives",
51 ":screen_drawer", 51 ":screen_drawer",
52 "../../base:rtc_base", 52 "../../rtc_base:rtc_base",
53 "../../base:rtc_base_approved", 53 "../../rtc_base:rtc_base_approved",
54 "../../system_wrappers", 54 "../../system_wrappers",
55 "../../test:test_support", 55 "../../test:test_support",
56 "../../test:video_test_support", 56 "../../test:video_test_support",
57 ] 57 ]
58 sources += [ 58 sources += [
59 "screen_capturer_integration_test.cc", 59 "screen_capturer_integration_test.cc",
60 "screen_drawer_unittest.cc", 60 "screen_drawer_unittest.cc",
61 ] 61 ]
62 } 62 }
63 } 63 }
(...skipping 25 matching lines...) Expand all
89 "win/cursor_unittest_resources.h", 89 "win/cursor_unittest_resources.h",
90 "win/cursor_unittest_resources.rc", 90 "win/cursor_unittest_resources.rc",
91 "win/screen_capture_utils_unittest.cc", 91 "win/screen_capture_utils_unittest.cc",
92 "win/screen_capturer_win_directx_unittest.cc", 92 "win/screen_capturer_win_directx_unittest.cc",
93 ] 93 ]
94 deps = [ 94 deps = [
95 ":desktop_capture", 95 ":desktop_capture",
96 ":desktop_capture_mock", 96 ":desktop_capture_mock",
97 ":primitives", 97 ":primitives",
98 "../..:webrtc_common", 98 "../..:webrtc_common",
99 "../../base:rtc_base_approved", 99 "../../rtc_base:rtc_base_approved",
100 "../../system_wrappers", 100 "../../system_wrappers",
101 "../../test:test_support", 101 "../../test:test_support",
102 "//testing/gmock", 102 "//testing/gmock",
103 ] 103 ]
104 if (rtc_desktop_capture_supported) { 104 if (rtc_desktop_capture_supported) {
105 sources += [ 105 sources += [
106 "screen_capturer_helper_unittest.cc", 106 "screen_capturer_helper_unittest.cc",
107 "screen_capturer_mac_unittest.cc", 107 "screen_capturer_mac_unittest.cc",
108 "screen_capturer_unittest.cc", 108 "screen_capturer_unittest.cc",
109 "window_capturer_unittest.cc", 109 "window_capturer_unittest.cc",
(...skipping 16 matching lines...) Expand all
126 sources = [ 126 sources = [
127 "screen_drawer.cc", 127 "screen_drawer.cc",
128 "screen_drawer.h", 128 "screen_drawer.h",
129 "screen_drawer_linux.cc", 129 "screen_drawer_linux.cc",
130 "screen_drawer_mac.cc", 130 "screen_drawer_mac.cc",
131 "screen_drawer_win.cc", 131 "screen_drawer_win.cc",
132 ] 132 ]
133 133
134 deps = [ 134 deps = [
135 ":primitives", 135 ":primitives",
136 "../../base:rtc_base_approved", 136 "../../rtc_base:rtc_base_approved",
137 "../../system_wrappers", 137 "../../system_wrappers",
138 ] 138 ]
139 } 139 }
140 140
141 source_set("desktop_capture_mock") { 141 source_set("desktop_capture_mock") {
142 testonly = true 142 testonly = true
143 143
144 public_deps = [ 144 public_deps = [
145 ":desktop_capture", 145 ":desktop_capture",
146 "//testing/gmock", 146 "//testing/gmock",
147 ] 147 ]
148 148
149 sources = [ 149 sources = [
150 "desktop_frame_generator.cc", 150 "desktop_frame_generator.cc",
151 "desktop_frame_generator.h", 151 "desktop_frame_generator.h",
152 "fake_desktop_capturer.cc", 152 "fake_desktop_capturer.cc",
153 "fake_desktop_capturer.h", 153 "fake_desktop_capturer.h",
154 "mock_desktop_capturer_callback.cc", 154 "mock_desktop_capturer_callback.cc",
155 "mock_desktop_capturer_callback.h", 155 "mock_desktop_capturer_callback.h",
156 ] 156 ]
157 157
158 deps = [ 158 deps = [
159 ":primitives", 159 ":primitives",
160 "../../base:rtc_base_approved", 160 "../../rtc_base:rtc_base_approved",
161 "../../test:test_support", 161 "../../test:test_support",
162 ] 162 ]
163 } 163 }
164 } 164 }
165 165
166 rtc_static_library("desktop_capture") { 166 rtc_static_library("desktop_capture") {
167 sources = [ 167 sources = [
168 "blank_detector_desktop_capturer_wrapper.cc", 168 "blank_detector_desktop_capturer_wrapper.cc",
169 "blank_detector_desktop_capturer_wrapper.h", 169 "blank_detector_desktop_capturer_wrapper.h",
170 "cropped_desktop_frame.cc", 170 "cropped_desktop_frame.cc",
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 if (is_win) { 285 if (is_win) {
286 libs = [ 286 libs = [
287 "d3d11.lib", 287 "d3d11.lib",
288 "dxgi.lib", 288 "dxgi.lib",
289 ] 289 ]
290 } 290 }
291 291
292 deps = [ 292 deps = [
293 ":primitives", 293 ":primitives",
294 "../..:webrtc_common", 294 "../..:webrtc_common",
295 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. 295 "../../rtc_base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3 806.
296 "../../system_wrappers", 296 "../../system_wrappers",
297 "//third_party/libyuv", 297 "//third_party/libyuv",
298 ] 298 ]
299 299
300 if (use_desktop_capture_differ_sse2) { 300 if (use_desktop_capture_differ_sse2) {
301 deps += [ ":desktop_capture_differ_sse2" ] 301 deps += [ ":desktop_capture_differ_sse2" ]
302 } 302 }
303 } 303 }
304 304
305 if (use_desktop_capture_differ_sse2) { 305 if (use_desktop_capture_differ_sse2) {
306 # Have to be compiled as a separate target because it needs to be compiled 306 # Have to be compiled as a separate target because it needs to be compiled
307 # with SSE2 enabled. 307 # with SSE2 enabled.
308 rtc_static_library("desktop_capture_differ_sse2") { 308 rtc_static_library("desktop_capture_differ_sse2") {
309 visibility = [ ":*" ] 309 visibility = [ ":*" ]
310 sources = [ 310 sources = [
311 "differ_vector_sse2.cc", 311 "differ_vector_sse2.cc",
312 "differ_vector_sse2.h", 312 "differ_vector_sse2.h",
313 ] 313 ]
314 314
315 if (is_posix) { 315 if (is_posix) {
316 cflags = [ "-msse2" ] 316 cflags = [ "-msse2" ]
317 } 317 }
318 } 318 }
319 } 319 }
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