blob: fbf2fe379ff283f7293132b3f5f3264d4039dd00 [file] [log] [blame]
Peter Boström5c389d32015-09-25 13:58:30 +02001# Copyright (c) 2015 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
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../webrtc.gni")
Peter Boström5c389d32015-09-25 13:58:30 +020010
Mirko Bonadeib9857482020-12-14 15:28:43 +010011rtc_library("version") {
12 sources = [
13 "version.cc",
14 "version.h",
15 ]
16 visibility = [ ":*" ]
17}
18
Mirko Bonadei86d053c2019-10-17 21:32:04 +020019rtc_library("call_interfaces") {
ossuf515ab82016-12-07 04:52:58 -080020 sources = [
Paulina Hensman11b34f42018-04-09 14:24:52 +020021 "audio_receive_stream.cc",
ossuf515ab82016-12-07 04:52:58 -080022 "audio_receive_stream.h",
ossuf515ab82016-12-07 04:52:58 -080023 "audio_send_stream.h",
Paulina Hensman11b34f42018-04-09 14:24:52 +020024 "audio_state.cc",
ossuf515ab82016-12-07 04:52:58 -080025 "audio_state.h",
26 "call.h",
Paulina Hensman11b34f42018-04-09 14:24:52 +020027 "call_config.cc",
28 "call_config.h",
29 "flexfec_receive_stream.cc",
brandtr7250b392016-12-19 01:13:46 -080030 "flexfec_receive_stream.h",
Niels Möller70082872018-08-07 11:03:12 +020031 "packet_receiver.h",
solenberg3ebbcb52017-01-31 03:58:40 -080032 "syncable.cc",
33 "syncable.h",
ossuf515ab82016-12-07 04:52:58 -080034 ]
Dan Minor9c686132018-01-15 10:20:00 -050035 if (!build_with_mozilla) {
36 sources += [ "audio_send_stream.cc" ]
37 }
Tommi1c1f5402021-06-14 10:54:20 +020038
kjellander2f1a5552017-02-27 15:57:45 -080039 deps = [
Tim Nab8c775a2020-01-10 10:33:05 -080040 ":audio_sender_interface",
Tommi1c1f5402021-06-14 10:54:20 +020041 ":receive_stream_interface",
nissed76b7b22017-06-01 04:02:35 -070042 ":rtp_interfaces",
aleloi440b6d92017-08-22 05:43:23 -070043 ":video_stream_api",
Ying Wang3b790f32018-01-19 17:58:57 +010044 "../api:fec_controller_api",
Jonas Orelande62c2f22022-03-29 11:04:48 +020045 "../api:field_trials_view",
Marina Ciocead2aa8f92020-03-31 11:29:56 +020046 "../api:frame_transformer_interface",
Ying Wang0810a7c2019-04-10 13:48:24 +020047 "../api:network_state_predictor_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +020048 "../api:rtc_error",
Niels Mölleref1052a2019-03-20 08:40:23 +010049 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +020050 "../api:rtp_parameters",
Mirko Bonadeid9708072019-01-25 20:26:48 +010051 "../api:scoped_refptr",
kjellander2f1a5552017-02-27 15:57:45 -080052 "../api:transport_api",
Henrik Boströmf4a99912020-06-11 12:07:14 +020053 "../api/adaptation:resource_adaptation_api",
Olga Sharonova09ceed22020-09-30 18:27:39 +020054 "../api/audio:audio_frame_processor",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010055 "../api/audio:audio_mixer_api",
kjellander2f1a5552017-02-27 15:57:45 -080056 "../api/audio_codecs:audio_codecs_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +020057 "../api/crypto:frame_encryptor_interface",
58 "../api/crypto:options",
Evan Shrubsole5723d852022-02-14 14:09:57 +010059 "../api/metronome",
Ivo Creusenc3d1f9b2019-11-01 11:47:51 +010060 "../api/neteq:neteq_api",
Sebastian Janssoned50e6c2019-03-01 14:45:21 +010061 "../api/task_queue",
Mirko Bonadei738bfa72019-09-17 14:47:38 +020062 "../api/transport:bitrate_settings",
Sebastian Janssondfce03a2018-05-18 18:05:10 +020063 "../api/transport:network_control",
Olga Sharonova09ceed22020-09-30 18:27:39 +020064 "../modules/async_audio_processing",
Artem Titov94b57c02019-03-21 13:35:10 +010065 "../modules/audio_device",
66 "../modules/audio_processing",
Alessio Bazzicab768e882018-11-07 14:29:54 +000067 "../modules/audio_processing:api",
Ivo Creusen56d46092017-11-24 17:29:59 +010068 "../modules/audio_processing:audio_processing_statistics",
Henrik Boström6e436d12019-05-27 12:19:33 +020069 "../modules/rtp_rtcp:rtp_rtcp_format",
Artem Titov94b57c02019-03-21 13:35:10 +010070 "../modules/utility",
71 "../rtc_base",
Jonas Olssonabbe8412018-04-03 13:40:05 +020072 "../rtc_base:audio_format_to_string",
Yves Gerey988cc082018-10-23 12:03:01 +020073 "../rtc_base:checks",
Florent Castellied4aadc2022-04-19 17:40:46 +020074 "../rtc_base:copy_on_write_buffer",
Florent Castellif86f6f92022-04-05 02:54:12 +020075 "../rtc_base:refcount",
Florent Castelli57aa81b2022-04-04 17:14:02 +020076 "../rtc_base:stringutils",
Sebastian Jansson12985412018-10-15 21:06:26 +020077 "../rtc_base/network:sent_packet",
kjellander2f1a5552017-02-27 15:57:45 -080078 ]
Per Kjellanderfe2063e2021-05-12 09:02:43 +020079 absl_deps = [
80 "//third_party/abseil-cpp/absl/functional:bind_front",
81 "//third_party/abseil-cpp/absl/types:optional",
82 ]
ossuf515ab82016-12-07 04:52:58 -080083}
84
Tim Nab8c775a2020-01-10 10:33:05 -080085rtc_source_set("audio_sender_interface") {
86 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +010087 sources = [ "audio_sender.h" ]
88 deps = [ "../api/audio:audio_frame_api" ]
Tim Nab8c775a2020-01-10 10:33:05 -080089}
90
nissed76b7b22017-06-01 04:02:35 -070091# TODO(nisse): These RTP targets should be moved elsewhere
Artem Titovea240272021-07-26 12:40:21 +020092# when interfaces have stabilized. See also TODO for `mock_rtp_interfaces`.
Mirko Bonadei86d053c2019-10-17 21:32:04 +020093rtc_library("rtp_interfaces") {
Danil Chapovalov32fe3d12018-10-04 13:41:03 +020094 # Client code SHOULD NOT USE THIS TARGET, but for now it needs to be public
95 # because there exists client code that uses it.
96 # TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that
97 # client code gets updated.
98 visibility = [ "*" ]
nissed76b7b22017-06-01 04:02:35 -070099 sources = [
Stefan Holmer1acbd682017-09-01 15:29:28 +0200100 "rtp_config.cc",
101 "rtp_config.h",
nissed76b7b22017-06-01 04:02:35 -0700102 "rtp_packet_sink_interface.h",
nisse0f15f922017-06-21 01:05:22 -0700103 "rtp_stream_receiver_controller_interface.h",
Vojin Ilic504fc192021-05-31 14:02:28 +0200104 "rtp_transport_config.h",
105 "rtp_transport_controller_send_factory_interface.h",
nissed76b7b22017-06-01 04:02:35 -0700106 "rtp_transport_controller_send_interface.h",
107 ]
eladalona52722f2017-06-26 11:23:54 -0700108 deps = [
kwiberg529662a2017-09-04 05:43:17 -0700109 "../api:array_view",
Stefan Holmer64be7fa2018-10-04 15:21:55 +0200110 "../api:fec_controller_api",
Jonas Orelande62c2f22022-03-29 11:04:48 +0200111 "../api:field_trials_view",
Marina Cioceae77912b2020-02-27 16:16:55 +0100112 "../api:frame_transformer_interface",
Vojin Ilic504fc192021-05-31 14:02:28 +0200113 "../api:network_state_predictor_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100114 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200115 "../api:rtp_parameters",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200116 "../api/crypto:options",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200117 "../api/rtc_event_log",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200118 "../api/transport:bitrate_settings",
Vojin Ilic504fc192021-05-31 14:02:28 +0200119 "../api/transport:network_control",
Erik Språng425d6aa2019-07-29 16:38:27 +0200120 "../api/units:timestamp",
Niels Möllera8327d42020-08-25 10:28:50 +0200121 "../common_video:frame_counts",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200122 "../modules/rtp_rtcp:rtp_rtcp_format",
Vojin Ilic504fc192021-05-31 14:02:28 +0200123 "../modules/utility",
Henrik Boströmf45ca372020-03-24 13:30:50 +0100124 "../rtc_base:checks",
Vojin Ilic504fc192021-05-31 14:02:28 +0200125 "../rtc_base:rtc_task_queue",
Florent Castelli57aa81b2022-04-04 17:14:02 +0200126 "../rtc_base:stringutils",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200127 ]
128 absl_deps = [
Henrik Boströmf45ca372020-03-24 13:30:50 +0100129 "//third_party/abseil-cpp/absl/algorithm:container",
Danil Chapovalovb9b146c2018-06-15 12:28:07 +0200130 "//third_party/abseil-cpp/absl/types:optional",
eladalona52722f2017-06-26 11:23:54 -0700131 ]
nissed76b7b22017-06-01 04:02:35 -0700132}
133
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200134rtc_library("rtp_receiver") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000135 visibility = [ "*" ]
nissed76b7b22017-06-01 04:02:35 -0700136 sources = [
137 "rtp_demuxer.cc",
138 "rtp_demuxer.h",
nisse0f15f922017-06-21 01:05:22 -0700139 "rtp_stream_receiver_controller.cc",
140 "rtp_stream_receiver_controller.h",
nissed76b7b22017-06-01 04:02:35 -0700141 "rtx_receive_stream.cc",
142 "rtx_receive_stream.h",
143 ]
144 deps = [
145 ":rtp_interfaces",
kwiberg529662a2017-09-04 05:43:17 -0700146 "../api:array_view",
Niels Mölleref1052a2019-03-20 08:40:23 +0100147 "../api:rtp_headers",
Artem Titovd15a5752021-02-10 14:31:24 +0100148 "../api:sequence_checker",
nissed76b7b22017-06-01 04:02:35 -0700149 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100150 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100151 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200152 "../rtc_base:logging",
Florent Castelli57aa81b2022-04-04 17:14:02 +0200153 "../rtc_base:stringutils",
Victor Boivieac5f2e72021-07-01 21:42:02 +0200154 "../rtc_base/containers:flat_map",
155 "../rtc_base/containers:flat_set",
nissed76b7b22017-06-01 04:02:35 -0700156 ]
Tomas Gunnarssonc3795ff2022-01-03 13:04:51 +0000157 absl_deps = [
158 "//third_party/abseil-cpp/absl/strings:strings",
159 "//third_party/abseil-cpp/absl/types:optional",
160 ]
nissed76b7b22017-06-01 04:02:35 -0700161}
162
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200163rtc_library("rtp_sender") {
nissed76b7b22017-06-01 04:02:35 -0700164 sources = [
Stefan Holmerf7044682018-07-17 10:16:41 +0200165 "rtp_payload_params.cc",
166 "rtp_payload_params.h",
nissed76b7b22017-06-01 04:02:35 -0700167 "rtp_transport_controller_send.cc",
168 "rtp_transport_controller_send.h",
Vojin Ilic504fc192021-05-31 14:02:28 +0200169 "rtp_transport_controller_send_factory.h",
Stefan Holmer9416ef82018-07-19 10:34:38 +0200170 "rtp_video_sender.cc",
171 "rtp_video_sender.h",
172 "rtp_video_sender_interface.h",
nissed76b7b22017-06-01 04:02:35 -0700173 ]
174 deps = [
Sebastian Jansson97f61ea2018-02-21 13:01:55 +0100175 ":bitrate_configurator",
nissed76b7b22017-06-01 04:02:35 -0700176 ":rtp_interfaces",
Elad Alon898395d2019-04-10 15:55:00 +0200177 "../api:array_view",
Sebastian Jansson82ed2e82019-10-15 15:58:37 +0200178 "../api:bitrate_allocation",
Stefan Holmer64be7fa2018-10-04 15:21:55 +0200179 "../api:fec_controller_api",
Jonas Orelande62c2f22022-03-29 11:04:48 +0200180 "../api:field_trials_view",
Ying Wang0810a7c2019-04-10 13:48:24 +0200181 "../api:network_state_predictor_api",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200182 "../api:rtp_parameters",
Artem Titovd15a5752021-02-10 14:31:24 +0100183 "../api:sequence_checker",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200184 "../api:transport_api",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200185 "../api/rtc_event_log",
Niels Möller5fe95102019-03-04 16:49:25 +0100186 "../api/transport:field_trial_based_config",
Sebastian Jansson87609be2018-12-05 17:35:35 +0100187 "../api/transport:goog_cc",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200188 "../api/transport:network_control",
Yves Gerey3e707812018-11-28 16:47:49 +0100189 "../api/units:data_rate",
190 "../api/units:time_delta",
191 "../api/units:timestamp",
192 "../api/video:video_frame",
Per Kjellanderaf704182020-10-16 10:30:40 +0200193 "../api/video:video_layers_allocation",
Chen Xing5d24b162019-06-10 12:59:38 +0200194 "../api/video:video_rtp_headers",
Stefan Holmera2f15332018-07-11 17:11:31 +0200195 "../api/video_codecs:video_codecs_api",
Sebastian Jansson166b45d2019-05-13 11:57:42 +0200196 "../logging:rtc_event_bwe",
nissed76b7b22017-06-01 04:02:35 -0700197 "../modules/congestion_controller",
Sebastian Jansson87609be2018-12-05 17:35:35 +0100198 "../modules/congestion_controller/rtp:control_handler",
199 "../modules/congestion_controller/rtp:transport_feedback",
Niels Möllerfd6c0912017-10-31 10:19:10 +0100200 "../modules/pacing",
Artem Titov94b57c02019-03-21 13:35:10 +0100201 "../modules/rtp_rtcp",
Stefan Holmera2f15332018-07-11 17:11:31 +0200202 "../modules/rtp_rtcp:rtp_rtcp_format",
203 "../modules/rtp_rtcp:rtp_video_header",
Sebastian Janssonc33c0fc2018-02-22 11:10:18 +0100204 "../modules/utility",
Danil Chapovalov4b860c12020-05-19 14:48:19 +0200205 "../modules/video_coding:chain_diff_calculator",
Yves Gerey3e707812018-11-28 16:47:49 +0100206 "../modules/video_coding:codec_globals_headers",
Danil Chapovalov02d71fb2020-02-10 16:22:57 +0100207 "../modules/video_coding:frame_dependencies_calculator",
Stefan Holmera2f15332018-07-11 17:11:31 +0200208 "../modules/video_coding:video_codec_interface",
Artem Titov94b57c02019-03-21 13:35:10 +0100209 "../rtc_base",
Stefan Holmera2f15332018-07-11 17:11:31 +0200210 "../rtc_base:checks",
Florent Castellia30aef32022-04-19 17:47:13 +0200211 "../rtc_base:event_tracer",
Florent Castelliaa6d05d2022-04-14 13:13:56 +0200212 "../rtc_base:location",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200213 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 15:18:46 +0200214 "../rtc_base:macromagic",
Florent Castellif4db3512022-04-14 13:38:05 +0200215 "../rtc_base:race_checker",
Florent Castelli71337f32022-04-14 12:41:26 +0200216 "../rtc_base:random",
Stefan Holmerdbdb3a02018-07-17 16:03:46 +0200217 "../rtc_base:rate_limiter",
Sebastian Janssone6256052018-05-04 14:08:15 +0200218 "../rtc_base:rtc_task_queue",
Florent Castellidd837e22022-04-04 17:16:15 +0200219 "../rtc_base:timeutils",
Markus Handell8fe932a2020-07-06 17:41:35 +0200220 "../rtc_base/synchronization:mutex",
Sebastian Janssonecb68972019-01-18 10:30:54 +0100221 "../rtc_base/task_utils:repeating_task",
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200222 ]
223 absl_deps = [
Erik Språng845c6aa2019-05-29 13:02:24 +0200224 "//third_party/abseil-cpp/absl/algorithm:container",
Yves Gerey3e707812018-11-28 16:47:49 +0100225 "//third_party/abseil-cpp/absl/container:inlined_vector",
Erik Språng6cf554e2019-10-02 20:55:39 +0200226 "//third_party/abseil-cpp/absl/strings:strings",
Yves Gerey3e707812018-11-28 16:47:49 +0100227 "//third_party/abseil-cpp/absl/types:optional",
228 "//third_party/abseil-cpp/absl/types:variant",
nissed76b7b22017-06-01 04:02:35 -0700229 ]
230}
231
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200232rtc_library("bitrate_configurator") {
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100233 sources = [
234 "rtp_bitrate_configurator.cc",
235 "rtp_bitrate_configurator.h",
236 ]
237 deps = [
238 ":rtp_interfaces",
Niels Möllerb4a61282019-08-29 12:16:56 +0200239
240 # For api/bitrate_constraints.h
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200241 "../api:libjingle_peerconnection_api",
Niels Möller0c4f7be2018-05-07 14:01:37 +0200242 "../api/transport:bitrate_settings",
Christoffer Rodbro6404cdd2020-03-26 20:37:21 +0100243 "../api/units:data_rate",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100244 "../rtc_base:checks",
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100245 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200246 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Sebastian Janssondf023aa2018-02-20 19:38:37 +0100247}
248
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200249rtc_library("bitrate_allocator") {
Peter Boström5c389d32015-09-25 13:58:30 +0200250 sources = [
mflodman0e7e2592015-11-12 21:02:42 -0800251 "bitrate_allocator.cc",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200252 "bitrate_allocator.h",
253 ]
254 deps = [
Sebastian Jansson6736df12018-11-21 19:18:39 +0100255 "../api:bitrate_allocation",
Artem Titovd15a5752021-02-10 14:31:24 +0100256 "../api:sequence_checker",
Sebastian Jansson93b1ea22019-09-18 18:31:52 +0200257 "../api/transport:network_control",
Sebastian Jansson13e59032018-11-21 19:13:07 +0100258 "../api/units:data_rate",
259 "../api/units:time_delta",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100260 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200261 "../rtc_base:logging",
Sebastian Jansson40de3cc2019-09-19 14:54:43 +0200262 "../rtc_base:safe_minmax",
Mirko Bonadei20e4c802020-11-23 11:07:42 +0100263 "../rtc_base/system:no_unique_address",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200264 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200265 "../system_wrappers:field_trial",
266 "../system_wrappers:metrics",
Mirko Bonadei245660a2017-10-10 14:38:11 +0200267 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200268 absl_deps = [ "//third_party/abseil-cpp/absl/algorithm:container" ]
Mirko Bonadei245660a2017-10-10 14:38:11 +0200269}
270
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200271rtc_library("call") {
Mirko Bonadei245660a2017-10-10 14:38:11 +0200272 sources = [
Peter Boström5c389d32015-09-25 13:58:30 +0200273 "call.cc",
Steve Anton10542f22019-01-11 09:11:00 -0800274 "call_factory.cc",
275 "call_factory.h",
Erik Språng09708512018-03-14 15:16:50 +0100276 "degraded_call.cc",
277 "degraded_call.h",
brandtr7250b392016-12-19 01:13:46 -0800278 "flexfec_receive_stream_impl.cc",
279 "flexfec_receive_stream_impl.h",
Sebastian Janssonb34556e2018-03-21 14:38:32 +0100280 "receive_time_calculator.cc",
281 "receive_time_calculator.h",
Peter Boström5c389d32015-09-25 13:58:30 +0200282 ]
283
Peter Boström5c389d32015-09-25 13:58:30 +0200284 deps = [
Mirko Bonadei245660a2017-10-10 14:38:11 +0200285 ":bitrate_allocator",
ossuf515ab82016-12-07 04:52:58 -0800286 ":call_interfaces",
Erik Språng09708512018-03-14 15:16:50 +0100287 ":fake_network",
nissed76b7b22017-06-01 04:02:35 -0700288 ":rtp_interfaces",
289 ":rtp_receiver",
290 ":rtp_sender",
Artem Titov3229d652018-08-17 13:00:54 +0200291 ":simulated_network",
Mirko Bonadeib9857482020-12-14 15:28:43 +0100292 ":version",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200293 ":video_stream_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100294 "../api:array_view",
Niels Möller8366e172018-02-14 12:20:13 +0100295 "../api:callfactory_api",
Yves Gerey3e707812018-11-28 16:47:49 +0100296 "../api:fec_controller_api",
Jonas Orelande62c2f22022-03-29 11:04:48 +0200297 "../api:field_trials_view",
Niels Mölleref1052a2019-03-20 08:40:23 +0100298 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200299 "../api:rtp_parameters",
Artem Titovd15a5752021-02-10 14:31:24 +0100300 "../api:sequence_checker",
Artem Titov3229d652018-08-17 13:00:54 +0200301 "../api:simulated_network_api",
aleloia8eb7562016-11-28 07:02:13 -0800302 "../api:transport_api",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200303 "../api/rtc_event_log",
Sebastian Janssonc6c44262018-05-09 10:33:39 +0200304 "../api/transport:network_control",
Yves Gerey3e707812018-11-28 16:47:49 +0100305 "../api/units:time_delta",
306 "../api/video_codecs:video_codecs_api",
katrielc14897d02016-06-03 13:14:28 -0700307 "../audio",
Qingsi Wang970b0882018-02-01 11:04:46 -0800308 "../logging:rtc_event_audio",
Qingsi Wang970b0882018-02-01 11:04:46 -0800309 "../logging:rtc_event_rtp_rtcp",
310 "../logging:rtc_event_video",
311 "../logging:rtc_stream_config",
Stefan Holmer80e12072016-02-23 13:30:42 +0100312 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800313 "../modules/pacing",
Peter Boström5c389d32015-09-25 13:58:30 +0200314 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100315 "../modules/rtp_rtcp:rtp_rtcp_format",
kjellander2f1a5552017-02-27 15:57:45 -0800316 "../modules/utility",
Artem Titov94b57c02019-03-21 13:35:10 +0100317 "../modules/video_coding",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100318 "../rtc_base:checks",
Florent Castellied4aadc2022-04-19 17:40:46 +0200319 "../rtc_base:copy_on_write_buffer",
Florent Castellia30aef32022-04-19 17:47:13 +0200320 "../rtc_base:event_tracer",
Florent Castelliaa6d05d2022-04-14 13:13:56 +0200321 "../rtc_base:location",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200322 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 15:18:46 +0200323 "../rtc_base:macromagic",
Sebastian Jansson45087cd2018-03-01 15:56:57 +0100324 "../rtc_base:rate_limiter",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700325 "../rtc_base:rtc_task_queue",
Sebastian Jansson19704ec2018-03-12 15:59:12 +0100326 "../rtc_base:safe_minmax",
Florent Castelli57aa81b2022-04-04 17:14:02 +0200327 "../rtc_base:stringutils",
Florent Castellidd837e22022-04-04 17:16:15 +0200328 "../rtc_base:timeutils",
Christoffer Rodbro76ad1542018-10-12 11:15:09 +0200329 "../rtc_base/experiments:field_trial_parser",
Yves Gerey3e707812018-11-28 16:47:49 +0100330 "../rtc_base/network:sent_packet",
Mirko Bonadei20e4c802020-11-23 11:07:42 +0100331 "../rtc_base/system:no_unique_address",
Tommi0d4647d2020-05-26 19:35:16 +0200332 "../rtc_base/task_utils:pending_task_safety_flag",
Peter Boström5c389d32015-09-25 13:58:30 +0200333 "../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +0200334 "../system_wrappers:field_trial",
335 "../system_wrappers:metrics",
katrielc14897d02016-06-03 13:14:28 -0700336 "../video",
Evan Shrubsole5723d852022-02-14 14:09:57 +0100337 "../video:decode_synchronizer",
Henrik Boström29444c62020-07-01 15:48:46 +0200338 "adaptation:resource_adaptation",
Peter Boström5c389d32015-09-25 13:58:30 +0200339 ]
Per Kjellanderfe2063e2021-05-12 09:02:43 +0200340 absl_deps = [
341 "//third_party/abseil-cpp/absl/functional:bind_front",
342 "//third_party/abseil-cpp/absl/types:optional",
343 ]
Peter Boström5c389d32015-09-25 13:58:30 +0200344}
Peter Boström02083222016-06-14 12:52:54 +0200345
Tommi1c1f5402021-06-14 10:54:20 +0200346rtc_source_set("receive_stream_interface") {
347 sources = [ "receive_stream.h" ]
348 deps = [
349 "../api:frame_transformer_interface",
350 "../api:rtp_parameters",
351 "../api:scoped_refptr",
352 "../api/crypto:frame_decryptor_interface",
353 "../api/transport/rtp:rtp_source",
354 ]
355}
356
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200357rtc_library("video_stream_api") {
aleloi440b6d92017-08-22 05:43:23 -0700358 sources = [
359 "video_receive_stream.cc",
360 "video_receive_stream.h",
361 "video_send_stream.cc",
362 "video_send_stream.h",
363 ]
364 deps = [
Tommi1c1f5402021-06-14 10:54:20 +0200365 ":receive_stream_interface",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200366 ":rtp_interfaces",
Marina Cioceae77912b2020-02-27 16:16:55 +0100367 "../api:frame_transformer_interface",
Niels Mölleref1052a2019-03-20 08:40:23 +0100368 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200369 "../api:rtp_parameters",
Henrik Boströmf4a99912020-06-11 12:07:14 +0200370 "../api:scoped_refptr",
aleloi440b6d92017-08-22 05:43:23 -0700371 "../api:transport_api",
Henrik Boströmf4a99912020-06-11 12:07:14 +0200372 "../api/adaptation:resource_adaptation_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200373 "../api/crypto:frame_encryptor_interface",
374 "../api/crypto:options",
Markus Handell269ac812019-12-03 14:31:45 +0100375 "../api/video:recordable_encoded_frame",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200376 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 12:59:38 +0200377 "../api/video:video_rtp_headers",
Niels Möller213618e2018-07-24 09:29:58 +0200378 "../api/video:video_stream_encoder",
Niels Möller88614b02018-03-27 16:39:01 +0200379 "../api/video_codecs:video_codecs_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100380 "../common_video",
Niels Möllera8327d42020-08-25 10:28:50 +0200381 "../common_video:frame_counts",
Patrik Höglund3e113432017-12-15 14:40:10 +0100382 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglund9e194032018-01-04 15:58:20 +0100383 "../rtc_base:checks",
Byoungchan Leeefe46b62021-11-10 11:23:56 +0900384 "../rtc_base:stringutils",
aleloi440b6d92017-08-22 05:43:23 -0700385 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200386 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
aleloi440b6d92017-08-22 05:43:23 -0700387}
388
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200389rtc_library("simulated_network") {
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200390 sources = [
391 "simulated_network.cc",
392 "simulated_network.h",
393 ]
394 deps = [
Artem Titovd15a5752021-02-10 14:31:24 +0100395 "../api:sequence_checker",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200396 "../api:simulated_network_api",
Sebastian Jansson2cd3b4c2018-11-06 19:18:28 +0100397 "../api/units:data_rate",
398 "../api/units:data_size",
399 "../api/units:time_delta",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100400 "../api/units:timestamp",
Yves Gerey3e707812018-11-28 16:47:49 +0100401 "../rtc_base:checks",
Florent Castelli4467ad72022-04-04 15:18:46 +0200402 "../rtc_base:macromagic",
Florent Castellif4db3512022-04-14 13:38:05 +0200403 "../rtc_base:race_checker",
Florent Castelli71337f32022-04-14 12:41:26 +0200404 "../rtc_base:random",
Markus Handell8fe932a2020-07-06 17:41:35 +0200405 "../rtc_base/synchronization:mutex",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200406 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200407 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200408}
409
Artem Titov46c4e602018-08-17 14:26:54 +0200410rtc_source_set("simulated_packet_receiver") {
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100411 sources = [ "simulated_packet_receiver.h" ]
Artem Titov46c4e602018-08-17 14:26:54 +0200412 deps = [
413 ":call_interfaces",
414 "../api:simulated_network_api",
Artem Titov46c4e602018-08-17 14:26:54 +0200415 ]
416}
417
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200418rtc_library("fake_network") {
Erik Språng09708512018-03-14 15:16:50 +0100419 sources = [
420 "fake_network_pipe.cc",
421 "fake_network_pipe.h",
422 ]
423 deps = [
424 ":call_interfaces",
Sebastian Janssonf96b1ca2018-08-07 18:58:05 +0200425 ":simulated_network",
Artem Titov46c4e602018-08-17 14:26:54 +0200426 ":simulated_packet_receiver",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200427 "../api:rtp_parameters",
Artem Titovd15a5752021-02-10 14:31:24 +0100428 "../api:sequence_checker",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200429 "../api:simulated_network_api",
Erik Språng09708512018-03-14 15:16:50 +0100430 "../api:transport_api",
Sebastian Jansson71822862018-10-30 08:23:27 +0100431 "../modules/utility",
Yves Gerey3e707812018-11-28 16:47:49 +0100432 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200433 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 15:18:46 +0200434 "../rtc_base:macromagic",
Markus Handell8fe932a2020-07-06 17:41:35 +0200435 "../rtc_base/synchronization:mutex",
Erik Språng09708512018-03-14 15:16:50 +0100436 "../system_wrappers",
437 ]
Erik Språng09708512018-03-14 15:16:50 +0100438}
439
Peter Boström02083222016-06-14 12:52:54 +0200440if (rtc_include_tests) {
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000441 if (!build_with_chromium) {
442 rtc_library("call_tests") {
443 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700444
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000445 sources = [
446 "bitrate_allocator_unittest.cc",
447 "bitrate_estimator_tests.cc",
448 "call_unittest.cc",
449 "flexfec_receive_stream_unittest.cc",
450 "receive_time_calculator_unittest.cc",
451 "rtp_bitrate_configurator_unittest.cc",
452 "rtp_demuxer_unittest.cc",
453 "rtp_payload_params_unittest.cc",
454 "rtp_video_sender_unittest.cc",
455 "rtx_receive_stream_unittest.cc",
456 ]
457 deps = [
458 ":bitrate_allocator",
459 ":bitrate_configurator",
460 ":call",
461 ":call_interfaces",
462 ":mock_rtp_interfaces",
463 ":rtp_interfaces",
464 ":rtp_receiver",
465 ":rtp_sender",
466 ":simulated_network",
467 "../api:array_view",
468 "../api:create_frame_generator",
469 "../api:mock_audio_mixer",
470 "../api:rtp_headers",
471 "../api:rtp_parameters",
472 "../api:transport_api",
473 "../api/audio_codecs:builtin_audio_decoder_factory",
474 "../api/rtc_event_log",
475 "../api/task_queue:default_task_queue_factory",
476 "../api/test/video:function_video_factory",
477 "../api/transport:field_trial_based_config",
478 "../api/video:builtin_video_bitrate_allocator_factory",
479 "../api/video:video_frame",
480 "../api/video:video_rtp_headers",
481 "../audio",
482 "../modules:module_api",
483 "../modules/audio_device:mock_audio_device",
484 "../modules/audio_mixer",
485 "../modules/audio_mixer:audio_mixer_impl",
486 "../modules/audio_processing:mocks",
487 "../modules/congestion_controller",
488 "../modules/pacing",
489 "../modules/rtp_rtcp",
490 "../modules/rtp_rtcp:mock_rtp_rtcp",
491 "../modules/rtp_rtcp:rtp_rtcp_format",
492 "../modules/utility:mock_process_thread",
493 "../modules/video_coding",
494 "../modules/video_coding:codec_globals_headers",
495 "../modules/video_coding:video_codec_interface",
496 "../rtc_base:checks",
497 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 15:18:46 +0200498 "../rtc_base:macromagic",
Florent Castelli71337f32022-04-14 12:41:26 +0200499 "../rtc_base:random",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000500 "../rtc_base:rate_limiter",
Florent Castelli33d31fb2022-04-04 16:57:52 +0200501 "../rtc_base:rtc_event",
Florent Castellie10a9f62022-04-04 17:04:37 +0200502 "../rtc_base:safe_conversions",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000503 "../rtc_base:task_queue_for_test",
Florent Castellidd837e22022-04-04 17:16:15 +0200504 "../rtc_base:timeutils",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000505 "../rtc_base/synchronization:mutex",
506 "../system_wrappers",
507 "../test:audio_codec_mocks",
508 "../test:direct_transport",
509 "../test:encoder_settings",
Danil Chapovalovaf366442021-04-22 15:20:28 +0200510 "../test:explicit_key_value_config",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000511 "../test:fake_video_codecs",
512 "../test:field_trial",
513 "../test:mock_frame_transformer",
514 "../test:mock_transport",
Jonas Orelandc7f691a2022-03-09 15:12:07 +0100515 "../test:scoped_key_value_config",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000516 "../test:test_common",
517 "../test:test_support",
518 "../test:video_test_common",
519 "../test/scenario",
520 "../test/time_controller:time_controller",
521 "../video",
522 "adaptation:resource_adaptation_test_utilities",
523 "//testing/gmock",
524 "//testing/gtest",
525 ]
526 absl_deps = [
527 "//third_party/abseil-cpp/absl/container:inlined_vector",
528 "//third_party/abseil-cpp/absl/memory",
Ali Tofigh6364d082022-03-14 13:32:04 +0100529 "//third_party/abseil-cpp/absl/strings",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000530 "//third_party/abseil-cpp/absl/types:optional",
531 "//third_party/abseil-cpp/absl/types:variant",
532 ]
533 }
ehmaldonado021eef32017-01-05 07:09:50 -0800534
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000535 rtc_library("call_perf_tests") {
536 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700537
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000538 sources = [
539 "call_perf_tests.cc",
540 "rampup_tests.cc",
541 "rampup_tests.h",
542 ]
543 deps = [
544 ":call_interfaces",
545 ":simulated_network",
546 ":video_stream_api",
547 "../api:rtc_event_log_output_file",
548 "../api:simulated_network_api",
549 "../api/audio_codecs:builtin_audio_encoder_factory",
550 "../api/rtc_event_log",
551 "../api/rtc_event_log:rtc_event_log_factory",
552 "../api/task_queue",
553 "../api/task_queue:default_task_queue_factory",
554 "../api/video:builtin_video_bitrate_allocator_factory",
555 "../api/video:video_bitrate_allocation",
556 "../api/video_codecs:video_codecs_api",
Åsa Persson59947d22021-08-26 12:04:27 +0200557 "../media:rtc_internal_video_codecs",
558 "../media:rtc_simulcast_encoder_adapter",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000559 "../modules/audio_coding",
560 "../modules/audio_device",
561 "../modules/audio_device:audio_device_impl",
562 "../modules/audio_mixer:audio_mixer_impl",
563 "../modules/rtp_rtcp",
564 "../modules/rtp_rtcp:rtp_rtcp_format",
565 "../rtc_base",
566 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +0200567 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 15:18:46 +0200568 "../rtc_base:macromagic",
Florent Castelli45a05992022-04-14 12:18:28 +0200569 "../rtc_base:platform_thread",
Florent Castelli33d31fb2022-04-04 16:57:52 +0200570 "../rtc_base:rtc_event",
Florent Castelli57aa81b2022-04-04 17:14:02 +0200571 "../rtc_base:stringutils",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000572 "../rtc_base:task_queue_for_test",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000573 "../rtc_base:threading",
Florent Castellidd837e22022-04-04 17:16:15 +0200574 "../rtc_base:timeutils",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000575 "../rtc_base/synchronization:mutex",
Niels Möller05a9e5a2021-08-13 14:00:44 +0200576 "../rtc_base/task_utils:pending_task_safety_flag",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000577 "../rtc_base/task_utils:repeating_task",
578 "../system_wrappers",
579 "../system_wrappers:metrics",
580 "../test:direct_transport",
581 "../test:encoder_settings",
582 "../test:fake_video_codecs",
583 "../test:field_trial",
584 "../test:fileutils",
585 "../test:null_transport",
586 "../test:perf_test",
Andrey Logvine7c79fd2021-02-01 09:56:37 +0000587 "../test:test_common",
588 "../test:test_support",
589 "../test:video_test_common",
590 "../video",
591 "//testing/gtest",
592 ]
593 absl_deps = [ "//third_party/abseil-cpp/absl/flags:flag" ]
594 }
ehmaldonado021eef32017-01-05 07:09:50 -0800595 }
eladalone2173d92017-07-28 10:05:45 -0700596
Artem Titovea240272021-07-26 12:40:21 +0200597 # TODO(eladalon): This should be moved, as with the TODO for `rtp_interfaces`.
eladalone2173d92017-07-28 10:05:45 -0700598 rtc_source_set("mock_rtp_interfaces") {
599 testonly = true
600
601 sources = [
602 "test/mock_rtp_packet_sink_interface.h",
Sebastian Jansson8f83b422018-02-21 13:07:13 +0100603 "test/mock_rtp_transport_controller_send.h",
eladalone2173d92017-07-28 10:05:45 -0700604 ]
605 deps = [
606 ":rtp_interfaces",
Marina Cioceae77912b2020-02-27 16:16:55 +0100607 "../api:frame_transformer_interface",
Patrik Höglundb6b29e02018-06-21 16:58:01 +0200608 "../api:libjingle_peerconnection_api",
Mirko Bonadeieaaaf412019-09-13 14:42:15 +0200609 "../api/crypto:frame_encryptor_interface",
610 "../api/crypto:options",
Mirko Bonadei738bfa72019-09-17 14:47:38 +0200611 "../api/transport:bitrate_settings",
Sebastian Jansson35dd6cd2018-02-21 17:30:36 +0100612 "../modules/pacing",
Artem Titov94b57c02019-03-21 13:35:10 +0100613 "../rtc_base",
Sebastian Jansson35dd6cd2018-02-21 17:30:36 +0100614 "../rtc_base:rate_limiter",
Sebastian Jansson12985412018-10-15 21:06:26 +0200615 "../rtc_base/network:sent_packet",
eladalone2173d92017-07-28 10:05:45 -0700616 "../test:test_support",
eladalone2173d92017-07-28 10:05:45 -0700617 ]
618 }
Sebastian Jansson83267802018-04-19 08:27:19 +0200619 rtc_source_set("mock_bitrate_allocator") {
620 testonly = true
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100621
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100622 sources = [ "test/mock_bitrate_allocator.h" ]
Sebastian Jansson83267802018-04-19 08:27:19 +0200623 deps = [
624 ":bitrate_allocator",
Yves Gerey21cddff2018-10-30 21:12:42 +0100625 "../test:test_support",
Sebastian Jansson83267802018-04-19 08:27:19 +0200626 ]
627 }
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100628 rtc_source_set("mock_call_interfaces") {
629 testonly = true
630
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +0100631 sources = [ "test/mock_audio_send_stream.h" ]
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100632 deps = [
633 ":call_interfaces",
Yves Gerey21cddff2018-10-30 21:12:42 +0100634 "../test:test_support",
Fredrik Solenberg2a877972017-12-15 16:42:15 +0100635 ]
636 }
Erik Språng09708512018-03-14 15:16:50 +0100637
Mirko Bonadei86d053c2019-10-17 21:32:04 +0200638 rtc_library("fake_network_pipe_unittests") {
Sebastian Jansson487c09b2019-02-21 16:21:51 +0100639 testonly = true
640
Artem Titov40a7a352018-10-15 15:25:34 +0200641 sources = [
Sebastian Jansson487c09b2019-02-21 16:21:51 +0100642 "fake_network_pipe_unittest.cc",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100643 "simulated_network_unittest.cc",
Artem Titov40a7a352018-10-15 15:25:34 +0200644 ]
Erik Språng09708512018-03-14 15:16:50 +0100645 deps = [
Erik Språng09708512018-03-14 15:16:50 +0100646 ":fake_network",
Artem Titove23b8a92018-08-16 15:51:07 +0200647 ":simulated_network",
Sebastian Jansson2b08e312019-02-25 10:24:46 +0100648 "../api/units:data_rate",
Erik Språng09708512018-03-14 15:16:50 +0100649 "../system_wrappers",
Yves Gerey21cddff2018-10-30 21:12:42 +0100650 "../test:test_support",
Erik Språng09708512018-03-14 15:16:50 +0100651 "//testing/gtest",
652 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +0200653 absl_deps = [ "//third_party/abseil-cpp/absl/algorithm:container" ]
Erik Språng09708512018-03-14 15:16:50 +0100654 }
Peter Boström02083222016-06-14 12:52:54 +0200655}