| 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 29 matching lines...) Expand all Loading... |
| 40 "video/linux/video_capture_device_linux.h", | 40 "video/linux/video_capture_device_linux.h", |
| 41 "video/mac/video_capture_device_avfoundation_mac.h", | 41 "video/mac/video_capture_device_avfoundation_mac.h", |
| 42 "video/mac/video_capture_device_avfoundation_mac.mm", | 42 "video/mac/video_capture_device_avfoundation_mac.mm", |
| 43 "video/mac/video_capture_device_decklink_mac.h", | 43 "video/mac/video_capture_device_decklink_mac.h", |
| 44 "video/mac/video_capture_device_decklink_mac.mm", | 44 "video/mac/video_capture_device_decklink_mac.mm", |
| 45 "video/mac/video_capture_device_factory_mac.h", | 45 "video/mac/video_capture_device_factory_mac.h", |
| 46 "video/mac/video_capture_device_factory_mac.mm", | 46 "video/mac/video_capture_device_factory_mac.mm", |
| 47 "video/mac/video_capture_device_mac.h", | 47 "video/mac/video_capture_device_mac.h", |
| 48 "video/mac/video_capture_device_mac.mm", | 48 "video/mac/video_capture_device_mac.mm", |
| 49 "video/scoped_result_callback.h", | 49 "video/scoped_result_callback.h", |
| 50 "video/video_capture_buffer_handle.h", |
| 51 "video/video_capture_buffer_pool.h", |
| 52 "video/video_capture_buffer_pool_impl.cc", |
| 53 "video/video_capture_buffer_pool_impl.h", |
| 54 "video/video_capture_buffer_tracker.h", |
| 55 "video/video_capture_buffer_tracker_factory.h", |
| 50 "video/video_capture_device.cc", | 56 "video/video_capture_device.cc", |
| 51 "video/video_capture_device.h", | 57 "video/video_capture_device.h", |
| 58 "video/video_capture_device_client.cc", |
| 59 "video/video_capture_device_client.h", |
| 52 "video/video_capture_device_descriptor.cc", | 60 "video/video_capture_device_descriptor.cc", |
| 53 "video/video_capture_device_descriptor.h", | 61 "video/video_capture_device_descriptor.h", |
| 54 "video/video_capture_device_factory.cc", | 62 "video/video_capture_device_factory.cc", |
| 55 "video/video_capture_device_factory.h", | 63 "video/video_capture_device_factory.h", |
| 64 "video/video_capture_jpeg_decoder.h", |
| 65 "video/video_frame_receiver.h", |
| 56 "video/win/capability_list_win.cc", | 66 "video/win/capability_list_win.cc", |
| 57 "video/win/capability_list_win.h", | 67 "video/win/capability_list_win.h", |
| 58 "video/win/filter_base_win.cc", | 68 "video/win/filter_base_win.cc", |
| 59 "video/win/filter_base_win.h", | 69 "video/win/filter_base_win.h", |
| 60 "video/win/pin_base_win.cc", | 70 "video/win/pin_base_win.cc", |
| 61 "video/win/pin_base_win.h", | 71 "video/win/pin_base_win.h", |
| 62 "video/win/sink_filter_observer_win.h", | 72 "video/win/sink_filter_observer_win.h", |
| 63 "video/win/sink_filter_win.cc", | 73 "video/win/sink_filter_win.cc", |
| 64 "video/win/sink_filter_win.h", | 74 "video/win/sink_filter_win.h", |
| 65 "video/win/sink_input_pin_win.cc", | 75 "video/win/sink_input_pin_win.cc", |
| 66 "video/win/sink_input_pin_win.h", | 76 "video/win/sink_input_pin_win.h", |
| 67 "video/win/video_capture_device_factory_win.cc", | 77 "video/win/video_capture_device_factory_win.cc", |
| 68 "video/win/video_capture_device_factory_win.h", | 78 "video/win/video_capture_device_factory_win.h", |
| 69 "video/win/video_capture_device_mf_win.cc", | 79 "video/win/video_capture_device_mf_win.cc", |
| 70 "video/win/video_capture_device_mf_win.h", | 80 "video/win/video_capture_device_mf_win.h", |
| 71 "video/win/video_capture_device_win.cc", | 81 "video/win/video_capture_device_win.cc", |
| 72 "video/win/video_capture_device_win.h", | 82 "video/win/video_capture_device_win.h", |
| 73 ] | 83 ] |
| 74 | 84 |
| 75 public_deps = [] | 85 public_deps = [] |
| 76 deps = [ | 86 deps = [ |
| 77 "//base", | 87 "//base", |
| 78 "//base:i18n", | 88 "//base:i18n", |
| 79 "//media", | 89 "//media", |
| 80 "//media/mojo/interfaces:image_capture", | 90 "//media/mojo/interfaces:image_capture", |
| 81 "//skia", | 91 "//skia", |
| 92 "//third_party/libyuv", |
| 82 "//ui/display", | 93 "//ui/display", |
| 83 "//ui/gfx", | 94 "//ui/gfx", |
| 84 ] | 95 ] |
| 85 | 96 |
| 86 configs += [ | 97 configs += [ |
| 87 # TODO(mcasas): media/base should be a component and not a source_set, but | 98 # TODO(mcasas): media/base should be a component and not a source_set, but |
| 88 # it depends on parts of media/filters, media/ffmpeg etc. Until then, we | 99 # it depends on parts of media/filters, media/ffmpeg etc. Until then, we |
| 89 # pretend to be inside media.dll and duplicate the few symbols needed, see | 100 # pretend to be inside media.dll and duplicate the few symbols needed, see |
| 90 # https://crbug.com/590017. | 101 # https://crbug.com/590017. |
| 91 "//media:media_implementation", | 102 "//media:media_implementation", |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 142 |
| 132 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 143 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
| 133 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 144 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 134 } | 145 } |
| 135 | 146 |
| 136 if (is_linux || is_chromeos || is_win) { | 147 if (is_linux || is_chromeos || is_win) { |
| 137 sources += [ | 148 sources += [ |
| 138 "video/blob_utils.cc", | 149 "video/blob_utils.cc", |
| 139 "video/blob_utils.h", | 150 "video/blob_utils.h", |
| 140 ] | 151 ] |
| 141 deps += [ "//third_party/libyuv" ] | |
| 142 } | 152 } |
| 143 } | 153 } |
| 144 | 154 |
| 145 test("capture_unittests") { | 155 test("capture_unittests") { |
| 146 sources = [ | 156 sources = [ |
| 147 "content/animated_content_sampler_unittest.cc", | 157 "content/animated_content_sampler_unittest.cc", |
| 148 "content/capture_resolution_chooser_unittest.cc", | 158 "content/capture_resolution_chooser_unittest.cc", |
| 149 "content/smooth_event_sampler_unittest.cc", | 159 "content/smooth_event_sampler_unittest.cc", |
| 150 "content/video_capture_oracle_unittest.cc", | 160 "content/video_capture_oracle_unittest.cc", |
| 151 "video/fake_video_capture_device_unittest.cc", | 161 "video/fake_video_capture_device_unittest.cc", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 169 "//media/capture/video/android", | 179 "//media/capture/video/android", |
| 170 "//media/capture/video/android:capture_java", | 180 "//media/capture/video/android:capture_java", |
| 171 ] | 181 ] |
| 172 } | 182 } |
| 173 | 183 |
| 174 if (is_win) { | 184 if (is_win) { |
| 175 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 185 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
| 176 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 186 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 177 } | 187 } |
| 178 } | 188 } |
| OLD | NEW |