kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # 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 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../../webrtc.gni") |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 10 | |
philipel | d5a272f | 2018-02-21 14:30:34 +0100 | [diff] [blame] | 11 | rtc_static_library("encoded_frame") { |
| 12 | visibility = [ "*" ] |
| 13 | sources = [ |
| 14 | "encoded_frame.cc", |
| 15 | "encoded_frame.h", |
| 16 | ] |
| 17 | deps = [ |
| 18 | ":video_codec_interface", |
| 19 | "../../:webrtc_common", |
| 20 | "../../api:optional", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 21 | "../../api/video:video_frame_i420", |
philipel | d5a272f | 2018-02-21 14:30:34 +0100 | [diff] [blame] | 22 | "../../common_video:common_video", |
| 23 | "../../modules:module_api", |
| 24 | "../../modules:module_api_public", |
| 25 | "../../modules/video_coding:video_coding_utility", |
| 26 | "../../rtc_base:checks", |
| 27 | "../../rtc_base:rtc_base_approved", |
| 28 | "../../rtc_base/experiments:alr_experiment", |
| 29 | "../../system_wrappers:field_trial_api", |
| 30 | "../../system_wrappers:system_wrappers", |
| 31 | ] |
| 32 | |
| 33 | if (!build_with_chromium && is_clang) { |
| 34 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 35 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 36 | } |
| 37 | } |
| 38 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 39 | rtc_static_library("video_coding") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 40 | visibility = [ "*" ] |
Karl Wiberg | 7ba22b8 | 2018-04-27 04:31:53 +0200 | [diff] [blame] | 41 | allow_poison = [ "software_video_codecs" ] # TODO(bugs.webrtc.org/7925): Remove. |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 42 | deps = [] |
| 43 | |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 44 | sources = [ |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 45 | "codec_timer.cc", |
| 46 | "codec_timer.h", |
Niels Möller | f906378 | 2018-02-20 16:09:48 +0100 | [diff] [blame] | 47 | "decoder_database.cc", |
| 48 | "decoder_database.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 49 | "decoding_state.cc", |
| 50 | "decoding_state.h", |
Niels Möller | f906378 | 2018-02-20 16:09:48 +0100 | [diff] [blame] | 51 | "encoder_database.cc", |
| 52 | "encoder_database.h", |
Ying Wang | 3b790f3 | 2018-01-19 17:58:57 +0100 | [diff] [blame] | 53 | "fec_controller_default.cc", |
| 54 | "fec_controller_default.h", |
brandtr | 71b1c1f | 2017-01-12 06:16:24 -0800 | [diff] [blame] | 55 | "fec_rate_table.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 56 | "frame_buffer.cc", |
| 57 | "frame_buffer.h", |
philipel | be7a9e5 | 2016-05-19 12:19:35 +0200 | [diff] [blame] | 58 | "frame_buffer2.cc", |
| 59 | "frame_buffer2.h", |
philipel | c707ab7 | 2016-04-01 02:01:54 -0700 | [diff] [blame] | 60 | "frame_object.cc", |
| 61 | "frame_object.h", |
Lu Liu | 352314a | 2018-02-21 19:38:59 +0000 | [diff] [blame] | 62 | "generic_decoder.cc", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 63 | "generic_decoder.h", |
| 64 | "generic_encoder.cc", |
| 65 | "generic_encoder.h", |
johan | b0a1111 | 2016-12-08 03:57:17 -0800 | [diff] [blame] | 66 | "h264_sprop_parameter_sets.cc", |
| 67 | "h264_sprop_parameter_sets.h", |
philipel | 34852cf | 2016-11-03 04:03:01 -0700 | [diff] [blame] | 68 | "h264_sps_pps_tracker.cc", |
| 69 | "h264_sps_pps_tracker.h", |
philipel | 83f831a | 2016-03-12 03:30:23 -0800 | [diff] [blame] | 70 | "histogram.cc", |
| 71 | "histogram.h", |
Erik Språng | 08127a9 | 2016-11-16 16:41:30 +0100 | [diff] [blame] | 72 | "include/video_codec_initializer.h", |
Ying Wang | 3b790f3 | 2018-01-19 17:58:57 +0100 | [diff] [blame] | 73 | "include/video_coding.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 74 | "inter_frame_delay.cc", |
| 75 | "inter_frame_delay.h", |
| 76 | "internal_defines.h", |
| 77 | "jitter_buffer.cc", |
| 78 | "jitter_buffer.h", |
| 79 | "jitter_buffer_common.h", |
| 80 | "jitter_estimator.cc", |
| 81 | "jitter_estimator.h", |
| 82 | "media_opt_util.cc", |
| 83 | "media_opt_util.h", |
| 84 | "media_optimization.cc", |
| 85 | "media_optimization.h", |
| 86 | "nack_fec_tables.h", |
philipel | 83f831a | 2016-03-12 03:30:23 -0800 | [diff] [blame] | 87 | "nack_module.cc", |
| 88 | "nack_module.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 89 | "packet.cc", |
| 90 | "packet.h", |
philipel | c707ab7 | 2016-04-01 02:01:54 -0700 | [diff] [blame] | 91 | "packet_buffer.cc", |
| 92 | "packet_buffer.h", |
kjellander | a8d8aad | 2017-03-08 05:42:26 -0800 | [diff] [blame] | 93 | "qp_parser.cc", |
| 94 | "qp_parser.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 95 | "receiver.cc", |
| 96 | "receiver.h", |
philipel | 02447bc | 2016-05-13 06:01:03 -0700 | [diff] [blame] | 97 | "rtp_frame_reference_finder.cc", |
| 98 | "rtp_frame_reference_finder.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 99 | "rtt_filter.cc", |
| 100 | "rtt_filter.h", |
| 101 | "session_info.cc", |
| 102 | "session_info.h", |
| 103 | "timestamp_map.cc", |
| 104 | "timestamp_map.h", |
| 105 | "timing.cc", |
| 106 | "timing.h", |
Erik Språng | 08127a9 | 2016-11-16 16:41:30 +0100 | [diff] [blame] | 107 | "video_codec_initializer.cc", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 108 | "video_coding_impl.cc", |
| 109 | "video_coding_impl.h", |
| 110 | "video_receiver.cc", |
| 111 | "video_sender.cc", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 112 | ] |
| 113 | |
kjellander | 8f4419b | 2016-06-02 02:09:52 -0700 | [diff] [blame] | 114 | # TODO(jschuh): Bug 1348: fix this warning. |
| 115 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
kjellander@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 116 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 117 | if (!build_with_chromium && is_clang) { |
| 118 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 119 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 120 | } |
| 121 | |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 122 | if (rtc_use_builtin_sw_codecs) { |
| 123 | deps += [ |
| 124 | ":webrtc_i420", |
| 125 | ":webrtc_vp8", |
| 126 | ":webrtc_vp9", |
| 127 | ] |
| 128 | } |
| 129 | |
| 130 | deps += [ |
Rasmus Brandt | 88f080a | 2017-11-02 14:28:06 +0100 | [diff] [blame] | 131 | ":codec_globals_headers", |
philipel | d5a272f | 2018-02-21 14:30:34 +0100 | [diff] [blame] | 132 | ":encoded_frame", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 133 | ":video_codec_interface", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 134 | ":video_coding_utility", |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 135 | ":webrtc_h264", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 136 | ":webrtc_vp8_helpers", |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 137 | ":webrtc_vp9_helpers", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 138 | "..:module_api", |
Ilya Nikolaevskiy | 76f2a85 | 2017-11-16 14:33:53 +0100 | [diff] [blame] | 139 | "..:module_api_public", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 140 | "../..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 141 | "../../:typedefs", |
Ying Wang | 3b790f3 | 2018-01-19 17:58:57 +0100 | [diff] [blame] | 142 | "../../api:fec_controller_api", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 143 | "../../api:optional", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 144 | "../../api/video:encoded_frame", |
| 145 | "../../api/video:video_frame", |
| 146 | "../../api/video:video_frame_i420", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 147 | "../../api/video_codecs:video_codecs_api", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 148 | "../../call:video_stream_api", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 149 | "../../common_video", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 150 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 151 | "../../rtc_base:rtc_base", |
| 152 | "../../rtc_base:rtc_base_approved", |
| 153 | "../../rtc_base:rtc_numerics", |
| 154 | "../../rtc_base:rtc_task_queue", |
| 155 | "../../rtc_base:sequenced_task_checker", |
Sebastian Jansson | cabe383 | 2018-01-12 10:54:18 +0100 | [diff] [blame] | 156 | "../../rtc_base/experiments:alr_experiment", |
Karl Wiberg | 80ba333 | 2018-02-05 10:33:35 +0100 | [diff] [blame] | 157 | "../../rtc_base/system:fallthrough", |
Karl Wiberg | 76b7f51 | 2018-03-22 15:29:03 +0100 | [diff] [blame] | 158 | "../../rtc_base/time:timestamp_extrapolator", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 159 | "../../system_wrappers", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 160 | "../../system_wrappers:field_trial_api", |
| 161 | "../../system_wrappers:metrics_api", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 162 | "../rtp_rtcp:rtp_rtcp_format", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 163 | "../utility:utility", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 164 | ] |
| 165 | } |
| 166 | |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 167 | rtc_source_set("video_codec_interface") { |
Patrik Höglund | a2ac1b4 | 2018-01-15 16:01:43 +0100 | [diff] [blame] | 168 | visibility = [ "*" ] |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 169 | sources = [ |
| 170 | "include/video_codec_interface.h", |
| 171 | "include/video_coding_defines.h", |
| 172 | "include/video_error_codes.h", |
Niels Möller | be682d4 | 2018-03-27 08:31:45 +0200 | [diff] [blame] | 173 | "video_coding_defines.cc", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 174 | ] |
| 175 | deps = [ |
| 176 | "..:module_api", |
| 177 | "../..:typedefs", |
| 178 | "../..:webrtc_common", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 179 | "../../api/video:video_frame", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 180 | "../../api/video_codecs:video_codecs_api", |
| 181 | "../../common_video:common_video", |
| 182 | ] |
| 183 | } |
| 184 | |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 185 | rtc_source_set("mock_headers") { |
| 186 | testonly = true |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 187 | sources = [ |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 188 | "include/mock/mock_video_codec_interface.h", |
| 189 | ] |
| 190 | deps = [ |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 191 | ":video_codec_interface", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 192 | ":video_coding_utility", |
| 193 | "../..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 194 | "../../:typedefs", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 195 | "../../test:test_support", |
| 196 | ] |
| 197 | } |
| 198 | |
| 199 | rtc_source_set("codec_globals_headers") { |
| 200 | sources = [ |
| 201 | "codecs/h264/include/h264_globals.h", |
| 202 | "codecs/interface/common_constants.h", |
| 203 | "codecs/vp8/include/vp8_globals.h", |
| 204 | "codecs/vp9/include/vp9_globals.h", |
| 205 | ] |
| 206 | } |
| 207 | |
| 208 | rtc_source_set("video_coding_utility") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 209 | visibility = [ "*" ] |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 210 | sources = [ |
Erik Språng | 08127a9 | 2016-11-16 16:41:30 +0100 | [diff] [blame] | 211 | "utility/default_video_bitrate_allocator.cc", |
| 212 | "utility/default_video_bitrate_allocator.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 213 | "utility/frame_dropper.cc", |
kjellander@webrtc.org | b7ce964 | 2015-11-18 23:04:10 +0100 | [diff] [blame] | 214 | "utility/frame_dropper.h", |
sprang | 3911c26 | 2016-04-15 01:24:14 -0700 | [diff] [blame] | 215 | "utility/ivf_file_writer.cc", |
| 216 | "utility/ivf_file_writer.h", |
kthelgason | 194f40a | 2016-09-14 02:14:58 -0700 | [diff] [blame] | 217 | "utility/moving_average.cc", |
kjellander@webrtc.org | b7ce964 | 2015-11-18 23:04:10 +0100 | [diff] [blame] | 218 | "utility/moving_average.h", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 219 | "utility/quality_scaler.cc", |
kjellander@webrtc.org | b7ce964 | 2015-11-18 23:04:10 +0100 | [diff] [blame] | 220 | "utility/quality_scaler.h", |
jackychen | 98d8cf5 | 2015-05-21 11:12:02 -0700 | [diff] [blame] | 221 | "utility/vp8_header_parser.cc", |
kjellander@webrtc.org | b7ce964 | 2015-11-18 23:04:10 +0100 | [diff] [blame] | 222 | "utility/vp8_header_parser.h", |
jianj | 20acdf2 | 2017-05-24 10:00:16 -0700 | [diff] [blame] | 223 | "utility/vp9_uncompressed_header_parser.cc", |
| 224 | "utility/vp9_uncompressed_header_parser.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 225 | ] |
| 226 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 227 | if (!build_with_chromium && is_clang) { |
| 228 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 229 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 230 | } |
| 231 | |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 232 | deps = [ |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 233 | ":video_codec_interface", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 234 | "..:module_api", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 235 | "../..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 236 | "../../:typedefs", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 237 | "../../api:optional", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 238 | "../../api/video_codecs:video_codecs_api", |
perkj | 4e417b2 | 2016-07-14 23:35:55 -0700 | [diff] [blame] | 239 | "../../common_video", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 240 | "../../modules/rtp_rtcp", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 241 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 242 | "../../rtc_base:rtc_base_approved", |
| 243 | "../../rtc_base:rtc_numerics", |
| 244 | "../../rtc_base:rtc_task_queue", |
| 245 | "../../rtc_base:sequenced_task_checker", |
Åsa Persson | a945aee | 2018-04-24 16:53:25 +0200 | [diff] [blame] | 246 | "../../rtc_base/experiments:quality_scaling_experiment", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 247 | "../../system_wrappers", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 248 | "../rtp_rtcp:rtp_rtcp_format", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 249 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 250 | } |
| 251 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 252 | rtc_static_library("webrtc_h264") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 253 | visibility = [ "*" ] |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 254 | sources = [ |
| 255 | "codecs/h264/h264.cc", |
| 256 | "codecs/h264/include/h264.h", |
| 257 | ] |
| 258 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 259 | if (!build_with_chromium && is_clang) { |
| 260 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 261 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 262 | } |
| 263 | |
hbos | bab934b | 2016-01-27 01:36:03 -0800 | [diff] [blame] | 264 | defines = [] |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 265 | deps = [ |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 266 | ":video_codec_interface", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 267 | ":video_coding_utility", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 268 | "../../api/video:video_frame_i420", |
Magnus Jedvert | 849b3ae | 2017-09-29 17:54:09 +0200 | [diff] [blame] | 269 | "../../api/video_codecs:video_codecs_api", |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 270 | "../../media:rtc_h264_profile_id", |
magjed | 21d110f | 2017-02-28 00:28:04 -0800 | [diff] [blame] | 271 | "../../media:rtc_media_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 272 | "../../rtc_base:checks", |
Patrik Höglund | 76df0df | 2017-12-19 11:50:21 +0100 | [diff] [blame] | 273 | "../../rtc_base:rtc_base", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 274 | "../../system_wrappers:metrics_api", |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 275 | ] |
hbos | a9a1d2a | 2016-01-11 10:19:02 -0800 | [diff] [blame] | 276 | |
hbos | 902c03e | 2016-01-21 03:34:40 -0800 | [diff] [blame] | 277 | if (rtc_use_h264) { |
hbos | 9dc5928 | 2016-02-03 05:09:37 -0800 | [diff] [blame] | 278 | defines += [ "WEBRTC_USE_H264" ] |
hbos | c5a39c2 | 2016-02-02 02:26:05 -0800 | [diff] [blame] | 279 | if (rtc_initialize_ffmpeg) { |
| 280 | defines += [ "WEBRTC_INITIALIZE_FFMPEG" ] |
| 281 | } |
hbos | bab934b | 2016-01-27 01:36:03 -0800 | [diff] [blame] | 282 | sources += [ |
| 283 | "codecs/h264/h264_decoder_impl.cc", |
| 284 | "codecs/h264/h264_decoder_impl.h", |
| 285 | "codecs/h264/h264_encoder_impl.cc", |
| 286 | "codecs/h264/h264_encoder_impl.h", |
| 287 | ] |
hbos | a9a1d2a | 2016-01-11 10:19:02 -0800 | [diff] [blame] | 288 | deps += [ |
kjellander | f6b5509 | 2016-02-07 23:04:26 -0800 | [diff] [blame] | 289 | "../../common_video", |
hbos | a9a1d2a | 2016-01-11 10:19:02 -0800 | [diff] [blame] | 290 | "//third_party/ffmpeg:ffmpeg", |
| 291 | "//third_party/openh264:encoder", |
| 292 | ] |
Oleh Prypin | 2b82ee7 | 2018-01-15 09:44:18 +0100 | [diff] [blame] | 293 | |
| 294 | # TODO(bugs.webrtc.org/8745): stop using av_lockmgr_register |
| 295 | if (!is_win) { |
| 296 | cflags = [ "-Wno-deprecated-declarations" ] |
| 297 | } |
Dan Minor | 9c68613 | 2018-01-15 10:20:00 -0500 | [diff] [blame] | 298 | |
| 299 | if (!build_with_mozilla) { |
| 300 | deps += [ "../../media:rtc_media_base" ] |
| 301 | } |
hbos | a9a1d2a | 2016-01-11 10:19:02 -0800 | [diff] [blame] | 302 | } |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 303 | } |
| 304 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 305 | rtc_static_library("webrtc_i420") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 306 | visibility = [ "*" ] |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 307 | sources = [ |
Henrik Kjellander | a74c08d | 2015-10-22 12:23:11 +0200 | [diff] [blame] | 308 | "codecs/i420/i420.cc", |
| 309 | "codecs/i420/include/i420.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 310 | ] |
| 311 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 312 | if (!build_with_chromium && is_clang) { |
| 313 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 314 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 315 | } |
| 316 | |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 317 | deps = [ |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 318 | ":video_codec_interface", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 319 | ":video_coding_utility", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 320 | "../..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 321 | "../../:typedefs", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 322 | "../../api/video:video_frame_i420", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 323 | "../../common_video:common_video", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 324 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 325 | "../../rtc_base:rtc_base_approved", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 326 | "../../system_wrappers", |
Mirko Bonadei | 401d056 | 2017-12-14 11:24:00 +0100 | [diff] [blame] | 327 | "//third_party/libyuv", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 328 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 329 | } |
| 330 | |
Emircan Uysaler | d7ae3c3 | 2018-01-25 13:01:09 -0800 | [diff] [blame] | 331 | rtc_static_library("webrtc_multiplex") { |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 332 | sources = [ |
Emircan Uysaler | d7ae3c3 | 2018-01-25 13:01:09 -0800 | [diff] [blame] | 333 | "codecs/multiplex/include/multiplex_decoder_adapter.h", |
| 334 | "codecs/multiplex/include/multiplex_encoded_image_packer.h", |
| 335 | "codecs/multiplex/include/multiplex_encoder_adapter.h", |
| 336 | "codecs/multiplex/multiplex_decoder_adapter.cc", |
| 337 | "codecs/multiplex/multiplex_encoded_image_packer.cc", |
| 338 | "codecs/multiplex/multiplex_encoder_adapter.cc", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 339 | ] |
| 340 | |
| 341 | if (!build_with_chromium && is_clang) { |
| 342 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 343 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 344 | } |
| 345 | |
| 346 | deps = [ |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 347 | ":video_codec_interface", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 348 | ":video_coding_utility", |
| 349 | "..:module_api", |
| 350 | "../..:webrtc_common", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 351 | "../../api/video:video_frame", |
| 352 | "../../api/video:video_frame_i420", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 353 | "../../api/video_codecs:video_codecs_api", |
| 354 | "../../common_video:common_video", |
Patrik Höglund | 76df0df | 2017-12-19 11:50:21 +0100 | [diff] [blame] | 355 | "../../rtc_base:rtc_base", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 356 | "../../system_wrappers", |
Qiang Chen | a7c7a19 | 2018-01-24 13:36:41 -0800 | [diff] [blame] | 357 | "../rtp_rtcp:rtp_rtcp_format", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 358 | ] |
| 359 | } |
| 360 | |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 361 | # This target includes VP8 files that may be used for any VP8 codec, internal SW or external HW. |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 362 | rtc_static_library("webrtc_vp8_helpers") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 363 | visibility = [ "*" ] |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 364 | sources = [ |
Lu Liu | 6552695 | 2017-12-20 18:08:36 +0000 | [diff] [blame] | 365 | "codecs/vp8/default_temporal_layers.cc", |
| 366 | "codecs/vp8/default_temporal_layers.h", |
| 367 | "codecs/vp8/include/vp8.h", |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 368 | "codecs/vp8/include/vp8_common_types.h", |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 369 | "codecs/vp8/screenshare_layers.cc", |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 370 | "codecs/vp8/screenshare_layers.h", |
kjellander | a8d8aad | 2017-03-08 05:42:26 -0800 | [diff] [blame] | 371 | "codecs/vp8/simulcast_rate_allocator.cc", |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 372 | "codecs/vp8/simulcast_rate_allocator.h", |
Ilya Nikolaevskiy | 5866291 | 2017-10-04 15:07:09 +0200 | [diff] [blame] | 373 | "codecs/vp8/temporal_layers.cc", |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 374 | "codecs/vp8/temporal_layers.h", |
| 375 | ] |
| 376 | |
| 377 | # TODO(jschuh): Bug 1348: fix this warning. |
| 378 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 379 | |
| 380 | if (!build_with_chromium && is_clang) { |
| 381 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 382 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 383 | } |
| 384 | |
| 385 | deps = [ |
| 386 | ":video_codec_interface", |
| 387 | ":video_coding_utility", |
| 388 | "..:module_api", |
| 389 | "../..:webrtc_common", |
| 390 | "../../:typedefs", |
| 391 | "../../api:optional", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 392 | "../../api/video:video_frame", |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 393 | "../../api/video_codecs:video_codecs_api", |
| 394 | "../../common_video", |
| 395 | "../../rtc_base:checks", |
| 396 | "../../rtc_base:rtc_base_approved", |
| 397 | "../../rtc_base:rtc_numerics", |
| 398 | "../../system_wrappers", |
| 399 | "../../system_wrappers:field_trial_api", |
| 400 | "../../system_wrappers:metrics_api", |
| 401 | "//third_party/libyuv", |
| 402 | ] |
| 403 | } |
| 404 | |
| 405 | # This target includes the internal SW codec. |
| 406 | rtc_static_library("webrtc_vp8") { |
| 407 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 16:39:05 +0200 | [diff] [blame] | 408 | poisonous = [ "software_video_codecs" ] |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 409 | sources = [ |
| 410 | "codecs/vp8/include/vp8.h", |
| 411 | "codecs/vp8/include/vp8_common_types.h", |
Erik Språng | cc681cc | 2018-03-14 17:52:55 +0100 | [diff] [blame] | 412 | "codecs/vp8/libvpx_vp8_decoder.cc", |
| 413 | "codecs/vp8/libvpx_vp8_decoder.h", |
| 414 | "codecs/vp8/libvpx_vp8_encoder.cc", |
| 415 | "codecs/vp8/libvpx_vp8_encoder.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 416 | ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 417 | |
kjellander | 8f4419b | 2016-06-02 02:09:52 -0700 | [diff] [blame] | 418 | # TODO(jschuh): Bug 1348: fix this warning. |
| 419 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 420 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 421 | if (!build_with_chromium && is_clang) { |
| 422 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 423 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 424 | } |
| 425 | |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 426 | deps = [ |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 427 | ":video_codec_interface", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 428 | ":video_coding_utility", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 429 | ":webrtc_vp8_helpers", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 430 | "..:module_api", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 431 | "../..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 432 | "../../:typedefs", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 433 | "../../api:optional", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 434 | "../../api/video:video_frame", |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 435 | "../../api/video_codecs:video_codecs_api", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 436 | "../../common_video", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 437 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 438 | "../../rtc_base:rtc_base_approved", |
asapersson | e5d02f9 | 2017-08-09 23:37:05 -0700 | [diff] [blame] | 439 | "../../rtc_base:rtc_numerics", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 440 | "../../system_wrappers", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 441 | "../../system_wrappers:field_trial_api", |
| 442 | "../../system_wrappers:metrics_api", |
Mirko Bonadei | 401d056 | 2017-12-14 11:24:00 +0100 | [diff] [blame] | 443 | "//third_party/libyuv", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 444 | ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 445 | if (rtc_build_libvpx) { |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 446 | deps += [ rtc_libvpx_dir ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 447 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 448 | } |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 449 | |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 450 | # This target includes VP9 files that may be used for any VP9 codec, internal SW or external HW. |
| 451 | rtc_static_library("webrtc_vp9_helpers") { |
| 452 | sources = [ |
| 453 | "codecs/vp9/svc_config.cc", |
| 454 | "codecs/vp9/svc_config.h", |
| 455 | "codecs/vp9/svc_rate_allocator.cc", |
| 456 | "codecs/vp9/svc_rate_allocator.h", |
| 457 | ] |
| 458 | |
| 459 | # TODO(jschuh): Bug 1348: fix this warning. |
| 460 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 461 | |
| 462 | if (!build_with_chromium && is_clang) { |
| 463 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 464 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 465 | } |
| 466 | |
| 467 | deps = [ |
| 468 | ":video_codec_interface", |
| 469 | "../..:webrtc_common", |
| 470 | "../../common_video", |
| 471 | "../../rtc_base:checks", |
| 472 | ] |
| 473 | } |
| 474 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 475 | rtc_static_library("webrtc_vp9") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 476 | visibility = [ "*" ] |
Anders Carlsson | 1f433e4 | 2018-04-24 16:39:05 +0200 | [diff] [blame] | 477 | poisonous = [ "software_video_codecs" ] |
phoglund | 3360352 | 2016-10-05 06:52:22 -0700 | [diff] [blame] | 478 | if (rtc_libvpx_build_vp9) { |
| 479 | sources = [ |
| 480 | "codecs/vp9/include/vp9.h", |
| 481 | "codecs/vp9/screenshare_layers.cc", |
| 482 | "codecs/vp9/screenshare_layers.h", |
| 483 | "codecs/vp9/vp9_frame_buffer_pool.cc", |
| 484 | "codecs/vp9/vp9_frame_buffer_pool.h", |
| 485 | "codecs/vp9/vp9_impl.cc", |
| 486 | "codecs/vp9/vp9_impl.h", |
| 487 | ] |
| 488 | } else { |
| 489 | sources = [ |
| 490 | "codecs/vp9/vp9_noop.cc", |
| 491 | ] |
| 492 | } |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 493 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 494 | if (!build_with_chromium && is_clang) { |
| 495 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 496 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 497 | } |
| 498 | |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 499 | deps = [ |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 500 | ":video_codec_interface", |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 501 | ":video_coding_utility", |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 502 | ":webrtc_vp9_helpers", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 503 | "..:module_api", |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 504 | "../..:webrtc_common", |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 505 | "../../common_video", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 506 | "../../rtc_base:checks", |
Patrik Höglund | 76df0df | 2017-12-19 11:50:21 +0100 | [diff] [blame] | 507 | "../../rtc_base:rtc_base", |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 508 | "../../system_wrappers", |
| 509 | ] |
| 510 | if (rtc_build_libvpx) { |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 511 | deps += [ rtc_libvpx_dir ] |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 512 | } |
| 513 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 514 | |
| 515 | if (rtc_include_tests) { |
Rasmus Brandt | f105325 | 2018-02-05 09:52:31 +0100 | [diff] [blame] | 516 | if (is_android) { |
| 517 | rtc_static_library("android_codec_factory_helper") { |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 518 | sources = [ |
Rasmus Brandt | f105325 | 2018-02-05 09:52:31 +0100 | [diff] [blame] | 519 | "codecs/test/android_codec_factory_helper.cc", |
| 520 | "codecs/test/android_codec_factory_helper.h", |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 521 | ] |
Rasmus Brandt | f105325 | 2018-02-05 09:52:31 +0100 | [diff] [blame] | 522 | |
| 523 | deps = [ |
| 524 | "../../api/video_codecs:video_codecs_api", |
| 525 | "../../rtc_base:checks", |
| 526 | "../../rtc_base:rtc_base_approved", |
| 527 | "../../sdk/android:native_api_base", |
| 528 | "../../sdk/android:native_api_codecs", |
| 529 | "../../sdk/android:native_api_jni", |
| 530 | "//base", |
| 531 | ] |
| 532 | } |
| 533 | } |
| 534 | |
| 535 | if (is_ios || is_mac) { |
| 536 | rtc_static_library("objc_codec_factory_helper") { |
| 537 | sources = [ |
| 538 | "codecs/test/objc_codec_factory_helper.h", |
| 539 | "codecs/test/objc_codec_factory_helper.mm", |
| 540 | ] |
| 541 | |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 542 | deps = [ |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 543 | "../../api/video:video_frame", |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 544 | "../../api/video_codecs:video_codecs_api", |
| 545 | "../../media:rtc_audio_video", |
Rasmus Brandt | f105325 | 2018-02-05 09:52:31 +0100 | [diff] [blame] | 546 | "../../media:rtc_media_base", |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 547 | "../../modules:module_api", |
Magnus Jedvert | e4a9e92 | 2017-12-04 14:09:40 +0100 | [diff] [blame] | 548 | "../../rtc_base:rtc_base_approved", |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 549 | "../../sdk:common_objc", |
Anders Carlsson | 3ff50fb | 2018-02-01 15:47:05 +0100 | [diff] [blame] | 550 | "../../sdk:native_api", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 10:49:22 +0100 | [diff] [blame] | 551 | "../../sdk:peerconnectionfactory_base_objc", |
Mirko Bonadei | 111a0d1 | 2018-02-19 09:58:00 +0100 | [diff] [blame] | 552 | "../../sdk:videocodec_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 10:32:03 +0100 | [diff] [blame] | 553 | "../../sdk:videosource_objc", |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 554 | "../../sdk:videotoolbox_objc", |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 555 | ] |
| 556 | |
| 557 | if (!build_with_chromium && is_clang) { |
| 558 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 559 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 560 | } |
| 561 | } |
| 562 | } |
| 563 | |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 564 | rtc_source_set("simulcast_test_utility") { |
| 565 | testonly = true |
| 566 | sources = [ |
| 567 | "codecs/vp8/simulcast_test_utility.h", |
| 568 | ] |
| 569 | |
| 570 | if (!build_with_chromium && is_clang) { |
| 571 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 572 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 573 | } |
| 574 | |
| 575 | deps = [ |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 576 | ":mock_headers", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 577 | ":video_codec_interface", |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 578 | ":video_coding", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 579 | ":webrtc_vp8_helpers", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 580 | "../../api/video:video_frame", |
| 581 | "../../api/video:video_frame_i420", |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 582 | "../../common_video:common_video", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 583 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 584 | "../../rtc_base:rtc_base_approved", |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 585 | "../../test:test_support", |
| 586 | ] |
| 587 | } |
| 588 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 589 | rtc_source_set("video_codecs_test_framework") { |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 590 | testonly = true |
| 591 | sources = [ |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 592 | "codecs/test/stats.cc", |
| 593 | "codecs/test/stats.h", |
Åsa Persson | 2d27fb5 | 2017-10-19 14:05:50 +0200 | [diff] [blame] | 594 | "codecs/test/test_config.cc", |
| 595 | "codecs/test/test_config.h", |
Rasmus Brandt | 98a867c | 2018-02-01 15:45:38 +0100 | [diff] [blame] | 596 | "codecs/test/video_codec_unittest.cc", |
| 597 | "codecs/test/video_codec_unittest.h", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 598 | "codecs/test/videoprocessor.cc", |
| 599 | "codecs/test/videoprocessor.h", |
| 600 | ] |
| 601 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 602 | if (!build_with_chromium && is_clang) { |
| 603 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 604 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 605 | } |
| 606 | |
| 607 | deps = [ |
ssilkin | 612f858 | 2017-09-28 09:23:17 -0700 | [diff] [blame] | 608 | ":codec_globals_headers", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 609 | ":video_codec_interface", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 610 | ":video_coding", |
| 611 | ":video_coding_utility", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 612 | ":webrtc_vp8_helpers", |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 613 | ":webrtc_vp9_helpers", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 614 | "../..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 615 | "../../:typedefs", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 616 | "../../api/video:video_frame", |
| 617 | "../../api/video:video_frame_i420", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 618 | "../../api/video_codecs:video_codecs_api", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 619 | "../../common_video:common_video", |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 620 | "../../media:rtc_audio_video", |
Rasmus Brandt | 5f7a891 | 2018-02-28 17:17:15 +0100 | [diff] [blame] | 621 | "../../media:rtc_h264_profile_id", |
| 622 | "../../media:rtc_media_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 623 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 624 | "../../rtc_base:rtc_base_approved", |
brandtr | c8c5905 | 2017-08-21 06:44:16 -0700 | [diff] [blame] | 625 | "../../rtc_base:rtc_task_queue", |
| 626 | "../../rtc_base:sequenced_task_checker", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 627 | "../../system_wrappers", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 628 | "../../test:fileutils", |
Sergey Silkin | 06a8f30 | 2018-02-20 09:48:26 +0100 | [diff] [blame] | 629 | "../../test:test_common", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 630 | "../../test:test_support", |
sakal | b8102e0 | 2017-03-06 03:52:55 -0800 | [diff] [blame] | 631 | "../../test:video_test_common", |
ehmaldonado | 656610f | 2017-02-06 02:21:11 -0800 | [diff] [blame] | 632 | "../../test:video_test_support", |
Sergey Silkin | 3be2a55 | 2018-01-17 15:11:44 +0100 | [diff] [blame] | 633 | "../rtp_rtcp:rtp_rtcp_format", |
Sergey Silkin | 10d9d59 | 2018-02-01 13:25:17 +0100 | [diff] [blame] | 634 | "//third_party/libyuv", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 635 | ] |
| 636 | } |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 637 | |
Sergey Silkin | 1d2b627 | 2018-03-28 13:04:35 +0200 | [diff] [blame] | 638 | video_coding_modules_tests_resources = [] |
Rasmus Brandt | cd7da92 | 2018-04-25 12:45:16 +0200 | [diff] [blame] | 639 | if (is_android) { |
| 640 | video_coding_modules_tests_resources += [ |
| 641 | "../../resources/foreman_128x96.yuv", |
| 642 | "../../resources/foreman_160x120.yuv", |
| 643 | "../../resources/foreman_176x144.yuv", |
| 644 | "../../resources/foreman_240x136.yuv", |
| 645 | "../../resources/foreman_320x240.yuv", |
| 646 | "../../resources/foreman_480x272.yuv", |
| 647 | ] |
| 648 | } |
Sergey Silkin | 556270c | 2018-02-27 15:18:18 +0100 | [diff] [blame] | 649 | if (!(is_ios || is_android)) { |
Sergey Silkin | 3285897 | 2018-03-09 11:04:15 +0100 | [diff] [blame] | 650 | video_coding_modules_tests_resources += [ |
| 651 | "../../resources/FourPeople_1280x720_30.yuv", |
| 652 | "../../resources/ConferenceMotion_1280_720_50.yuv", |
| 653 | ] |
Sergey Silkin | 556270c | 2018-02-27 15:18:18 +0100 | [diff] [blame] | 654 | } |
| 655 | |
Sergey Silkin | 1d2b627 | 2018-03-28 13:04:35 +0200 | [diff] [blame] | 656 | num_video_coding_modules_tests_resources = 0 |
| 657 | foreach(i, video_coding_modules_tests_resources) { |
| 658 | num_video_coding_modules_tests_resources += 1 |
| 659 | } |
| 660 | |
| 661 | if (num_video_coding_modules_tests_resources > 0) { |
| 662 | if (is_ios || is_mac) { |
| 663 | bundle_data("video_coding_modules_tests_resources_bundle_data") { |
| 664 | testonly = true |
| 665 | sources = video_coding_modules_tests_resources |
| 666 | outputs = [ |
| 667 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 668 | ] |
| 669 | } |
brandtr | 12a47f6 | 2017-09-01 00:10:27 -0700 | [diff] [blame] | 670 | } |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 671 | } |
| 672 | |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 11:56:55 +0200 | [diff] [blame] | 673 | rtc_source_set("videocodec_test_impl") { |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 674 | testonly = true |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 675 | sources = [ |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 11:56:55 +0200 | [diff] [blame] | 676 | "codecs/test/videocodec_test_fixture_impl.cc", |
| 677 | "codecs/test/videocodec_test_fixture_impl.h", |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 678 | ] |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 679 | deps = [ |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 680 | ":video_codec_interface", |
sakal | b8102e0 | 2017-03-06 03:52:55 -0800 | [diff] [blame] | 681 | ":video_codecs_test_framework", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 682 | ":video_coding", |
| 683 | ":video_coding_utility", |
Emircan Uysaler | d7ae3c3 | 2018-01-25 13:01:09 -0800 | [diff] [blame] | 684 | ":webrtc_multiplex", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 685 | ":webrtc_vp8_helpers", |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 686 | ":webrtc_vp9_helpers", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 687 | "../..:webrtc_common", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 11:56:55 +0200 | [diff] [blame] | 688 | "../../api:videocodec_test_fixture_api", |
Mirko Bonadei | 34814c7 | 2018-01-11 10:13:56 +0100 | [diff] [blame] | 689 | "../../api/video_codecs:video_codecs_api", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 690 | "../../common_video", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 691 | "../../media:rtc_internal_video_codecs", |
Anders Carlsson | dd8c165 | 2018-01-30 10:32:13 +0100 | [diff] [blame] | 692 | "../../media:rtc_software_fallback_wrappers", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 693 | "../../rtc_base:checks", |
Patrik Höglund | 76df0df | 2017-12-19 11:50:21 +0100 | [diff] [blame] | 694 | "../../rtc_base:rtc_base", |
Åsa Persson | 7173cf2 | 2017-10-19 12:14:09 +0200 | [diff] [blame] | 695 | "../../rtc_base:rtc_base_tests_utils", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 696 | "../../system_wrappers", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 697 | "../../test:fileutils", |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 698 | "../../test:test_support", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 699 | "../../test:video_test_support", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 11:56:55 +0200 | [diff] [blame] | 700 | ] |
| 701 | if (!build_with_chromium && is_clang) { |
| 702 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 703 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 704 | } |
| 705 | if (is_android) { |
| 706 | deps += [ ":android_codec_factory_helper" ] |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | rtc_source_set("video_coding_modules_tests") { |
| 711 | testonly = true |
| 712 | |
| 713 | sources = [ |
| 714 | "codecs/h264/test/h264_impl_unittest.cc", |
| 715 | "codecs/multiplex/test/multiplex_adapter_unittest.cc", |
| 716 | "codecs/test/video_encoder_decoder_instantiation_tests.cc", |
| 717 | "codecs/test/videocodec_test_libvpx.cc", |
| 718 | "codecs/test/videocodec_test_openh264.cc", |
| 719 | "codecs/test/videocodec_test_parameterized.cc", |
| 720 | "codecs/vp8/test/vp8_impl_unittest.cc", |
| 721 | "codecs/vp9/test/vp9_impl_unittest.cc", |
| 722 | ] |
| 723 | |
| 724 | deps = [ |
| 725 | ":video_codecs_test_framework", |
| 726 | ":video_coding_utility", |
| 727 | ":videocodec_test_impl", |
| 728 | ":webrtc_h264", |
| 729 | ":webrtc_multiplex", |
| 730 | ":webrtc_vp8_helpers", |
| 731 | ":webrtc_vp9", |
| 732 | ":webrtc_vp9_helpers", |
| 733 | "../..:webrtc_common", |
| 734 | "../../api:create_videocodec_test_fixture_api", |
| 735 | "../../api:mock_video_codec_factory", |
| 736 | "../../api:optional", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 11:56:55 +0200 | [diff] [blame] | 737 | "../../api:videocodec_test_fixture_api", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 738 | "../../api/video:video_frame_i420", |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 11:56:55 +0200 | [diff] [blame] | 739 | "../../api/video_codecs:video_codecs_api", |
| 740 | "../../common_video", |
| 741 | "../../media:rtc_h264_profile_id", |
| 742 | "../../media:rtc_media_base", |
| 743 | "../../rtc_base:rtc_base", |
| 744 | "../../test:fileutils", |
| 745 | "../../test:test_support", |
| 746 | "../../test:video_test_common", |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 747 | ] |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 748 | |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 749 | data = video_coding_modules_tests_resources |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 750 | |
| 751 | if (is_android) { |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 11:56:55 +0200 | [diff] [blame] | 752 | sources += [ "codecs/test/videocodec_test_mediacodec.cc" ] |
Rasmus Brandt | 3102734 | 2017-09-29 13:48:12 +0000 | [diff] [blame] | 753 | |
Rasmus Brandt | f105325 | 2018-02-05 09:52:31 +0100 | [diff] [blame] | 754 | deps += [ ":android_codec_factory_helper" ] |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 755 | } |
| 756 | |
| 757 | if (is_ios || is_mac) { |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 11:56:55 +0200 | [diff] [blame] | 758 | sources += [ "codecs/test/videocodec_test_videotoolbox.cc" ] |
Rasmus Brandt | f7a3558 | 2017-10-24 10:16:33 +0200 | [diff] [blame] | 759 | |
Sergey Silkin | 1d2b627 | 2018-03-28 13:04:35 +0200 | [diff] [blame] | 760 | deps += [ ":objc_codec_factory_helper" ] |
| 761 | |
| 762 | if (num_video_coding_modules_tests_resources > 0) { |
| 763 | deps += [ ":video_coding_modules_tests_resources_bundle_data" ] |
| 764 | } |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 765 | } |
| 766 | |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 767 | if (rtc_use_h264) { |
| 768 | defines = [ "WEBRTC_USE_H264" ] |
| 769 | } |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 770 | |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 771 | if (!build_with_chromium && is_clang) { |
| 772 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 773 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 774 | } |
| 775 | } |
| 776 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 777 | rtc_source_set("video_coding_unittests") { |
| 778 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 779 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 780 | sources = [ |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 781 | "codecs/test/stats_unittest.cc", |
Åsa Persson | 2d27fb5 | 2017-10-19 14:05:50 +0200 | [diff] [blame] | 782 | "codecs/test/test_config_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 783 | "codecs/test/videoprocessor_unittest.cc", |
| 784 | "codecs/vp8/default_temporal_layers_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 785 | "codecs/vp8/screenshare_layers_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 786 | "codecs/vp8/simulcast_unittest.cc", |
Sergey Silkin | 1322dbc | 2018-04-23 12:30:35 +0200 | [diff] [blame] | 787 | "codecs/vp9/svc_config_unittest.cc", |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 788 | "codecs/vp9/svc_rate_allocator_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 789 | "decoding_state_unittest.cc", |
Ying Wang | 3b790f3 | 2018-01-19 17:58:57 +0100 | [diff] [blame] | 790 | "fec_controller_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 791 | "frame_buffer2_unittest.cc", |
ilnik | 04f4d12 | 2017-06-19 07:18:55 -0700 | [diff] [blame] | 792 | "generic_encoder_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 793 | "h264_sprop_parameter_sets_unittest.cc", |
| 794 | "h264_sps_pps_tracker_unittest.cc", |
| 795 | "histogram_unittest.cc", |
| 796 | "include/mock/mock_vcm_callbacks.h", |
| 797 | "jitter_buffer_unittest.cc", |
| 798 | "jitter_estimator_tests.cc", |
| 799 | "nack_module_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 800 | "receiver_unittest.cc", |
| 801 | "rtp_frame_reference_finder_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 802 | "session_info_unittest.cc", |
| 803 | "test/stream_generator.cc", |
| 804 | "test/stream_generator.h", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 805 | "test/test_util.h", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 806 | "timing_unittest.cc", |
| 807 | "utility/default_video_bitrate_allocator_unittest.cc", |
| 808 | "utility/frame_dropper_unittest.cc", |
| 809 | "utility/ivf_file_writer_unittest.cc", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 810 | "utility/mock/mock_frame_dropper.h", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 811 | "utility/moving_average_unittest.cc", |
| 812 | "utility/quality_scaler_unittest.cc", |
| 813 | "utility/simulcast_rate_allocator_unittest.cc", |
sprang | 429600d | 2017-01-26 06:12:26 -0800 | [diff] [blame] | 814 | "video_codec_initializer_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 815 | "video_packet_buffer_unittest.cc", |
| 816 | "video_receiver_unittest.cc", |
| 817 | "video_sender_unittest.cc", |
| 818 | ] |
| 819 | if (rtc_libvpx_build_vp9) { |
| 820 | sources += [ "codecs/vp9/vp9_screenshare_layers_unittest.cc" ] |
| 821 | } |
| 822 | if (rtc_use_h264) { |
| 823 | sources += [ "codecs/h264/h264_encoder_impl_unittest.cc" ] |
| 824 | } |
| 825 | deps = [ |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 826 | ":codec_globals_headers", |
philipel | d5a272f | 2018-02-21 14:30:34 +0100 | [diff] [blame] | 827 | ":encoded_frame", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 828 | ":mock_headers", |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 829 | ":simulcast_test_utility", |
Patrik Höglund | 99175c6 | 2018-01-08 11:05:10 +0100 | [diff] [blame] | 830 | ":video_codec_interface", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 831 | ":video_codecs_test_framework", |
| 832 | ":video_coding", |
| 833 | ":video_coding_utility", |
| 834 | ":webrtc_h264", |
| 835 | ":webrtc_vp8", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 836 | ":webrtc_vp8_helpers", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 837 | ":webrtc_vp9", |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 838 | ":webrtc_vp9_helpers", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 839 | "..:module_api", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 840 | "../..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 841 | "../../:typedefs", |
Niels Möller | c6ce9c5 | 2018-05-11 11:15:30 +0200 | [diff] [blame^] | 842 | "../../api/video:video_frame", |
| 843 | "../../api/video:video_frame_i420", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 844 | "../../api/video_codecs:video_codecs_api", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 845 | "../../common_video:common_video", |
Kári Tristan Helgason | 8cbb1c9 | 2018-04-13 14:25:22 +0200 | [diff] [blame] | 846 | "../../media:rtc_media_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 847 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 848 | "../../rtc_base:rtc_base", |
| 849 | "../../rtc_base:rtc_base_approved", |
Ilya Nikolaevskiy | 764aeb7 | 2018-04-03 10:01:52 +0200 | [diff] [blame] | 850 | "../../rtc_base:rtc_base_tests_utils", |
Bjorn Terelius | a194e58 | 2017-10-25 13:07:09 +0200 | [diff] [blame] | 851 | "../../rtc_base:rtc_numerics", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 852 | "../../rtc_base:rtc_task_queue", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 853 | "../../system_wrappers", |
| 854 | "../../system_wrappers:field_trial_api", |
| 855 | "../../system_wrappers:metrics_api", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 856 | "../../system_wrappers:metrics_default", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 857 | "../../test:field_trial", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 858 | "../../test:fileutils", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 859 | "../../test:test_support", |
| 860 | "../../test:video_test_common", |
ehmaldonado | 656610f | 2017-02-06 02:21:11 -0800 | [diff] [blame] | 861 | "../../test:video_test_support", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 862 | "../rtp_rtcp:rtp_rtcp_format", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 863 | ] |
| 864 | if (rtc_build_libvpx) { |
| 865 | deps += [ rtc_libvpx_dir ] |
| 866 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 867 | |
| 868 | # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. |
| 869 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 870 | if (!build_with_chromium && is_clang) { |
| 871 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 872 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 873 | } |
| 874 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 875 | } |