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