| OLD | NEW |
| 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("../../build/webrtc.gni") | 10 import("../../build/webrtc.gni") |
| 11 import("desktop_capture.gni") | |
| 12 | 11 |
| 13 use_desktop_capture_differ_sse2 = | 12 use_desktop_capture_differ_sse2 = |
| 14 !is_ios && (current_cpu == "x86" || current_cpu == "x64") | 13 !is_ios && (current_cpu == "x86" || current_cpu == "x64") |
| 15 | 14 |
| 16 rtc_static_library("primitives") { | 15 rtc_static_library("primitives") { |
| 17 sources = [ | 16 sources = [ |
| 18 "desktop_capture_types.h", | 17 "desktop_capture_types.h", |
| 19 "desktop_frame.cc", | 18 "desktop_frame.cc", |
| 20 "desktop_frame.h", | 19 "desktop_frame.h", |
| 21 "desktop_geometry.cc", | 20 "desktop_geometry.cc", |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 testonly = true | 64 testonly = true |
| 66 | 65 |
| 67 public_deps = [ | 66 public_deps = [ |
| 68 ":desktop_capture", | 67 ":desktop_capture", |
| 69 ":rgba_color", | 68 ":rgba_color", |
| 70 ] | 69 ] |
| 71 | 70 |
| 72 sources = [ | 71 sources = [ |
| 73 "desktop_frame_generator.cc", | 72 "desktop_frame_generator.cc", |
| 74 "desktop_frame_generator.h", | 73 "desktop_frame_generator.h", |
| 74 "fake_desktop_capturer.cc", |
| 75 "fake_desktop_capturer.h", | 75 "fake_desktop_capturer.h", |
| 76 "fake_screen_capturer.cc", | |
| 77 "fake_screen_capturer.h", | |
| 78 "mock_desktop_capturer_callback.h", | 76 "mock_desktop_capturer_callback.h", |
| 79 "screen_capturer_mock_objects.h", | 77 "screen_capturer_mock_objects.h", |
| 80 ] | 78 ] |
| 81 } | 79 } |
| 82 } | 80 } |
| 83 | 81 |
| 84 rtc_static_library("desktop_capture") { | 82 rtc_static_library("desktop_capture") { |
| 85 sources = [ | 83 sources = [ |
| 86 "cropped_desktop_frame.cc", | 84 "cropped_desktop_frame.cc", |
| 87 "cropped_desktop_frame.h", | 85 "cropped_desktop_frame.h", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 105 "mac/scoped_pixel_buffer_object.cc", | 103 "mac/scoped_pixel_buffer_object.cc", |
| 106 "mac/scoped_pixel_buffer_object.h", | 104 "mac/scoped_pixel_buffer_object.h", |
| 107 "mac/window_list_utils.cc", | 105 "mac/window_list_utils.cc", |
| 108 "mac/window_list_utils.h", | 106 "mac/window_list_utils.h", |
| 109 "mouse_cursor.cc", | 107 "mouse_cursor.cc", |
| 110 "mouse_cursor.h", | 108 "mouse_cursor.h", |
| 111 "mouse_cursor_monitor.h", | 109 "mouse_cursor_monitor.h", |
| 112 "mouse_cursor_monitor_mac.mm", | 110 "mouse_cursor_monitor_mac.mm", |
| 113 "mouse_cursor_monitor_win.cc", | 111 "mouse_cursor_monitor_win.cc", |
| 114 "screen_capture_frame_queue.h", | 112 "screen_capture_frame_queue.h", |
| 115 "screen_capturer.cc", | |
| 116 "screen_capturer.h", | |
| 117 "screen_capturer_helper.cc", | 113 "screen_capturer_helper.cc", |
| 118 "screen_capturer_helper.h", | 114 "screen_capturer_helper.h", |
| 119 "screen_capturer_mac.mm", | 115 "screen_capturer_mac.mm", |
| 120 "screen_capturer_win.cc", | 116 "screen_capturer_win.cc", |
| 121 "shared_memory.cc", | 117 "shared_memory.cc", |
| 122 "shared_memory.h", | 118 "shared_memory.h", |
| 123 "win/cursor.cc", | 119 "win/cursor.cc", |
| 124 "win/cursor.h", | 120 "win/cursor.h", |
| 125 "win/d3d_device.cc", | 121 "win/d3d_device.cc", |
| 126 "win/d3d_device.h", | 122 "win/d3d_device.h", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 144 "win/screen_capture_utils.cc", | 140 "win/screen_capture_utils.cc", |
| 145 "win/screen_capture_utils.h", | 141 "win/screen_capture_utils.h", |
| 146 "win/screen_capturer_win_directx.cc", | 142 "win/screen_capturer_win_directx.cc", |
| 147 "win/screen_capturer_win_directx.h", | 143 "win/screen_capturer_win_directx.h", |
| 148 "win/screen_capturer_win_gdi.cc", | 144 "win/screen_capturer_win_gdi.cc", |
| 149 "win/screen_capturer_win_gdi.h", | 145 "win/screen_capturer_win_gdi.h", |
| 150 "win/screen_capturer_win_magnifier.cc", | 146 "win/screen_capturer_win_magnifier.cc", |
| 151 "win/screen_capturer_win_magnifier.h", | 147 "win/screen_capturer_win_magnifier.h", |
| 152 "win/window_capture_utils.cc", | 148 "win/window_capture_utils.cc", |
| 153 "win/window_capture_utils.h", | 149 "win/window_capture_utils.h", |
| 154 "window_capturer.cc", | |
| 155 "window_capturer.h", | |
| 156 "window_capturer_mac.mm", | 150 "window_capturer_mac.mm", |
| 157 "window_capturer_win.cc", | 151 "window_capturer_win.cc", |
| 158 ] | 152 ] |
| 159 | 153 |
| 160 if (use_x11) { | 154 if (use_x11) { |
| 161 sources += [ | 155 sources += [ |
| 162 "mouse_cursor_monitor_x11.cc", | 156 "mouse_cursor_monitor_x11.cc", |
| 163 "screen_capturer_x11.cc", | 157 "screen_capturer_x11.cc", |
| 164 "window_capturer_x11.cc", | 158 "window_capturer_x11.cc", |
| 165 "x11/shared_x_display.cc", | 159 "x11/shared_x_display.cc", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 179 "window_capturer_null.cc", | 173 "window_capturer_null.cc", |
| 180 ] | 174 ] |
| 181 } | 175 } |
| 182 | 176 |
| 183 if (!is_ios) { | 177 if (!is_ios) { |
| 184 sources += [ | 178 sources += [ |
| 185 "desktop_capturer_differ_wrapper.cc", | 179 "desktop_capturer_differ_wrapper.cc", |
| 186 "desktop_capturer_differ_wrapper.h", | 180 "desktop_capturer_differ_wrapper.h", |
| 187 "differ_block.cc", | 181 "differ_block.cc", |
| 188 "differ_block.h", | 182 "differ_block.h", |
| 189 "screen_capturer_differ_wrapper.cc", | |
| 190 "screen_capturer_differ_wrapper.h", | |
| 191 ] | 183 ] |
| 192 } | 184 } |
| 193 | 185 |
| 194 if (is_mac) { | 186 if (is_mac) { |
| 195 libs = [ | 187 libs = [ |
| 196 "AppKit.framework", | 188 "AppKit.framework", |
| 197 "IOKit.framework", | 189 "IOKit.framework", |
| 198 "OpenGL.framework", | 190 "OpenGL.framework", |
| 199 ] | 191 ] |
| 200 } | 192 } |
| 201 | 193 |
| 202 if (is_win) { | 194 if (is_win) { |
| 203 libs = [ | 195 libs = [ |
| 204 "d3d11.lib", | 196 "d3d11.lib", |
| 205 "dxgi.lib", | 197 "dxgi.lib", |
| 206 ] | 198 ] |
| 207 } | 199 } |
| 208 | 200 |
| 209 deps = [ | 201 deps = [ |
| 210 ":primitives", | 202 ":primitives", |
| 211 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. | 203 "../../base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. |
| 212 "../../system_wrappers", | 204 "../../system_wrappers", |
| 213 ] | 205 ] |
| 214 | 206 |
| 215 if (use_desktop_capture_differ_sse2) { | 207 if (use_desktop_capture_differ_sse2) { |
| 216 deps += [ ":desktop_capture_differ_sse2" ] | 208 deps += [ ":desktop_capture_differ_sse2" ] |
| 217 } | 209 } |
| 218 | |
| 219 if (rtc_desktop_capture_supported) { | |
| 220 defines = [ "RTC_DESKTOP_CAPTURE_SUPPORTED" ] | |
| 221 } | |
| 222 } | 210 } |
| 223 | 211 |
| 224 if (use_desktop_capture_differ_sse2) { | 212 if (use_desktop_capture_differ_sse2) { |
| 225 # Have to be compiled as a separate target because it needs to be compiled | 213 # Have to be compiled as a separate target because it needs to be compiled |
| 226 # with SSE2 enabled. | 214 # with SSE2 enabled. |
| 227 rtc_static_library("desktop_capture_differ_sse2") { | 215 rtc_static_library("desktop_capture_differ_sse2") { |
| 228 visibility = [ ":*" ] | 216 visibility = [ ":*" ] |
| 229 sources = [ | 217 sources = [ |
| 230 "differ_vector_sse2.cc", | 218 "differ_vector_sse2.cc", |
| 231 "differ_vector_sse2.h", | 219 "differ_vector_sse2.h", |
| 232 ] | 220 ] |
| 233 | 221 |
| 234 if (is_posix) { | 222 if (is_posix) { |
| 235 cflags = [ "-msse2" ] | 223 cflags = [ "-msse2" ] |
| 236 } | 224 } |
| 237 } | 225 } |
| 238 } | 226 } |
| OLD | NEW |