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/webrtc.gni") | 9 import("../../build/webrtc.gni") |
10 import("//testing/test.gni") | |
11 | 10 |
12 # Note this target is missing an implementation for the video capture. | 11 # Note this target is missing an implementation for the video capture. |
13 # Targets must link with either 'video_capture' or | 12 # Targets must link with either 'video_capture' or |
14 # 'video_capture_internal_impl' depending on whether they want to | 13 # 'video_capture_internal_impl' depending on whether they want to |
15 # use the internal capturer. | 14 # use the internal capturer. |
16 source_set("video_capture_module") { | 15 source_set("video_capture_module") { |
17 sources = [ | 16 sources = [ |
18 "device_info_impl.cc", | 17 "device_info_impl.cc", |
19 "device_info_impl.h", | 18 "device_info_impl.h", |
20 "video_capture.h", | 19 "video_capture.h", |
21 "video_capture_config.h", | 20 "video_capture_config.h", |
22 "video_capture_defines.h", | 21 "video_capture_defines.h", |
23 "video_capture_delay.h", | 22 "video_capture_delay.h", |
| 23 "video_capture_factory.h", |
24 "video_capture_factory.cc", | 24 "video_capture_factory.cc", |
25 "video_capture_factory.h", | |
26 "video_capture_impl.cc", | 25 "video_capture_impl.cc", |
27 "video_capture_impl.h", | 26 "video_capture_impl.h", |
28 ] | 27 ] |
29 | 28 |
30 deps = [ | 29 deps = [ |
31 "../..:webrtc_common", | 30 "../..:webrtc_common", |
32 "../../common_video", | 31 "../../common_video", |
33 "../../system_wrappers", | 32 "../../system_wrappers", |
34 "../utility", | 33 "../utility", |
35 ] | 34 ] |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 156 |
158 configs += [ "../..:common_config" ] | 157 configs += [ "../..:common_config" ] |
159 public_configs = [ "../..:common_inherited_config" ] | 158 public_configs = [ "../..:common_inherited_config" ] |
160 | 159 |
161 if (is_clang) { | 160 if (is_clang) { |
162 # Suppress warnings from Chrome's Clang plugins. | 161 # Suppress warnings from Chrome's Clang plugins. |
163 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 162 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
164 configs -= [ "//build/config/clang:find_bad_constructs" ] | 163 configs -= [ "//build/config/clang:find_bad_constructs" ] |
165 } | 164 } |
166 } | 165 } |
167 | |
168 # TODO(mflodman): Change to "if (!is_android)" when tests are working on Mac | |
169 if (is_linux && rtc_include_tests) { | |
170 test("video_capture_tests") { | |
171 sources = [ | |
172 "test/video_capture_main_mac.mm", | |
173 "test/video_capture_unittest.cc", | |
174 ] | |
175 | |
176 cflags = [] | |
177 if (is_linux || is_mac) { | |
178 cflags += [ "-Wno-write-strings" ] | |
179 } | |
180 | |
181 ldflags = [] | |
182 if (is_linux || is_mac) { | |
183 ldflags += [ | |
184 "-lpthread", | |
185 "-lm", | |
186 ] | |
187 } | |
188 if (is_linux) { | |
189 ldflags += [ | |
190 "-lrt", | |
191 "-lXext", | |
192 "-lX11", | |
193 ] | |
194 } | |
195 | |
196 deps = [ | |
197 ":video_capture_internal_impl", | |
198 ":video_capture_module", | |
199 "//webrtc/modules/utility", | |
200 "//webrtc/system_wrappers", | |
201 "//webrtc/test:video_test_common", | |
202 ] | |
203 if (!is_mac) { | |
204 deps += [ "//webrtc/test:test_support_main" ] | |
205 } | |
206 | |
207 # TODO(mflodman): Add Mac dependencies / xcode_settings. | |
208 | |
209 if (is_clang) { | |
210 # Suppress warnings from Chrome's Clang plugins. | |
211 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
212 configs -= [ "//build/config/clang:find_bad_constructs" ] | |
213 } | |
214 } | |
215 } | |
216 } | 166 } |
OLD | NEW |