blob: 571ddf8c3022ff15d3b775c6caab49dfcddcac4d [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",
Elad Alon73f39172018-10-23 18:24:10 +0200186 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700187 ]
188
189 if (rtc_enable_protobuf) {
190 defines += [ "ENABLE_RTC_EVENT_LOG" ]
191 deps += [ ":rtc_event_log_proto" ]
192 }
skvladcc91d282016-10-03 18:31:22 -0700193}
194
Qingsi Wang970b0882018-02-01 11:04:46 -0800195rtc_source_set("rtc_event_log_impl_output") {
196 sources = [
197 "rtc_event_log/output/rtc_event_log_output_file.cc",
198 "rtc_event_log/output/rtc_event_log_output_file.h",
199 ]
200
201 deps = [
202 ":rtc_event_log_api",
203 "../api:libjingle_logging_api",
204 "../rtc_base:checks",
205 "../rtc_base:rtc_base_approved",
206 ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800207}
208
209rtc_static_library("rtc_event_log_impl_base") {
210 visibility = [ "*" ]
211 sources = [
212 "rtc_event_log/rtc_event_log_factory.cc",
213 "rtc_event_log/rtc_event_log_factory.h",
214 "rtc_event_log/rtc_event_log_impl.cc",
215 ]
216
217 defines = []
218
219 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800220 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800221 ":rtc_event_log_api",
222 ":rtc_event_log_impl_encoder",
223 ":rtc_event_log_impl_output",
224 "../rtc_base:checks",
225 "../rtc_base:rtc_base_approved",
Tommi8d2c5a82018-03-19 11:12:48 +0100226 "../rtc_base:rtc_task_queue",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100227 "../rtc_base:safe_minmax",
Qingsi Wang970b0882018-02-01 11:04:46 -0800228 "../rtc_base:sequenced_task_checker",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200229 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800230 ]
231
232 if (rtc_enable_protobuf) {
233 defines += [ "ENABLE_RTC_EVENT_LOG" ]
234 deps += [ ":rtc_event_log_proto" ]
235 }
Qingsi Wang970b0882018-02-01 11:04:46 -0800236}
237
Qingsi Wang7685e862018-06-11 20:15:46 -0700238rtc_source_set("fake_rtc_event_log") {
239 testonly = true
240 sources = [
241 "rtc_event_log/fake_rtc_event_log.cc",
242 "rtc_event_log/fake_rtc_event_log.h",
243 "rtc_event_log/fake_rtc_event_log_factory.cc",
244 "rtc_event_log/fake_rtc_event_log_factory.h",
245 ]
246
247 deps = [
248 ":ice_log",
249 ":rtc_event_log_api",
250 "../rtc_base:checks",
251 "../rtc_base:rtc_base",
252 ]
253}
254
skvladcc91d282016-10-03 18:31:22 -0700255if (rtc_enable_protobuf) {
256 proto_library("rtc_event_log_proto") {
257 sources = [
258 "rtc_event_log/rtc_event_log.proto",
259 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200260 proto_out_dir = "logging/rtc_event_log"
skvladcc91d282016-10-03 18:31:22 -0700261 }
skvladcc91d282016-10-03 18:31:22 -0700262
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100263 proto_library("rtc_event_log2_proto") {
264 sources = [
265 "rtc_event_log/rtc_event_log2.proto",
266 ]
267 proto_out_dir = "logging/rtc_event_log"
268 }
269
skvladcc91d282016-10-03 18:31:22 -0700270 rtc_static_library("rtc_event_log_parser") {
Bjorn Terelius73df8832018-04-26 14:46:06 +0200271 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700272 sources = [
Björn Tereliusff612732018-04-25 14:23:01 +0000273 "rtc_event_log/rtc_event_log_parser.cc",
274 "rtc_event_log/rtc_event_log_parser.h",
Bjorn Tereliusc4ca1d32018-04-27 14:33:34 +0200275 "rtc_event_log/rtc_event_log_parser_new.cc",
276 "rtc_event_log/rtc_event_log_parser_new.h",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200277 "rtc_event_log/rtc_event_processor.h",
skvladcc91d282016-10-03 18:31:22 -0700278 ]
279
Mirko Bonadei818d9102017-12-12 12:46:13 +0100280 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800281 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800282 ":rtc_event_bwe",
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100283 ":rtc_event_log2_proto",
kjellander727ac1d2017-03-08 02:12:11 -0800284 ":rtc_event_log_api",
skvladcc91d282016-10-03 18:31:22 -0700285 ":rtc_event_log_proto",
Qingsi Wang970b0882018-02-01 11:04:46 -0800286 ":rtc_stream_config",
skvladcc91d282016-10-03 18:31:22 -0700287 "..:webrtc_common",
Bjorn Tereliusc4ca1d32018-04-27 14:33:34 +0200288 "../api:libjingle_peerconnection_api",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100289 "../call:video_stream_api",
michaeltcde46b72017-04-06 05:59:10 -0700290 "../modules/audio_coding:audio_network_adaptor",
Sebastian Janssona39a0072018-10-15 20:59:07 +0200291 "../modules/congestion_controller/rtp:transport_feedback",
michaelt97653702017-04-11 00:49:44 -0700292 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100293 "../modules/rtp_rtcp",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100294 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100295 "../rtc_base:checks",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100296 "../rtc_base:protobuf_utils",
297 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200298 "//third_party/abseil-cpp/absl/memory",
Elad Alon1ac95542018-10-02 13:20:40 +0200299 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700300 ]
skvladcc91d282016-10-03 18:31:22 -0700301 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800302
303 if (rtc_include_tests) {
304 rtc_source_set("rtc_event_log_tests") {
305 testonly = true
Elad Alon1d87b0e2017-10-03 15:01:03 +0200306 assert(rtc_enable_protobuf)
307 defines = [ "ENABLE_RTC_EVENT_LOG" ]
ehmaldonado1fd08c12017-01-17 02:37:34 -0800308 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200309 "rtc_event_log/encoder/blob_encoding_unittest.cc",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200310 "rtc_event_log/encoder/delta_encoding_unittest.cc",
Elad Alon1d87b0e2017-10-03 15:01:03 +0200311 "rtc_event_log/encoder/rtc_event_log_encoder_unittest.cc",
Elad Alon83ccca12017-10-04 13:18:26 +0200312 "rtc_event_log/output/rtc_event_log_output_file_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800313 "rtc_event_log/rtc_event_log_unittest.cc",
314 "rtc_event_log/rtc_event_log_unittest_helper.cc",
eladalonb5c319a2017-08-17 08:32:39 -0700315 "rtc_event_log/rtc_event_log_unittest_helper.h",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200316 "rtc_event_log/rtc_event_processor_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800317 ]
318 deps = [
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200319 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800320 ":rtc_event_audio",
321 ":rtc_event_bwe",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100322 ":rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800323 ":rtc_event_log_impl_base",
324 ":rtc_event_log_impl_encoder",
325 ":rtc_event_log_impl_output",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800326 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100327 ":rtc_event_log_proto",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200328 ":rtc_event_pacing",
Qingsi Wang970b0882018-02-01 11:04:46 -0800329 ":rtc_event_rtp_rtcp",
330 ":rtc_event_video",
331 ":rtc_stream_config",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100332 "../api:libjingle_peerconnection_api",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800333 "../call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100334 "../call:call_interfaces",
michaeltcde46b72017-04-06 05:59:10 -0700335 "../modules/audio_coding:audio_network_adaptor",
michaelt97653702017-04-11 00:49:44 -0700336 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100337 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100338 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700339 "../rtc_base:rtc_base_approved",
340 "../rtc_base:rtc_base_tests_utils",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100341 "../test:fileutils",
kjellander727ac1d2017-03-08 02:12:11 -0800342 "../test:test_support",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800343 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200344 "//third_party/abseil-cpp/absl/memory",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800345 ]
346 if (!build_with_chromium && is_clang) {
347 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
348 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
349 }
350 }
Mirko Bonadei9d764e82018-07-16 15:38:06 +0200351
ivoc54b6e982017-02-08 00:28:09 -0800352 rtc_test("rtc_event_log2rtp_dump") {
353 testonly = true
354 sources = [
355 "rtc_event_log/rtc_event_log2rtp_dump.cc",
356 ]
357 deps = [
358 ":rtc_event_log_api",
ivoc54b6e982017-02-08 00:28:09 -0800359 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100360 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100361 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100362 "../rtc_base:checks",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100363 "../rtc_base:protobuf_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700364 "../rtc_base:rtc_base_approved",
ivoc54b6e982017-02-08 00:28:09 -0800365 "../test:rtp_test_utils",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200366 "//third_party/abseil-cpp/absl/memory:memory",
367 "//third_party/abseil-cpp/absl/types:optional",
ivoc54b6e982017-02-08 00:28:09 -0800368 ]
369 if (!build_with_chromium && is_clang) {
370 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
371 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
372 }
373 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800374 }
Patrik Höglund731082c2018-01-03 09:08:20 +0100375
tereliusd4ed7f52017-02-08 04:22:53 -0800376 if (rtc_include_tests) {
377 rtc_executable("rtc_event_log2text") {
378 testonly = true
379 sources = [
380 "rtc_event_log/rtc_event_log2text.cc",
381 ]
382 deps = [
383 ":rtc_event_log_api",
tereliusd4ed7f52017-02-08 04:22:53 -0800384 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100385 "../:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +0200386 "../call:video_stream_api",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100387 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100388 "../rtc_base:checks",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100389 "../rtc_base:protobuf_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700390 "../rtc_base:rtc_base_approved",
Bjorn Tereliusc4ca1d32018-04-27 14:33:34 +0200391 "../rtc_base:stringutils",
tereliusbb46b952017-02-08 09:37:30 -0800392
393 # TODO(kwiberg): Remove this dependency.
kwiberg087bd342017-02-10 08:15:44 -0800394 "../api/audio_codecs:audio_codecs_api",
Elad Alona96fd7f2017-09-15 16:13:21 +0200395 "../modules/audio_coding:audio_network_adaptor_config",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100396 "../modules/rtp_rtcp",
tereliusd4ed7f52017-02-08 04:22:53 -0800397 ]
398 if (!build_with_chromium && is_clang) {
399 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
400 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
401 }
402 }
403 }
tereliusee37e862017-04-28 07:48:17 -0700404 if (rtc_include_tests) {
405 rtc_executable("rtc_event_log2stats") {
406 testonly = true
407 sources = [
408 "rtc_event_log/rtc_event_log2stats.cc",
409 ]
410 deps = [
411 ":rtc_event_log_api",
tereliusee37e862017-04-28 07:48:17 -0700412 ":rtc_event_log_proto",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100413 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700414 "../rtc_base:rtc_base_approved",
tereliusee37e862017-04-28 07:48:17 -0700415 ]
tereliusee37e862017-04-28 07:48:17 -0700416 }
417 }
skvladcc91d282016-10-03 18:31:22 -0700418}
Patrik Höglund731082c2018-01-03 09:08:20 +0100419
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800420rtc_source_set("ice_log") {
421 sources = [
422 "rtc_event_log/events/rtc_event_ice_candidate_pair.cc",
423 "rtc_event_log/events/rtc_event_ice_candidate_pair.h",
424 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.cc",
425 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.h",
426 "rtc_event_log/icelogger.cc",
427 "rtc_event_log/icelogger.h",
428 ]
429
430 deps = [
431 ":rtc_event_log_api",
432 "../api:libjingle_logging_api",
433 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200434 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800435 ]
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800436}
437
Patrik Höglund731082c2018-01-03 09:08:20 +0100438if (rtc_include_tests) {
439 rtc_source_set("mocks") {
440 testonly = true
441 sources = [
Danil Chapovalovdd7e2842018-03-09 15:37:03 +0000442 "rtc_event_log/mock/mock_rtc_event_log.cc",
Patrik Höglund731082c2018-01-03 09:08:20 +0100443 "rtc_event_log/mock/mock_rtc_event_log.h",
444 ]
445 deps = [
446 ":rtc_event_log_api",
Oleh Prypinda04e062018-07-23 10:04:12 +0200447 "../test:test_support",
Patrik Höglund731082c2018-01-03 09:08:20 +0100448 ]
449 }
450}