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