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