OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//media/media_options.gni") | 6 import("//media/media_options.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 component("capture") { | 9 component("capture") { |
10 defines = [ "CAPTURE_IMPLEMENTATION" ] | 10 defines = [ "CAPTURE_IMPLEMENTATION" ] |
(...skipping 12 matching lines...) Expand all Loading... |
23 "content/video_capture_oracle.cc", | 23 "content/video_capture_oracle.cc", |
24 "content/video_capture_oracle.h", | 24 "content/video_capture_oracle.h", |
25 "video/fake_video_capture_device.cc", | 25 "video/fake_video_capture_device.cc", |
26 "video/fake_video_capture_device.h", | 26 "video/fake_video_capture_device.h", |
27 "video/fake_video_capture_device_factory.cc", | 27 "video/fake_video_capture_device_factory.cc", |
28 "video/fake_video_capture_device_factory.h", | 28 "video/fake_video_capture_device_factory.h", |
29 "video/file_video_capture_device.cc", | 29 "video/file_video_capture_device.cc", |
30 "video/file_video_capture_device.h", | 30 "video/file_video_capture_device.h", |
31 "video/file_video_capture_device_factory.cc", | 31 "video/file_video_capture_device_factory.cc", |
32 "video/file_video_capture_device_factory.h", | 32 "video/file_video_capture_device_factory.h", |
33 "video/linux/camera_facing_chromeos.cc", | 33 "video/linux/camera_config_chromeos.cc", |
34 "video/linux/camera_facing_chromeos.h", | 34 "video/linux/camera_config_chromeos.h", |
35 "video/linux/v4l2_capture_delegate.cc", | 35 "video/linux/v4l2_capture_delegate.cc", |
36 "video/linux/v4l2_capture_delegate.h", | 36 "video/linux/v4l2_capture_delegate.h", |
37 "video/linux/video_capture_device_chromeos.cc", | 37 "video/linux/video_capture_device_chromeos.cc", |
38 "video/linux/video_capture_device_chromeos.h", | 38 "video/linux/video_capture_device_chromeos.h", |
39 "video/linux/video_capture_device_factory_linux.cc", | 39 "video/linux/video_capture_device_factory_linux.cc", |
40 "video/linux/video_capture_device_factory_linux.h", | 40 "video/linux/video_capture_device_factory_linux.h", |
41 "video/linux/video_capture_device_linux.cc", | 41 "video/linux/video_capture_device_linux.cc", |
42 "video/linux/video_capture_device_linux.h", | 42 "video/linux/video_capture_device_linux.h", |
43 "video/mac/video_capture_device_avfoundation_mac.h", | 43 "video/mac/video_capture_device_avfoundation_mac.h", |
44 "video/mac/video_capture_device_avfoundation_mac.mm", | 44 "video/mac/video_capture_device_avfoundation_mac.mm", |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 } | 164 } |
165 } | 165 } |
166 | 166 |
167 test("capture_unittests") { | 167 test("capture_unittests") { |
168 sources = [ | 168 sources = [ |
169 "content/animated_content_sampler_unittest.cc", | 169 "content/animated_content_sampler_unittest.cc", |
170 "content/capture_resolution_chooser_unittest.cc", | 170 "content/capture_resolution_chooser_unittest.cc", |
171 "content/smooth_event_sampler_unittest.cc", | 171 "content/smooth_event_sampler_unittest.cc", |
172 "content/video_capture_oracle_unittest.cc", | 172 "content/video_capture_oracle_unittest.cc", |
173 "video/fake_video_capture_device_unittest.cc", | 173 "video/fake_video_capture_device_unittest.cc", |
174 "video/linux/camera_facing_chromeos_unittest.cc", | 174 "video/linux/camera_config_chromeos_unittest.cc", |
175 "video/linux/v4l2_capture_delegate_unittest.cc", | 175 "video/linux/v4l2_capture_delegate_unittest.cc", |
176 "video/mac/video_capture_device_factory_mac_unittest.mm", | 176 "video/mac/video_capture_device_factory_mac_unittest.mm", |
177 "video/video_capture_device_unittest.cc", | 177 "video/video_capture_device_unittest.cc", |
178 ] | 178 ] |
179 | 179 |
180 deps = [ | 180 deps = [ |
181 ":capture", | 181 ":capture", |
182 "//base/test:run_all_unittests", | 182 "//base/test:run_all_unittests", |
183 "//base/test:test_support", | 183 "//base/test:test_support", |
184 "//media/base:test_support", | 184 "//media/base:test_support", |
185 "//media/capture/mojo:image_capture", | 185 "//media/capture/mojo:image_capture", |
186 "//testing/gmock", | 186 "//testing/gmock", |
187 "//testing/gtest", | 187 "//testing/gtest", |
188 "//ui/gfx:test_support", | 188 "//ui/gfx:test_support", |
189 ] | 189 ] |
190 | 190 |
191 if (is_android) { | 191 if (is_android) { |
192 deps += [ | 192 deps += [ |
193 "//media/capture/video/android", | 193 "//media/capture/video/android", |
194 "//media/capture/video/android:capture_java", | 194 "//media/capture/video/android:capture_java", |
195 ] | 195 ] |
196 } | 196 } |
197 | 197 |
198 if (is_win) { | 198 if (is_win) { |
199 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 199 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
200 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 200 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
201 } | 201 } |
202 } | 202 } |
OLD | NEW |