blob: ac0b720f3362cd347bdaca2e69e56a362ece3ca3 [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")
Dan Minor9c686132018-01-15 10:20:00 -050010if (!build_with_mozilla) {
11 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",
22 ":rtc_event_log_impl_base",
23 ":rtc_event_log_impl_encoder",
24 ":rtc_event_log_impl_output",
25 ":rtc_event_pacing",
26 ":rtc_event_rtp_rtcp",
27 ":rtc_event_video",
kjellander6ceab082016-10-28 05:44:03 -070028 ]
kjellander6ceab082016-10-28 05:44:03 -070029}
30
skvladcc91d282016-10-03 18:31:22 -070031rtc_source_set("rtc_event_log_api") {
32 sources = [
Qingsi Wang970b0882018-02-01 11:04:46 -080033 "rtc_event_log/encoder/rtc_event_log_encoder.h",
Elad Alon652cc842017-10-02 11:27:52 +020034 "rtc_event_log/events/rtc_event.h",
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010035 "rtc_event_log/rtc_event_log.cc",
Qingsi Wang970b0882018-02-01 11:04:46 -080036 "rtc_event_log/rtc_event_log.h",
37 "rtc_event_log/rtc_event_log_factory_interface.h",
38 ]
39
40 deps = [
41 "../api:libjingle_logging_api",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +020042 "../rtc_base:ptr_util",
Qingsi Wang970b0882018-02-01 11:04:46 -080043 "../rtc_base:rtc_base_approved",
Dino Radakoviće9d2e4d2018-03-20 18:15:39 +010044 "../rtc_base:rtc_task_queue",
Danil Chapovalov608298b2018-10-18 14:20:44 +020045 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080046 ]
47}
48
49rtc_source_set("rtc_stream_config") {
50 sources = [
51 "rtc_event_log/rtc_stream_config.cc",
52 "rtc_event_log/rtc_stream_config.h",
53 ]
54
55 deps = [
56 ":rtc_event_log_api",
57 "..:webrtc_common",
58 "../api:libjingle_peerconnection_api",
59 ]
60}
61
62rtc_source_set("rtc_event_pacing") {
63 sources = [
Ilya Nikolaevskiya4259f62017-12-05 13:19:45 +010064 "rtc_event_log/events/rtc_event_alr_state.cc",
65 "rtc_event_log/events/rtc_event_alr_state.h",
Qingsi Wang970b0882018-02-01 11:04:46 -080066 ]
67
68 deps = [
69 ":rtc_event_log_api",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +020070 "../rtc_base:ptr_util",
Karl Wiberg918f50c2018-07-05 11:40:33 +020071 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080072 ]
73}
74
75rtc_source_set("rtc_event_audio") {
76 sources = [
Elad Alon652cc842017-10-02 11:27:52 +020077 "rtc_event_log/events/rtc_event_audio_network_adaptation.cc",
78 "rtc_event_log/events/rtc_event_audio_network_adaptation.h",
79 "rtc_event_log/events/rtc_event_audio_playout.cc",
80 "rtc_event_log/events/rtc_event_audio_playout.h",
81 "rtc_event_log/events/rtc_event_audio_receive_stream_config.cc",
82 "rtc_event_log/events/rtc_event_audio_receive_stream_config.h",
83 "rtc_event_log/events/rtc_event_audio_send_stream_config.cc",
84 "rtc_event_log/events/rtc_event_audio_send_stream_config.h",
Qingsi Wang970b0882018-02-01 11:04:46 -080085 ]
86
87 deps = [
88 ":rtc_event_log_api",
89 ":rtc_stream_config",
90 "../modules/audio_coding:audio_network_adaptor_config",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +020091 "../rtc_base:ptr_util",
Karl Wiberg918f50c2018-07-05 11:40:33 +020092 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080093 ]
94}
95
96rtc_source_set("rtc_event_bwe") {
97 sources = [
Elad Alon652cc842017-10-02 11:27:52 +020098 "rtc_event_log/events/rtc_event_bwe_update_delay_based.cc",
99 "rtc_event_log/events/rtc_event_bwe_update_delay_based.h",
100 "rtc_event_log/events/rtc_event_bwe_update_loss_based.cc",
101 "rtc_event_log/events/rtc_event_bwe_update_loss_based.h",
Elad Alon652cc842017-10-02 11:27:52 +0200102 "rtc_event_log/events/rtc_event_probe_cluster_created.cc",
103 "rtc_event_log/events/rtc_event_probe_cluster_created.h",
104 "rtc_event_log/events/rtc_event_probe_result_failure.cc",
105 "rtc_event_log/events/rtc_event_probe_result_failure.h",
106 "rtc_event_log/events/rtc_event_probe_result_success.cc",
107 "rtc_event_log/events/rtc_event_probe_result_success.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800108 ]
109
110 deps = [
111 ":rtc_event_log_api",
112 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200113 "../rtc_base:ptr_util",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200114 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800115 ]
116}
117
118rtc_source_set("rtc_event_rtp_rtcp") {
119 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200120 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.cc",
121 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.h",
122 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.cc",
123 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.h",
124 "rtc_event_log/events/rtc_event_rtp_packet_incoming.cc",
125 "rtc_event_log/events/rtc_event_rtp_packet_incoming.h",
126 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.cc",
127 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800128 ]
129
130 deps = [
131 ":rtc_event_log_api",
132 "../api:array_view",
133 "../modules/rtp_rtcp:rtp_rtcp_format",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200134 "../rtc_base:ptr_util",
Qingsi Wang970b0882018-02-01 11:04:46 -0800135 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200136 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800137 ]
138}
139
140rtc_source_set("rtc_event_video") {
141 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200142 "rtc_event_log/events/rtc_event_video_receive_stream_config.cc",
143 "rtc_event_log/events/rtc_event_video_receive_stream_config.h",
144 "rtc_event_log/events/rtc_event_video_send_stream_config.cc",
145 "rtc_event_log/events/rtc_event_video_send_stream_config.h",
skvladcc91d282016-10-03 18:31:22 -0700146 ]
Elad Alon83ccca12017-10-04 13:18:26 +0200147
kjellander727ac1d2017-03-08 02:12:11 -0800148 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800149 ":rtc_event_log_api",
150 ":rtc_stream_config",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200151 "../rtc_base:ptr_util",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200152 "//third_party/abseil-cpp/absl/memory",
kjellander727ac1d2017-03-08 02:12:11 -0800153 ]
skvladcc91d282016-10-03 18:31:22 -0700154}
155
Qingsi Wang970b0882018-02-01 11:04:46 -0800156rtc_static_library("rtc_event_log_impl_encoder") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000157 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700158 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200159 "rtc_event_log/encoder/blob_encoding.cc",
160 "rtc_event_log/encoder/blob_encoding.h",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200161 "rtc_event_log/encoder/delta_encoding.cc",
162 "rtc_event_log/encoder/delta_encoding.h",
Elad Alon1d87b0e2017-10-03 15:01:03 +0200163 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc",
164 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.h",
skvladcc91d282016-10-03 18:31:22 -0700165 ]
166
167 defines = []
168
169 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800170 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800171 ":rtc_event_audio",
172 ":rtc_event_bwe",
skvladcc91d282016-10-03 18:31:22 -0700173 ":rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800174 ":rtc_event_log_impl_output",
175 ":rtc_event_pacing",
176 ":rtc_event_rtp_rtcp",
177 ":rtc_event_video",
178 ":rtc_stream_config",
minyue4b7c9522017-01-24 04:54:59 -0800179 "../modules/audio_coding:audio_network_adaptor",
michaelt97653702017-04-11 00:49:44 -0700180 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100181 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100182 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700183 "../rtc_base:rtc_base_approved",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200184 "//third_party/abseil-cpp/absl/memory",
Elad Aloncb21ffe2018-10-19 18:30:30 +0200185 "//third_party/abseil-cpp/absl/strings:strings",
skvladcc91d282016-10-03 18:31:22 -0700186 ]
187
188 if (rtc_enable_protobuf) {
189 defines += [ "ENABLE_RTC_EVENT_LOG" ]
190 deps += [ ":rtc_event_log_proto" ]
191 }
skvladcc91d282016-10-03 18:31:22 -0700192}
193
Qingsi Wang970b0882018-02-01 11:04:46 -0800194rtc_source_set("rtc_event_log_impl_output") {
195 sources = [
196 "rtc_event_log/output/rtc_event_log_output_file.cc",
197 "rtc_event_log/output/rtc_event_log_output_file.h",
198 ]
199
200 deps = [
201 ":rtc_event_log_api",
202 "../api:libjingle_logging_api",
203 "../rtc_base:checks",
204 "../rtc_base:rtc_base_approved",
205 ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800206}
207
208rtc_static_library("rtc_event_log_impl_base") {
209 visibility = [ "*" ]
210 sources = [
211 "rtc_event_log/rtc_event_log_factory.cc",
212 "rtc_event_log/rtc_event_log_factory.h",
213 "rtc_event_log/rtc_event_log_impl.cc",
214 ]
215
216 defines = []
217
218 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800219 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800220 ":rtc_event_log_api",
221 ":rtc_event_log_impl_encoder",
222 ":rtc_event_log_impl_output",
223 "../rtc_base:checks",
224 "../rtc_base:rtc_base_approved",
Tommi8d2c5a82018-03-19 11:12:48 +0100225 "../rtc_base:rtc_task_queue",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100226 "../rtc_base:safe_minmax",
Qingsi Wang970b0882018-02-01 11:04:46 -0800227 "../rtc_base:sequenced_task_checker",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200228 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800229 ]
230
231 if (rtc_enable_protobuf) {
232 defines += [ "ENABLE_RTC_EVENT_LOG" ]
233 deps += [ ":rtc_event_log_proto" ]
234 }
Qingsi Wang970b0882018-02-01 11:04:46 -0800235}
236
Qingsi Wang7685e862018-06-11 20:15:46 -0700237rtc_source_set("fake_rtc_event_log") {
238 testonly = true
239 sources = [
240 "rtc_event_log/fake_rtc_event_log.cc",
241 "rtc_event_log/fake_rtc_event_log.h",
242 "rtc_event_log/fake_rtc_event_log_factory.cc",
243 "rtc_event_log/fake_rtc_event_log_factory.h",
244 ]
245
246 deps = [
247 ":ice_log",
248 ":rtc_event_log_api",
249 "../rtc_base:checks",
250 "../rtc_base:rtc_base",
251 ]
252}
253
skvladcc91d282016-10-03 18:31:22 -0700254if (rtc_enable_protobuf) {
255 proto_library("rtc_event_log_proto") {
256 sources = [
257 "rtc_event_log/rtc_event_log.proto",
258 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200259 proto_out_dir = "logging/rtc_event_log"
skvladcc91d282016-10-03 18:31:22 -0700260 }
skvladcc91d282016-10-03 18:31:22 -0700261
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100262 proto_library("rtc_event_log2_proto") {
263 sources = [
264 "rtc_event_log/rtc_event_log2.proto",
265 ]
266 proto_out_dir = "logging/rtc_event_log"
267 }
268
skvladcc91d282016-10-03 18:31:22 -0700269 rtc_static_library("rtc_event_log_parser") {
Bjorn Terelius73df8832018-04-26 14:46:06 +0200270 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700271 sources = [
Björn Tereliusff612732018-04-25 14:23:01 +0000272 "rtc_event_log/rtc_event_log_parser.cc",
273 "rtc_event_log/rtc_event_log_parser.h",
Bjorn Tereliusc4ca1d32018-04-27 14:33:34 +0200274 "rtc_event_log/rtc_event_log_parser_new.cc",
275 "rtc_event_log/rtc_event_log_parser_new.h",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200276 "rtc_event_log/rtc_event_processor.h",
skvladcc91d282016-10-03 18:31:22 -0700277 ]
278
Mirko Bonadei818d9102017-12-12 12:46:13 +0100279 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800280 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800281 ":rtc_event_bwe",
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100282 ":rtc_event_log2_proto",
kjellander727ac1d2017-03-08 02:12:11 -0800283 ":rtc_event_log_api",
skvladcc91d282016-10-03 18:31:22 -0700284 ":rtc_event_log_proto",
Qingsi Wang970b0882018-02-01 11:04:46 -0800285 ":rtc_stream_config",
skvladcc91d282016-10-03 18:31:22 -0700286 "..:webrtc_common",
Bjorn Tereliusc4ca1d32018-04-27 14:33:34 +0200287 "../api:libjingle_peerconnection_api",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100288 "../call:video_stream_api",
michaeltcde46b72017-04-06 05:59:10 -0700289 "../modules/audio_coding:audio_network_adaptor",
Sebastian Janssona39a0072018-10-15 20:59:07 +0200290 "../modules/congestion_controller/rtp:transport_feedback",
michaelt97653702017-04-11 00:49:44 -0700291 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100292 "../modules/rtp_rtcp",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100293 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100294 "../rtc_base:checks",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100295 "../rtc_base:protobuf_utils",
296 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200297 "//third_party/abseil-cpp/absl/memory",
Elad Alon1ac95542018-10-02 13:20:40 +0200298 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700299 ]
skvladcc91d282016-10-03 18:31:22 -0700300 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800301
302 if (rtc_include_tests) {
303 rtc_source_set("rtc_event_log_tests") {
304 testonly = true
Elad Alon1d87b0e2017-10-03 15:01:03 +0200305 assert(rtc_enable_protobuf)
306 defines = [ "ENABLE_RTC_EVENT_LOG" ]
ehmaldonado1fd08c12017-01-17 02:37:34 -0800307 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200308 "rtc_event_log/encoder/blob_encoding_unittest.cc",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200309 "rtc_event_log/encoder/delta_encoding_unittest.cc",
Elad Alon1d87b0e2017-10-03 15:01:03 +0200310 "rtc_event_log/encoder/rtc_event_log_encoder_unittest.cc",
Elad Alon83ccca12017-10-04 13:18:26 +0200311 "rtc_event_log/output/rtc_event_log_output_file_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800312 "rtc_event_log/rtc_event_log_unittest.cc",
313 "rtc_event_log/rtc_event_log_unittest_helper.cc",
eladalonb5c319a2017-08-17 08:32:39 -0700314 "rtc_event_log/rtc_event_log_unittest_helper.h",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200315 "rtc_event_log/rtc_event_processor_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800316 ]
317 deps = [
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200318 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800319 ":rtc_event_audio",
320 ":rtc_event_bwe",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100321 ":rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800322 ":rtc_event_log_impl_base",
323 ":rtc_event_log_impl_encoder",
324 ":rtc_event_log_impl_output",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800325 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100326 ":rtc_event_log_proto",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200327 ":rtc_event_pacing",
Qingsi Wang970b0882018-02-01 11:04:46 -0800328 ":rtc_event_rtp_rtcp",
329 ":rtc_event_video",
330 ":rtc_stream_config",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100331 "../api:libjingle_peerconnection_api",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800332 "../call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100333 "../call:call_interfaces",
michaeltcde46b72017-04-06 05:59:10 -0700334 "../modules/audio_coding:audio_network_adaptor",
michaelt97653702017-04-11 00:49:44 -0700335 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100336 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100337 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700338 "../rtc_base:rtc_base_approved",
339 "../rtc_base:rtc_base_tests_utils",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100340 "../test:fileutils",
kjellander727ac1d2017-03-08 02:12:11 -0800341 "../test:test_support",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800342 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200343 "//third_party/abseil-cpp/absl/memory",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800344 ]
345 if (!build_with_chromium && is_clang) {
346 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
347 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
348 }
349 }
Mirko Bonadei9d764e82018-07-16 15:38:06 +0200350
ivoc54b6e982017-02-08 00:28:09 -0800351 rtc_test("rtc_event_log2rtp_dump") {
352 testonly = true
353 sources = [
354 "rtc_event_log/rtc_event_log2rtp_dump.cc",
355 ]
356 deps = [
357 ":rtc_event_log_api",
ivoc54b6e982017-02-08 00:28:09 -0800358 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100359 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100360 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100361 "../rtc_base:checks",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100362 "../rtc_base:protobuf_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700363 "../rtc_base:rtc_base_approved",
ivoc54b6e982017-02-08 00:28:09 -0800364 "../test:rtp_test_utils",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200365 "//third_party/abseil-cpp/absl/memory:memory",
366 "//third_party/abseil-cpp/absl/types:optional",
ivoc54b6e982017-02-08 00:28:09 -0800367 ]
368 if (!build_with_chromium && is_clang) {
369 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
370 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
371 }
372 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800373 }
Patrik Höglund731082c2018-01-03 09:08:20 +0100374
tereliusd4ed7f52017-02-08 04:22:53 -0800375 if (rtc_include_tests) {
376 rtc_executable("rtc_event_log2text") {
377 testonly = true
378 sources = [
379 "rtc_event_log/rtc_event_log2text.cc",
380 ]
381 deps = [
382 ":rtc_event_log_api",
tereliusd4ed7f52017-02-08 04:22:53 -0800383 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100384 "../:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200385 "../call:video_stream_api",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100386 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100387 "../rtc_base:checks",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100388 "../rtc_base:protobuf_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700389 "../rtc_base:rtc_base_approved",
Bjorn Tereliusc4ca1d32018-04-27 14:33:34 +0200390 "../rtc_base:stringutils",
tereliusbb46b952017-02-08 09:37:30 -0800391
392 # TODO(kwiberg): Remove this dependency.
kwiberg087bd342017-02-10 08:15:44 -0800393 "../api/audio_codecs:audio_codecs_api",
Elad Alona96fd7f2017-09-15 16:13:21 +0200394 "../modules/audio_coding:audio_network_adaptor_config",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100395 "../modules/rtp_rtcp",
tereliusd4ed7f52017-02-08 04:22:53 -0800396 ]
397 if (!build_with_chromium && is_clang) {
398 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
399 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
400 }
401 }
402 }
tereliusee37e862017-04-28 07:48:17 -0700403 if (rtc_include_tests) {
404 rtc_executable("rtc_event_log2stats") {
405 testonly = true
406 sources = [
407 "rtc_event_log/rtc_event_log2stats.cc",
408 ]
409 deps = [
410 ":rtc_event_log_api",
tereliusee37e862017-04-28 07:48:17 -0700411 ":rtc_event_log_proto",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100412 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700413 "../rtc_base:rtc_base_approved",
tereliusee37e862017-04-28 07:48:17 -0700414 ]
tereliusee37e862017-04-28 07:48:17 -0700415 }
416 }
skvladcc91d282016-10-03 18:31:22 -0700417}
Patrik Höglund731082c2018-01-03 09:08:20 +0100418
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800419rtc_source_set("ice_log") {
420 sources = [
421 "rtc_event_log/events/rtc_event_ice_candidate_pair.cc",
422 "rtc_event_log/events/rtc_event_ice_candidate_pair.h",
423 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.cc",
424 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.h",
425 "rtc_event_log/icelogger.cc",
426 "rtc_event_log/icelogger.h",
427 ]
428
429 deps = [
430 ":rtc_event_log_api",
431 "../api:libjingle_logging_api",
432 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200433 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800434 ]
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800435}
436
Patrik Höglund731082c2018-01-03 09:08:20 +0100437if (rtc_include_tests) {
438 rtc_source_set("mocks") {
439 testonly = true
440 sources = [
Danil Chapovalovdd7e2842018-03-09 15:37:03 +0000441 "rtc_event_log/mock/mock_rtc_event_log.cc",
Patrik Höglund731082c2018-01-03 09:08:20 +0100442 "rtc_event_log/mock/mock_rtc_event_log.h",
443 ]
444 deps = [
445 ":rtc_event_log_api",
Oleh Prypinda04e062018-07-23 10:04:12 +0200446 "../test:test_support",
Patrik Höglund731082c2018-01-03 09:08:20 +0100447 ]
448 }
449}