blob: 194830e69119cf3e36904c2b2fcdb0a8531b7794 [file] [log] [blame]
skvladcc91d282016-10-03 18:31:22 -07001# Copyright (c) 2016 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")
Kimmo Kinnunen08f6a6c2019-02-26 11:46:17 +020010if (rtc_enable_protobuf) {
Dan Minor9c686132018-01-15 10:20:00 -050011 import("//third_party/protobuf/proto_library.gni")
12}
skvladcc91d282016-10-03 18:31:22 -070013if (is_android) {
14 import("//build/config/android/config.gni")
15 import("//build/config/android/rules.gni")
16}
17
kjellander6ceab082016-10-28 05:44:03 -070018group("logging") {
Mirko Bonadei818d9102017-12-12 12:46:13 +010019 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -080020 ":rtc_event_audio",
21 ":rtc_event_bwe",
Qingsi Wang970b0882018-02-01 11:04:46 -080022 ":rtc_event_log_impl_encoder",
Qingsi Wang970b0882018-02-01 11:04:46 -080023 ":rtc_event_pacing",
24 ":rtc_event_rtp_rtcp",
25 ":rtc_event_video",
kjellander6ceab082016-10-28 05:44:03 -070026 ]
kjellander6ceab082016-10-28 05:44:03 -070027}
28
skvladcc91d282016-10-03 18:31:22 -070029rtc_source_set("rtc_event_log_api") {
30 sources = [
Qingsi Wang970b0882018-02-01 11:04:46 -080031 "rtc_event_log/encoder/rtc_event_log_encoder.h",
Elad Alon652cc842017-10-02 11:27:52 +020032 "rtc_event_log/events/rtc_event.h",
Qingsi Wang970b0882018-02-01 11:04:46 -080033 "rtc_event_log/rtc_event_log.h",
34 "rtc_event_log/rtc_event_log_factory_interface.h",
35 ]
36
37 deps = [
38 "../api:libjingle_logging_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010039 "../api:scoped_refptr",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +020040 "../api/rtc_event_log",
Mirko Bonadeifc52b912019-03-01 10:32:56 +010041 "../api/task_queue",
Qingsi Wang970b0882018-02-01 11:04:46 -080042 "../rtc_base:rtc_base_approved",
Danil Chapovalov608298b2018-10-18 14:20:44 +020043 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080044 ]
45}
46
47rtc_source_set("rtc_stream_config") {
48 sources = [
49 "rtc_event_log/rtc_stream_config.cc",
50 "rtc_event_log/rtc_stream_config.h",
51 ]
52
53 deps = [
54 ":rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -080055 "../api:libjingle_peerconnection_api",
Niels Mölleref1052a2019-03-20 08:40:23 +010056 "../api:rtp_headers",
Qingsi Wang970b0882018-02-01 11:04:46 -080057 ]
58}
59
60rtc_source_set("rtc_event_pacing") {
61 sources = [
Ilya Nikolaevskiya4259f62017-12-05 13:19:45 +010062 "rtc_event_log/events/rtc_event_alr_state.cc",
63 "rtc_event_log/events/rtc_event_alr_state.h",
Qingsi Wang970b0882018-02-01 11:04:46 -080064 ]
65
66 deps = [
67 ":rtc_event_log_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +010068 "../api:scoped_refptr",
Karl Wiberg918f50c2018-07-05 11:40:33 +020069 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080070 ]
71}
72
73rtc_source_set("rtc_event_audio") {
74 sources = [
Elad Alon652cc842017-10-02 11:27:52 +020075 "rtc_event_log/events/rtc_event_audio_network_adaptation.cc",
76 "rtc_event_log/events/rtc_event_audio_network_adaptation.h",
77 "rtc_event_log/events/rtc_event_audio_playout.cc",
78 "rtc_event_log/events/rtc_event_audio_playout.h",
79 "rtc_event_log/events/rtc_event_audio_receive_stream_config.cc",
80 "rtc_event_log/events/rtc_event_audio_receive_stream_config.h",
81 "rtc_event_log/events/rtc_event_audio_send_stream_config.cc",
82 "rtc_event_log/events/rtc_event_audio_send_stream_config.h",
Qingsi Wang970b0882018-02-01 11:04:46 -080083 ]
84
85 deps = [
86 ":rtc_event_log_api",
87 ":rtc_stream_config",
Mirko Bonadeid9708072019-01-25 20:26:48 +010088 "../api:scoped_refptr",
Qingsi Wang970b0882018-02-01 11:04:46 -080089 "../modules/audio_coding:audio_network_adaptor_config",
Elad Alon0b1b5c12018-11-09 21:50:14 +010090 "../rtc_base:checks",
Karl Wiberg918f50c2018-07-05 11:40:33 +020091 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080092 ]
93}
94
95rtc_source_set("rtc_event_bwe") {
96 sources = [
Elad Alon652cc842017-10-02 11:27:52 +020097 "rtc_event_log/events/rtc_event_bwe_update_delay_based.cc",
98 "rtc_event_log/events/rtc_event_bwe_update_delay_based.h",
99 "rtc_event_log/events/rtc_event_bwe_update_loss_based.cc",
100 "rtc_event_log/events/rtc_event_bwe_update_loss_based.h",
Elad Alon652cc842017-10-02 11:27:52 +0200101 "rtc_event_log/events/rtc_event_probe_cluster_created.cc",
102 "rtc_event_log/events/rtc_event_probe_cluster_created.h",
103 "rtc_event_log/events/rtc_event_probe_result_failure.cc",
104 "rtc_event_log/events/rtc_event_probe_result_failure.h",
105 "rtc_event_log/events/rtc_event_probe_result_success.cc",
106 "rtc_event_log/events/rtc_event_probe_result_success.h",
Sebastian Jansson166b45d2019-05-13 11:57:42 +0200107 "rtc_event_log/events/rtc_event_route_change.cc",
108 "rtc_event_log/events/rtc_event_route_change.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800109 ]
110
111 deps = [
112 ":rtc_event_log_api",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100113 "../api:scoped_refptr",
Artem Titov94b57c02019-03-21 13:35:10 +0100114 "../modules/remote_bitrate_estimator",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200115 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800116 ]
117}
118
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800119rtc_source_set("rtc_event_generic_packet_events") {
120 visibility = [ "*" ]
121 sources = [
122 "rtc_event_log/events/rtc_event_generic_ack_received.cc",
123 "rtc_event_log/events/rtc_event_generic_ack_received.h",
124 "rtc_event_log/events/rtc_event_generic_packet_received.cc",
125 "rtc_event_log/events/rtc_event_generic_packet_received.h",
126 "rtc_event_log/events/rtc_event_generic_packet_sent.cc",
127 "rtc_event_log/events/rtc_event_generic_packet_sent.h",
128 ]
129 deps = [
130 ":rtc_event_log_api",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200131 "../rtc_base:timeutils",
tzik8aa00f02019-02-18 22:28:26 +0900132 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200133 "//third_party/abseil-cpp/absl/types:optional",
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800134 ]
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800135}
136
Qingsi Wang970b0882018-02-01 11:04:46 -0800137rtc_source_set("rtc_event_rtp_rtcp") {
138 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200139 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.cc",
140 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.h",
141 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.cc",
142 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.h",
143 "rtc_event_log/events/rtc_event_rtp_packet_incoming.cc",
144 "rtc_event_log/events/rtc_event_rtp_packet_incoming.h",
145 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.cc",
146 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800147 ]
148
149 deps = [
150 ":rtc_event_log_api",
151 "../api:array_view",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100152 "../api:scoped_refptr",
Qingsi Wang970b0882018-02-01 11:04:46 -0800153 "../modules/rtp_rtcp:rtp_rtcp_format",
Elad Alon0b1b5c12018-11-09 21:50:14 +0100154 "../rtc_base:checks",
Qingsi Wang970b0882018-02-01 11:04:46 -0800155 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200156 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800157 ]
158}
159
160rtc_source_set("rtc_event_video") {
161 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200162 "rtc_event_log/events/rtc_event_video_receive_stream_config.cc",
163 "rtc_event_log/events/rtc_event_video_receive_stream_config.h",
164 "rtc_event_log/events/rtc_event_video_send_stream_config.cc",
165 "rtc_event_log/events/rtc_event_video_send_stream_config.h",
skvladcc91d282016-10-03 18:31:22 -0700166 ]
Elad Alon83ccca12017-10-04 13:18:26 +0200167
kjellander727ac1d2017-03-08 02:12:11 -0800168 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800169 ":rtc_event_log_api",
170 ":rtc_stream_config",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100171 "../api:scoped_refptr",
Elad Alon0b1b5c12018-11-09 21:50:14 +0100172 "../rtc_base:checks",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200173 "//third_party/abseil-cpp/absl/memory",
kjellander727ac1d2017-03-08 02:12:11 -0800174 ]
skvladcc91d282016-10-03 18:31:22 -0700175}
176
Elad Alond95b0a22018-11-09 16:38:54 +0100177# TODO(eladalon): Break down into (1) encoder and (2) decoder; we don't need
178# the decoder code in the WebRTC library, only in unit tests and tools.
Qingsi Wang970b0882018-02-01 11:04:46 -0800179rtc_static_library("rtc_event_log_impl_encoder") {
skvladcc91d282016-10-03 18:31:22 -0700180 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200181 "rtc_event_log/encoder/blob_encoding.cc",
182 "rtc_event_log/encoder/blob_encoding.h",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200183 "rtc_event_log/encoder/delta_encoding.cc",
184 "rtc_event_log/encoder/delta_encoding.h",
Elad Alond95b0a22018-11-09 16:38:54 +0100185 "rtc_event_log/encoder/rtc_event_log_encoder_common.cc",
186 "rtc_event_log/encoder/rtc_event_log_encoder_common.h",
Steve Anton10542f22019-01-11 09:11:00 -0800187 "rtc_event_log/encoder/var_int.cc",
188 "rtc_event_log/encoder/var_int.h",
skvladcc91d282016-10-03 18:31:22 -0700189 ]
190
191 defines = []
192
193 deps = [
Yves Gerey3e707812018-11-28 16:47:49 +0100194 "../api:libjingle_peerconnection_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100195 "../api:rtp_headers",
Yves Gerey3e707812018-11-28 16:47:49 +0100196 "../api/transport:network_control",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100197 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700198 "../rtc_base:rtc_base_approved",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200199 "//third_party/abseil-cpp/absl/memory",
Artem Titov94b57c02019-03-21 13:35:10 +0100200 "//third_party/abseil-cpp/absl/strings",
Elad Alon73f39172018-10-23 18:24:10 +0200201 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700202 ]
203
204 if (rtc_enable_protobuf) {
205 defines += [ "ENABLE_RTC_EVENT_LOG" ]
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200206 deps += [
207 ":ice_log",
208 ":rtc_event_audio",
209 ":rtc_event_bwe",
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800210 ":rtc_event_generic_packet_events",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200211 ":rtc_event_log2_proto",
212 ":rtc_event_log_api",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200213 ":rtc_event_log_proto",
214 ":rtc_event_pacing",
215 ":rtc_event_rtp_rtcp",
216 ":rtc_event_video",
217 ":rtc_stream_config",
218 "../api:array_view",
219 "../modules/audio_coding:audio_network_adaptor",
Artem Titov94b57c02019-03-21 13:35:10 +0100220 "../modules/remote_bitrate_estimator",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200221 "../modules/rtp_rtcp:rtp_rtcp_format",
222 ]
223 sources += [
224 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc",
225 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.h",
226 "rtc_event_log/encoder/rtc_event_log_encoder_new_format.cc",
227 "rtc_event_log/encoder/rtc_event_log_encoder_new_format.h",
228 ]
skvladcc91d282016-10-03 18:31:22 -0700229 }
skvladcc91d282016-10-03 18:31:22 -0700230}
231
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200232# TODO(bugs.webrtc.org/6463): For backwards compatibility; delete as
233# soon as downstream dependencies are updated.
Qingsi Wang970b0882018-02-01 11:04:46 -0800234rtc_source_set("rtc_event_log_impl_output") {
235 sources = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800236 "rtc_event_log/output/rtc_event_log_output_file.h",
237 ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800238 deps = [
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200239 "../api:rtc_event_log_output_file",
Qingsi Wang970b0882018-02-01 11:04:46 -0800240 ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800241}
242
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200243if (rtc_enable_protobuf) {
244 rtc_source_set("rtc_event_log_impl") {
245 visibility = [ "../api/rtc_event_log:rtc_event_log_factory" ]
246 sources = [
247 "rtc_event_log/rtc_event_log_impl.cc",
248 "rtc_event_log/rtc_event_log_impl.h",
249 ]
250 deps = [
251 ":ice_log",
252 ":rtc_event_log_api",
253 ":rtc_event_log_impl_encoder",
254 "../api:libjingle_logging_api",
255 "../api/rtc_event_log",
256 "../api/task_queue",
257 "../rtc_base:checks",
258 "../rtc_base:rtc_base_approved",
259 "../rtc_base:rtc_task_queue",
260 "../rtc_base:safe_minmax",
261 "../rtc_base/synchronization:sequence_checker",
262 "//third_party/abseil-cpp/absl/memory",
263 "//third_party/abseil-cpp/absl/types:optional",
264 ]
265 }
266}
267
Qingsi Wang7685e862018-06-11 20:15:46 -0700268rtc_source_set("fake_rtc_event_log") {
269 testonly = true
270 sources = [
271 "rtc_event_log/fake_rtc_event_log.cc",
272 "rtc_event_log/fake_rtc_event_log.h",
273 "rtc_event_log/fake_rtc_event_log_factory.cc",
274 "rtc_event_log/fake_rtc_event_log_factory.h",
275 ]
276
277 deps = [
278 ":ice_log",
279 ":rtc_event_log_api",
Artem Titov94b57c02019-03-21 13:35:10 +0100280 "../rtc_base",
Qingsi Wang7685e862018-06-11 20:15:46 -0700281 "../rtc_base:checks",
Qingsi Wang7685e862018-06-11 20:15:46 -0700282 ]
283}
284
skvladcc91d282016-10-03 18:31:22 -0700285if (rtc_enable_protobuf) {
286 proto_library("rtc_event_log_proto") {
Mirko Bonadeid4746722018-11-19 12:00:51 +0100287 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700288 sources = [
289 "rtc_event_log/rtc_event_log.proto",
290 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200291 proto_out_dir = "logging/rtc_event_log"
skvladcc91d282016-10-03 18:31:22 -0700292 }
skvladcc91d282016-10-03 18:31:22 -0700293
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100294 proto_library("rtc_event_log2_proto") {
Mirko Bonadeid4746722018-11-19 12:00:51 +0100295 visibility = [ "*" ]
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100296 sources = [
297 "rtc_event_log/rtc_event_log2.proto",
298 ]
299 proto_out_dir = "logging/rtc_event_log"
300 }
301
skvladcc91d282016-10-03 18:31:22 -0700302 rtc_static_library("rtc_event_log_parser") {
Bjorn Terelius73df8832018-04-26 14:46:06 +0200303 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700304 sources = [
Sebastian Jansson7e4341d2019-01-22 08:42:27 +0100305 "rtc_event_log/logged_events.cc",
Sebastian Jansson3f2b9aa2019-01-03 14:42:15 +0100306 "rtc_event_log/logged_events.h",
Sebastian Janssonb290a6d2019-01-03 14:46:23 +0100307 "rtc_event_log/rtc_event_log_parser.cc",
308 "rtc_event_log/rtc_event_log_parser.h",
Sebastian Jansson03fbf1e2019-01-08 15:31:06 +0100309 "rtc_event_log/rtc_event_processor.cc",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200310 "rtc_event_log/rtc_event_processor.h",
skvladcc91d282016-10-03 18:31:22 -0700311 ]
312
Mirko Bonadei818d9102017-12-12 12:46:13 +0100313 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800314 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800315 ":rtc_event_bwe",
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100316 ":rtc_event_log2_proto",
kjellander727ac1d2017-03-08 02:12:11 -0800317 ":rtc_event_log_api",
Elad Alond95b0a22018-11-09 16:38:54 +0100318 ":rtc_event_log_impl_encoder",
skvladcc91d282016-10-03 18:31:22 -0700319 ":rtc_event_log_proto",
Qingsi Wang970b0882018-02-01 11:04:46 -0800320 ":rtc_stream_config",
Artem Titov741daaf2019-03-21 14:37:36 +0100321 "../api:function_view",
Bjorn Tereliusc4ca1d32018-04-27 14:33:34 +0200322 "../api:libjingle_peerconnection_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100323 "../api:rtp_headers",
Sebastian Jansson7e4341d2019-01-22 08:42:27 +0100324 "../api/units:data_rate",
325 "../api/units:time_delta",
326 "../api/units:timestamp",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100327 "../call:video_stream_api",
Sebastian Janssonb4686162019-05-02 17:07:22 +0200328 "../modules:module_api",
michaeltcde46b72017-04-06 05:59:10 -0700329 "../modules/audio_coding:audio_network_adaptor",
Artem Titov94b57c02019-03-21 13:35:10 +0100330 "../modules/remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100331 "../modules/rtp_rtcp",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100332 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100333 "../rtc_base:checks",
Sebastian Janssonb290a6d2019-01-03 14:46:23 +0100334 "../rtc_base:deprecation",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100335 "../rtc_base:protobuf_utils",
336 "../rtc_base:rtc_base_approved",
Sebastian Jansson7e4341d2019-01-22 08:42:27 +0100337 "../rtc_base:rtc_numerics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200338 "//third_party/abseil-cpp/absl/memory",
Elad Alon1ac95542018-10-02 13:20:40 +0200339 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700340 ]
skvladcc91d282016-10-03 18:31:22 -0700341 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800342
343 if (rtc_include_tests) {
344 rtc_source_set("rtc_event_log_tests") {
345 testonly = true
Elad Alon1d87b0e2017-10-03 15:01:03 +0200346 assert(rtc_enable_protobuf)
347 defines = [ "ENABLE_RTC_EVENT_LOG" ]
ehmaldonado1fd08c12017-01-17 02:37:34 -0800348 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200349 "rtc_event_log/encoder/blob_encoding_unittest.cc",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200350 "rtc_event_log/encoder/delta_encoding_unittest.cc",
Elad Alond95b0a22018-11-09 16:38:54 +0100351 "rtc_event_log/encoder/rtc_event_log_encoder_common_unittest.cc",
Elad Alon1d87b0e2017-10-03 15:01:03 +0200352 "rtc_event_log/encoder/rtc_event_log_encoder_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800353 "rtc_event_log/rtc_event_log_unittest.cc",
354 "rtc_event_log/rtc_event_log_unittest_helper.cc",
eladalonb5c319a2017-08-17 08:32:39 -0700355 "rtc_event_log/rtc_event_log_unittest_helper.h",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200356 "rtc_event_log/rtc_event_processor_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800357 ]
358 deps = [
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200359 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800360 ":rtc_event_audio",
361 ":rtc_event_bwe",
Piotr (Peter) Slatala5e2aad12019-02-13 07:49:30 -0800362 ":rtc_event_generic_packet_events",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200363 ":rtc_event_log2_proto",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100364 ":rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800365 ":rtc_event_log_impl_encoder",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800366 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100367 ":rtc_event_log_proto",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200368 ":rtc_event_pacing",
Qingsi Wang970b0882018-02-01 11:04:46 -0800369 ":rtc_event_rtp_rtcp",
370 ":rtc_event_video",
371 ":rtc_stream_config",
Yves Gerey3e707812018-11-28 16:47:49 +0100372 "../api:array_view",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100373 "../api:libjingle_peerconnection_api",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200374 "../api:rtc_event_log_output_file",
Niels Mölleref1052a2019-03-20 08:40:23 +0100375 "../api:rtp_headers",
Danil Chapovalov4ba04b72019-06-26 15:49:47 +0200376 "../api/rtc_event_log:rtc_event_log_factory",
Danil Chapovalov304ea5f2019-04-11 15:18:18 +0200377 "../api/task_queue:default_task_queue_factory",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800378 "../call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100379 "../call:call_interfaces",
michaeltcde46b72017-04-06 05:59:10 -0700380 "../modules/audio_coding:audio_network_adaptor",
Artem Titov94b57c02019-03-21 13:35:10 +0100381 "../modules/remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100382 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100383 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700384 "../rtc_base:rtc_base_approved",
385 "../rtc_base:rtc_base_tests_utils",
Artem Titov94b57c02019-03-21 13:35:10 +0100386 "../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100387 "../test:fileutils",
kjellander727ac1d2017-03-08 02:12:11 -0800388 "../test:test_support",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800389 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200390 "//third_party/abseil-cpp/absl/memory",
Yves Gerey69807e82018-10-30 22:23:02 +0100391 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800392 ]
ehmaldonado1fd08c12017-01-17 02:37:34 -0800393 }
Mirko Bonadei9d764e82018-07-16 15:38:06 +0200394
Mirko Bonadeiab0b9d42019-07-08 12:31:59 +0200395 rtc_executable("rtc_event_log_rtp_dump") {
ivoc54b6e982017-02-08 00:28:09 -0800396 testonly = true
397 sources = [
398 "rtc_event_log/rtc_event_log2rtp_dump.cc",
399 ]
400 deps = [
401 ":rtc_event_log_api",
ivoc54b6e982017-02-08 00:28:09 -0800402 ":rtc_event_log_parser",
Yves Gerey3e707812018-11-28 16:47:49 +0100403 "../api:array_view",
404 "../api:libjingle_peerconnection_api",
Niels Mölleref1052a2019-03-20 08:40:23 +0100405 "../api:rtp_headers",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100406 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100407 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100408 "../rtc_base:checks",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100409 "../rtc_base:protobuf_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700410 "../rtc_base:rtc_base_approved",
ivoc54b6e982017-02-08 00:28:09 -0800411 "../test:rtp_test_utils",
Mirko Bonadeiab0b9d42019-07-08 12:31:59 +0200412 "//third_party/abseil-cpp/absl/flags:flag",
413 "//third_party/abseil-cpp/absl/flags:parse",
Yves Gerey3e707812018-11-28 16:47:49 +0100414 "//third_party/abseil-cpp/absl/memory",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200415 "//third_party/abseil-cpp/absl/types:optional",
ivoc54b6e982017-02-08 00:28:09 -0800416 ]
ivoc54b6e982017-02-08 00:28:09 -0800417 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800418 }
skvladcc91d282016-10-03 18:31:22 -0700419}
Patrik Höglund731082c2018-01-03 09:08:20 +0100420
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800421rtc_source_set("ice_log") {
422 sources = [
Zach Steinc64078f2018-11-27 15:53:01 -0800423 "rtc_event_log/events/rtc_event_dtls_transport_state.cc",
424 "rtc_event_log/events/rtc_event_dtls_transport_state.h",
Zach Stein846dfdf2018-11-29 14:12:17 -0800425 "rtc_event_log/events/rtc_event_dtls_writable_state.cc",
426 "rtc_event_log/events/rtc_event_dtls_writable_state.h",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800427 "rtc_event_log/events/rtc_event_ice_candidate_pair.cc",
428 "rtc_event_log/events/rtc_event_ice_candidate_pair.h",
429 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.cc",
430 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.h",
Steve Anton10542f22019-01-11 09:11:00 -0800431 "rtc_event_log/ice_logger.cc",
432 "rtc_event_log/ice_logger.h",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800433 ]
434
435 deps = [
436 ":rtc_event_log_api",
437 "../api:libjingle_logging_api",
Harald Alvestrand4a7b3ac2019-01-17 10:39:40 +0100438 "../api:libjingle_peerconnection_api",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800439 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200440 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800441 ]
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800442}
443
Patrik Höglund731082c2018-01-03 09:08:20 +0100444if (rtc_include_tests) {
445 rtc_source_set("mocks") {
446 testonly = true
447 sources = [
Danil Chapovalovdd7e2842018-03-09 15:37:03 +0000448 "rtc_event_log/mock/mock_rtc_event_log.cc",
Patrik Höglund731082c2018-01-03 09:08:20 +0100449 "rtc_event_log/mock/mock_rtc_event_log.h",
450 ]
451 deps = [
452 ":rtc_event_log_api",
Oleh Prypinda04e062018-07-23 10:04:12 +0200453 "../test:test_support",
Patrik Höglund731082c2018-01-03 09:08:20 +0100454 ]
455 }
456}