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

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

Issue 2973183002: Remove remains of webrtc/base (Closed)
Patch Set: Fix error. 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 = [ "//webrtc/modules:modules_tests" ] 43 visibility = [ "//webrtc/modules: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 23 matching lines...) Expand all
87 "test_utils_unittest.cc", 87 "test_utils_unittest.cc",
88 "win/cursor_unittest.cc", 88 "win/cursor_unittest.cc",
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 ] 91 ]
92 deps = [ 92 deps = [
93 ":desktop_capture", 93 ":desktop_capture",
94 ":desktop_capture_mock", 94 ":desktop_capture_mock",
95 ":primitives", 95 ":primitives",
96 "../..:webrtc_common", 96 "../..:webrtc_common",
97 "../../base:rtc_base_approved", 97 "../../rtc_base:rtc_base_approved",
98 "../../system_wrappers", 98 "../../system_wrappers",
99 "../../test:test_support", 99 "../../test:test_support",
100 "//testing/gmock", 100 "//testing/gmock",
101 ] 101 ]
102 if (rtc_desktop_capture_supported) { 102 if (rtc_desktop_capture_supported) {
103 sources += [ 103 sources += [
104 "screen_capturer_helper_unittest.cc", 104 "screen_capturer_helper_unittest.cc",
105 "screen_capturer_mac_unittest.cc", 105 "screen_capturer_mac_unittest.cc",
106 "screen_capturer_unittest.cc", 106 "screen_capturer_unittest.cc",
107 "window_capturer_unittest.cc", 107 "window_capturer_unittest.cc",
(...skipping 16 matching lines...) Expand all
124 sources = [ 124 sources = [
125 "screen_drawer.cc", 125 "screen_drawer.cc",
126 "screen_drawer.h", 126 "screen_drawer.h",
127 "screen_drawer_linux.cc", 127 "screen_drawer_linux.cc",
128 "screen_drawer_mac.cc", 128 "screen_drawer_mac.cc",
129 "screen_drawer_win.cc", 129 "screen_drawer_win.cc",
130 ] 130 ]
131 131
132 deps = [ 132 deps = [
133 ":primitives", 133 ":primitives",
134 "../../base:rtc_base_approved", 134 "../../rtc_base:rtc_base_approved",
135 "../../system_wrappers", 135 "../../system_wrappers",
136 ] 136 ]
137 } 137 }
138 138
139 source_set("desktop_capture_mock") { 139 source_set("desktop_capture_mock") {
140 testonly = true 140 testonly = true
141 141
142 public_deps = [ 142 public_deps = [
143 ":desktop_capture", 143 ":desktop_capture",
144 "//testing/gmock", 144 "//testing/gmock",
145 ] 145 ]
146 146
147 sources = [ 147 sources = [
148 "desktop_frame_generator.cc", 148 "desktop_frame_generator.cc",
149 "desktop_frame_generator.h", 149 "desktop_frame_generator.h",
150 "fake_desktop_capturer.cc", 150 "fake_desktop_capturer.cc",
151 "fake_desktop_capturer.h", 151 "fake_desktop_capturer.h",
152 "mock_desktop_capturer_callback.cc", 152 "mock_desktop_capturer_callback.cc",
153 "mock_desktop_capturer_callback.h", 153 "mock_desktop_capturer_callback.h",
154 ] 154 ]
155 155
156 deps = [ 156 deps = [
157 ":primitives", 157 ":primitives",
158 "../../base:rtc_base_approved", 158 "../../rtc_base:rtc_base_approved",
159 "../../test:test_support", 159 "../../test:test_support",
160 ] 160 ]
161 } 161 }
162 } 162 }
163 163
164 rtc_static_library("desktop_capture") { 164 rtc_static_library("desktop_capture") {
165 sources = [ 165 sources = [
166 "blank_detector_desktop_capturer_wrapper.cc", 166 "blank_detector_desktop_capturer_wrapper.cc",
167 "blank_detector_desktop_capturer_wrapper.h", 167 "blank_detector_desktop_capturer_wrapper.h",
168 "cropped_desktop_frame.cc", 168 "cropped_desktop_frame.cc",
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 if (is_win) { 283 if (is_win) {
284 libs = [ 284 libs = [
285 "d3d11.lib", 285 "d3d11.lib",
286 "dxgi.lib", 286 "dxgi.lib",
287 ] 287 ]
288 } 288 }
289 289
290 deps = [ 290 deps = [
291 ":primitives", 291 ":primitives",
292 "../..:webrtc_common", 292 "../..:webrtc_common",
293 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. 293 "../../rtc_base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3 806.
294 "../../system_wrappers", 294 "../../system_wrappers",
295 "//third_party/libyuv", 295 "//third_party/libyuv",
296 ] 296 ]
297 297
298 if (use_desktop_capture_differ_sse2) { 298 if (use_desktop_capture_differ_sse2) {
299 deps += [ ":desktop_capture_differ_sse2" ] 299 deps += [ ":desktop_capture_differ_sse2" ]
300 } 300 }
301 } 301 }
302 302
303 if (use_desktop_capture_differ_sse2) { 303 if (use_desktop_capture_differ_sse2) {
304 # Have to be compiled as a separate target because it needs to be compiled 304 # Have to be compiled as a separate target because it needs to be compiled
305 # with SSE2 enabled. 305 # with SSE2 enabled.
306 rtc_static_library("desktop_capture_differ_sse2") { 306 rtc_static_library("desktop_capture_differ_sse2") {
307 visibility = [ ":*" ] 307 visibility = [ ":*" ]
308 sources = [ 308 sources = [
309 "differ_vector_sse2.cc", 309 "differ_vector_sse2.cc",
310 "differ_vector_sse2.h", 310 "differ_vector_sse2.h",
311 ] 311 ]
312 312
313 if (is_posix) { 313 if (is_posix) {
314 cflags = [ "-msse2" ] 314 cflags = [ "-msse2" ]
315 } 315 }
316 } 316 }
317 } 317 }
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