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 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 11 | rtc_static_library("video_coding") { |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 12 | sources = [ |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 13 | "codec_database.cc", |
| 14 | "codec_database.h", |
| 15 | "codec_timer.cc", |
| 16 | "codec_timer.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 17 | "decoding_state.cc", |
| 18 | "decoding_state.h", |
| 19 | "encoded_frame.cc", |
| 20 | "encoded_frame.h", |
brandtr | 71b1c1f | 2017-01-12 06:16:24 -0800 | [diff] [blame] | 21 | "fec_rate_table.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 22 | "frame_buffer.cc", |
| 23 | "frame_buffer.h", |
philipel | be7a9e5 | 2016-05-19 12:19:35 +0200 | [diff] [blame] | 24 | "frame_buffer2.cc", |
| 25 | "frame_buffer2.h", |
philipel | c707ab7 | 2016-04-01 02:01:54 -0700 | [diff] [blame] | 26 | "frame_object.cc", |
| 27 | "frame_object.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 28 | "generic_decoder.cc", |
| 29 | "generic_decoder.h", |
| 30 | "generic_encoder.cc", |
| 31 | "generic_encoder.h", |
johan | b0a1111 | 2016-12-08 03:57:17 -0800 | [diff] [blame] | 32 | "h264_sprop_parameter_sets.cc", |
| 33 | "h264_sprop_parameter_sets.h", |
philipel | 34852cf | 2016-11-03 04:03:01 -0700 | [diff] [blame] | 34 | "h264_sps_pps_tracker.cc", |
| 35 | "h264_sps_pps_tracker.h", |
philipel | 83f831a | 2016-03-12 03:30:23 -0800 | [diff] [blame] | 36 | "histogram.cc", |
| 37 | "histogram.h", |
Erik Språng | 08127a9 | 2016-11-16 16:41:30 +0100 | [diff] [blame] | 38 | "include/video_codec_initializer.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 39 | "include/video_coding.h", |
| 40 | "include/video_coding_defines.h", |
| 41 | "inter_frame_delay.cc", |
| 42 | "inter_frame_delay.h", |
| 43 | "internal_defines.h", |
| 44 | "jitter_buffer.cc", |
| 45 | "jitter_buffer.h", |
| 46 | "jitter_buffer_common.h", |
| 47 | "jitter_estimator.cc", |
| 48 | "jitter_estimator.h", |
| 49 | "media_opt_util.cc", |
| 50 | "media_opt_util.h", |
| 51 | "media_optimization.cc", |
| 52 | "media_optimization.h", |
| 53 | "nack_fec_tables.h", |
philipel | 83f831a | 2016-03-12 03:30:23 -0800 | [diff] [blame] | 54 | "nack_module.cc", |
| 55 | "nack_module.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 56 | "packet.cc", |
| 57 | "packet.h", |
philipel | c707ab7 | 2016-04-01 02:01:54 -0700 | [diff] [blame] | 58 | "packet_buffer.cc", |
| 59 | "packet_buffer.h", |
Per | 69b332d | 2016-06-02 15:45:42 +0200 | [diff] [blame] | 60 | "protection_bitrate_calculator.cc", |
| 61 | "protection_bitrate_calculator.h", |
kjellander | a8d8aad | 2017-03-08 05:42:26 -0800 | [diff] [blame] | 62 | "qp_parser.cc", |
| 63 | "qp_parser.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 64 | "receiver.cc", |
| 65 | "receiver.h", |
philipel | 02447bc | 2016-05-13 06:01:03 -0700 | [diff] [blame] | 66 | "rtp_frame_reference_finder.cc", |
| 67 | "rtp_frame_reference_finder.h", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 68 | "rtt_filter.cc", |
| 69 | "rtt_filter.h", |
| 70 | "session_info.cc", |
| 71 | "session_info.h", |
| 72 | "timestamp_map.cc", |
| 73 | "timestamp_map.h", |
| 74 | "timing.cc", |
| 75 | "timing.h", |
Erik Språng | 08127a9 | 2016-11-16 16:41:30 +0100 | [diff] [blame] | 76 | "video_codec_initializer.cc", |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame] | 77 | "video_coding_impl.cc", |
| 78 | "video_coding_impl.h", |
| 79 | "video_receiver.cc", |
| 80 | "video_sender.cc", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 81 | ] |
| 82 | |
kjellander | 8f4419b | 2016-06-02 02:09:52 -0700 | [diff] [blame] | 83 | # TODO(jschuh): Bug 1348: fix this warning. |
| 84 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
kjellander@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 85 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 86 | if (!build_with_chromium && is_clang) { |
| 87 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 88 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 89 | } |
| 90 | |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 91 | deps = [ |
Rasmus Brandt | 88f080a | 2017-11-02 14:28:06 +0100 | [diff] [blame] | 92 | ":codec_globals_headers", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 93 | ":video_coding_utility", |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 94 | ":webrtc_h264", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 95 | ":webrtc_i420", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 96 | ":webrtc_stereo", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 97 | ":webrtc_vp8", |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 98 | ":webrtc_vp9", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 99 | "..:module_api", |
Ilya Nikolaevskiy | 76f2a85 | 2017-11-16 14:33:53 +0100 | [diff] [blame] | 100 | "..:module_api_public", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 101 | "../..:webrtc_common", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 102 | "../../api:optional", |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [diff] [blame] | 103 | "../../api:video_frame_api_i420", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 104 | "../../call:video_stream_api", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 105 | "../../common_video", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 106 | "../../rtc_base:rtc_base", |
| 107 | "../../rtc_base:rtc_base_approved", |
| 108 | "../../rtc_base:rtc_numerics", |
| 109 | "../../rtc_base:rtc_task_queue", |
| 110 | "../../rtc_base:sequenced_task_checker", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 111 | "../../system_wrappers", |
ilnik | 6d5b4d6 | 2017-08-30 03:32:14 -0700 | [diff] [blame] | 112 | "../pacing", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 113 | "../rtp_rtcp:rtp_rtcp", |
| 114 | "../utility:utility", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 115 | ] |
| 116 | } |
| 117 | |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 118 | rtc_source_set("mock_headers") { |
| 119 | testonly = true |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 120 | sources = [ |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 121 | "codecs/interface/mock/mock_video_codec_interface.h", |
| 122 | "include/mock/mock_video_codec_interface.h", |
| 123 | ] |
| 124 | deps = [ |
| 125 | ":video_coding_utility", |
| 126 | "../..:webrtc_common", |
| 127 | "../../test:test_support", |
| 128 | ] |
| 129 | } |
| 130 | |
| 131 | rtc_source_set("codec_globals_headers") { |
| 132 | sources = [ |
| 133 | "codecs/h264/include/h264_globals.h", |
| 134 | "codecs/interface/common_constants.h", |
Emircan Uysaler | 90612a6 | 2017-11-28 09:45:25 -0800 | [diff] [blame^] | 135 | "codecs/stereo/include/stereo_globals.h", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 136 | "codecs/vp8/include/vp8_globals.h", |
| 137 | "codecs/vp9/include/vp9_globals.h", |
| 138 | ] |
| 139 | } |
| 140 | |
| 141 | rtc_source_set("video_coding_utility") { |
| 142 | sources = [ |
| 143 | "codecs/interface/video_codec_interface.h", |
| 144 | "codecs/interface/video_error_codes.h", |
Erik Språng | 08127a9 | 2016-11-16 16:41:30 +0100 | [diff] [blame] | 145 | "utility/default_video_bitrate_allocator.cc", |
| 146 | "utility/default_video_bitrate_allocator.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 147 | "utility/frame_dropper.cc", |
kjellander@webrtc.org | b7ce964 | 2015-11-18 23:04:10 +0100 | [diff] [blame] | 148 | "utility/frame_dropper.h", |
sprang | 3911c26 | 2016-04-15 01:24:14 -0700 | [diff] [blame] | 149 | "utility/ivf_file_writer.cc", |
| 150 | "utility/ivf_file_writer.h", |
kthelgason | 194f40a | 2016-09-14 02:14:58 -0700 | [diff] [blame] | 151 | "utility/moving_average.cc", |
kjellander@webrtc.org | b7ce964 | 2015-11-18 23:04:10 +0100 | [diff] [blame] | 152 | "utility/moving_average.h", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 153 | "utility/quality_scaler.cc", |
kjellander@webrtc.org | b7ce964 | 2015-11-18 23:04:10 +0100 | [diff] [blame] | 154 | "utility/quality_scaler.h", |
jackychen | 98d8cf5 | 2015-05-21 11:12:02 -0700 | [diff] [blame] | 155 | "utility/vp8_header_parser.cc", |
kjellander@webrtc.org | b7ce964 | 2015-11-18 23:04:10 +0100 | [diff] [blame] | 156 | "utility/vp8_header_parser.h", |
jianj | 20acdf2 | 2017-05-24 10:00:16 -0700 | [diff] [blame] | 157 | "utility/vp9_uncompressed_header_parser.cc", |
| 158 | "utility/vp9_uncompressed_header_parser.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 159 | ] |
| 160 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 161 | if (!build_with_chromium && is_clang) { |
| 162 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 163 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 164 | } |
| 165 | |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 166 | deps = [ |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 167 | "..:module_api", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 168 | "../..:webrtc_common", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 169 | "../../api:optional", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 170 | "../../api/video_codecs:video_codecs_api", |
perkj | 4e417b2 | 2016-07-14 23:35:55 -0700 | [diff] [blame] | 171 | "../../common_video", |
kjellander | a8d8aad | 2017-03-08 05:42:26 -0800 | [diff] [blame] | 172 | "../../modules/rtp_rtcp:rtp_rtcp", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 173 | "../../rtc_base:rtc_base_approved", |
| 174 | "../../rtc_base:rtc_numerics", |
| 175 | "../../rtc_base:rtc_task_queue", |
| 176 | "../../rtc_base:sequenced_task_checker", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 177 | "../../system_wrappers", |
| 178 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 179 | } |
| 180 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 181 | rtc_static_library("webrtc_h264") { |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 182 | sources = [ |
| 183 | "codecs/h264/h264.cc", |
| 184 | "codecs/h264/include/h264.h", |
| 185 | ] |
| 186 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 187 | if (!build_with_chromium && is_clang) { |
| 188 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 189 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 190 | } |
| 191 | |
hbos | bab934b | 2016-01-27 01:36:03 -0800 | [diff] [blame] | 192 | defines = [] |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 193 | deps = [ |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 194 | ":video_coding_utility", |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [diff] [blame] | 195 | "../../api:video_frame_api_i420", |
Magnus Jedvert | 849b3ae | 2017-09-29 17:54:09 +0200 | [diff] [blame] | 196 | "../../api/video_codecs:video_codecs_api", |
magjed | 21d110f | 2017-02-28 00:28:04 -0800 | [diff] [blame] | 197 | "../../media:rtc_media_base", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 198 | "../../rtc_base:rtc_base_approved", |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 199 | "../../system_wrappers", |
| 200 | ] |
hbos | a9a1d2a | 2016-01-11 10:19:02 -0800 | [diff] [blame] | 201 | |
hbos | 902c03e | 2016-01-21 03:34:40 -0800 | [diff] [blame] | 202 | if (rtc_use_h264) { |
hbos | 9dc5928 | 2016-02-03 05:09:37 -0800 | [diff] [blame] | 203 | defines += [ "WEBRTC_USE_H264" ] |
hbos | c5a39c2 | 2016-02-02 02:26:05 -0800 | [diff] [blame] | 204 | if (rtc_initialize_ffmpeg) { |
| 205 | defines += [ "WEBRTC_INITIALIZE_FFMPEG" ] |
| 206 | } |
hbos | bab934b | 2016-01-27 01:36:03 -0800 | [diff] [blame] | 207 | sources += [ |
| 208 | "codecs/h264/h264_decoder_impl.cc", |
| 209 | "codecs/h264/h264_decoder_impl.h", |
| 210 | "codecs/h264/h264_encoder_impl.cc", |
| 211 | "codecs/h264/h264_encoder_impl.h", |
| 212 | ] |
hbos | a9a1d2a | 2016-01-11 10:19:02 -0800 | [diff] [blame] | 213 | deps += [ |
kjellander | f6b5509 | 2016-02-07 23:04:26 -0800 | [diff] [blame] | 214 | "../../common_video", |
hta | 9aa9688 | 2016-12-06 05:36:03 -0800 | [diff] [blame] | 215 | "../../media:rtc_media_base", |
hbos | a9a1d2a | 2016-01-11 10:19:02 -0800 | [diff] [blame] | 216 | "//third_party/ffmpeg:ffmpeg", |
| 217 | "//third_party/openh264:encoder", |
| 218 | ] |
| 219 | } |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 220 | } |
| 221 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 222 | rtc_static_library("webrtc_i420") { |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 223 | sources = [ |
Henrik Kjellander | a74c08d | 2015-10-22 12:23:11 +0200 | [diff] [blame] | 224 | "codecs/i420/i420.cc", |
| 225 | "codecs/i420/include/i420.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 226 | ] |
| 227 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 228 | if (!build_with_chromium && is_clang) { |
| 229 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 230 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 231 | } |
| 232 | |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 233 | deps = [ |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 234 | ":video_coding_utility", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 235 | "../..:webrtc_common", |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [diff] [blame] | 236 | "../../api:video_frame_api_i420", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 237 | "../../common_video:common_video", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 238 | "../../rtc_base:rtc_base_approved", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 239 | "../../system_wrappers", |
| 240 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 241 | } |
| 242 | |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 243 | rtc_static_library("webrtc_stereo") { |
| 244 | sources = [ |
| 245 | "codecs/stereo/include/stereo_decoder_adapter.h", |
| 246 | "codecs/stereo/include/stereo_encoder_adapter.h", |
| 247 | "codecs/stereo/stereo_decoder_adapter.cc", |
| 248 | "codecs/stereo/stereo_encoder_adapter.cc", |
| 249 | ] |
| 250 | |
| 251 | if (!build_with_chromium && is_clang) { |
| 252 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 253 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 254 | } |
| 255 | |
| 256 | deps = [ |
| 257 | ":video_coding_utility", |
| 258 | "..:module_api", |
| 259 | "../..:webrtc_common", |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [diff] [blame] | 260 | "../../api:video_frame_api_i420", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 261 | "../../api/video_codecs:video_codecs_api", |
| 262 | "../../common_video:common_video", |
| 263 | "../../rtc_base:rtc_base_approved", |
| 264 | "../../system_wrappers", |
| 265 | ] |
| 266 | } |
| 267 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 268 | rtc_static_library("webrtc_vp8") { |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 269 | sources = [ |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 270 | "codecs/vp8/default_temporal_layers.cc", |
| 271 | "codecs/vp8/default_temporal_layers.h", |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 272 | "codecs/vp8/include/vp8.h", |
| 273 | "codecs/vp8/include/vp8_common_types.h", |
pbos@webrtc.org | 9115cde | 2014-12-09 10:36:40 +0000 | [diff] [blame] | 274 | "codecs/vp8/screenshare_layers.cc", |
| 275 | "codecs/vp8/screenshare_layers.h", |
kjellander | a8d8aad | 2017-03-08 05:42:26 -0800 | [diff] [blame] | 276 | "codecs/vp8/simulcast_rate_allocator.cc", |
| 277 | "codecs/vp8/simulcast_rate_allocator.h", |
Ilya Nikolaevskiy | 5866291 | 2017-10-04 15:07:09 +0200 | [diff] [blame] | 278 | "codecs/vp8/temporal_layers.cc", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 279 | "codecs/vp8/temporal_layers.h", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 280 | "codecs/vp8/vp8_impl.cc", |
| 281 | "codecs/vp8/vp8_impl.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 282 | ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 283 | |
kjellander | 8f4419b | 2016-06-02 02:09:52 -0700 | [diff] [blame] | 284 | # TODO(jschuh): Bug 1348: fix this warning. |
| 285 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 286 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 287 | if (!build_with_chromium && is_clang) { |
| 288 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 289 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 290 | } |
| 291 | |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 292 | deps = [ |
| 293 | ":video_coding_utility", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 294 | "..:module_api", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 295 | "../..:webrtc_common", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 296 | "../../api:optional", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 297 | "../../api/video_codecs:video_codecs_api", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 298 | "../../common_video", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 299 | "../../rtc_base:rtc_base_approved", |
asapersson | e5d02f9 | 2017-08-09 23:37:05 -0700 | [diff] [blame] | 300 | "../../rtc_base:rtc_numerics", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 301 | "../../rtc_base:sequenced_task_checker", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 302 | "../../system_wrappers", |
| 303 | ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 304 | if (rtc_build_libvpx) { |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 305 | deps += [ rtc_libvpx_dir ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 306 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 307 | } |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 308 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 309 | rtc_static_library("webrtc_vp9") { |
phoglund | 3360352 | 2016-10-05 06:52:22 -0700 | [diff] [blame] | 310 | if (rtc_libvpx_build_vp9) { |
| 311 | sources = [ |
| 312 | "codecs/vp9/include/vp9.h", |
| 313 | "codecs/vp9/screenshare_layers.cc", |
| 314 | "codecs/vp9/screenshare_layers.h", |
| 315 | "codecs/vp9/vp9_frame_buffer_pool.cc", |
| 316 | "codecs/vp9/vp9_frame_buffer_pool.h", |
| 317 | "codecs/vp9/vp9_impl.cc", |
| 318 | "codecs/vp9/vp9_impl.h", |
| 319 | ] |
| 320 | } else { |
| 321 | sources = [ |
| 322 | "codecs/vp9/vp9_noop.cc", |
| 323 | ] |
| 324 | } |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 325 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 326 | if (!build_with_chromium && is_clang) { |
| 327 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 328 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 329 | } |
| 330 | |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 331 | deps = [ |
| 332 | ":video_coding_utility", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 333 | "..:module_api", |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 334 | "../../common_video", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 335 | "../../rtc_base:rtc_base_approved", |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 336 | "../../system_wrappers", |
| 337 | ] |
| 338 | if (rtc_build_libvpx) { |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 339 | deps += [ rtc_libvpx_dir ] |
marpan@webrtc.org | 5b88317 | 2014-11-01 06:10:48 +0000 | [diff] [blame] | 340 | } |
| 341 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 342 | |
| 343 | if (rtc_include_tests) { |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 344 | if (is_ios || is_mac) { |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 345 | rtc_static_library("codec_test_objc") { |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 346 | sources = [ |
| 347 | "codecs/test/objc_codec_h264_test.h", |
| 348 | "codecs/test/objc_codec_h264_test.mm", |
| 349 | ] |
| 350 | deps = [ |
| 351 | "../../api:video_frame_api", |
| 352 | "../../api/video_codecs:video_codecs_api", |
| 353 | "../../media:rtc_audio_video", |
| 354 | "../../modules:module_api", |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 355 | "../../sdk:common_objc", |
| 356 | "../../sdk:peerconnection_objc", |
| 357 | "../../sdk:peerconnectionfactory_objc", |
| 358 | "../../sdk:videotoolbox_objc", |
| 359 | "../../sdk:videotracksource_objc", |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 360 | ] |
| 361 | |
| 362 | if (!build_with_chromium && is_clang) { |
| 363 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 364 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 365 | } |
| 366 | } |
| 367 | } |
| 368 | |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 369 | rtc_source_set("simulcast_test_utility") { |
| 370 | testonly = true |
| 371 | sources = [ |
| 372 | "codecs/vp8/simulcast_test_utility.h", |
| 373 | ] |
| 374 | |
| 375 | if (!build_with_chromium && is_clang) { |
| 376 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 377 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 378 | } |
| 379 | |
| 380 | deps = [ |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 381 | ":mock_headers", |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 382 | ":video_coding", |
| 383 | ":webrtc_vp8", |
| 384 | "../../api:video_frame_api", |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [diff] [blame] | 385 | "../../api:video_frame_api_i420", |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 386 | "../../common_video:common_video", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 387 | "../../rtc_base:rtc_base_approved", |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 388 | "../../test:test_support", |
| 389 | ] |
| 390 | } |
| 391 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 392 | rtc_source_set("video_codecs_test_framework") { |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 393 | testonly = true |
| 394 | sources = [ |
| 395 | "codecs/test/mock/mock_packet_manipulator.h", |
| 396 | "codecs/test/packet_manipulator.cc", |
| 397 | "codecs/test/packet_manipulator.h", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 398 | "codecs/test/stats.cc", |
| 399 | "codecs/test/stats.h", |
Åsa Persson | 2d27fb5 | 2017-10-19 14:05:50 +0200 | [diff] [blame] | 400 | "codecs/test/test_config.cc", |
| 401 | "codecs/test/test_config.h", |
sakal | b8102e0 | 2017-03-06 03:52:55 -0800 | [diff] [blame] | 402 | "codecs/test/video_codec_test.cc", |
| 403 | "codecs/test/video_codec_test.h", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 404 | "codecs/test/videoprocessor.cc", |
| 405 | "codecs/test/videoprocessor.h", |
| 406 | ] |
| 407 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 408 | if (!build_with_chromium && is_clang) { |
| 409 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 410 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 411 | } |
| 412 | |
| 413 | deps = [ |
ssilkin | 612f858 | 2017-09-28 09:23:17 -0700 | [diff] [blame] | 414 | ":codec_globals_headers", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 415 | ":video_coding", |
| 416 | ":video_coding_utility", |
kjellander | a8d8aad | 2017-03-08 05:42:26 -0800 | [diff] [blame] | 417 | ":webrtc_vp8", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 418 | "../..:webrtc_common", |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [diff] [blame] | 419 | "../../api:video_frame_api_i420", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 420 | "../../api/video_codecs:video_codecs_api", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 421 | "../../common_video:common_video", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 422 | "../../rtc_base:rtc_base_approved", |
brandtr | c8c5905 | 2017-08-21 06:44:16 -0700 | [diff] [blame] | 423 | "../../rtc_base:rtc_task_queue", |
| 424 | "../../rtc_base:sequenced_task_checker", |
ehmaldonado | 36df2d7 | 2016-12-08 09:56:16 -0800 | [diff] [blame] | 425 | "../../system_wrappers:system_wrappers", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 426 | "../../test:test_support", |
sakal | b8102e0 | 2017-03-06 03:52:55 -0800 | [diff] [blame] | 427 | "../../test:video_test_common", |
ehmaldonado | 656610f | 2017-02-06 02:21:11 -0800 | [diff] [blame] | 428 | "../../test:video_test_support", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 429 | ] |
| 430 | } |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 431 | |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 432 | video_coding_modules_tests_resources = [ |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 433 | "../../resources/foreman_128x96.yuv", |
| 434 | "../../resources/foreman_160x120.yuv", |
| 435 | "../../resources/foreman_176x144.yuv", |
| 436 | "../../resources/foreman_320x240.yuv", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 437 | ] |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 438 | |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 439 | if (is_ios || is_mac) { |
| 440 | bundle_data("video_coding_modules_tests_resources_bundle_data") { |
| 441 | testonly = true |
| 442 | sources = video_coding_modules_tests_resources |
| 443 | outputs = [ |
| 444 | "{{bundle_resources_dir}}/{{source_file_part}}", |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 445 | ] |
brandtr | 12a47f6 | 2017-09-01 00:10:27 -0700 | [diff] [blame] | 446 | } |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 447 | } |
| 448 | |
| 449 | rtc_source_set("video_coding_modules_tests") { |
| 450 | testonly = true |
| 451 | |
| 452 | sources = [ |
sakal | b8102e0 | 2017-03-06 03:52:55 -0800 | [diff] [blame] | 453 | "codecs/h264/test/h264_impl_unittest.cc", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 454 | "codecs/stereo/test/stereo_adapter_unittest.cc", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 455 | "codecs/test/videoprocessor_integrationtest.cc", |
| 456 | "codecs/test/videoprocessor_integrationtest.h", |
brandtr | 12a47f6 | 2017-09-01 00:10:27 -0700 | [diff] [blame] | 457 | "codecs/test/videoprocessor_integrationtest_libvpx.cc", |
| 458 | "codecs/test/videoprocessor_integrationtest_openh264.cc", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 459 | "codecs/test/videoprocessor_integrationtest_parameterized.cc", |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 460 | "codecs/vp8/test/vp8_impl_unittest.cc", |
sakal | 7adadb1 | 2017-02-23 02:54:57 -0800 | [diff] [blame] | 461 | "codecs/vp9/test/vp9_impl_unittest.cc", |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 462 | ] |
| 463 | |
| 464 | deps = [ |
sakal | b8102e0 | 2017-03-06 03:52:55 -0800 | [diff] [blame] | 465 | ":video_codecs_test_framework", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 466 | ":video_coding", |
| 467 | ":video_coding_utility", |
sakal | b8102e0 | 2017-03-06 03:52:55 -0800 | [diff] [blame] | 468 | ":webrtc_h264", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 469 | ":webrtc_stereo", |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 470 | ":webrtc_vp8", |
sakal | 7adadb1 | 2017-02-23 02:54:57 -0800 | [diff] [blame] | 471 | ":webrtc_vp9", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 472 | "../..:webrtc_common", |
Emircan Uysaler | dbcac7f | 2017-10-30 23:10:12 -0700 | [diff] [blame] | 473 | "../../api:mock_video_codec_factory", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 474 | "../../api:optional", |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 475 | "../../api:video_frame_api", |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [diff] [blame] | 476 | "../../api:video_frame_api_i420", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 477 | "../../common_video", |
| 478 | "../../media:rtc_audio_video", |
Rasmus Brandt | fb1a866 | 2017-10-27 14:51:46 +0200 | [diff] [blame] | 479 | "../../media:rtc_media_base", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 480 | "../../rtc_base:rtc_base_approved", |
Åsa Persson | 7173cf2 | 2017-10-19 12:14:09 +0200 | [diff] [blame] | 481 | "../../rtc_base:rtc_base_tests_utils", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 482 | "../../system_wrappers", |
asapersson | 142fcc9 | 2017-08-17 08:58:54 -0700 | [diff] [blame] | 483 | "../../test:field_trial", |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 484 | "../../test:test_support", |
| 485 | "../../test:video_test_common", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 486 | "../../test:video_test_support", |
ehmaldonado | 656610f | 2017-02-06 02:21:11 -0800 | [diff] [blame] | 487 | "../video_capture", |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 488 | ] |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 489 | |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 490 | data = video_coding_modules_tests_resources |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 491 | |
| 492 | if (is_android) { |
Rasmus Brandt | 3102734 | 2017-09-29 13:48:12 +0000 | [diff] [blame] | 493 | sources += [ |
| 494 | "codecs/test/android_test_initializer.cc", |
| 495 | "codecs/test/android_test_initializer.h", |
| 496 | "codecs/test/videoprocessor_integrationtest_mediacodec.cc", |
| 497 | ] |
| 498 | |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 499 | deps += [ |
Rasmus Brandt | 3102734 | 2017-09-29 13:48:12 +0000 | [diff] [blame] | 500 | "../../sdk/android:libjingle_peerconnection_jni", |
| 501 | "//base", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 502 | ] |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 503 | } |
| 504 | |
| 505 | if (is_ios || is_mac) { |
Rasmus Brandt | f7a3558 | 2017-10-24 10:16:33 +0200 | [diff] [blame] | 506 | sources += |
| 507 | [ "codecs/test/videoprocessor_integrationtest_videotoolbox.cc" ] |
| 508 | |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 509 | deps += [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 510 | ":codec_test_objc", |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 511 | ":video_coding_modules_tests_resources_bundle_data", |
Rasmus Brandt | 3102734 | 2017-09-29 13:48:12 +0000 | [diff] [blame] | 512 | "../../media:rtc_media_base", |
| 513 | "../../sdk:videotoolbox_objc", |
magjed | 73c0eb5 | 2017-08-07 06:55:28 -0700 | [diff] [blame] | 514 | ] |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 515 | } |
| 516 | |
brandtr | df23299 | 2017-09-07 07:50:06 -0700 | [diff] [blame] | 517 | if (rtc_use_h264) { |
| 518 | defines = [ "WEBRTC_USE_H264" ] |
| 519 | } |
brandtr | 6bb8e0e | 2017-02-20 04:35:52 -0800 | [diff] [blame] | 520 | |
ehmaldonado | 9cbb0a1 | 2017-01-30 03:07:03 -0800 | [diff] [blame] | 521 | if (!build_with_chromium && is_clang) { |
| 522 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 523 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 524 | } |
| 525 | } |
| 526 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 527 | rtc_source_set("video_coding_unittests") { |
| 528 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 529 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 530 | sources = [ |
| 531 | "codecs/test/packet_manipulator_unittest.cc", |
| 532 | "codecs/test/stats_unittest.cc", |
Åsa Persson | 2d27fb5 | 2017-10-19 14:05:50 +0200 | [diff] [blame] | 533 | "codecs/test/test_config_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 534 | "codecs/test/videoprocessor_unittest.cc", |
| 535 | "codecs/vp8/default_temporal_layers_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 536 | "codecs/vp8/screenshare_layers_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 537 | "codecs/vp8/simulcast_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 538 | "decoding_state_unittest.cc", |
| 539 | "frame_buffer2_unittest.cc", |
ilnik | 04f4d12 | 2017-06-19 07:18:55 -0700 | [diff] [blame] | 540 | "generic_encoder_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 541 | "h264_sprop_parameter_sets_unittest.cc", |
| 542 | "h264_sps_pps_tracker_unittest.cc", |
| 543 | "histogram_unittest.cc", |
| 544 | "include/mock/mock_vcm_callbacks.h", |
| 545 | "jitter_buffer_unittest.cc", |
| 546 | "jitter_estimator_tests.cc", |
| 547 | "nack_module_unittest.cc", |
| 548 | "protection_bitrate_calculator_unittest.cc", |
| 549 | "receiver_unittest.cc", |
| 550 | "rtp_frame_reference_finder_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 551 | "session_info_unittest.cc", |
| 552 | "test/stream_generator.cc", |
| 553 | "test/stream_generator.h", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 554 | "test/test_util.h", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 555 | "timing_unittest.cc", |
| 556 | "utility/default_video_bitrate_allocator_unittest.cc", |
| 557 | "utility/frame_dropper_unittest.cc", |
| 558 | "utility/ivf_file_writer_unittest.cc", |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 559 | "utility/mock/mock_frame_dropper.h", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 560 | "utility/moving_average_unittest.cc", |
| 561 | "utility/quality_scaler_unittest.cc", |
| 562 | "utility/simulcast_rate_allocator_unittest.cc", |
sprang | 429600d | 2017-01-26 06:12:26 -0800 | [diff] [blame] | 563 | "video_codec_initializer_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 564 | "video_packet_buffer_unittest.cc", |
| 565 | "video_receiver_unittest.cc", |
| 566 | "video_sender_unittest.cc", |
| 567 | ] |
| 568 | if (rtc_libvpx_build_vp9) { |
| 569 | sources += [ "codecs/vp9/vp9_screenshare_layers_unittest.cc" ] |
| 570 | } |
| 571 | if (rtc_use_h264) { |
| 572 | sources += [ "codecs/h264/h264_encoder_impl_unittest.cc" ] |
| 573 | } |
| 574 | deps = [ |
charujain | cb728ea | 2017-09-18 03:08:08 -0700 | [diff] [blame] | 575 | ":mock_headers", |
magjed | 6cc2561 | 2017-07-10 03:26:36 -0700 | [diff] [blame] | 576 | ":simulcast_test_utility", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 577 | ":video_codecs_test_framework", |
| 578 | ":video_coding", |
| 579 | ":video_coding_utility", |
| 580 | ":webrtc_h264", |
| 581 | ":webrtc_vp8", |
| 582 | ":webrtc_vp9", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 583 | "..:module_api", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 584 | "../..:webrtc_common", |
| 585 | "../../api:video_frame_api", |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [diff] [blame] | 586 | "../../api:video_frame_api_i420", |
ilnik | d60d06a | 2017-04-05 03:02:20 -0700 | [diff] [blame] | 587 | "../../api/video_codecs:video_codecs_api", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 588 | "../../common_video:common_video", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 589 | "../../rtc_base:rtc_base", |
| 590 | "../../rtc_base:rtc_base_approved", |
Bjorn Terelius | a194e58 | 2017-10-25 13:07:09 +0200 | [diff] [blame] | 591 | "../../rtc_base:rtc_numerics", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 592 | "../../rtc_base:rtc_task_queue", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 593 | "../../system_wrappers:metrics_default", |
| 594 | "../../system_wrappers:system_wrappers", |
| 595 | "../../test:field_trial", |
| 596 | "../../test:test_support", |
| 597 | "../../test:video_test_common", |
ehmaldonado | 656610f | 2017-02-06 02:21:11 -0800 | [diff] [blame] | 598 | "../../test:video_test_support", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 599 | "../rtp_rtcp:rtp_rtcp", |
| 600 | "//testing/gmock", |
| 601 | ] |
| 602 | if (rtc_build_libvpx) { |
| 603 | deps += [ rtc_libvpx_dir ] |
| 604 | } |
| 605 | if (is_win) { |
| 606 | cflags = [ |
| 607 | # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
| 608 | "/wd4373", # virtual function override. |
| 609 | ] |
| 610 | } |
| 611 | |
| 612 | # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. |
| 613 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 614 | if (!build_with_chromium && is_clang) { |
| 615 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 616 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 617 | } |
| 618 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 619 | } |