blob: d46fd113c8be96b9d5c104f12d3b396318c76d7e [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000010
kjellanderb62dbbe2016-09-23 00:38:52 -070011rtc_static_library("video_coding") {
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000012 sources = [
Henrik Kjellander2557b862015-11-18 22:00:21 +010013 "codec_database.cc",
14 "codec_database.h",
15 "codec_timer.cc",
16 "codec_timer.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010017 "decoding_state.cc",
18 "decoding_state.h",
19 "encoded_frame.cc",
20 "encoded_frame.h",
brandtr71b1c1f2017-01-12 06:16:24 -080021 "fec_rate_table.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010022 "frame_buffer.cc",
23 "frame_buffer.h",
philipelbe7a9e52016-05-19 12:19:35 +020024 "frame_buffer2.cc",
25 "frame_buffer2.h",
philipelc707ab72016-04-01 02:01:54 -070026 "frame_object.cc",
27 "frame_object.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010028 "generic_decoder.cc",
29 "generic_decoder.h",
30 "generic_encoder.cc",
31 "generic_encoder.h",
johanb0a11112016-12-08 03:57:17 -080032 "h264_sprop_parameter_sets.cc",
33 "h264_sprop_parameter_sets.h",
philipel34852cf2016-11-03 04:03:01 -070034 "h264_sps_pps_tracker.cc",
35 "h264_sps_pps_tracker.h",
philipel83f831a2016-03-12 03:30:23 -080036 "histogram.cc",
37 "histogram.h",
Erik Språng08127a92016-11-16 16:41:30 +010038 "include/video_codec_initializer.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010039 "include/video_coding.h",
40 "include/video_coding_defines.h",
41 "inter_frame_delay.cc",
42 "inter_frame_delay.h",
43 "internal_defines.h",
44 "jitter_buffer.cc",
45 "jitter_buffer.h",
46 "jitter_buffer_common.h",
47 "jitter_estimator.cc",
48 "jitter_estimator.h",
49 "media_opt_util.cc",
50 "media_opt_util.h",
51 "media_optimization.cc",
52 "media_optimization.h",
53 "nack_fec_tables.h",
philipel83f831a2016-03-12 03:30:23 -080054 "nack_module.cc",
55 "nack_module.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010056 "packet.cc",
57 "packet.h",
philipelc707ab72016-04-01 02:01:54 -070058 "packet_buffer.cc",
59 "packet_buffer.h",
Per69b332d2016-06-02 15:45:42 +020060 "protection_bitrate_calculator.cc",
61 "protection_bitrate_calculator.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010062 "receiver.cc",
63 "receiver.h",
philipel02447bc2016-05-13 06:01:03 -070064 "rtp_frame_reference_finder.cc",
65 "rtp_frame_reference_finder.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010066 "rtt_filter.cc",
67 "rtt_filter.h",
68 "session_info.cc",
69 "session_info.h",
70 "timestamp_map.cc",
71 "timestamp_map.h",
72 "timing.cc",
73 "timing.h",
Erik Språng08127a92016-11-16 16:41:30 +010074 "video_codec_initializer.cc",
Henrik Kjellander2557b862015-11-18 22:00:21 +010075 "video_coding_impl.cc",
76 "video_coding_impl.h",
77 "video_receiver.cc",
78 "video_sender.cc",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000079 ]
80
kjellander8f4419b2016-06-02 02:09:52 -070081 # TODO(jschuh): Bug 1348: fix this warning.
82 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +000083
kjellandere40a7ee2016-10-16 23:56:12 -070084 if (!build_with_chromium && is_clang) {
85 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070086 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000087 }
88
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000089 deps = [
90 ":video_coding_utility",
Zeke Chin71f6f442015-06-29 14:34:58 -070091 ":webrtc_h264",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000092 ":webrtc_i420",
93 ":webrtc_vp8",
marpan@webrtc.org5b883172014-11-01 06:10:48 +000094 ":webrtc_vp9",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000095 "../..:webrtc_common",
ehmaldonado36df2d72016-12-08 09:56:16 -080096 "../../base:rtc_base",
97 "../../base:rtc_base_approved",
tereliusbc5d9212017-01-13 09:14:33 -080098 "../../base:rtc_numerics",
ehmaldonado36df2d72016-12-08 09:56:16 -080099 "../../base:rtc_task_queue",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000100 "../../common_video",
101 "../../system_wrappers",
ehmaldonado36df2d72016-12-08 09:56:16 -0800102 "../rtp_rtcp:rtp_rtcp",
103 "../utility:utility",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000104 ]
105}
106
kjellanderb62dbbe2016-09-23 00:38:52 -0700107rtc_static_library("video_coding_utility") {
ehmaldonado36df2d72016-12-08 09:56:16 -0800108 # TODO(ehmaldonado): Remove (bugs.webrtc.org/6828)
109 # Errors on cyclic dependency with :video_coding if enabled.
110 check_includes = false
111
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000112 sources = [
Erik Språng08127a92016-11-16 16:41:30 +0100113 "utility/default_video_bitrate_allocator.cc",
114 "utility/default_video_bitrate_allocator.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000115 "utility/frame_dropper.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100116 "utility/frame_dropper.h",
sprang3911c262016-04-15 01:24:14 -0700117 "utility/ivf_file_writer.cc",
118 "utility/ivf_file_writer.h",
kthelgason194f40a2016-09-14 02:14:58 -0700119 "utility/moving_average.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100120 "utility/moving_average.h",
asapersson86b01602015-10-20 23:55:26 -0700121 "utility/qp_parser.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100122 "utility/qp_parser.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000123 "utility/quality_scaler.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100124 "utility/quality_scaler.h",
Erik Språng78ce6192016-09-12 16:04:43 +0200125 "utility/simulcast_rate_allocator.cc",
126 "utility/simulcast_rate_allocator.h",
jackychen98d8cf52015-05-21 11:12:02 -0700127 "utility/vp8_header_parser.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100128 "utility/vp8_header_parser.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000129 ]
130
kjellandere40a7ee2016-10-16 23:56:12 -0700131 if (!build_with_chromium && is_clang) {
132 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700133 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000134 }
135
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200136 deps = [
ehmaldonado36df2d72016-12-08 09:56:16 -0800137 "../..:webrtc_common",
ehmaldonado36df2d72016-12-08 09:56:16 -0800138 "../../base:rtc_base_approved",
tereliusbc5d9212017-01-13 09:14:33 -0800139 "../../base:rtc_numerics",
perkj4e417b22016-07-14 23:35:55 -0700140 "../../common_video",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200141 "../../system_wrappers",
142 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000143}
144
kjellanderb62dbbe2016-09-23 00:38:52 -0700145rtc_static_library("webrtc_h264") {
ehmaldonado36df2d72016-12-08 09:56:16 -0800146 # TODO(ehmaldonado): Remove (bugs.webrtc.org/6828)
147 # Errors on cyclic dependency if enabled:
148 # //webrtc/call:call ->
149 # //webrtc/video:video ->
150 # //webrtc/modules/video_coding:video_coding ->
151 # //webrtc/modules/video_coding:webrtc_h264 ->
152 # //webrtc/media:rtc_media ->
153 # //webrtc/call:call
154 check_includes = false
155
Zeke Chin71f6f442015-06-29 14:34:58 -0700156 sources = [
157 "codecs/h264/h264.cc",
158 "codecs/h264/include/h264.h",
159 ]
160
kjellandere40a7ee2016-10-16 23:56:12 -0700161 if (!build_with_chromium && is_clang) {
162 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700163 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700164 }
165
hbosbab934b2016-01-27 01:36:03 -0800166 defines = []
Zeke Chin71f6f442015-06-29 14:34:58 -0700167 deps = [
ehmaldonado36df2d72016-12-08 09:56:16 -0800168 ":video_coding_utility",
169 "../../base:rtc_base_approved",
Zeke Chin71f6f442015-06-29 14:34:58 -0700170 "../../system_wrappers",
171 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800172
hbos902c03e2016-01-21 03:34:40 -0800173 if (rtc_use_h264) {
hbos9dc59282016-02-03 05:09:37 -0800174 defines += [ "WEBRTC_USE_H264" ]
hbosc5a39c22016-02-02 02:26:05 -0800175 if (rtc_initialize_ffmpeg) {
176 defines += [ "WEBRTC_INITIALIZE_FFMPEG" ]
177 }
hbosbab934b2016-01-27 01:36:03 -0800178 sources += [
179 "codecs/h264/h264_decoder_impl.cc",
180 "codecs/h264/h264_decoder_impl.h",
181 "codecs/h264/h264_encoder_impl.cc",
182 "codecs/h264/h264_encoder_impl.h",
183 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800184 deps += [
kjellanderf6b55092016-02-07 23:04:26 -0800185 "../../common_video",
hta9aa96882016-12-06 05:36:03 -0800186 "../../media:rtc_media_base",
hbosa9a1d2a2016-01-11 10:19:02 -0800187 "//third_party/ffmpeg:ffmpeg",
188 "//third_party/openh264:encoder",
189 ]
190 }
Zeke Chin71f6f442015-06-29 14:34:58 -0700191}
192
kjellanderb62dbbe2016-09-23 00:38:52 -0700193rtc_static_library("webrtc_i420") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000194 sources = [
Henrik Kjellandera74c08d2015-10-22 12:23:11 +0200195 "codecs/i420/i420.cc",
196 "codecs/i420/include/i420.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000197 ]
198
kjellandere40a7ee2016-10-16 23:56:12 -0700199 if (!build_with_chromium && is_clang) {
200 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700201 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000202 }
203
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200204 deps = [
ehmaldonado36df2d72016-12-08 09:56:16 -0800205 "../..:webrtc_common",
206 "../../base:rtc_base_approved",
207 "../../common_video:common_video",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200208 "../../system_wrappers",
209 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000210}
211
kjellanderb62dbbe2016-09-23 00:38:52 -0700212rtc_static_library("webrtc_vp8") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000213 sources = [
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000214 "codecs/vp8/default_temporal_layers.cc",
215 "codecs/vp8/default_temporal_layers.h",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000216 "codecs/vp8/include/vp8.h",
217 "codecs/vp8/include/vp8_common_types.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000218 "codecs/vp8/realtime_temporal_layers.cc",
219 "codecs/vp8/reference_picture_selection.cc",
220 "codecs/vp8/reference_picture_selection.h",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000221 "codecs/vp8/screenshare_layers.cc",
222 "codecs/vp8/screenshare_layers.h",
223 "codecs/vp8/simulcast_encoder_adapter.cc",
224 "codecs/vp8/simulcast_encoder_adapter.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000225 "codecs/vp8/temporal_layers.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000226 "codecs/vp8/vp8_impl.cc",
227 "codecs/vp8/vp8_impl.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000228 ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000229
kjellander8f4419b2016-06-02 02:09:52 -0700230 # TODO(jschuh): Bug 1348: fix this warning.
231 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
232
kjellandere40a7ee2016-10-16 23:56:12 -0700233 if (!build_with_chromium && is_clang) {
234 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000236 }
237
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000238 deps = [
239 ":video_coding_utility",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000240 "../..:webrtc_common",
ehmaldonado36df2d72016-12-08 09:56:16 -0800241 "../../base:rtc_base_approved",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000242 "../../common_video",
243 "../../system_wrappers",
244 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000245 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200246 deps += [ rtc_libvpx_dir ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000247 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000248}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000249
kjellanderb62dbbe2016-09-23 00:38:52 -0700250rtc_static_library("webrtc_vp9") {
phoglund33603522016-10-05 06:52:22 -0700251 if (rtc_libvpx_build_vp9) {
252 sources = [
253 "codecs/vp9/include/vp9.h",
254 "codecs/vp9/screenshare_layers.cc",
255 "codecs/vp9/screenshare_layers.h",
256 "codecs/vp9/vp9_frame_buffer_pool.cc",
257 "codecs/vp9/vp9_frame_buffer_pool.h",
258 "codecs/vp9/vp9_impl.cc",
259 "codecs/vp9/vp9_impl.h",
260 ]
261 } else {
262 sources = [
263 "codecs/vp9/vp9_noop.cc",
264 ]
265 }
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000266
kjellandere40a7ee2016-10-16 23:56:12 -0700267 if (!build_with_chromium && is_clang) {
268 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700269 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000270 }
271
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000272 deps = [
273 ":video_coding_utility",
ehmaldonado36df2d72016-12-08 09:56:16 -0800274 "../../base:rtc_base_approved",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000275 "../../common_video",
276 "../../system_wrappers",
277 ]
278 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200279 deps += [ rtc_libvpx_dir ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000280 }
281}
kjellanderfb114242016-06-13 00:19:48 -0700282
283if (rtc_include_tests) {
brandtr52cdd3b2017-01-26 02:25:21 -0800284 rtc_executable("video_quality_measurement") {
285 testonly = true
286
287 sources = [
288 "codecs/tools/video_quality_measurement.cc",
289 ]
290
291 if (!build_with_chromium && is_clang) {
292 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
293 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
294 }
295
296 deps = [
297 ":video_codecs_test_framework",
298 ":video_coding",
299 ":webrtc_vp8",
300 "../..:webrtc_common",
301 "../../base:rtc_base_approved",
302 "../../system_wrappers:field_trial_default",
303 "../../system_wrappers:metrics_default",
304 "../../system_wrappers:system_wrappers",
305 "../../test:test_support",
ehmaldonado656610f2017-02-06 02:21:11 -0800306 "../../test:video_test_common",
307 "../../test:video_test_support",
308 "../video_capture",
brandtr52cdd3b2017-01-26 02:25:21 -0800309 "//third_party/gflags",
310 ]
311 } # video_quality_measurement
312
ehmaldonado38a21322016-09-02 04:10:34 -0700313 rtc_source_set("video_codecs_test_framework") {
kjellanderfb114242016-06-13 00:19:48 -0700314 testonly = true
315 sources = [
316 "codecs/test/mock/mock_packet_manipulator.h",
317 "codecs/test/packet_manipulator.cc",
318 "codecs/test/packet_manipulator.h",
319 "codecs/test/predictive_packet_manipulator.cc",
320 "codecs/test/predictive_packet_manipulator.h",
321 "codecs/test/stats.cc",
322 "codecs/test/stats.h",
323 "codecs/test/videoprocessor.cc",
324 "codecs/test/videoprocessor.h",
325 ]
326
kjellandere40a7ee2016-10-16 23:56:12 -0700327 if (!build_with_chromium && is_clang) {
328 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700329 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -0700330 }
331
332 deps = [
ehmaldonado36df2d72016-12-08 09:56:16 -0800333 ":video_coding",
334 ":video_coding_utility",
335 "../..:webrtc_common",
336 "../../base:rtc_base_approved",
337 "../../common_video:common_video",
338 "../../system_wrappers:system_wrappers",
kjellanderfb114242016-06-13 00:19:48 -0700339 "../../test:test_support",
ehmaldonado656610f2017-02-06 02:21:11 -0800340 "../../test:video_test_support",
kjellanderfb114242016-06-13 00:19:48 -0700341 ]
342 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800343
344 rtc_source_set("video_coding_modules_tests") {
345 testonly = true
346 sources = [
347 "codecs/test/videoprocessor_integrationtest.cc",
348 "codecs/vp8/test/vp8_impl_unittest.cc",
349 ]
350 deps = [
351 ":video_codecs_test_framework",
352 ":video_coding",
353 ":webrtc_h264",
354 ":webrtc_vp8",
355 ":webrtc_vp9",
356 "../..:webrtc_common",
357 "../../api:video_frame_api",
358 "../../base:rtc_base_approved",
359 "../../common_video:common_video",
360 "../../media:rtc_media_base",
361 "../../test:test_support",
362 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800363 "../../test:video_test_support",
364 "../video_capture",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800365 ]
366 if (rtc_use_h264) {
367 defines = [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ]
368 }
369 if (!build_with_chromium && is_clang) {
370 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
371 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
372 }
373 }
374
ehmaldonado36268652017-01-19 08:27:11 -0800375 rtc_source_set("video_coding_unittests") {
376 testonly = true
377 sources = [
378 "codecs/test/packet_manipulator_unittest.cc",
379 "codecs/test/stats_unittest.cc",
380 "codecs/test/videoprocessor_unittest.cc",
381 "codecs/vp8/default_temporal_layers_unittest.cc",
382 "codecs/vp8/reference_picture_selection_unittest.cc",
383 "codecs/vp8/screenshare_layers_unittest.cc",
384 "codecs/vp8/simulcast_encoder_adapter_unittest.cc",
385 "codecs/vp8/simulcast_unittest.cc",
386 "codecs/vp8/simulcast_unittest.h",
387 "decoding_state_unittest.cc",
388 "frame_buffer2_unittest.cc",
389 "h264_sprop_parameter_sets_unittest.cc",
390 "h264_sps_pps_tracker_unittest.cc",
391 "histogram_unittest.cc",
392 "include/mock/mock_vcm_callbacks.h",
393 "jitter_buffer_unittest.cc",
394 "jitter_estimator_tests.cc",
395 "nack_module_unittest.cc",
396 "protection_bitrate_calculator_unittest.cc",
397 "receiver_unittest.cc",
398 "rtp_frame_reference_finder_unittest.cc",
399 "sequence_number_util_unittest.cc",
400 "session_info_unittest.cc",
401 "test/stream_generator.cc",
402 "test/stream_generator.h",
403 "timing_unittest.cc",
404 "utility/default_video_bitrate_allocator_unittest.cc",
405 "utility/frame_dropper_unittest.cc",
406 "utility/ivf_file_writer_unittest.cc",
407 "utility/moving_average_unittest.cc",
408 "utility/quality_scaler_unittest.cc",
409 "utility/simulcast_rate_allocator_unittest.cc",
sprang429600d2017-01-26 06:12:26 -0800410 "video_codec_initializer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800411 "video_coding_robustness_unittest.cc",
412 "video_packet_buffer_unittest.cc",
413 "video_receiver_unittest.cc",
414 "video_sender_unittest.cc",
415 ]
416 if (rtc_libvpx_build_vp9) {
417 sources += [ "codecs/vp9/vp9_screenshare_layers_unittest.cc" ]
418 }
419 if (rtc_use_h264) {
420 sources += [ "codecs/h264/h264_encoder_impl_unittest.cc" ]
421 }
422 deps = [
423 ":video_codecs_test_framework",
424 ":video_coding",
425 ":video_coding_utility",
426 ":webrtc_h264",
427 ":webrtc_vp8",
428 ":webrtc_vp9",
429 "../..:webrtc_common",
430 "../../api:video_frame_api",
431 "../../base:rtc_base",
432 "../../base:rtc_base_approved",
433 "../../base:rtc_task_queue",
434 "../../common_video:common_video",
435 "../../system_wrappers:metrics_default",
436 "../../system_wrappers:system_wrappers",
437 "../../test:field_trial",
438 "../../test:test_support",
439 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800440 "../../test:video_test_support",
ehmaldonado36268652017-01-19 08:27:11 -0800441 "../rtp_rtcp:rtp_rtcp",
442 "//testing/gmock",
443 ]
444 if (rtc_build_libvpx) {
445 deps += [ rtc_libvpx_dir ]
446 }
447 if (is_win) {
448 cflags = [
449 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
450 "/wd4373", # virtual function override.
451 ]
452 }
453
454 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning.
455 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
456 if (!build_with_chromium && is_clang) {
457 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
458 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
459 }
460 }
kjellanderfb114242016-06-13 00:19:48 -0700461}