| 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 group("capture") { | 9 group("capture") { |
| 10 public_deps = [ | 10 public_deps = [ |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 179 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
| 180 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 180 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 181 } | 181 } |
| 182 | 182 |
| 183 if (is_linux || is_chromeos || is_win) { | 183 if (is_linux || is_chromeos || is_win) { |
| 184 sources += [ | 184 sources += [ |
| 185 "video/blob_utils.cc", | 185 "video/blob_utils.cc", |
| 186 "video/blob_utils.h", | 186 "video/blob_utils.h", |
| 187 ] | 187 ] |
| 188 } | 188 } |
| 189 | |
| 190 if (is_chromeos) { | |
| 191 sources += [ | |
| 192 "video/chromeos/camera_device_context.cc", | |
| 193 "video/chromeos/camera_device_delegate.cc", | |
| 194 "video/chromeos/camera_hal_delegate.cc", | |
| 195 "video/chromeos/camera_metadata_utils.cc", | |
| 196 "video/chromeos/display_rotation_observer.cc", | |
| 197 "video/chromeos/pixel_format_utils.cc", | |
| 198 "video/chromeos/stream_buffer_manager.cc", | |
| 199 "video/chromeos/video_capture_device_arc_chromeos.cc", | |
| 200 "video/chromeos/video_capture_device_factory_chromeos.cc", | |
| 201 ] | |
| 202 deps += [ | |
| 203 "//media/capture/video/chromeos/mojo:arc_camera3", | |
| 204 "//mojo/edk/system", | |
| 205 "//third_party/libsync", | |
| 206 ] | |
| 207 } | |
| 208 } | 189 } |
| 209 | 190 |
| 210 test("capture_unittests") { | 191 test("capture_unittests") { |
| 211 sources = [ | 192 sources = [ |
| 212 "content/animated_content_sampler_unittest.cc", | 193 "content/animated_content_sampler_unittest.cc", |
| 213 "content/capture_resolution_chooser_unittest.cc", | 194 "content/capture_resolution_chooser_unittest.cc", |
| 214 "content/smooth_event_sampler_unittest.cc", | 195 "content/smooth_event_sampler_unittest.cc", |
| 215 "content/video_capture_oracle_unittest.cc", | 196 "content/video_capture_oracle_unittest.cc", |
| 216 "video/fake_video_capture_device_unittest.cc", | 197 "video/fake_video_capture_device_unittest.cc", |
| 217 "video/linux/camera_config_chromeos_unittest.cc", | 198 "video/linux/camera_config_chromeos_unittest.cc", |
| (...skipping 19 matching lines...) Expand all Loading... |
| 237 deps += [ | 218 deps += [ |
| 238 "//media/capture/video/android", | 219 "//media/capture/video/android", |
| 239 "//media/capture/video/android:capture_java", | 220 "//media/capture/video/android:capture_java", |
| 240 ] | 221 ] |
| 241 } | 222 } |
| 242 | 223 |
| 243 if (is_win) { | 224 if (is_win) { |
| 244 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 225 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
| 245 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 226 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 246 } | 227 } |
| 247 | |
| 248 if (is_chromeos) { | |
| 249 sources += [ | |
| 250 "video/chromeos/camera_device_delegate_unittest.cc", | |
| 251 "video/chromeos/camera_hal_delegate_unittest.cc", | |
| 252 "video/chromeos/mock_camera_module.cc", | |
| 253 "video/chromeos/mock_video_capture_client.cc", | |
| 254 "video/chromeos/stream_buffer_manager_unittest.cc", | |
| 255 ] | |
| 256 deps += [ | |
| 257 "//media/capture/video/chromeos/mojo:arc_camera3", | |
| 258 "//mojo/edk/system", | |
| 259 "//third_party/libsync", | |
| 260 ] | |
| 261 } | |
| 262 } | 228 } |
| OLD | NEW |