blob: 190b411b62ecbe8fd73a27c7bd42cfce3bac8705 [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",
Qingsi Wang970b0882018-02-01 11:04:46 -080032 ]
33
34 deps = [
Danil Chapovalovb32f2c72019-05-22 13:39:25 +020035 "../api/rtc_event_log",
Qingsi Wang970b0882018-02-01 11:04:46 -080036 ]
37}
38
39rtc_source_set("rtc_stream_config") {
40 sources = [
41 "rtc_event_log/rtc_stream_config.cc",
42 "rtc_event_log/rtc_stream_config.h",
43 ]
44
45 deps = [
Niels Mölleref1052a2019-03-20 08:40:23 +010046 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +020047 "../api:rtp_parameters",
Qingsi Wang970b0882018-02-01 11:04:46 -080048 ]
49}
50
51rtc_source_set("rtc_event_pacing") {
52 sources = [
Ilya Nikolaevskiya4259f62017-12-05 13:19:45 +010053 "rtc_event_log/events/rtc_event_alr_state.cc",
54 "rtc_event_log/events/rtc_event_alr_state.h",
Qingsi Wang970b0882018-02-01 11:04:46 -080055 ]
56
57 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +010058 "../api:scoped_refptr",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +020059 "../api/rtc_event_log",
Karl Wiberg918f50c2018-07-05 11:40:33 +020060 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080061 ]
62}
63
64rtc_source_set("rtc_event_audio") {
65 sources = [
Elad Alon652cc842017-10-02 11:27:52 +020066 "rtc_event_log/events/rtc_event_audio_network_adaptation.cc",
67 "rtc_event_log/events/rtc_event_audio_network_adaptation.h",
68 "rtc_event_log/events/rtc_event_audio_playout.cc",
69 "rtc_event_log/events/rtc_event_audio_playout.h",
70 "rtc_event_log/events/rtc_event_audio_receive_stream_config.cc",
71 "rtc_event_log/events/rtc_event_audio_receive_stream_config.h",
72 "rtc_event_log/events/rtc_event_audio_send_stream_config.cc",
73 "rtc_event_log/events/rtc_event_audio_send_stream_config.h",
Qingsi Wang970b0882018-02-01 11:04:46 -080074 ]
75
76 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -080077 ":rtc_stream_config",
Mirko Bonadeid9708072019-01-25 20:26:48 +010078 "../api:scoped_refptr",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +020079 "../api/rtc_event_log",
Qingsi Wang970b0882018-02-01 11:04:46 -080080 "../modules/audio_coding:audio_network_adaptor_config",
Elad Alon0b1b5c12018-11-09 21:50:14 +010081 "../rtc_base:checks",
Karl Wiberg918f50c2018-07-05 11:40:33 +020082 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080083 ]
84}
85
86rtc_source_set("rtc_event_bwe") {
87 sources = [
Elad Alon652cc842017-10-02 11:27:52 +020088 "rtc_event_log/events/rtc_event_bwe_update_delay_based.cc",
89 "rtc_event_log/events/rtc_event_bwe_update_delay_based.h",
90 "rtc_event_log/events/rtc_event_bwe_update_loss_based.cc",
91 "rtc_event_log/events/rtc_event_bwe_update_loss_based.h",
Elad Alon652cc842017-10-02 11:27:52 +020092 "rtc_event_log/events/rtc_event_probe_cluster_created.cc",
93 "rtc_event_log/events/rtc_event_probe_cluster_created.h",
94 "rtc_event_log/events/rtc_event_probe_result_failure.cc",
95 "rtc_event_log/events/rtc_event_probe_result_failure.h",
96 "rtc_event_log/events/rtc_event_probe_result_success.cc",
97 "rtc_event_log/events/rtc_event_probe_result_success.h",
Sebastian Jansson166b45d2019-05-13 11:57:42 +020098 "rtc_event_log/events/rtc_event_route_change.cc",
99 "rtc_event_log/events/rtc_event_route_change.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800100 ]
101
102 deps = [
Mirko Bonadeid9708072019-01-25 20:26:48 +0100103 "../api:scoped_refptr",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +0200104 "../api/rtc_event_log",
Artem Titov94b57c02019-03-21 13:35:10 +0100105 "../modules/remote_bitrate_estimator",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200106 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800107 ]
108}
109
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800110rtc_source_set("rtc_event_generic_packet_events") {
111 visibility = [ "*" ]
112 sources = [
113 "rtc_event_log/events/rtc_event_generic_ack_received.cc",
114 "rtc_event_log/events/rtc_event_generic_ack_received.h",
115 "rtc_event_log/events/rtc_event_generic_packet_received.cc",
116 "rtc_event_log/events/rtc_event_generic_packet_received.h",
117 "rtc_event_log/events/rtc_event_generic_packet_sent.cc",
118 "rtc_event_log/events/rtc_event_generic_packet_sent.h",
119 ]
120 deps = [
Danil Chapovalov16cb1f62019-09-05 11:29:59 +0200121 "../api/rtc_event_log",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200122 "../rtc_base:timeutils",
tzik8aa00f02019-02-18 22:28:26 +0900123 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200124 "//third_party/abseil-cpp/absl/types:optional",
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800125 ]
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800126}
127
Qingsi Wang970b0882018-02-01 11:04:46 -0800128rtc_source_set("rtc_event_rtp_rtcp") {
129 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200130 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.cc",
131 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.h",
132 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.cc",
133 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.h",
134 "rtc_event_log/events/rtc_event_rtp_packet_incoming.cc",
135 "rtc_event_log/events/rtc_event_rtp_packet_incoming.h",
136 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.cc",
137 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800138 ]
139
140 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800141 "../api:array_view",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100142 "../api:scoped_refptr",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +0200143 "../api/rtc_event_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800144 "../modules/rtp_rtcp:rtp_rtcp_format",
Elad Alon0b1b5c12018-11-09 21:50:14 +0100145 "../rtc_base:checks",
Qingsi Wang970b0882018-02-01 11:04:46 -0800146 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200147 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800148 ]
149}
150
151rtc_source_set("rtc_event_video") {
152 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200153 "rtc_event_log/events/rtc_event_video_receive_stream_config.cc",
154 "rtc_event_log/events/rtc_event_video_receive_stream_config.h",
155 "rtc_event_log/events/rtc_event_video_send_stream_config.cc",
156 "rtc_event_log/events/rtc_event_video_send_stream_config.h",
skvladcc91d282016-10-03 18:31:22 -0700157 ]
Elad Alon83ccca12017-10-04 13:18:26 +0200158
kjellander727ac1d2017-03-08 02:12:11 -0800159 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800160 ":rtc_stream_config",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100161 "../api:scoped_refptr",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +0200162 "../api/rtc_event_log",
Elad Alon0b1b5c12018-11-09 21:50:14 +0100163 "../rtc_base:checks",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200164 "//third_party/abseil-cpp/absl/memory",
kjellander727ac1d2017-03-08 02:12:11 -0800165 ]
skvladcc91d282016-10-03 18:31:22 -0700166}
167
Elad Alond95b0a22018-11-09 16:38:54 +0100168# TODO(eladalon): Break down into (1) encoder and (2) decoder; we don't need
169# the decoder code in the WebRTC library, only in unit tests and tools.
Qingsi Wang970b0882018-02-01 11:04:46 -0800170rtc_static_library("rtc_event_log_impl_encoder") {
skvladcc91d282016-10-03 18:31:22 -0700171 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200172 "rtc_event_log/encoder/blob_encoding.cc",
173 "rtc_event_log/encoder/blob_encoding.h",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200174 "rtc_event_log/encoder/delta_encoding.cc",
175 "rtc_event_log/encoder/delta_encoding.h",
Elad Alond95b0a22018-11-09 16:38:54 +0100176 "rtc_event_log/encoder/rtc_event_log_encoder_common.cc",
177 "rtc_event_log/encoder/rtc_event_log_encoder_common.h",
Steve Anton10542f22019-01-11 09:11:00 -0800178 "rtc_event_log/encoder/var_int.cc",
179 "rtc_event_log/encoder/var_int.h",
skvladcc91d282016-10-03 18:31:22 -0700180 ]
181
182 defines = []
183
184 deps = [
Niels Mölleref1052a2019-03-20 08:40:23 +0100185 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200186 "../api:rtp_parameters",
Yves Gerey3e707812018-11-28 16:47:49 +0100187 "../api/transport:network_control",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100188 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700189 "../rtc_base:rtc_base_approved",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200190 "//third_party/abseil-cpp/absl/memory",
Artem Titov94b57c02019-03-21 13:35:10 +0100191 "//third_party/abseil-cpp/absl/strings",
Elad Alon73f39172018-10-23 18:24:10 +0200192 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700193 ]
194
195 if (rtc_enable_protobuf) {
196 defines += [ "ENABLE_RTC_EVENT_LOG" ]
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200197 deps += [
198 ":ice_log",
199 ":rtc_event_audio",
200 ":rtc_event_bwe",
Piotr (Peter) Slatalaf6adac82019-02-08 10:31:35 -0800201 ":rtc_event_generic_packet_events",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200202 ":rtc_event_log2_proto",
203 ":rtc_event_log_api",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200204 ":rtc_event_log_proto",
205 ":rtc_event_pacing",
206 ":rtc_event_rtp_rtcp",
207 ":rtc_event_video",
208 ":rtc_stream_config",
209 "../api:array_view",
210 "../modules/audio_coding:audio_network_adaptor",
Artem Titov94b57c02019-03-21 13:35:10 +0100211 "../modules/remote_bitrate_estimator",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200212 "../modules/rtp_rtcp:rtp_rtcp_format",
213 ]
214 sources += [
215 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc",
216 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.h",
217 "rtc_event_log/encoder/rtc_event_log_encoder_new_format.cc",
218 "rtc_event_log/encoder/rtc_event_log_encoder_new_format.h",
219 ]
skvladcc91d282016-10-03 18:31:22 -0700220 }
skvladcc91d282016-10-03 18:31:22 -0700221}
222
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200223# TODO(bugs.webrtc.org/6463): For backwards compatibility; delete as
224# soon as downstream dependencies are updated.
Qingsi Wang970b0882018-02-01 11:04:46 -0800225rtc_source_set("rtc_event_log_impl_output") {
226 sources = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800227 "rtc_event_log/output/rtc_event_log_output_file.h",
228 ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800229 deps = [
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200230 "../api:rtc_event_log_output_file",
Qingsi Wang970b0882018-02-01 11:04:46 -0800231 ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800232}
233
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200234if (rtc_enable_protobuf) {
235 rtc_source_set("rtc_event_log_impl") {
236 visibility = [ "../api/rtc_event_log:rtc_event_log_factory" ]
237 sources = [
238 "rtc_event_log/rtc_event_log_impl.cc",
239 "rtc_event_log/rtc_event_log_impl.h",
240 ]
241 deps = [
242 ":ice_log",
243 ":rtc_event_log_api",
244 ":rtc_event_log_impl_encoder",
245 "../api:libjingle_logging_api",
246 "../api/rtc_event_log",
247 "../api/task_queue",
248 "../rtc_base:checks",
249 "../rtc_base:rtc_base_approved",
250 "../rtc_base:rtc_task_queue",
251 "../rtc_base:safe_minmax",
252 "../rtc_base/synchronization:sequence_checker",
Danil Chapovalovb32f2c72019-05-22 13:39:25 +0200253 "//third_party/abseil-cpp/absl/types:optional",
254 ]
255 }
256}
257
Qingsi Wang7685e862018-06-11 20:15:46 -0700258rtc_source_set("fake_rtc_event_log") {
259 testonly = true
260 sources = [
261 "rtc_event_log/fake_rtc_event_log.cc",
262 "rtc_event_log/fake_rtc_event_log.h",
263 "rtc_event_log/fake_rtc_event_log_factory.cc",
264 "rtc_event_log/fake_rtc_event_log_factory.h",
265 ]
266
267 deps = [
268 ":ice_log",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200269 "../api/rtc_event_log",
Artem Titov94b57c02019-03-21 13:35:10 +0100270 "../rtc_base",
Qingsi Wang7685e862018-06-11 20:15:46 -0700271 "../rtc_base:checks",
Qingsi Wang7685e862018-06-11 20:15:46 -0700272 ]
273}
274
skvladcc91d282016-10-03 18:31:22 -0700275if (rtc_enable_protobuf) {
276 proto_library("rtc_event_log_proto") {
Mirko Bonadeid4746722018-11-19 12:00:51 +0100277 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700278 sources = [
279 "rtc_event_log/rtc_event_log.proto",
280 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200281 proto_out_dir = "logging/rtc_event_log"
skvladcc91d282016-10-03 18:31:22 -0700282 }
skvladcc91d282016-10-03 18:31:22 -0700283
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100284 proto_library("rtc_event_log2_proto") {
Mirko Bonadeid4746722018-11-19 12:00:51 +0100285 visibility = [ "*" ]
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100286 sources = [
287 "rtc_event_log/rtc_event_log2.proto",
288 ]
289 proto_out_dir = "logging/rtc_event_log"
290 }
291
skvladcc91d282016-10-03 18:31:22 -0700292 rtc_static_library("rtc_event_log_parser") {
Bjorn Terelius73df8832018-04-26 14:46:06 +0200293 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700294 sources = [
Sebastian Jansson7e4341d2019-01-22 08:42:27 +0100295 "rtc_event_log/logged_events.cc",
Sebastian Jansson3f2b9aa2019-01-03 14:42:15 +0100296 "rtc_event_log/logged_events.h",
Sebastian Janssonb290a6d2019-01-03 14:46:23 +0100297 "rtc_event_log/rtc_event_log_parser.cc",
298 "rtc_event_log/rtc_event_log_parser.h",
Sebastian Jansson03fbf1e2019-01-08 15:31:06 +0100299 "rtc_event_log/rtc_event_processor.cc",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200300 "rtc_event_log/rtc_event_processor.h",
skvladcc91d282016-10-03 18:31:22 -0700301 ]
302
Mirko Bonadei818d9102017-12-12 12:46:13 +0100303 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800304 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800305 ":rtc_event_bwe",
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100306 ":rtc_event_log2_proto",
Elad Alond95b0a22018-11-09 16:38:54 +0100307 ":rtc_event_log_impl_encoder",
skvladcc91d282016-10-03 18:31:22 -0700308 ":rtc_event_log_proto",
Qingsi Wang970b0882018-02-01 11:04:46 -0800309 ":rtc_stream_config",
Artem Titov741daaf2019-03-21 14:37:36 +0100310 "../api:function_view",
Niels Mölleref1052a2019-03-20 08:40:23 +0100311 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200312 "../api:rtp_parameters",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200313 "../api/rtc_event_log",
Sebastian Jansson7e4341d2019-01-22 08:42:27 +0100314 "../api/units:data_rate",
315 "../api/units:time_delta",
316 "../api/units:timestamp",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100317 "../call:video_stream_api",
Sebastian Janssonb4686162019-05-02 17:07:22 +0200318 "../modules:module_api",
michaeltcde46b72017-04-06 05:59:10 -0700319 "../modules/audio_coding:audio_network_adaptor",
Artem Titov94b57c02019-03-21 13:35:10 +0100320 "../modules/remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100321 "../modules/rtp_rtcp",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100322 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100323 "../rtc_base:checks",
Sebastian Janssonb290a6d2019-01-03 14:46:23 +0100324 "../rtc_base:deprecation",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100325 "../rtc_base:protobuf_utils",
326 "../rtc_base:rtc_base_approved",
Sebastian Jansson7e4341d2019-01-22 08:42:27 +0100327 "../rtc_base:rtc_numerics",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200328 "//third_party/abseil-cpp/absl/memory",
Elad Alon1ac95542018-10-02 13:20:40 +0200329 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700330 ]
skvladcc91d282016-10-03 18:31:22 -0700331 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800332
333 if (rtc_include_tests) {
334 rtc_source_set("rtc_event_log_tests") {
335 testonly = true
Elad Alon1d87b0e2017-10-03 15:01:03 +0200336 assert(rtc_enable_protobuf)
337 defines = [ "ENABLE_RTC_EVENT_LOG" ]
ehmaldonado1fd08c12017-01-17 02:37:34 -0800338 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200339 "rtc_event_log/encoder/blob_encoding_unittest.cc",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200340 "rtc_event_log/encoder/delta_encoding_unittest.cc",
Elad Alond95b0a22018-11-09 16:38:54 +0100341 "rtc_event_log/encoder/rtc_event_log_encoder_common_unittest.cc",
Elad Alon1d87b0e2017-10-03 15:01:03 +0200342 "rtc_event_log/encoder/rtc_event_log_encoder_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800343 "rtc_event_log/rtc_event_log_unittest.cc",
344 "rtc_event_log/rtc_event_log_unittest_helper.cc",
eladalonb5c319a2017-08-17 08:32:39 -0700345 "rtc_event_log/rtc_event_log_unittest_helper.h",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200346 "rtc_event_log/rtc_event_processor_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800347 ]
348 deps = [
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200349 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800350 ":rtc_event_audio",
351 ":rtc_event_bwe",
Piotr (Peter) Slatala5e2aad12019-02-13 07:49:30 -0800352 ":rtc_event_generic_packet_events",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200353 ":rtc_event_log2_proto",
Qingsi Wang970b0882018-02-01 11:04:46 -0800354 ":rtc_event_log_impl_encoder",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800355 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100356 ":rtc_event_log_proto",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200357 ":rtc_event_pacing",
Qingsi Wang970b0882018-02-01 11:04:46 -0800358 ":rtc_event_rtp_rtcp",
359 ":rtc_event_video",
360 ":rtc_stream_config",
Yves Gerey3e707812018-11-28 16:47:49 +0100361 "../api:array_view",
Niels Möllerd8b9ed72019-05-08 13:53:51 +0200362 "../api:rtc_event_log_output_file",
Niels Mölleref1052a2019-03-20 08:40:23 +0100363 "../api:rtp_headers",
Niels Möller6dcd4dc2019-08-26 10:45:28 +0200364 "../api:rtp_parameters",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200365 "../api/rtc_event_log",
Danil Chapovalov4ba04b72019-06-26 15:49:47 +0200366 "../api/rtc_event_log:rtc_event_log_factory",
Danil Chapovalov304ea5f2019-04-11 15:18:18 +0200367 "../api/task_queue:default_task_queue_factory",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800368 "../call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100369 "../call:call_interfaces",
michaeltcde46b72017-04-06 05:59:10 -0700370 "../modules/audio_coding:audio_network_adaptor",
Artem Titov94b57c02019-03-21 13:35:10 +0100371 "../modules/remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100372 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100373 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700374 "../rtc_base:rtc_base_approved",
375 "../rtc_base:rtc_base_tests_utils",
Artem Titov94b57c02019-03-21 13:35:10 +0100376 "../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100377 "../test:fileutils",
kjellander727ac1d2017-03-08 02:12:11 -0800378 "../test:test_support",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800379 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200380 "//third_party/abseil-cpp/absl/memory",
Yves Gerey69807e82018-10-30 22:23:02 +0100381 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800382 ]
ehmaldonado1fd08c12017-01-17 02:37:34 -0800383 }
Mirko Bonadei9d764e82018-07-16 15:38:06 +0200384
Mirko Bonadeiab0b9d42019-07-08 12:31:59 +0200385 rtc_executable("rtc_event_log_rtp_dump") {
ivoc54b6e982017-02-08 00:28:09 -0800386 testonly = true
387 sources = [
388 "rtc_event_log/rtc_event_log2rtp_dump.cc",
389 ]
390 deps = [
ivoc54b6e982017-02-08 00:28:09 -0800391 ":rtc_event_log_parser",
Yves Gerey3e707812018-11-28 16:47:49 +0100392 "../api:array_view",
Niels Mölleref1052a2019-03-20 08:40:23 +0100393 "../api:rtp_headers",
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200394 "../api/rtc_event_log",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100395 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100396 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100397 "../rtc_base:checks",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100398 "../rtc_base:protobuf_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700399 "../rtc_base:rtc_base_approved",
ivoc54b6e982017-02-08 00:28:09 -0800400 "../test:rtp_test_utils",
Mirko Bonadeiab0b9d42019-07-08 12:31:59 +0200401 "//third_party/abseil-cpp/absl/flags:flag",
402 "//third_party/abseil-cpp/absl/flags:parse",
Mirko Bonadeif24729b2019-07-19 12:05:09 +0200403 "//third_party/abseil-cpp/absl/flags:usage",
Yves Gerey3e707812018-11-28 16:47:49 +0100404 "//third_party/abseil-cpp/absl/memory",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200405 "//third_party/abseil-cpp/absl/types:optional",
ivoc54b6e982017-02-08 00:28:09 -0800406 ]
ivoc54b6e982017-02-08 00:28:09 -0800407 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800408 }
skvladcc91d282016-10-03 18:31:22 -0700409}
Patrik Höglund731082c2018-01-03 09:08:20 +0100410
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800411rtc_source_set("ice_log") {
412 sources = [
Zach Steinc64078f2018-11-27 15:53:01 -0800413 "rtc_event_log/events/rtc_event_dtls_transport_state.cc",
414 "rtc_event_log/events/rtc_event_dtls_transport_state.h",
Zach Stein846dfdf2018-11-29 14:12:17 -0800415 "rtc_event_log/events/rtc_event_dtls_writable_state.cc",
416 "rtc_event_log/events/rtc_event_dtls_writable_state.h",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800417 "rtc_event_log/events/rtc_event_ice_candidate_pair.cc",
418 "rtc_event_log/events/rtc_event_ice_candidate_pair.h",
419 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.cc",
420 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.h",
Steve Anton10542f22019-01-11 09:11:00 -0800421 "rtc_event_log/ice_logger.cc",
422 "rtc_event_log/ice_logger.h",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800423 ]
424
425 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800426 "../api:libjingle_logging_api",
Danil Chapovalov16cb1f62019-09-05 11:29:59 +0200427 "../api:libjingle_peerconnection_api", # For api/dtls_transport_interface.h
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200428 "../api/rtc_event_log",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800429 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200430 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800431 ]
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800432}
433
Patrik Höglund731082c2018-01-03 09:08:20 +0100434if (rtc_include_tests) {
435 rtc_source_set("mocks") {
436 testonly = true
437 sources = [
Danil Chapovalovdd7e2842018-03-09 15:37:03 +0000438 "rtc_event_log/mock/mock_rtc_event_log.cc",
Patrik Höglund731082c2018-01-03 09:08:20 +0100439 "rtc_event_log/mock/mock_rtc_event_log.h",
440 ]
441 deps = [
Danil Chapovalov83bbe912019-08-07 12:24:53 +0200442 "../api/rtc_event_log",
Oleh Prypinda04e062018-07-23 10:04:12 +0200443 "../test:test_support",
Patrik Höglund731082c2018-01-03 09:08:20 +0100444 ]
445 }
446}