| 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" ] |
| 11 sources = [ | 11 sources = [ |
| 12 "capture_export.h", | 12 "capture_export.h", |
| 13 "content/animated_content_sampler.cc", | 13 "content/animated_content_sampler.cc", |
| 14 "content/animated_content_sampler.h", | 14 "content/animated_content_sampler.h", |
| 15 "content/capture_resolution_chooser.cc", | 15 "content/capture_resolution_chooser.cc", |
| 16 "content/capture_resolution_chooser.h", | 16 "content/capture_resolution_chooser.h", |
| 17 "content/feedback_signal_accumulator.h", | |
| 18 "content/screen_capture_device_core.cc", | 17 "content/screen_capture_device_core.cc", |
| 19 "content/screen_capture_device_core.h", | 18 "content/screen_capture_device_core.h", |
| 20 "content/smooth_event_sampler.cc", | 19 "content/smooth_event_sampler.cc", |
| 21 "content/smooth_event_sampler.h", | 20 "content/smooth_event_sampler.h", |
| 22 "content/thread_safe_capture_oracle.cc", | 21 "content/thread_safe_capture_oracle.cc", |
| 23 "content/thread_safe_capture_oracle.h", | 22 "content/thread_safe_capture_oracle.h", |
| 24 "content/video_capture_oracle.cc", | 23 "content/video_capture_oracle.cc", |
| 25 "content/video_capture_oracle.h", | 24 "content/video_capture_oracle.h", |
| 26 "device_monitor_mac.h", | 25 "device_monitor_mac.h", |
| 27 "device_monitor_mac.mm", | 26 "device_monitor_mac.mm", |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 144 |
| 146 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 145 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
| 147 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 146 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 148 } | 147 } |
| 149 } | 148 } |
| 150 | 149 |
| 151 test("capture_unittests") { | 150 test("capture_unittests") { |
| 152 sources = [ | 151 sources = [ |
| 153 "content/animated_content_sampler_unittest.cc", | 152 "content/animated_content_sampler_unittest.cc", |
| 154 "content/capture_resolution_chooser_unittest.cc", | 153 "content/capture_resolution_chooser_unittest.cc", |
| 155 "content/feedback_signal_accumulator_unittest.cc", | |
| 156 "content/smooth_event_sampler_unittest.cc", | 154 "content/smooth_event_sampler_unittest.cc", |
| 157 "content/video_capture_oracle_unittest.cc", | 155 "content/video_capture_oracle_unittest.cc", |
| 158 "system_message_window_win_unittest.cc", | 156 "system_message_window_win_unittest.cc", |
| 159 "video/fake_video_capture_device_unittest.cc", | 157 "video/fake_video_capture_device_unittest.cc", |
| 160 "video/mac/video_capture_device_factory_mac_unittest.mm", | 158 "video/mac/video_capture_device_factory_mac_unittest.mm", |
| 161 "video/video_capture_device_unittest.cc", | 159 "video/video_capture_device_unittest.cc", |
| 162 ] | 160 ] |
| 163 | 161 |
| 164 deps = [ | 162 deps = [ |
| 165 ":capture", | 163 ":capture", |
| 166 "//base/test:run_all_unittests", | 164 "//base/test:run_all_unittests", |
| 167 "//base/test:test_support", | 165 "//base/test:test_support", |
| 168 "//media/base:test_support", | 166 "//media/base:test_support", |
| 169 "//media/mojo/interfaces:image_capture", | 167 "//media/mojo/interfaces:image_capture", |
| 170 "//testing/gmock", | 168 "//testing/gmock", |
| 171 "//testing/gtest", | 169 "//testing/gtest", |
| 172 "//ui/gfx:test_support", | 170 "//ui/gfx:test_support", |
| 173 ] | 171 ] |
| 174 | 172 |
| 175 if (is_android) { | 173 if (is_android) { |
| 176 deps += [ "//media/capture/video/android:capture_java" ] | 174 deps += [ "//media/capture/video/android:capture_java" ] |
| 177 } | 175 } |
| 178 | 176 |
| 179 if (is_win) { | 177 if (is_win) { |
| 180 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 178 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
| 181 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 179 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 182 } | 180 } |
| 183 } | 181 } |
| OLD | NEW |