blob: 55b7c02e34b176f33fa926c8f12a72f8e01561e6 [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",
Elad Alon0b1b5c12018-11-09 21:50:14 +010091 "../rtc_base:checks",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +020092 "../rtc_base:ptr_util",
Karl Wiberg918f50c2018-07-05 11:40:33 +020093 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -080094 ]
95}
96
97rtc_source_set("rtc_event_bwe") {
98 sources = [
Elad Alon652cc842017-10-02 11:27:52 +020099 "rtc_event_log/events/rtc_event_bwe_update_delay_based.cc",
100 "rtc_event_log/events/rtc_event_bwe_update_delay_based.h",
101 "rtc_event_log/events/rtc_event_bwe_update_loss_based.cc",
102 "rtc_event_log/events/rtc_event_bwe_update_loss_based.h",
Elad Alon652cc842017-10-02 11:27:52 +0200103 "rtc_event_log/events/rtc_event_probe_cluster_created.cc",
104 "rtc_event_log/events/rtc_event_probe_cluster_created.h",
105 "rtc_event_log/events/rtc_event_probe_result_failure.cc",
106 "rtc_event_log/events/rtc_event_probe_result_failure.h",
107 "rtc_event_log/events/rtc_event_probe_result_success.cc",
108 "rtc_event_log/events/rtc_event_probe_result_success.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800109 ]
110
111 deps = [
112 ":rtc_event_log_api",
113 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200114 "../rtc_base:ptr_util",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200115 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800116 ]
117}
118
119rtc_source_set("rtc_event_rtp_rtcp") {
120 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200121 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.cc",
122 "rtc_event_log/events/rtc_event_rtcp_packet_incoming.h",
123 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.cc",
124 "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.h",
125 "rtc_event_log/events/rtc_event_rtp_packet_incoming.cc",
126 "rtc_event_log/events/rtc_event_rtp_packet_incoming.h",
127 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.cc",
128 "rtc_event_log/events/rtc_event_rtp_packet_outgoing.h",
Qingsi Wang970b0882018-02-01 11:04:46 -0800129 ]
130
131 deps = [
132 ":rtc_event_log_api",
133 "../api:array_view",
134 "../modules/rtp_rtcp:rtp_rtcp_format",
Elad Alon0b1b5c12018-11-09 21:50:14 +0100135 "../rtc_base:checks",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200136 "../rtc_base:ptr_util",
Qingsi Wang970b0882018-02-01 11:04:46 -0800137 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200138 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800139 ]
140}
141
142rtc_source_set("rtc_event_video") {
143 sources = [
Elad Alon652cc842017-10-02 11:27:52 +0200144 "rtc_event_log/events/rtc_event_video_receive_stream_config.cc",
145 "rtc_event_log/events/rtc_event_video_receive_stream_config.h",
146 "rtc_event_log/events/rtc_event_video_send_stream_config.cc",
147 "rtc_event_log/events/rtc_event_video_send_stream_config.h",
skvladcc91d282016-10-03 18:31:22 -0700148 ]
Elad Alon83ccca12017-10-04 13:18:26 +0200149
kjellander727ac1d2017-03-08 02:12:11 -0800150 deps = [
Qingsi Wang970b0882018-02-01 11:04:46 -0800151 ":rtc_event_log_api",
152 ":rtc_stream_config",
Elad Alon0b1b5c12018-11-09 21:50:14 +0100153 "../rtc_base:checks",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200154 "../rtc_base:ptr_util",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200155 "//third_party/abseil-cpp/absl/memory",
kjellander727ac1d2017-03-08 02:12:11 -0800156 ]
skvladcc91d282016-10-03 18:31:22 -0700157}
158
Elad Alond95b0a22018-11-09 16:38:54 +0100159# TODO(eladalon): Break down into (1) encoder and (2) decoder; we don't need
160# the decoder code in the WebRTC library, only in unit tests and tools.
Qingsi Wang970b0882018-02-01 11:04:46 -0800161rtc_static_library("rtc_event_log_impl_encoder") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000162 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700163 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200164 "rtc_event_log/encoder/blob_encoding.cc",
165 "rtc_event_log/encoder/blob_encoding.h",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200166 "rtc_event_log/encoder/delta_encoding.cc",
167 "rtc_event_log/encoder/delta_encoding.h",
Elad Alond95b0a22018-11-09 16:38:54 +0100168 "rtc_event_log/encoder/rtc_event_log_encoder_common.cc",
169 "rtc_event_log/encoder/rtc_event_log_encoder_common.h",
Elad Alonff435412018-10-26 19:09:41 +0200170 "rtc_event_log/encoder/varint.cc",
171 "rtc_event_log/encoder/varint.h",
skvladcc91d282016-10-03 18:31:22 -0700172 ]
173
174 defines = []
175
176 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100177 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700178 "../rtc_base:rtc_base_approved",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200179 "//third_party/abseil-cpp/absl/memory",
Elad Aloncb21ffe2018-10-19 18:30:30 +0200180 "//third_party/abseil-cpp/absl/strings:strings",
Elad Alon73f39172018-10-23 18:24:10 +0200181 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700182 ]
183
184 if (rtc_enable_protobuf) {
185 defines += [ "ENABLE_RTC_EVENT_LOG" ]
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200186 deps += [
187 ":ice_log",
188 ":rtc_event_audio",
189 ":rtc_event_bwe",
190 ":rtc_event_log2_proto",
191 ":rtc_event_log_api",
192 ":rtc_event_log_impl_output",
193 ":rtc_event_log_proto",
194 ":rtc_event_pacing",
195 ":rtc_event_rtp_rtcp",
196 ":rtc_event_video",
197 ":rtc_stream_config",
198 "../api:array_view",
199 "../modules/audio_coding:audio_network_adaptor",
200 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
201 "../modules/rtp_rtcp:rtp_rtcp_format",
202 ]
203 sources += [
204 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc",
205 "rtc_event_log/encoder/rtc_event_log_encoder_legacy.h",
206 "rtc_event_log/encoder/rtc_event_log_encoder_new_format.cc",
207 "rtc_event_log/encoder/rtc_event_log_encoder_new_format.h",
208 ]
skvladcc91d282016-10-03 18:31:22 -0700209 }
skvladcc91d282016-10-03 18:31:22 -0700210}
211
Qingsi Wang970b0882018-02-01 11:04:46 -0800212rtc_source_set("rtc_event_log_impl_output") {
213 sources = [
214 "rtc_event_log/output/rtc_event_log_output_file.cc",
215 "rtc_event_log/output/rtc_event_log_output_file.h",
216 ]
217
218 deps = [
219 ":rtc_event_log_api",
220 "../api:libjingle_logging_api",
221 "../rtc_base:checks",
222 "../rtc_base:rtc_base_approved",
223 ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800224}
225
226rtc_static_library("rtc_event_log_impl_base") {
227 visibility = [ "*" ]
228 sources = [
229 "rtc_event_log/rtc_event_log_factory.cc",
230 "rtc_event_log/rtc_event_log_factory.h",
231 "rtc_event_log/rtc_event_log_impl.cc",
232 ]
233
234 defines = []
235
236 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800237 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800238 ":rtc_event_log_api",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200239 "../api:libjingle_logging_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800240 "../rtc_base:checks",
241 "../rtc_base:rtc_base_approved",
Tommi8d2c5a82018-03-19 11:12:48 +0100242 "../rtc_base:rtc_task_queue",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100243 "../rtc_base:safe_minmax",
Qingsi Wang970b0882018-02-01 11:04:46 -0800244 "../rtc_base:sequenced_task_checker",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200245 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang970b0882018-02-01 11:04:46 -0800246 ]
247
248 if (rtc_enable_protobuf) {
249 defines += [ "ENABLE_RTC_EVENT_LOG" ]
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200250 deps += [ ":rtc_event_log_impl_encoder" ]
Qingsi Wang970b0882018-02-01 11:04:46 -0800251 }
Qingsi Wang970b0882018-02-01 11:04:46 -0800252}
253
Qingsi Wang7685e862018-06-11 20:15:46 -0700254rtc_source_set("fake_rtc_event_log") {
255 testonly = true
256 sources = [
257 "rtc_event_log/fake_rtc_event_log.cc",
258 "rtc_event_log/fake_rtc_event_log.h",
259 "rtc_event_log/fake_rtc_event_log_factory.cc",
260 "rtc_event_log/fake_rtc_event_log_factory.h",
261 ]
262
263 deps = [
264 ":ice_log",
265 ":rtc_event_log_api",
266 "../rtc_base:checks",
267 "../rtc_base:rtc_base",
268 ]
269}
270
skvladcc91d282016-10-03 18:31:22 -0700271if (rtc_enable_protobuf) {
272 proto_library("rtc_event_log_proto") {
Mirko Bonadeid4746722018-11-19 12:00:51 +0100273 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700274 sources = [
275 "rtc_event_log/rtc_event_log.proto",
276 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200277 proto_out_dir = "logging/rtc_event_log"
skvladcc91d282016-10-03 18:31:22 -0700278 }
skvladcc91d282016-10-03 18:31:22 -0700279
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100280 proto_library("rtc_event_log2_proto") {
Mirko Bonadeid4746722018-11-19 12:00:51 +0100281 visibility = [ "*" ]
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100282 sources = [
283 "rtc_event_log/rtc_event_log2.proto",
284 ]
285 proto_out_dir = "logging/rtc_event_log"
286 }
287
skvladcc91d282016-10-03 18:31:22 -0700288 rtc_static_library("rtc_event_log_parser") {
Bjorn Terelius73df8832018-04-26 14:46:06 +0200289 visibility = [ "*" ]
skvladcc91d282016-10-03 18:31:22 -0700290 sources = [
Bjorn Tereliusc4ca1d32018-04-27 14:33:34 +0200291 "rtc_event_log/rtc_event_log_parser_new.cc",
292 "rtc_event_log/rtc_event_log_parser_new.h",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200293 "rtc_event_log/rtc_event_processor.h",
skvladcc91d282016-10-03 18:31:22 -0700294 ]
295
Mirko Bonadei818d9102017-12-12 12:46:13 +0100296 deps = [
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800297 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800298 ":rtc_event_bwe",
Mirko Bonadeib3c210f2017-12-15 17:12:42 +0100299 ":rtc_event_log2_proto",
kjellander727ac1d2017-03-08 02:12:11 -0800300 ":rtc_event_log_api",
Elad Alond95b0a22018-11-09 16:38:54 +0100301 ":rtc_event_log_impl_encoder",
skvladcc91d282016-10-03 18:31:22 -0700302 ":rtc_event_log_proto",
Qingsi Wang970b0882018-02-01 11:04:46 -0800303 ":rtc_stream_config",
skvladcc91d282016-10-03 18:31:22 -0700304 "..:webrtc_common",
Bjorn Tereliusc4ca1d32018-04-27 14:33:34 +0200305 "../api:libjingle_peerconnection_api",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100306 "../call:video_stream_api",
michaeltcde46b72017-04-06 05:59:10 -0700307 "../modules/audio_coding:audio_network_adaptor",
Sebastian Janssona39a0072018-10-15 20:59:07 +0200308 "../modules/congestion_controller/rtp:transport_feedback",
michaelt97653702017-04-11 00:49:44 -0700309 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100310 "../modules/rtp_rtcp",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100311 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100312 "../rtc_base:checks",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100313 "../rtc_base:protobuf_utils",
314 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200315 "//third_party/abseil-cpp/absl/memory",
Elad Alon1ac95542018-10-02 13:20:40 +0200316 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700317 ]
skvladcc91d282016-10-03 18:31:22 -0700318 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800319
320 if (rtc_include_tests) {
321 rtc_source_set("rtc_event_log_tests") {
322 testonly = true
Elad Alon1d87b0e2017-10-03 15:01:03 +0200323 assert(rtc_enable_protobuf)
324 defines = [ "ENABLE_RTC_EVENT_LOG" ]
ehmaldonado1fd08c12017-01-17 02:37:34 -0800325 sources = [
Elad Aloncb21ffe2018-10-19 18:30:30 +0200326 "rtc_event_log/encoder/blob_encoding_unittest.cc",
Elad Alon50b1e6b2018-10-18 13:43:35 +0200327 "rtc_event_log/encoder/delta_encoding_unittest.cc",
Elad Alond95b0a22018-11-09 16:38:54 +0100328 "rtc_event_log/encoder/rtc_event_log_encoder_common_unittest.cc",
Elad Alon1d87b0e2017-10-03 15:01:03 +0200329 "rtc_event_log/encoder/rtc_event_log_encoder_unittest.cc",
Elad Alon83ccca12017-10-04 13:18:26 +0200330 "rtc_event_log/output/rtc_event_log_output_file_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800331 "rtc_event_log/rtc_event_log_unittest.cc",
332 "rtc_event_log/rtc_event_log_unittest_helper.cc",
eladalonb5c319a2017-08-17 08:32:39 -0700333 "rtc_event_log/rtc_event_log_unittest_helper.h",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200334 "rtc_event_log/rtc_event_processor_unittest.cc",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800335 ]
336 deps = [
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200337 ":ice_log",
Qingsi Wang970b0882018-02-01 11:04:46 -0800338 ":rtc_event_audio",
339 ":rtc_event_bwe",
Bjorn Tereliusc35096d2018-10-24 13:51:56 +0200340 ":rtc_event_log2_proto",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100341 ":rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -0800342 ":rtc_event_log_impl_base",
343 ":rtc_event_log_impl_encoder",
344 ":rtc_event_log_impl_output",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800345 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100346 ":rtc_event_log_proto",
Bjorn Tereliusf4db5422018-06-26 11:41:27 +0200347 ":rtc_event_pacing",
Qingsi Wang970b0882018-02-01 11:04:46 -0800348 ":rtc_event_rtp_rtcp",
349 ":rtc_event_video",
350 ":rtc_stream_config",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100351 "../api:libjingle_peerconnection_api",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800352 "../call",
Mirko Bonadeia0e1a552017-12-04 10:50:51 +0100353 "../call:call_interfaces",
michaeltcde46b72017-04-06 05:59:10 -0700354 "../modules/audio_coding:audio_network_adaptor",
michaelt97653702017-04-11 00:49:44 -0700355 "../modules/remote_bitrate_estimator:remote_bitrate_estimator",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100356 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100357 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700358 "../rtc_base:rtc_base_approved",
359 "../rtc_base:rtc_base_tests_utils",
Patrik Höglund7696bef2018-03-15 15:05:39 +0100360 "../test:fileutils",
kjellander727ac1d2017-03-08 02:12:11 -0800361 "../test:test_support",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800362 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200363 "//third_party/abseil-cpp/absl/memory",
Yves Gerey69807e82018-10-30 22:23:02 +0100364 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800365 ]
366 if (!build_with_chromium && is_clang) {
367 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
368 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
369 }
370 }
Mirko Bonadei9d764e82018-07-16 15:38:06 +0200371
ivoc54b6e982017-02-08 00:28:09 -0800372 rtc_test("rtc_event_log2rtp_dump") {
373 testonly = true
374 sources = [
375 "rtc_event_log/rtc_event_log2rtp_dump.cc",
376 ]
377 deps = [
378 ":rtc_event_log_api",
ivoc54b6e982017-02-08 00:28:09 -0800379 ":rtc_event_log_parser",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100380 "../modules/rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100381 "../modules/rtp_rtcp:rtp_rtcp_format",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100382 "../rtc_base:checks",
Mirko Bonadei818d9102017-12-12 12:46:13 +0100383 "../rtc_base:protobuf_utils",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700384 "../rtc_base:rtc_base_approved",
ivoc54b6e982017-02-08 00:28:09 -0800385 "../test:rtp_test_utils",
Bjorn Terelius60d629f2018-09-24 17:10:27 +0200386 "//third_party/abseil-cpp/absl/memory:memory",
387 "//third_party/abseil-cpp/absl/types:optional",
ivoc54b6e982017-02-08 00:28:09 -0800388 ]
389 if (!build_with_chromium && is_clang) {
390 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
391 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
392 }
393 }
ehmaldonado1fd08c12017-01-17 02:37:34 -0800394 }
skvladcc91d282016-10-03 18:31:22 -0700395}
Patrik Höglund731082c2018-01-03 09:08:20 +0100396
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800397rtc_source_set("ice_log") {
398 sources = [
399 "rtc_event_log/events/rtc_event_ice_candidate_pair.cc",
400 "rtc_event_log/events/rtc_event_ice_candidate_pair.h",
401 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.cc",
402 "rtc_event_log/events/rtc_event_ice_candidate_pair_config.h",
403 "rtc_event_log/icelogger.cc",
404 "rtc_event_log/icelogger.h",
405 ]
406
407 deps = [
408 ":rtc_event_log_api",
409 "../api:libjingle_logging_api",
410 "../rtc_base:rtc_base_approved",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200411 "//third_party/abseil-cpp/absl/memory",
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800412 ]
Qingsi Wang8eca1ff2018-02-02 11:49:44 -0800413}
414
Patrik Höglund731082c2018-01-03 09:08:20 +0100415if (rtc_include_tests) {
416 rtc_source_set("mocks") {
417 testonly = true
418 sources = [
Danil Chapovalovdd7e2842018-03-09 15:37:03 +0000419 "rtc_event_log/mock/mock_rtc_event_log.cc",
Patrik Höglund731082c2018-01-03 09:08:20 +0100420 "rtc_event_log/mock/mock_rtc_event_log.h",
421 ]
422 deps = [
423 ":rtc_event_log_api",
Oleh Prypinda04e062018-07-23 10:04:12 +0200424 "../test:test_support",
Patrik Höglund731082c2018-01-03 09:08:20 +0100425 ]
426 }
427}