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 | 11 |
12 use_desktop_capture_differ_sse2 = | 12 use_desktop_capture_differ_sse2 = |
13 !is_ios && (current_cpu == "x86" || current_cpu == "x64") | 13 !is_ios && (current_cpu == "x86" || current_cpu == "x64") |
14 | 14 |
15 rtc_source_set("primitives") { | 15 rtc_static_library("primitives") { |
16 sources = [ | 16 sources = [ |
17 "desktop_capture_types.h", | 17 "desktop_capture_types.h", |
18 "desktop_frame.cc", | 18 "desktop_frame.cc", |
19 "desktop_frame.h", | 19 "desktop_frame.h", |
20 "desktop_geometry.cc", | 20 "desktop_geometry.cc", |
21 "desktop_geometry.h", | 21 "desktop_geometry.h", |
22 "desktop_region.cc", | 22 "desktop_region.cc", |
23 "desktop_region.h", | 23 "desktop_region.h", |
24 ] | 24 ] |
25 } | 25 } |
26 | 26 |
27 rtc_source_set("desktop_capture") { | 27 rtc_static_library("desktop_capture") { |
28 sources = [ | 28 sources = [ |
29 "cropped_desktop_frame.cc", | 29 "cropped_desktop_frame.cc", |
30 "cropped_desktop_frame.h", | 30 "cropped_desktop_frame.h", |
31 "cropping_window_capturer.cc", | 31 "cropping_window_capturer.cc", |
32 "cropping_window_capturer.h", | 32 "cropping_window_capturer.h", |
33 "cropping_window_capturer_win.cc", | 33 "cropping_window_capturer_win.cc", |
34 "desktop_and_cursor_composer.cc", | 34 "desktop_and_cursor_composer.cc", |
35 "desktop_and_cursor_composer.h", | 35 "desktop_and_cursor_composer.h", |
36 "desktop_capture_options.cc", | 36 "desktop_capture_options.cc", |
37 "desktop_capture_options.h", | 37 "desktop_capture_options.h", |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 ] | 161 ] |
162 | 162 |
163 if (use_desktop_capture_differ_sse2) { | 163 if (use_desktop_capture_differ_sse2) { |
164 deps += [ ":desktop_capture_differ_sse2" ] | 164 deps += [ ":desktop_capture_differ_sse2" ] |
165 } | 165 } |
166 } | 166 } |
167 | 167 |
168 if (use_desktop_capture_differ_sse2) { | 168 if (use_desktop_capture_differ_sse2) { |
169 # Have to be compiled as a separate target because it needs to be compiled | 169 # Have to be compiled as a separate target because it needs to be compiled |
170 # with SSE2 enabled. | 170 # with SSE2 enabled. |
171 rtc_source_set("desktop_capture_differ_sse2") { | 171 rtc_static_library("desktop_capture_differ_sse2") { |
172 visibility = [ ":*" ] | 172 visibility = [ ":*" ] |
173 sources = [ | 173 sources = [ |
174 "differ_vector_sse2.cc", | 174 "differ_vector_sse2.cc", |
175 "differ_vector_sse2.h", | 175 "differ_vector_sse2.h", |
176 ] | 176 ] |
177 | 177 |
178 if (is_posix) { | 178 if (is_posix) { |
179 cflags = [ "-msse2" ] | 179 cflags = [ "-msse2" ] |
180 } | 180 } |
181 } | 181 } |
182 } | 182 } |
OLD | NEW |