| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 ldflags = [ | 126 ldflags = [ |
| 127 "/DELAYLOAD:mf.dll", | 127 "/DELAYLOAD:mf.dll", |
| 128 "/DELAYLOAD:mfplat.dll", | 128 "/DELAYLOAD:mfplat.dll", |
| 129 "/DELAYLOAD:mfreadwrite.dll", | 129 "/DELAYLOAD:mfreadwrite.dll", |
| 130 ] | 130 ] |
| 131 | 131 |
| 132 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 132 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
| 133 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 133 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 134 } | 134 } |
| 135 | 135 |
| 136 if (is_linux || is_chromeos) { | 136 if (is_linux || is_chromeos || is_win) { |
| 137 sources += [ |
| 138 "video/blob_utils.cc", |
| 139 "video/blob_utils.h", |
| 140 ] |
| 137 deps += [ "//third_party/libyuv" ] | 141 deps += [ "//third_party/libyuv" ] |
| 138 } | 142 } |
| 139 } | 143 } |
| 140 | 144 |
| 141 test("capture_unittests") { | 145 test("capture_unittests") { |
| 142 sources = [ | 146 sources = [ |
| 143 "content/animated_content_sampler_unittest.cc", | 147 "content/animated_content_sampler_unittest.cc", |
| 144 "content/capture_resolution_chooser_unittest.cc", | 148 "content/capture_resolution_chooser_unittest.cc", |
| 145 "content/smooth_event_sampler_unittest.cc", | 149 "content/smooth_event_sampler_unittest.cc", |
| 146 "content/video_capture_oracle_unittest.cc", | 150 "content/video_capture_oracle_unittest.cc", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 165 "//media/capture/video/android", | 169 "//media/capture/video/android", |
| 166 "//media/capture/video/android:capture_java", | 170 "//media/capture/video/android:capture_java", |
| 167 ] | 171 ] |
| 168 } | 172 } |
| 169 | 173 |
| 170 if (is_win) { | 174 if (is_win) { |
| 171 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 175 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
| 172 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 176 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 173 } | 177 } |
| 174 } | 178 } |
| OLD | NEW |