blob: 721773d3aeb5b2bda79d300136684550b71bfeca [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") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000012 visibility = [ "*" ]
Anders Carlssondd8c1652018-01-30 10:32:13 +010013 deps = []
14
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000015 sources = [
Henrik Kjellander2557b862015-11-18 22:00:21 +010016 "codec_database.cc",
17 "codec_database.h",
18 "codec_timer.cc",
19 "codec_timer.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010020 "decoding_state.cc",
21 "decoding_state.h",
22 "encoded_frame.cc",
23 "encoded_frame.h",
Ying Wang3b790f32018-01-19 17:58:57 +010024 "fec_controller_default.cc",
25 "fec_controller_default.h",
brandtr71b1c1f2017-01-12 06:16:24 -080026 "fec_rate_table.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010027 "frame_buffer.cc",
28 "frame_buffer.h",
philipelbe7a9e52016-05-19 12:19:35 +020029 "frame_buffer2.cc",
30 "frame_buffer2.h",
philipelc707ab72016-04-01 02:01:54 -070031 "frame_object.cc",
32 "frame_object.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010033 "generic_decoder.cc",
34 "generic_decoder.h",
35 "generic_encoder.cc",
36 "generic_encoder.h",
johanb0a11112016-12-08 03:57:17 -080037 "h264_sprop_parameter_sets.cc",
38 "h264_sprop_parameter_sets.h",
philipel34852cf2016-11-03 04:03:01 -070039 "h264_sps_pps_tracker.cc",
40 "h264_sps_pps_tracker.h",
philipel83f831a2016-03-12 03:30:23 -080041 "histogram.cc",
42 "histogram.h",
Erik Språng08127a92016-11-16 16:41:30 +010043 "include/video_codec_initializer.h",
Ying Wang3b790f32018-01-19 17:58:57 +010044 "include/video_coding.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010045 "inter_frame_delay.cc",
46 "inter_frame_delay.h",
47 "internal_defines.h",
48 "jitter_buffer.cc",
49 "jitter_buffer.h",
50 "jitter_buffer_common.h",
51 "jitter_estimator.cc",
52 "jitter_estimator.h",
53 "media_opt_util.cc",
54 "media_opt_util.h",
55 "media_optimization.cc",
56 "media_optimization.h",
57 "nack_fec_tables.h",
philipel83f831a2016-03-12 03:30:23 -080058 "nack_module.cc",
59 "nack_module.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010060 "packet.cc",
61 "packet.h",
philipelc707ab72016-04-01 02:01:54 -070062 "packet_buffer.cc",
63 "packet_buffer.h",
kjellandera8d8aad2017-03-08 05:42:26 -080064 "qp_parser.cc",
65 "qp_parser.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010066 "receiver.cc",
67 "receiver.h",
philipel02447bc2016-05-13 06:01:03 -070068 "rtp_frame_reference_finder.cc",
69 "rtp_frame_reference_finder.h",
Henrik Kjellander2557b862015-11-18 22:00:21 +010070 "rtt_filter.cc",
71 "rtt_filter.h",
72 "session_info.cc",
73 "session_info.h",
74 "timestamp_map.cc",
75 "timestamp_map.h",
76 "timing.cc",
77 "timing.h",
Erik Språng08127a92016-11-16 16:41:30 +010078 "video_codec_initializer.cc",
Henrik Kjellander2557b862015-11-18 22:00:21 +010079 "video_coding_impl.cc",
80 "video_coding_impl.h",
81 "video_receiver.cc",
82 "video_sender.cc",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000083 ]
84
kjellander8f4419b2016-06-02 02:09:52 -070085 # TODO(jschuh): Bug 1348: fix this warning.
86 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +000087
kjellandere40a7ee2016-10-16 23:56:12 -070088 if (!build_with_chromium && is_clang) {
89 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070090 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000091 }
92
Anders Carlssondd8c1652018-01-30 10:32:13 +010093 if (rtc_use_builtin_sw_codecs) {
94 deps += [
95 ":webrtc_i420",
96 ":webrtc_vp8",
97 ":webrtc_vp9",
98 ]
99 }
100
101 deps += [
Rasmus Brandt88f080a2017-11-02 14:28:06 +0100102 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100103 ":video_codec_interface",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000104 ":video_coding_utility",
Zeke Chin71f6f442015-06-29 14:34:58 -0700105 ":webrtc_h264",
Anders Carlssona114c882018-01-04 15:10:22 +0100106 ":webrtc_vp8_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700107 "..:module_api",
Ilya Nikolaevskiy76f2a852017-11-16 14:33:53 +0100108 "..:module_api_public",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000109 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +0100110 "../../:typedefs",
Ying Wang3b790f32018-01-19 17:58:57 +0100111 "../../api:fec_controller_api",
kwiberg84f6a3f2017-09-05 08:43:13 -0700112 "../../api:optional",
Mirko Bonadei0594a7c2017-12-18 11:42:48 +0100113 "../../api:video_frame_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100114 "../../api:video_frame_api_i420",
Patrik Höglund99175c62018-01-08 11:05:10 +0100115 "../../api/video_codecs:video_codecs_api",
aleloi440b6d92017-08-22 05:43:23 -0700116 "../../call:video_stream_api",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000117 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100118 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700119 "../../rtc_base:rtc_base",
120 "../../rtc_base:rtc_base_approved",
121 "../../rtc_base:rtc_numerics",
122 "../../rtc_base:rtc_task_queue",
123 "../../rtc_base:sequenced_task_checker",
Sebastian Janssoncabe3832018-01-12 10:54:18 +0100124 "../../rtc_base/experiments:alr_experiment",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000125 "../../system_wrappers",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100126 "../../system_wrappers:field_trial_api",
127 "../../system_wrappers:metrics_api",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100128 "../rtp_rtcp:rtp_rtcp_format",
ehmaldonado36df2d72016-12-08 09:56:16 -0800129 "../utility:utility",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000130 ]
131}
132
Patrik Höglund99175c62018-01-08 11:05:10 +0100133rtc_source_set("video_codec_interface") {
Patrik Höglunda2ac1b42018-01-15 16:01:43 +0100134 visibility = [ "*" ]
Patrik Höglund99175c62018-01-08 11:05:10 +0100135 sources = [
136 "include/video_codec_interface.h",
137 "include/video_coding_defines.h",
138 "include/video_error_codes.h",
139 ]
140 deps = [
141 "..:module_api",
142 "../..:typedefs",
143 "../..:webrtc_common",
144 "../../api:video_frame_api",
145 "../../api/video_codecs:video_codecs_api",
146 "../../common_video:common_video",
147 ]
148}
149
charujaincb728ea2017-09-18 03:08:08 -0700150rtc_source_set("mock_headers") {
151 testonly = true
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000152 sources = [
charujaincb728ea2017-09-18 03:08:08 -0700153 "codecs/interface/mock/mock_video_codec_interface.h",
154 "include/mock/mock_video_codec_interface.h",
155 ]
156 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100157 ":video_codec_interface",
charujaincb728ea2017-09-18 03:08:08 -0700158 ":video_coding_utility",
159 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +0100160 "../../:typedefs",
charujaincb728ea2017-09-18 03:08:08 -0700161 "../../test:test_support",
162 ]
163}
164
165rtc_source_set("codec_globals_headers") {
166 sources = [
167 "codecs/h264/include/h264_globals.h",
168 "codecs/interface/common_constants.h",
169 "codecs/vp8/include/vp8_globals.h",
170 "codecs/vp9/include/vp9_globals.h",
171 ]
172}
173
174rtc_source_set("video_coding_utility") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000175 visibility = [ "*" ]
charujaincb728ea2017-09-18 03:08:08 -0700176 sources = [
177 "codecs/interface/video_codec_interface.h",
178 "codecs/interface/video_error_codes.h",
Erik Språng08127a92016-11-16 16:41:30 +0100179 "utility/default_video_bitrate_allocator.cc",
180 "utility/default_video_bitrate_allocator.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000181 "utility/frame_dropper.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100182 "utility/frame_dropper.h",
sprang3911c262016-04-15 01:24:14 -0700183 "utility/ivf_file_writer.cc",
184 "utility/ivf_file_writer.h",
kthelgason194f40a2016-09-14 02:14:58 -0700185 "utility/moving_average.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100186 "utility/moving_average.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000187 "utility/quality_scaler.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100188 "utility/quality_scaler.h",
jackychen98d8cf52015-05-21 11:12:02 -0700189 "utility/vp8_header_parser.cc",
kjellander@webrtc.orgb7ce9642015-11-18 23:04:10 +0100190 "utility/vp8_header_parser.h",
jianj20acdf22017-05-24 10:00:16 -0700191 "utility/vp9_uncompressed_header_parser.cc",
192 "utility/vp9_uncompressed_header_parser.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000193 ]
194
kjellandere40a7ee2016-10-16 23:56:12 -0700195 if (!build_with_chromium && is_clang) {
196 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700197 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000198 }
199
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200200 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100201 ":video_codec_interface",
mbonadei1140f972017-04-26 03:38:35 -0700202 "..:module_api",
ehmaldonado36df2d72016-12-08 09:56:16 -0800203 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +0100204 "../../:typedefs",
kwiberg84f6a3f2017-09-05 08:43:13 -0700205 "../../api:optional",
ilnikd60d06a2017-04-05 03:02:20 -0700206 "../../api/video_codecs:video_codecs_api",
perkj4e417b22016-07-14 23:35:55 -0700207 "../../common_video",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100208 "../../modules/rtp_rtcp",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100209 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700210 "../../rtc_base:rtc_base_approved",
211 "../../rtc_base:rtc_numerics",
212 "../../rtc_base:rtc_task_queue",
213 "../../rtc_base:sequenced_task_checker",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200214 "../../system_wrappers",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100215 "../rtp_rtcp:rtp_rtcp_format",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200216 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000217}
218
kjellanderb62dbbe2016-09-23 00:38:52 -0700219rtc_static_library("webrtc_h264") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000220 visibility = [ "*" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700221 sources = [
222 "codecs/h264/h264.cc",
223 "codecs/h264/include/h264.h",
224 ]
225
kjellandere40a7ee2016-10-16 23:56:12 -0700226 if (!build_with_chromium && is_clang) {
227 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700228 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Zeke Chin71f6f442015-06-29 14:34:58 -0700229 }
230
hbosbab934b2016-01-27 01:36:03 -0800231 defines = []
Zeke Chin71f6f442015-06-29 14:34:58 -0700232 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100233 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800234 ":video_coding_utility",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100235 "../../api:video_frame_api_i420",
Magnus Jedvert849b3ae2017-09-29 17:54:09 +0200236 "../../api/video_codecs:video_codecs_api",
Mirko Bonadei75baa492018-01-11 17:07:30 +0100237 "../../media:rtc_h264_profile_id",
magjed21d110f2017-02-28 00:28:04 -0800238 "../../media:rtc_media_base",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100239 "../../rtc_base:checks",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100240 "../../rtc_base:rtc_base",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100241 "../../system_wrappers:metrics_api",
Zeke Chin71f6f442015-06-29 14:34:58 -0700242 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800243
hbos902c03e2016-01-21 03:34:40 -0800244 if (rtc_use_h264) {
hbos9dc59282016-02-03 05:09:37 -0800245 defines += [ "WEBRTC_USE_H264" ]
hbosc5a39c22016-02-02 02:26:05 -0800246 if (rtc_initialize_ffmpeg) {
247 defines += [ "WEBRTC_INITIALIZE_FFMPEG" ]
248 }
hbosbab934b2016-01-27 01:36:03 -0800249 sources += [
250 "codecs/h264/h264_decoder_impl.cc",
251 "codecs/h264/h264_decoder_impl.h",
252 "codecs/h264/h264_encoder_impl.cc",
253 "codecs/h264/h264_encoder_impl.h",
254 ]
hbosa9a1d2a2016-01-11 10:19:02 -0800255 deps += [
kjellanderf6b55092016-02-07 23:04:26 -0800256 "../../common_video",
hbosa9a1d2a2016-01-11 10:19:02 -0800257 "//third_party/ffmpeg:ffmpeg",
258 "//third_party/openh264:encoder",
259 ]
Oleh Prypin2b82ee72018-01-15 09:44:18 +0100260
261 # TODO(bugs.webrtc.org/8745): stop using av_lockmgr_register
262 if (!is_win) {
263 cflags = [ "-Wno-deprecated-declarations" ]
264 }
Dan Minor9c686132018-01-15 10:20:00 -0500265
266 if (!build_with_mozilla) {
267 deps += [ "../../media:rtc_media_base" ]
268 }
hbosa9a1d2a2016-01-11 10:19:02 -0800269 }
Zeke Chin71f6f442015-06-29 14:34:58 -0700270}
271
kjellanderb62dbbe2016-09-23 00:38:52 -0700272rtc_static_library("webrtc_i420") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000273 visibility = [ "*" ]
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000274 sources = [
Henrik Kjellandera74c08d2015-10-22 12:23:11 +0200275 "codecs/i420/i420.cc",
276 "codecs/i420/include/i420.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000277 ]
278
kjellandere40a7ee2016-10-16 23:56:12 -0700279 if (!build_with_chromium && is_clang) {
280 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700281 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000282 }
283
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200284 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100285 ":video_codec_interface",
charujaincb728ea2017-09-18 03:08:08 -0700286 ":video_coding_utility",
ehmaldonado36df2d72016-12-08 09:56:16 -0800287 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +0100288 "../../:typedefs",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100289 "../../api:video_frame_api_i420",
ehmaldonado36df2d72016-12-08 09:56:16 -0800290 "../../common_video:common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100291 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700292 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200293 "../../system_wrappers",
Mirko Bonadei401d0562017-12-14 11:24:00 +0100294 "//third_party/libyuv",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200295 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000296}
297
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800298rtc_static_library("webrtc_multiplex") {
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700299 sources = [
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800300 "codecs/multiplex/include/multiplex_decoder_adapter.h",
301 "codecs/multiplex/include/multiplex_encoded_image_packer.h",
302 "codecs/multiplex/include/multiplex_encoder_adapter.h",
303 "codecs/multiplex/multiplex_decoder_adapter.cc",
304 "codecs/multiplex/multiplex_encoded_image_packer.cc",
305 "codecs/multiplex/multiplex_encoder_adapter.cc",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700306 ]
307
308 if (!build_with_chromium && is_clang) {
309 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
310 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
311 }
312
313 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100314 ":video_codec_interface",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700315 ":video_coding_utility",
316 "..:module_api",
317 "../..:webrtc_common",
Mirko Bonadei0594a7c2017-12-18 11:42:48 +0100318 "../../api:video_frame_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100319 "../../api:video_frame_api_i420",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700320 "../../api/video_codecs:video_codecs_api",
321 "../../common_video:common_video",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100322 "../../rtc_base:rtc_base",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700323 "../../system_wrappers",
Qiang Chena7c7a192018-01-24 13:36:41 -0800324 "../rtp_rtcp:rtp_rtcp_format",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700325 ]
326}
327
Anders Carlssona114c882018-01-04 15:10:22 +0100328# This target includes VP8 files that may be used for any VP8 codec, internal SW or external HW.
Anders Carlssondd8c1652018-01-30 10:32:13 +0100329rtc_static_library("webrtc_vp8_helpers") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000330 visibility = [ "*" ]
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000331 sources = [
Lu Liu65526952017-12-20 18:08:36 +0000332 "codecs/vp8/default_temporal_layers.cc",
333 "codecs/vp8/default_temporal_layers.h",
334 "codecs/vp8/include/vp8.h",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000335 "codecs/vp8/include/vp8_common_types.h",
pbos@webrtc.org9115cde2014-12-09 10:36:40 +0000336 "codecs/vp8/screenshare_layers.cc",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100337 "codecs/vp8/screenshare_layers.h",
kjellandera8d8aad2017-03-08 05:42:26 -0800338 "codecs/vp8/simulcast_rate_allocator.cc",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100339 "codecs/vp8/simulcast_rate_allocator.h",
Ilya Nikolaevskiy58662912017-10-04 15:07:09 +0200340 "codecs/vp8/temporal_layers.cc",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100341 "codecs/vp8/temporal_layers.h",
342 ]
343
344 # TODO(jschuh): Bug 1348: fix this warning.
345 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
346
347 if (!build_with_chromium && is_clang) {
348 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
349 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
350 }
351
352 deps = [
353 ":video_codec_interface",
354 ":video_coding_utility",
355 "..:module_api",
356 "../..:webrtc_common",
357 "../../:typedefs",
358 "../../api:optional",
359 "../../api:video_frame_api",
360 "../../api/video_codecs:video_codecs_api",
361 "../../common_video",
362 "../../rtc_base:checks",
363 "../../rtc_base:rtc_base_approved",
364 "../../rtc_base:rtc_numerics",
365 "../../system_wrappers",
366 "../../system_wrappers:field_trial_api",
367 "../../system_wrappers:metrics_api",
368 "//third_party/libyuv",
369 ]
370}
371
372# This target includes the internal SW codec.
373rtc_static_library("webrtc_vp8") {
374 visibility = [ "*" ]
375 sources = [
376 "codecs/vp8/include/vp8.h",
377 "codecs/vp8/include/vp8_common_types.h",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000378 "codecs/vp8/vp8_impl.cc",
379 "codecs/vp8/vp8_impl.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000380 ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000381
kjellander8f4419b2016-06-02 02:09:52 -0700382 # TODO(jschuh): Bug 1348: fix this warning.
383 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
384
kjellandere40a7ee2016-10-16 23:56:12 -0700385 if (!build_with_chromium && is_clang) {
386 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700387 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +0000388 }
389
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000390 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100391 ":video_codec_interface",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000392 ":video_coding_utility",
Anders Carlssona114c882018-01-04 15:10:22 +0100393 ":webrtc_vp8_helpers",
mbonadei1140f972017-04-26 03:38:35 -0700394 "..:module_api",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000395 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +0100396 "../../:typedefs",
kwiberg84f6a3f2017-09-05 08:43:13 -0700397 "../../api:optional",
Mirko Bonadei0594a7c2017-12-18 11:42:48 +0100398 "../../api:video_frame_api",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100399 "../../api/video_codecs:video_codecs_api",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000400 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100401 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700402 "../../rtc_base:rtc_base_approved",
asaperssone5d02f92017-08-09 23:37:05 -0700403 "../../rtc_base:rtc_numerics",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000404 "../../system_wrappers",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100405 "../../system_wrappers:field_trial_api",
406 "../../system_wrappers:metrics_api",
Mirko Bonadei401d0562017-12-14 11:24:00 +0100407 "//third_party/libyuv",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +0000408 ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000409 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200410 deps += [ rtc_libvpx_dir ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000411 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000412}
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000413
kjellanderb62dbbe2016-09-23 00:38:52 -0700414rtc_static_library("webrtc_vp9") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000415 visibility = [ "*" ]
phoglund33603522016-10-05 06:52:22 -0700416 if (rtc_libvpx_build_vp9) {
417 sources = [
418 "codecs/vp9/include/vp9.h",
419 "codecs/vp9/screenshare_layers.cc",
420 "codecs/vp9/screenshare_layers.h",
421 "codecs/vp9/vp9_frame_buffer_pool.cc",
422 "codecs/vp9/vp9_frame_buffer_pool.h",
423 "codecs/vp9/vp9_impl.cc",
424 "codecs/vp9/vp9_impl.h",
425 ]
426 } else {
427 sources = [
428 "codecs/vp9/vp9_noop.cc",
429 ]
430 }
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000431
kjellandere40a7ee2016-10-16 23:56:12 -0700432 if (!build_with_chromium && is_clang) {
433 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700434 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000435 }
436
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000437 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100438 ":video_codec_interface",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000439 ":video_coding_utility",
mbonadei1140f972017-04-26 03:38:35 -0700440 "..:module_api",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000441 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100442 "../../rtc_base:checks",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100443 "../../rtc_base:rtc_base",
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000444 "../../system_wrappers",
445 ]
446 if (rtc_build_libvpx) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200447 deps += [ rtc_libvpx_dir ]
marpan@webrtc.org5b883172014-11-01 06:10:48 +0000448 }
449}
kjellanderfb114242016-06-13 00:19:48 -0700450
451if (rtc_include_tests) {
magjed73c0eb52017-08-07 06:55:28 -0700452 if (is_ios || is_mac) {
kthelgason36d658d2017-08-24 05:43:45 -0700453 rtc_static_library("codec_test_objc") {
magjed73c0eb52017-08-07 06:55:28 -0700454 sources = [
455 "codecs/test/objc_codec_h264_test.h",
456 "codecs/test/objc_codec_h264_test.mm",
457 ]
458 deps = [
459 "../../api:video_frame_api",
460 "../../api/video_codecs:video_codecs_api",
461 "../../media:rtc_audio_video",
462 "../../modules:module_api",
Magnus Jedverte4a9e922017-12-04 14:09:40 +0100463 "../../rtc_base:rtc_base_approved",
kthelgason36d658d2017-08-24 05:43:45 -0700464 "../../sdk:common_objc",
465 "../../sdk:peerconnection_objc",
466 "../../sdk:peerconnectionfactory_objc",
467 "../../sdk:videotoolbox_objc",
468 "../../sdk:videotracksource_objc",
magjed73c0eb52017-08-07 06:55:28 -0700469 ]
470
471 if (!build_with_chromium && is_clang) {
472 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
473 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
474 }
475 }
476 }
477
magjed6cc25612017-07-10 03:26:36 -0700478 rtc_source_set("simulcast_test_utility") {
479 testonly = true
480 sources = [
481 "codecs/vp8/simulcast_test_utility.h",
482 ]
483
484 if (!build_with_chromium && is_clang) {
485 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
486 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
487 }
488
489 deps = [
charujaincb728ea2017-09-18 03:08:08 -0700490 ":mock_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100491 ":video_codec_interface",
magjed6cc25612017-07-10 03:26:36 -0700492 ":video_coding",
Anders Carlssona114c882018-01-04 15:10:22 +0100493 ":webrtc_vp8_helpers",
magjed6cc25612017-07-10 03:26:36 -0700494 "../../api:video_frame_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100495 "../../api:video_frame_api_i420",
magjed6cc25612017-07-10 03:26:36 -0700496 "../../common_video:common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100497 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700498 "../../rtc_base:rtc_base_approved",
magjed6cc25612017-07-10 03:26:36 -0700499 "../../test:test_support",
500 ]
501 }
502
ehmaldonado38a21322016-09-02 04:10:34 -0700503 rtc_source_set("video_codecs_test_framework") {
kjellanderfb114242016-06-13 00:19:48 -0700504 testonly = true
505 sources = [
kjellanderfb114242016-06-13 00:19:48 -0700506 "codecs/test/stats.cc",
507 "codecs/test/stats.h",
Åsa Persson2d27fb52017-10-19 14:05:50 +0200508 "codecs/test/test_config.cc",
509 "codecs/test/test_config.h",
sakalb8102e02017-03-06 03:52:55 -0800510 "codecs/test/video_codec_test.cc",
511 "codecs/test/video_codec_test.h",
kjellanderfb114242016-06-13 00:19:48 -0700512 "codecs/test/videoprocessor.cc",
513 "codecs/test/videoprocessor.h",
514 ]
515
kjellandere40a7ee2016-10-16 23:56:12 -0700516 if (!build_with_chromium && is_clang) {
517 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700518 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -0700519 }
520
521 deps = [
ssilkin612f8582017-09-28 09:23:17 -0700522 ":codec_globals_headers",
Patrik Höglund99175c62018-01-08 11:05:10 +0100523 ":video_codec_interface",
ehmaldonado36df2d72016-12-08 09:56:16 -0800524 ":video_coding",
525 ":video_coding_utility",
Anders Carlssona114c882018-01-04 15:10:22 +0100526 ":webrtc_vp8_helpers",
ehmaldonado36df2d72016-12-08 09:56:16 -0800527 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +0100528 "../../:typedefs",
Mirko Bonadei0594a7c2017-12-18 11:42:48 +0100529 "../../api:video_frame_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100530 "../../api:video_frame_api_i420",
ilnikd60d06a2017-04-05 03:02:20 -0700531 "../../api/video_codecs:video_codecs_api",
ehmaldonado36df2d72016-12-08 09:56:16 -0800532 "../../common_video:common_video",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100533 "../../media:rtc_audio_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100534 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700535 "../../rtc_base:rtc_base_approved",
brandtrc8c59052017-08-21 06:44:16 -0700536 "../../rtc_base:rtc_task_queue",
537 "../../rtc_base:sequenced_task_checker",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100538 "../../system_wrappers",
kjellanderfb114242016-06-13 00:19:48 -0700539 "../../test:test_support",
sakalb8102e02017-03-06 03:52:55 -0800540 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800541 "../../test:video_test_support",
Sergey Silkin3be2a552018-01-17 15:11:44 +0100542 "../rtp_rtcp:rtp_rtcp_format",
kjellanderfb114242016-06-13 00:19:48 -0700543 ]
544 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800545
brandtrdf232992017-09-07 07:50:06 -0700546 video_coding_modules_tests_resources = [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200547 "../../resources/foreman_128x96.yuv",
548 "../../resources/foreman_160x120.yuv",
549 "../../resources/foreman_176x144.yuv",
550 "../../resources/foreman_320x240.yuv",
brandtrdf232992017-09-07 07:50:06 -0700551 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800552
brandtrdf232992017-09-07 07:50:06 -0700553 if (is_ios || is_mac) {
554 bundle_data("video_coding_modules_tests_resources_bundle_data") {
555 testonly = true
556 sources = video_coding_modules_tests_resources
557 outputs = [
558 "{{bundle_resources_dir}}/{{source_file_part}}",
brandtr6bb8e0e2017-02-20 04:35:52 -0800559 ]
brandtr12a47f62017-09-01 00:10:27 -0700560 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800561 }
562
563 rtc_source_set("video_coding_modules_tests") {
564 testonly = true
565
566 sources = [
sakalb8102e02017-03-06 03:52:55 -0800567 "codecs/h264/test/h264_impl_unittest.cc",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800568 "codecs/multiplex/test/multiplex_adapter_unittest.cc",
brandtrdf232992017-09-07 07:50:06 -0700569 "codecs/test/videoprocessor_integrationtest.cc",
570 "codecs/test/videoprocessor_integrationtest.h",
brandtr12a47f62017-09-01 00:10:27 -0700571 "codecs/test/videoprocessor_integrationtest_libvpx.cc",
572 "codecs/test/videoprocessor_integrationtest_openh264.cc",
brandtrdf232992017-09-07 07:50:06 -0700573 "codecs/test/videoprocessor_integrationtest_parameterized.cc",
brandtr6bb8e0e2017-02-20 04:35:52 -0800574 "codecs/vp8/test/vp8_impl_unittest.cc",
sakal7adadb12017-02-23 02:54:57 -0800575 "codecs/vp9/test/vp9_impl_unittest.cc",
brandtr6bb8e0e2017-02-20 04:35:52 -0800576 ]
577
578 deps = [
Patrik Höglund99175c62018-01-08 11:05:10 +0100579 ":video_codec_interface",
sakalb8102e02017-03-06 03:52:55 -0800580 ":video_codecs_test_framework",
brandtrdf232992017-09-07 07:50:06 -0700581 ":video_coding",
582 ":video_coding_utility",
sakalb8102e02017-03-06 03:52:55 -0800583 ":webrtc_h264",
Emircan Uysalerd7ae3c32018-01-25 13:01:09 -0800584 ":webrtc_multiplex",
Anders Carlssona114c882018-01-04 15:10:22 +0100585 ":webrtc_vp8_helpers",
sakal7adadb12017-02-23 02:54:57 -0800586 ":webrtc_vp9",
brandtrdf232992017-09-07 07:50:06 -0700587 "../..:webrtc_common",
Emircan Uysalerdbcac7f2017-10-30 23:10:12 -0700588 "../../api:mock_video_codec_factory",
kwiberg84f6a3f2017-09-05 08:43:13 -0700589 "../../api:optional",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800590 "../../api:video_frame_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100591 "../../api:video_frame_api_i420",
Mirko Bonadei34814c72018-01-11 10:13:56 +0100592 "../../api/video_codecs:video_codecs_api",
brandtrdf232992017-09-07 07:50:06 -0700593 "../../common_video",
594 "../../media:rtc_audio_video",
Mirko Bonadei75baa492018-01-11 17:07:30 +0100595 "../../media:rtc_h264_profile_id",
Anders Carlssona114c882018-01-04 15:10:22 +0100596 "../../media:rtc_internal_video_codecs",
Rasmus Brandtfb1a8662017-10-27 14:51:46 +0200597 "../../media:rtc_media_base",
Anders Carlssondd8c1652018-01-30 10:32:13 +0100598 "../../media:rtc_software_fallback_wrappers",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100599 "../../rtc_base:checks",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100600 "../../rtc_base:rtc_base",
Åsa Persson7173cf22017-10-19 12:14:09 +0200601 "../../rtc_base:rtc_base_tests_utils",
brandtrdf232992017-09-07 07:50:06 -0700602 "../../system_wrappers",
asapersson142fcc92017-08-17 08:58:54 -0700603 "../../test:field_trial",
Sergey Silkin3be2a552018-01-17 15:11:44 +0100604 "../../test:test_common",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800605 "../../test:test_support",
606 "../../test:video_test_common",
brandtrdf232992017-09-07 07:50:06 -0700607 "../../test:video_test_support",
ehmaldonado656610f2017-02-06 02:21:11 -0800608 "../video_capture",
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800609 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800610
brandtrdf232992017-09-07 07:50:06 -0700611 data = video_coding_modules_tests_resources
brandtr6bb8e0e2017-02-20 04:35:52 -0800612
613 if (is_android) {
Rasmus Brandt31027342017-09-29 13:48:12 +0000614 sources += [
615 "codecs/test/android_test_initializer.cc",
616 "codecs/test/android_test_initializer.h",
617 "codecs/test/videoprocessor_integrationtest_mediacodec.cc",
618 ]
619
brandtrdf232992017-09-07 07:50:06 -0700620 deps += [
Sami Kalliomäki82f96e62018-01-29 13:18:57 +0100621 "../../sdk/android:native_api_base",
622 "../../sdk/android:native_api_codecs",
623 "../../sdk/android:native_api_jni",
Rasmus Brandt31027342017-09-29 13:48:12 +0000624 "//base",
brandtrdf232992017-09-07 07:50:06 -0700625 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800626 }
627
628 if (is_ios || is_mac) {
Rasmus Brandtf7a35582017-10-24 10:16:33 +0200629 sources +=
630 [ "codecs/test/videoprocessor_integrationtest_videotoolbox.cc" ]
631
magjed73c0eb52017-08-07 06:55:28 -0700632 deps += [
kthelgason36d658d2017-08-24 05:43:45 -0700633 ":codec_test_objc",
brandtrdf232992017-09-07 07:50:06 -0700634 ":video_coding_modules_tests_resources_bundle_data",
Rasmus Brandt31027342017-09-29 13:48:12 +0000635 "../../media:rtc_media_base",
636 "../../sdk:videotoolbox_objc",
magjed73c0eb52017-08-07 06:55:28 -0700637 ]
brandtr6bb8e0e2017-02-20 04:35:52 -0800638 }
639
brandtrdf232992017-09-07 07:50:06 -0700640 if (rtc_use_h264) {
641 defines = [ "WEBRTC_USE_H264" ]
642 }
brandtr6bb8e0e2017-02-20 04:35:52 -0800643
ehmaldonado9cbb0a12017-01-30 03:07:03 -0800644 if (!build_with_chromium && is_clang) {
645 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
646 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
647 }
648 }
649
ehmaldonado36268652017-01-19 08:27:11 -0800650 rtc_source_set("video_coding_unittests") {
651 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700652
ehmaldonado36268652017-01-19 08:27:11 -0800653 sources = [
ehmaldonado36268652017-01-19 08:27:11 -0800654 "codecs/test/stats_unittest.cc",
Åsa Persson2d27fb52017-10-19 14:05:50 +0200655 "codecs/test/test_config_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800656 "codecs/test/videoprocessor_unittest.cc",
657 "codecs/vp8/default_temporal_layers_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800658 "codecs/vp8/screenshare_layers_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800659 "codecs/vp8/simulcast_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800660 "decoding_state_unittest.cc",
Ying Wang3b790f32018-01-19 17:58:57 +0100661 "fec_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800662 "frame_buffer2_unittest.cc",
ilnik04f4d122017-06-19 07:18:55 -0700663 "generic_encoder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800664 "h264_sprop_parameter_sets_unittest.cc",
665 "h264_sps_pps_tracker_unittest.cc",
666 "histogram_unittest.cc",
667 "include/mock/mock_vcm_callbacks.h",
668 "jitter_buffer_unittest.cc",
669 "jitter_estimator_tests.cc",
670 "nack_module_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800671 "receiver_unittest.cc",
672 "rtp_frame_reference_finder_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800673 "session_info_unittest.cc",
674 "test/stream_generator.cc",
675 "test/stream_generator.h",
charujaincb728ea2017-09-18 03:08:08 -0700676 "test/test_util.h",
ehmaldonado36268652017-01-19 08:27:11 -0800677 "timing_unittest.cc",
678 "utility/default_video_bitrate_allocator_unittest.cc",
679 "utility/frame_dropper_unittest.cc",
680 "utility/ivf_file_writer_unittest.cc",
charujaincb728ea2017-09-18 03:08:08 -0700681 "utility/mock/mock_frame_dropper.h",
ehmaldonado36268652017-01-19 08:27:11 -0800682 "utility/moving_average_unittest.cc",
683 "utility/quality_scaler_unittest.cc",
684 "utility/simulcast_rate_allocator_unittest.cc",
sprang429600d2017-01-26 06:12:26 -0800685 "video_codec_initializer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800686 "video_packet_buffer_unittest.cc",
687 "video_receiver_unittest.cc",
688 "video_sender_unittest.cc",
689 ]
690 if (rtc_libvpx_build_vp9) {
691 sources += [ "codecs/vp9/vp9_screenshare_layers_unittest.cc" ]
692 }
693 if (rtc_use_h264) {
694 sources += [ "codecs/h264/h264_encoder_impl_unittest.cc" ]
695 }
696 deps = [
charujaincb728ea2017-09-18 03:08:08 -0700697 ":mock_headers",
magjed6cc25612017-07-10 03:26:36 -0700698 ":simulcast_test_utility",
Patrik Höglund99175c62018-01-08 11:05:10 +0100699 ":video_codec_interface",
ehmaldonado36268652017-01-19 08:27:11 -0800700 ":video_codecs_test_framework",
701 ":video_coding",
702 ":video_coding_utility",
703 ":webrtc_h264",
704 ":webrtc_vp8",
Anders Carlssona114c882018-01-04 15:10:22 +0100705 ":webrtc_vp8_helpers",
ehmaldonado36268652017-01-19 08:27:11 -0800706 ":webrtc_vp9",
mbonadei1140f972017-04-26 03:38:35 -0700707 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -0800708 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +0100709 "../../:typedefs",
ehmaldonado36268652017-01-19 08:27:11 -0800710 "../../api:video_frame_api",
Patrik Höglundb5b5bce2017-11-13 10:19:58 +0100711 "../../api:video_frame_api_i420",
ilnikd60d06a2017-04-05 03:02:20 -0700712 "../../api/video_codecs:video_codecs_api",
ehmaldonado36268652017-01-19 08:27:11 -0800713 "../../common_video:common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100714 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700715 "../../rtc_base:rtc_base",
716 "../../rtc_base:rtc_base_approved",
Bjorn Tereliusa194e582017-10-25 13:07:09 +0200717 "../../rtc_base:rtc_numerics",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700718 "../../rtc_base:rtc_task_queue",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100719 "../../system_wrappers",
720 "../../system_wrappers:field_trial_api",
721 "../../system_wrappers:metrics_api",
ehmaldonado36268652017-01-19 08:27:11 -0800722 "../../system_wrappers:metrics_default",
ehmaldonado36268652017-01-19 08:27:11 -0800723 "../../test:field_trial",
724 "../../test:test_support",
725 "../../test:video_test_common",
ehmaldonado656610f2017-02-06 02:21:11 -0800726 "../../test:video_test_support",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100727 "../rtp_rtcp:rtp_rtcp_format",
ehmaldonado36268652017-01-19 08:27:11 -0800728 ]
729 if (rtc_build_libvpx) {
730 deps += [ rtc_libvpx_dir ]
731 }
ehmaldonado36268652017-01-19 08:27:11 -0800732
733 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning.
734 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
735 if (!build_with_chromium && is_clang) {
736 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
737 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
738 }
739 }
kjellanderfb114242016-06-13 00:19:48 -0700740}