kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 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 |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 9 | import("//build/config/ui.gni") |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 10 | import("../../webrtc.gni") |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 11 | |
Sergey Ulanov | 1c062bf | 2016-11-22 16:07:10 -0800 | [diff] [blame] | 12 | use_desktop_capture_differ_sse2 = current_cpu == "x86" || current_cpu == "x64" |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 13 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 14 | rtc_static_library("primitives") { |
Sergey Ulanov | 098c1de | 2015-09-01 11:36:40 -0700 | [diff] [blame] | 15 | sources = [ |
| 16 | "desktop_capture_types.h", |
| 17 | "desktop_frame.cc", |
| 18 | "desktop_frame.h", |
| 19 | "desktop_geometry.cc", |
| 20 | "desktop_geometry.h", |
| 21 | "desktop_region.cc", |
| 22 | "desktop_region.h", |
Sergey Ulanov | 58000a0 | 2016-10-20 09:33:52 -0700 | [diff] [blame] | 23 | "shared_desktop_frame.cc", |
| 24 | "shared_desktop_frame.h", |
mbonadei | f423593 | 2016-12-29 03:35:56 -0800 | [diff] [blame] | 25 | "shared_memory.cc", |
| 26 | "shared_memory.h", |
Sergey Ulanov | 58000a0 | 2016-10-20 09:33:52 -0700 | [diff] [blame] | 27 | ] |
| 28 | |
| 29 | deps = [ |
mbonadei | f423593 | 2016-12-29 03:35:56 -0800 | [diff] [blame] | 30 | "../..:webrtc_common", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 31 | "../../rtc_base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. |
Sergey Ulanov | 098c1de | 2015-09-01 11:36:40 -0700 | [diff] [blame] | 32 | ] |
Sergey Ulanov | 098c1de | 2015-09-01 11:36:40 -0700 | [diff] [blame] | 33 | } |
| 34 | |
zijiehe | 6be0a65 | 2016-10-27 16:50:35 -0700 | [diff] [blame] | 35 | if (rtc_include_tests) { |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 36 | rtc_source_set("desktop_capture_modules_tests") { |
| 37 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 38 | |
| 39 | # Skip restricting visibility on mobile platforms since the tests on those |
| 40 | # gets additional generated targets which would require many lines here to |
| 41 | # cover (which would be confusing to read and hard to maintain). |
| 42 | if (!is_android && !is_ios) { |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 43 | visibility = [ "..:modules_tests" ] |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 44 | } |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 45 | sources = [] |
| 46 | deps = [] |
| 47 | if (rtc_desktop_capture_supported) { |
| 48 | deps += [ |
| 49 | ":desktop_capture_mock", |
| 50 | ":primitives", |
| 51 | ":screen_drawer", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 52 | "../../rtc_base:rtc_base", |
| 53 | "../../rtc_base:rtc_base_approved", |
zijiehe | ccf57a7 | 2017-03-03 14:40:15 -0800 | [diff] [blame] | 54 | "../../system_wrappers", |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 55 | "../../test:test_support", |
ehmaldonado | 656610f | 2017-02-06 02:21:11 -0800 | [diff] [blame] | 56 | "../../test:video_test_support", |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 57 | ] |
| 58 | sources += [ |
| 59 | "screen_capturer_integration_test.cc", |
| 60 | "screen_drawer_unittest.cc", |
| 61 | ] |
| 62 | } |
| 63 | } |
| 64 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 65 | rtc_source_set("desktop_capture_unittests") { |
| 66 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 67 | |
| 68 | # Skip restricting visibility on mobile platforms since the tests on those |
| 69 | # gets additional generated targets which would require many lines here to |
| 70 | # cover (which would be confusing to read and hard to maintain). |
| 71 | if (!is_android && !is_ios) { |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 72 | visibility = [ "..:modules_unittests" ] |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 73 | } |
ehmaldonado | 0d729b3 | 2017-02-10 01:38:23 -0800 | [diff] [blame] | 74 | sources = [ |
zijiehe | ccf57a7 | 2017-03-03 14:40:15 -0800 | [diff] [blame] | 75 | "blank_detector_desktop_capturer_wrapper_unittest.cc", |
ehmaldonado | 0d729b3 | 2017-02-10 01:38:23 -0800 | [diff] [blame] | 76 | "desktop_and_cursor_composer_unittest.cc", |
| 77 | "desktop_capturer_differ_wrapper_unittest.cc", |
| 78 | "desktop_frame_rotation_unittest.cc", |
zijiehe | 8eef7aa | 2017-05-18 12:27:16 -0700 | [diff] [blame] | 79 | "desktop_geometry_unittest.cc", |
ehmaldonado | 0d729b3 | 2017-02-10 01:38:23 -0800 | [diff] [blame] | 80 | "desktop_region_unittest.cc", |
| 81 | "differ_block_unittest.cc", |
zijiehe | 8fefe98 | 2017-02-17 14:32:04 -0800 | [diff] [blame] | 82 | "fallback_desktop_capturer_wrapper_unittest.cc", |
ehmaldonado | 0d729b3 | 2017-02-10 01:38:23 -0800 | [diff] [blame] | 83 | "mouse_cursor_monitor_unittest.cc", |
| 84 | "rgba_color_unittest.cc", |
| 85 | "test_utils.cc", |
| 86 | "test_utils.h", |
| 87 | "test_utils_unittest.cc", |
| 88 | "win/cursor_unittest.cc", |
| 89 | "win/cursor_unittest_resources.h", |
| 90 | "win/cursor_unittest_resources.rc", |
zijiehe | 4ff4208 | 2017-07-13 16:05:24 -0700 | [diff] [blame] | 91 | "win/screen_capture_utils_unittest.cc", |
Zijie He | 3e45cb5 | 2017-07-17 20:33:47 -0700 | [diff] [blame] | 92 | "win/screen_capturer_win_directx_unittest.cc", |
ehmaldonado | 0d729b3 | 2017-02-10 01:38:23 -0800 | [diff] [blame] | 93 | ] |
| 94 | deps = [ |
| 95 | ":desktop_capture", |
| 96 | ":desktop_capture_mock", |
| 97 | ":primitives", |
ehmaldonado | 0d729b3 | 2017-02-10 01:38:23 -0800 | [diff] [blame] | 98 | "../..:webrtc_common", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 99 | "../../rtc_base:rtc_base_approved", |
zijiehe | ccf57a7 | 2017-03-03 14:40:15 -0800 | [diff] [blame] | 100 | "../../system_wrappers", |
ehmaldonado | 0d729b3 | 2017-02-10 01:38:23 -0800 | [diff] [blame] | 101 | "../../test:test_support", |
| 102 | "//testing/gmock", |
| 103 | ] |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 104 | if (rtc_desktop_capture_supported) { |
| 105 | sources += [ |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 106 | "screen_capturer_helper_unittest.cc", |
| 107 | "screen_capturer_mac_unittest.cc", |
| 108 | "screen_capturer_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 109 | "window_capturer_unittest.cc", |
| 110 | ] |
| 111 | deps += [ ":desktop_capture_mock" ] |
| 112 | } |
| 113 | if (!build_with_chromium && is_clang) { |
| 114 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 115 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 116 | } |
| 117 | } |
| 118 | |
perkj | 528a834 | 2017-03-03 00:01:48 -0800 | [diff] [blame] | 119 | source_set("screen_drawer") { |
| 120 | testonly = true |
| 121 | |
| 122 | public_deps = [ |
zijiehe | ccf57a7 | 2017-03-03 14:40:15 -0800 | [diff] [blame] | 123 | ":desktop_capture", |
perkj | 528a834 | 2017-03-03 00:01:48 -0800 | [diff] [blame] | 124 | ] |
| 125 | |
| 126 | sources = [ |
zijiehe | 6be0a65 | 2016-10-27 16:50:35 -0700 | [diff] [blame] | 127 | "screen_drawer.cc", |
| 128 | "screen_drawer.h", |
| 129 | "screen_drawer_linux.cc", |
| 130 | "screen_drawer_mac.cc", |
| 131 | "screen_drawer_win.cc", |
| 132 | ] |
mbonadei | f423593 | 2016-12-29 03:35:56 -0800 | [diff] [blame] | 133 | |
| 134 | deps = [ |
| 135 | ":primitives", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 136 | "../../rtc_base:rtc_base_approved", |
mbonadei | f423593 | 2016-12-29 03:35:56 -0800 | [diff] [blame] | 137 | "../../system_wrappers", |
| 138 | ] |
zijiehe | 6be0a65 | 2016-10-27 16:50:35 -0700 | [diff] [blame] | 139 | } |
zijiehe | 54fd579 | 2016-11-02 14:49:35 -0700 | [diff] [blame] | 140 | |
| 141 | source_set("desktop_capture_mock") { |
| 142 | testonly = true |
| 143 | |
| 144 | public_deps = [ |
| 145 | ":desktop_capture", |
zijiehe | 372719b | 2016-11-11 17:18:34 -0800 | [diff] [blame] | 146 | "//testing/gmock", |
zijiehe | 54fd579 | 2016-11-02 14:49:35 -0700 | [diff] [blame] | 147 | ] |
| 148 | |
| 149 | sources = [ |
| 150 | "desktop_frame_generator.cc", |
| 151 | "desktop_frame_generator.h", |
zijiehe | 98903d2 | 2016-11-10 21:57:10 -0800 | [diff] [blame] | 152 | "fake_desktop_capturer.cc", |
zijiehe | 54fd579 | 2016-11-02 14:49:35 -0700 | [diff] [blame] | 153 | "fake_desktop_capturer.h", |
zijiehe | 372719b | 2016-11-11 17:18:34 -0800 | [diff] [blame] | 154 | "mock_desktop_capturer_callback.cc", |
zijiehe | 54fd579 | 2016-11-02 14:49:35 -0700 | [diff] [blame] | 155 | "mock_desktop_capturer_callback.h", |
mbonadei | f423593 | 2016-12-29 03:35:56 -0800 | [diff] [blame] | 156 | ] |
| 157 | |
| 158 | deps = [ |
| 159 | ":primitives", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 160 | "../../rtc_base:rtc_base_approved", |
mbonadei | f423593 | 2016-12-29 03:35:56 -0800 | [diff] [blame] | 161 | "../../test:test_support", |
zijiehe | 54fd579 | 2016-11-02 14:49:35 -0700 | [diff] [blame] | 162 | ] |
| 163 | } |
zijiehe | 6be0a65 | 2016-10-27 16:50:35 -0700 | [diff] [blame] | 164 | } |
| 165 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 166 | rtc_static_library("desktop_capture") { |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 167 | sources = [ |
zijiehe | ccf57a7 | 2017-03-03 14:40:15 -0800 | [diff] [blame] | 168 | "blank_detector_desktop_capturer_wrapper.cc", |
| 169 | "blank_detector_desktop_capturer_wrapper.h", |
jiayl@webrtc.org | 0e71070 | 2014-11-11 18:15:55 +0000 | [diff] [blame] | 170 | "cropped_desktop_frame.cc", |
| 171 | "cropped_desktop_frame.h", |
| 172 | "cropping_window_capturer.cc", |
| 173 | "cropping_window_capturer.h", |
| 174 | "cropping_window_capturer_win.cc", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 175 | "desktop_and_cursor_composer.cc", |
| 176 | "desktop_and_cursor_composer.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 177 | "desktop_capture_options.cc", |
| 178 | "desktop_capture_options.h", |
zijiehe | b68d655 | 2016-10-28 17:35:11 -0700 | [diff] [blame] | 179 | "desktop_capturer.cc", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 180 | "desktop_capturer.h", |
Sergey Ulanov | 1c062bf | 2016-11-22 16:07:10 -0800 | [diff] [blame] | 181 | "desktop_capturer_differ_wrapper.cc", |
| 182 | "desktop_capturer_differ_wrapper.h", |
zijiehe | 90ea736 | 2016-11-22 17:17:09 -0800 | [diff] [blame] | 183 | "desktop_frame_rotation.cc", |
| 184 | "desktop_frame_rotation.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 185 | "desktop_frame_win.cc", |
| 186 | "desktop_frame_win.h", |
Sergey Ulanov | 1c062bf | 2016-11-22 16:07:10 -0800 | [diff] [blame] | 187 | "differ_block.cc", |
| 188 | "differ_block.h", |
zijiehe | 8fefe98 | 2017-02-17 14:32:04 -0800 | [diff] [blame] | 189 | "fallback_desktop_capturer_wrapper.cc", |
| 190 | "fallback_desktop_capturer_wrapper.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 191 | "mac/desktop_configuration.h", |
| 192 | "mac/desktop_configuration.mm", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 193 | "mac/desktop_configuration_monitor.cc", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 194 | "mac/desktop_configuration_monitor.h", |
jiayl@webrtc.org | 12b4efe | 2014-07-08 22:05:24 +0000 | [diff] [blame] | 195 | "mac/full_screen_chrome_window_detector.cc", |
| 196 | "mac/full_screen_chrome_window_detector.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 197 | "mac/scoped_pixel_buffer_object.cc", |
| 198 | "mac/scoped_pixel_buffer_object.h", |
jiayl@webrtc.org | 12b4efe | 2014-07-08 22:05:24 +0000 | [diff] [blame] | 199 | "mac/window_list_utils.cc", |
| 200 | "mac/window_list_utils.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 201 | "mouse_cursor.cc", |
| 202 | "mouse_cursor.h", |
| 203 | "mouse_cursor_monitor.h", |
| 204 | "mouse_cursor_monitor_mac.mm", |
| 205 | "mouse_cursor_monitor_win.cc", |
Zijie He | 7e1c24c | 2017-07-27 18:06:12 -0700 | [diff] [blame] | 206 | "resolution_tracker.cc", |
| 207 | "resolution_tracker.h", |
zijiehe | ccf57a7 | 2017-03-03 14:40:15 -0800 | [diff] [blame] | 208 | "rgba_color.cc", |
| 209 | "rgba_color.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 210 | "screen_capture_frame_queue.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 211 | "screen_capturer_helper.cc", |
| 212 | "screen_capturer_helper.h", |
| 213 | "screen_capturer_mac.mm", |
| 214 | "screen_capturer_win.cc", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 215 | "win/cursor.cc", |
| 216 | "win/cursor.h", |
zijiehe | 2d618de | 2016-08-08 17:50:21 -0700 | [diff] [blame] | 217 | "win/d3d_device.cc", |
| 218 | "win/d3d_device.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 219 | "win/desktop.cc", |
| 220 | "win/desktop.h", |
Zijie He | 74544f9 | 2017-07-24 16:52:17 -0700 | [diff] [blame] | 221 | "win/display_configuration_monitor.cc", |
| 222 | "win/display_configuration_monitor.h", |
zijiehe | 2d618de | 2016-08-08 17:50:21 -0700 | [diff] [blame] | 223 | "win/dxgi_adapter_duplicator.cc", |
| 224 | "win/dxgi_adapter_duplicator.h", |
zijiehe | cf5753d | 2017-04-20 12:06:04 -0700 | [diff] [blame] | 225 | "win/dxgi_context.cc", |
| 226 | "win/dxgi_context.h", |
zijiehe | 2d618de | 2016-08-08 17:50:21 -0700 | [diff] [blame] | 227 | "win/dxgi_duplicator_controller.cc", |
| 228 | "win/dxgi_duplicator_controller.h", |
zijiehe | cf5753d | 2017-04-20 12:06:04 -0700 | [diff] [blame] | 229 | "win/dxgi_frame.cc", |
| 230 | "win/dxgi_frame.h", |
zijiehe | 2d618de | 2016-08-08 17:50:21 -0700 | [diff] [blame] | 231 | "win/dxgi_output_duplicator.cc", |
| 232 | "win/dxgi_output_duplicator.h", |
| 233 | "win/dxgi_texture.cc", |
| 234 | "win/dxgi_texture.h", |
| 235 | "win/dxgi_texture_mapping.cc", |
| 236 | "win/dxgi_texture_mapping.h", |
| 237 | "win/dxgi_texture_staging.cc", |
| 238 | "win/dxgi_texture_staging.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 239 | "win/scoped_gdi_object.h", |
| 240 | "win/scoped_thread_desktop.cc", |
| 241 | "win/scoped_thread_desktop.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 242 | "win/screen_capture_utils.cc", |
| 243 | "win/screen_capture_utils.h", |
zijiehe | 2970c2a | 2016-05-20 22:08:00 -0700 | [diff] [blame] | 244 | "win/screen_capturer_win_directx.cc", |
| 245 | "win/screen_capturer_win_directx.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 246 | "win/screen_capturer_win_gdi.cc", |
| 247 | "win/screen_capturer_win_gdi.h", |
| 248 | "win/screen_capturer_win_magnifier.cc", |
| 249 | "win/screen_capturer_win_magnifier.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 250 | "win/window_capture_utils.cc", |
| 251 | "win/window_capture_utils.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 252 | "window_capturer_mac.mm", |
| 253 | "window_capturer_win.cc", |
Zijie He | b010a32 | 2017-08-07 15:25:01 -0700 | [diff] [blame] | 254 | "window_under_point.h", |
| 255 | "window_under_point_linux.cc", |
| 256 | "window_under_point_mac.mm", |
| 257 | "window_under_point_win.cc", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 258 | ] |
| 259 | |
| 260 | if (use_x11) { |
| 261 | sources += [ |
| 262 | "mouse_cursor_monitor_x11.cc", |
| 263 | "screen_capturer_x11.cc", |
| 264 | "window_capturer_x11.cc", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 265 | "x11/shared_x_display.cc", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 266 | "x11/shared_x_display.h", |
Zijie He | ad501d1 | 2017-08-10 11:58:34 -0700 | [diff] [blame^] | 267 | "x11/window_list_utils.cc", |
| 268 | "x11/window_list_utils.h", |
| 269 | "x11/x_atom_cache.cc", |
| 270 | "x11/x_atom_cache.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 271 | "x11/x_error_trap.cc", |
| 272 | "x11/x_error_trap.h", |
| 273 | "x11/x_server_pixel_buffer.cc", |
| 274 | "x11/x_server_pixel_buffer.h", |
| 275 | ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 276 | configs += [ "//build/config/linux:x11" ] |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 277 | } |
| 278 | |
| 279 | if (!is_win && !is_mac && !use_x11) { |
| 280 | sources += [ |
| 281 | "mouse_cursor_monitor_null.cc", |
| 282 | "screen_capturer_null.cc", |
| 283 | "window_capturer_null.cc", |
| 284 | ] |
| 285 | } |
| 286 | |
kjellander@webrtc.org | 556caff | 2014-12-19 13:28:37 +0000 | [diff] [blame] | 287 | if (is_mac) { |
| 288 | libs = [ |
| 289 | "AppKit.framework", |
| 290 | "IOKit.framework", |
| 291 | "OpenGL.framework", |
| 292 | ] |
| 293 | } |
| 294 | |
zijiehe | 2970c2a | 2016-05-20 22:08:00 -0700 | [diff] [blame] | 295 | if (is_win) { |
zijiehe | 2d618de | 2016-08-08 17:50:21 -0700 | [diff] [blame] | 296 | libs = [ |
| 297 | "d3d11.lib", |
| 298 | "dxgi.lib", |
| 299 | ] |
zijiehe | 2970c2a | 2016-05-20 22:08:00 -0700 | [diff] [blame] | 300 | } |
| 301 | |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 +0000 | [diff] [blame] | 302 | deps = [ |
Sergey Ulanov | 098c1de | 2015-09-01 11:36:40 -0700 | [diff] [blame] | 303 | ":primitives", |
mbonadei | f423593 | 2016-12-29 03:35:56 -0800 | [diff] [blame] | 304 | "../..:webrtc_common", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 305 | "../../rtc_base:rtc_base", # TODO(kjellander): Cleanup in bugs.webrtc.org/3806. |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 +0000 | [diff] [blame] | 306 | "../../system_wrappers", |
zijiehe | 90ea736 | 2016-11-22 17:17:09 -0800 | [diff] [blame] | 307 | "//third_party/libyuv", |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 +0000 | [diff] [blame] | 308 | ] |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 309 | |
| 310 | if (use_desktop_capture_differ_sse2) { |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 311 | deps += [ ":desktop_capture_differ_sse2" ] |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 312 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 313 | } |
| 314 | |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 315 | if (use_desktop_capture_differ_sse2) { |
| 316 | # Have to be compiled as a separate target because it needs to be compiled |
| 317 | # with SSE2 enabled. |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 318 | rtc_static_library("desktop_capture_differ_sse2") { |
brettw@chromium.org | 0867f69 | 2014-09-10 16:24:11 +0000 | [diff] [blame] | 319 | visibility = [ ":*" ] |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 320 | sources = [ |
zijiehe | fef8653 | 2016-09-05 15:26:32 -0700 | [diff] [blame] | 321 | "differ_vector_sse2.cc", |
| 322 | "differ_vector_sse2.h", |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 323 | ] |
| 324 | |
ehmaldonado | 90920d5 | 2016-08-16 04:13:01 -0700 | [diff] [blame] | 325 | if (is_posix) { |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 326 | cflags = [ "-msse2" ] |
jiayl@webrtc.org | 93426cd | 2014-07-02 15:47:12 +0000 | [diff] [blame] | 327 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 328 | } |
| 329 | } |