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

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

Issue 2989053002: Decoupling desktop_capture from Obj-C code. (Closed)
Patch Set: Renaming and private visibility Created 3 years, 4 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 | « no previous file | no next file » | 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 ] 156 ]
157 157
158 deps = [ 158 deps = [
159 ":primitives", 159 ":primitives",
160 "../../rtc_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_source_set("desktop_capture") {
167 if (is_mac) {
168 public_deps = [
169 ":desktop_capture_objc",
170 ]
171 } else {
172 public_deps = [
173 ":desktop_capture_generic",
174 ]
175 }
176 }
177
178 if (is_mac) {
179 rtc_source_set("desktop_capture_objc") {
180 visibility = [ ":*" ]
181 sources = [
182 "mac/desktop_configuration.mm",
183 "mouse_cursor_monitor_mac.mm",
184 "screen_capturer_mac.mm",
185 "window_capturer_mac.mm",
186 ]
187 public_deps = [
188 ":desktop_capture_generic",
189 ]
190 deps = [
191 ":primitives",
192 "../../rtc_base:rtc_base",
193 "../../rtc_base:rtc_base_approved",
194 ]
195 libs = [
196 "AppKit.framework",
197 "IOKit.framework",
198 "OpenGL.framework",
199 ]
200 }
201 }
202
203 rtc_static_library("desktop_capture_generic") {
204 visibility = [ ":*" ]
167 sources = [ 205 sources = [
168 "blank_detector_desktop_capturer_wrapper.cc", 206 "blank_detector_desktop_capturer_wrapper.cc",
169 "blank_detector_desktop_capturer_wrapper.h", 207 "blank_detector_desktop_capturer_wrapper.h",
170 "cropped_desktop_frame.cc", 208 "cropped_desktop_frame.cc",
171 "cropped_desktop_frame.h", 209 "cropped_desktop_frame.h",
172 "cropping_window_capturer.cc", 210 "cropping_window_capturer.cc",
173 "cropping_window_capturer.h", 211 "cropping_window_capturer.h",
174 "cropping_window_capturer_win.cc", 212 "cropping_window_capturer_win.cc",
175 "desktop_and_cursor_composer.cc", 213 "desktop_and_cursor_composer.cc",
176 "desktop_and_cursor_composer.h", 214 "desktop_and_cursor_composer.h",
177 "desktop_capture_options.cc", 215 "desktop_capture_options.cc",
178 "desktop_capture_options.h", 216 "desktop_capture_options.h",
179 "desktop_capturer.cc", 217 "desktop_capturer.cc",
180 "desktop_capturer.h", 218 "desktop_capturer.h",
181 "desktop_capturer_differ_wrapper.cc", 219 "desktop_capturer_differ_wrapper.cc",
182 "desktop_capturer_differ_wrapper.h", 220 "desktop_capturer_differ_wrapper.h",
183 "desktop_frame_rotation.cc", 221 "desktop_frame_rotation.cc",
184 "desktop_frame_rotation.h", 222 "desktop_frame_rotation.h",
185 "desktop_frame_win.cc", 223 "desktop_frame_win.cc",
186 "desktop_frame_win.h", 224 "desktop_frame_win.h",
187 "differ_block.cc", 225 "differ_block.cc",
188 "differ_block.h", 226 "differ_block.h",
189 "fallback_desktop_capturer_wrapper.cc", 227 "fallback_desktop_capturer_wrapper.cc",
190 "fallback_desktop_capturer_wrapper.h", 228 "fallback_desktop_capturer_wrapper.h",
191 "mac/desktop_configuration.h", 229 "mac/desktop_configuration.h",
192 "mac/desktop_configuration.mm",
193 "mac/desktop_configuration_monitor.cc", 230 "mac/desktop_configuration_monitor.cc",
194 "mac/desktop_configuration_monitor.h", 231 "mac/desktop_configuration_monitor.h",
195 "mac/full_screen_chrome_window_detector.cc", 232 "mac/full_screen_chrome_window_detector.cc",
196 "mac/full_screen_chrome_window_detector.h", 233 "mac/full_screen_chrome_window_detector.h",
197 "mac/scoped_pixel_buffer_object.cc", 234 "mac/scoped_pixel_buffer_object.cc",
198 "mac/scoped_pixel_buffer_object.h", 235 "mac/scoped_pixel_buffer_object.h",
199 "mac/window_list_utils.cc", 236 "mac/window_list_utils.cc",
200 "mac/window_list_utils.h", 237 "mac/window_list_utils.h",
201 "mouse_cursor.cc", 238 "mouse_cursor.cc",
202 "mouse_cursor.h", 239 "mouse_cursor.h",
203 "mouse_cursor_monitor.h", 240 "mouse_cursor_monitor.h",
204 "mouse_cursor_monitor_mac.mm",
205 "mouse_cursor_monitor_win.cc", 241 "mouse_cursor_monitor_win.cc",
206 "resolution_change_detector.cc", 242 "resolution_change_detector.cc",
207 "resolution_change_detector.h", 243 "resolution_change_detector.h",
208 "rgba_color.cc", 244 "rgba_color.cc",
209 "rgba_color.h", 245 "rgba_color.h",
210 "screen_capture_frame_queue.h", 246 "screen_capture_frame_queue.h",
211 "screen_capturer_helper.cc", 247 "screen_capturer_helper.cc",
212 "screen_capturer_helper.h", 248 "screen_capturer_helper.h",
213 "screen_capturer_mac.mm",
214 "screen_capturer_win.cc", 249 "screen_capturer_win.cc",
215 "win/cursor.cc", 250 "win/cursor.cc",
216 "win/cursor.h", 251 "win/cursor.h",
217 "win/d3d_device.cc", 252 "win/d3d_device.cc",
218 "win/d3d_device.h", 253 "win/d3d_device.h",
219 "win/desktop.cc", 254 "win/desktop.cc",
220 "win/desktop.h", 255 "win/desktop.h",
221 "win/display_configuration_monitor.cc", 256 "win/display_configuration_monitor.cc",
222 "win/display_configuration_monitor.h", 257 "win/display_configuration_monitor.h",
223 "win/dxgi_adapter_duplicator.cc", 258 "win/dxgi_adapter_duplicator.cc",
(...skipping 18 matching lines...) Expand all
242 "win/screen_capture_utils.cc", 277 "win/screen_capture_utils.cc",
243 "win/screen_capture_utils.h", 278 "win/screen_capture_utils.h",
244 "win/screen_capturer_win_directx.cc", 279 "win/screen_capturer_win_directx.cc",
245 "win/screen_capturer_win_directx.h", 280 "win/screen_capturer_win_directx.h",
246 "win/screen_capturer_win_gdi.cc", 281 "win/screen_capturer_win_gdi.cc",
247 "win/screen_capturer_win_gdi.h", 282 "win/screen_capturer_win_gdi.h",
248 "win/screen_capturer_win_magnifier.cc", 283 "win/screen_capturer_win_magnifier.cc",
249 "win/screen_capturer_win_magnifier.h", 284 "win/screen_capturer_win_magnifier.h",
250 "win/window_capture_utils.cc", 285 "win/window_capture_utils.cc",
251 "win/window_capture_utils.h", 286 "win/window_capture_utils.h",
252 "window_capturer_mac.mm",
253 "window_capturer_win.cc", 287 "window_capturer_win.cc",
254 ] 288 ]
255 289
256 if (use_x11) { 290 if (use_x11) {
257 sources += [ 291 sources += [
258 "mouse_cursor_monitor_x11.cc", 292 "mouse_cursor_monitor_x11.cc",
259 "screen_capturer_x11.cc", 293 "screen_capturer_x11.cc",
260 "window_capturer_x11.cc", 294 "window_capturer_x11.cc",
261 "x11/shared_x_display.cc", 295 "x11/shared_x_display.cc",
262 "x11/shared_x_display.h", 296 "x11/shared_x_display.h",
263 "x11/x_error_trap.cc", 297 "x11/x_error_trap.cc",
264 "x11/x_error_trap.h", 298 "x11/x_error_trap.h",
265 "x11/x_server_pixel_buffer.cc", 299 "x11/x_server_pixel_buffer.cc",
266 "x11/x_server_pixel_buffer.h", 300 "x11/x_server_pixel_buffer.h",
267 ] 301 ]
268 configs += [ "//build/config/linux:x11" ] 302 configs += [ "//build/config/linux:x11" ]
269 } 303 }
270 304
271 if (!is_win && !is_mac && !use_x11) { 305 if (!is_win && !is_mac && !use_x11) {
272 sources += [ 306 sources += [
273 "mouse_cursor_monitor_null.cc", 307 "mouse_cursor_monitor_null.cc",
274 "screen_capturer_null.cc", 308 "screen_capturer_null.cc",
275 "window_capturer_null.cc", 309 "window_capturer_null.cc",
276 ] 310 ]
277 } 311 }
278 312
279 if (is_mac) {
280 libs = [
281 "AppKit.framework",
282 "IOKit.framework",
283 "OpenGL.framework",
284 ]
285 }
286
287 if (is_win) { 313 if (is_win) {
288 libs = [ 314 libs = [
289 "d3d11.lib", 315 "d3d11.lib",
290 "dxgi.lib", 316 "dxgi.lib",
291 ] 317 ]
292 } 318 }
293 319
294 deps = [ 320 deps = [
295 ":primitives", 321 ":primitives",
296 "../..:webrtc_common", 322 "../..:webrtc_common",
(...skipping 15 matching lines...) Expand all
312 sources = [ 338 sources = [
313 "differ_vector_sse2.cc", 339 "differ_vector_sse2.cc",
314 "differ_vector_sse2.h", 340 "differ_vector_sse2.h",
315 ] 341 ]
316 342
317 if (is_posix) { 343 if (is_posix) {
318 cflags = [ "-msse2" ] 344 cflags = [ "-msse2" ]
319 } 345 }
320 } 346 }
321 } 347 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698