skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 1 | # 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 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../webrtc.gni") |
Dan Minor | 9c68613 | 2018-01-15 10:20:00 -0500 | [diff] [blame] | 10 | if (!build_with_mozilla) { |
| 11 | import("//third_party/protobuf/proto_library.gni") |
| 12 | } |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 13 | if (is_android) { |
| 14 | import("//build/config/android/config.gni") |
| 15 | import("//build/config/android/rules.gni") |
| 16 | } |
| 17 | |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 18 | group("logging") { |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 19 | deps = [ |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 20 | ":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", |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 28 | ] |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 29 | } |
| 30 | |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 31 | rtc_source_set("rtc_event_log_api") { |
| 32 | sources = [ |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 33 | "rtc_event_log/encoder/rtc_event_log_encoder.h", |
Elad Alon | 652cc84 | 2017-10-02 11:27:52 +0200 | [diff] [blame] | 34 | "rtc_event_log/events/rtc_event.h", |
Danil Chapovalov | 2a5ce2b | 2018-02-07 09:38:31 +0100 | [diff] [blame] | 35 | "rtc_event_log/rtc_event_log.cc", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 36 | "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 Terelius | f4db542 | 2018-06-26 11:41:27 +0200 | [diff] [blame] | 42 | "../rtc_base:ptr_util", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 43 | "../rtc_base:rtc_base_approved", |
Dino Radaković | e9d2e4d | 2018-03-20 18:15:39 +0100 | [diff] [blame] | 44 | "../rtc_base:rtc_task_queue", |
Danil Chapovalov | 608298b | 2018-10-18 14:20:44 +0200 | [diff] [blame] | 45 | "//third_party/abseil-cpp/absl/memory", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 46 | ] |
| 47 | } |
| 48 | |
| 49 | rtc_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", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 57 | "../api:libjingle_peerconnection_api", |
| 58 | ] |
| 59 | } |
| 60 | |
| 61 | rtc_source_set("rtc_event_pacing") { |
| 62 | sources = [ |
Ilya Nikolaevskiy | a4259f6 | 2017-12-05 13:19:45 +0100 | [diff] [blame] | 63 | "rtc_event_log/events/rtc_event_alr_state.cc", |
| 64 | "rtc_event_log/events/rtc_event_alr_state.h", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 65 | ] |
| 66 | |
| 67 | deps = [ |
| 68 | ":rtc_event_log_api", |
Bjorn Terelius | f4db542 | 2018-06-26 11:41:27 +0200 | [diff] [blame] | 69 | "../rtc_base:ptr_util", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 70 | "//third_party/abseil-cpp/absl/memory", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 71 | ] |
| 72 | } |
| 73 | |
| 74 | rtc_source_set("rtc_event_audio") { |
| 75 | sources = [ |
Elad Alon | 652cc84 | 2017-10-02 11:27:52 +0200 | [diff] [blame] | 76 | "rtc_event_log/events/rtc_event_audio_network_adaptation.cc", |
| 77 | "rtc_event_log/events/rtc_event_audio_network_adaptation.h", |
| 78 | "rtc_event_log/events/rtc_event_audio_playout.cc", |
| 79 | "rtc_event_log/events/rtc_event_audio_playout.h", |
| 80 | "rtc_event_log/events/rtc_event_audio_receive_stream_config.cc", |
| 81 | "rtc_event_log/events/rtc_event_audio_receive_stream_config.h", |
| 82 | "rtc_event_log/events/rtc_event_audio_send_stream_config.cc", |
| 83 | "rtc_event_log/events/rtc_event_audio_send_stream_config.h", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 84 | ] |
| 85 | |
| 86 | deps = [ |
| 87 | ":rtc_event_log_api", |
| 88 | ":rtc_stream_config", |
| 89 | "../modules/audio_coding:audio_network_adaptor_config", |
Elad Alon | 0b1b5c1 | 2018-11-09 21:50:14 +0100 | [diff] [blame] | 90 | "../rtc_base:checks", |
Bjorn Terelius | f4db542 | 2018-06-26 11:41:27 +0200 | [diff] [blame] | 91 | "../rtc_base:ptr_util", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 92 | "//third_party/abseil-cpp/absl/memory", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 93 | ] |
| 94 | } |
| 95 | |
| 96 | rtc_source_set("rtc_event_bwe") { |
| 97 | sources = [ |
Elad Alon | 652cc84 | 2017-10-02 11:27:52 +0200 | [diff] [blame] | 98 | "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 Alon | 652cc84 | 2017-10-02 11:27:52 +0200 | [diff] [blame] | 102 | "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 Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 108 | ] |
| 109 | |
| 110 | deps = [ |
| 111 | ":rtc_event_log_api", |
| 112 | "../modules/remote_bitrate_estimator:remote_bitrate_estimator", |
Bjorn Terelius | f4db542 | 2018-06-26 11:41:27 +0200 | [diff] [blame] | 113 | "../rtc_base:ptr_util", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 114 | "//third_party/abseil-cpp/absl/memory", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 115 | ] |
| 116 | } |
| 117 | |
| 118 | rtc_source_set("rtc_event_rtp_rtcp") { |
| 119 | sources = [ |
Elad Alon | 652cc84 | 2017-10-02 11:27:52 +0200 | [diff] [blame] | 120 | "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 Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 128 | ] |
| 129 | |
| 130 | deps = [ |
| 131 | ":rtc_event_log_api", |
| 132 | "../api:array_view", |
| 133 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Elad Alon | 0b1b5c1 | 2018-11-09 21:50:14 +0100 | [diff] [blame] | 134 | "../rtc_base:checks", |
Bjorn Terelius | f4db542 | 2018-06-26 11:41:27 +0200 | [diff] [blame] | 135 | "../rtc_base:ptr_util", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 136 | "../rtc_base:rtc_base_approved", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 137 | "//third_party/abseil-cpp/absl/memory", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 138 | ] |
| 139 | } |
| 140 | |
| 141 | rtc_source_set("rtc_event_video") { |
| 142 | sources = [ |
Elad Alon | 652cc84 | 2017-10-02 11:27:52 +0200 | [diff] [blame] | 143 | "rtc_event_log/events/rtc_event_video_receive_stream_config.cc", |
| 144 | "rtc_event_log/events/rtc_event_video_receive_stream_config.h", |
| 145 | "rtc_event_log/events/rtc_event_video_send_stream_config.cc", |
| 146 | "rtc_event_log/events/rtc_event_video_send_stream_config.h", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 147 | ] |
Elad Alon | 83ccca1 | 2017-10-04 13:18:26 +0200 | [diff] [blame] | 148 | |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 149 | deps = [ |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 150 | ":rtc_event_log_api", |
| 151 | ":rtc_stream_config", |
Elad Alon | 0b1b5c1 | 2018-11-09 21:50:14 +0100 | [diff] [blame] | 152 | "../rtc_base:checks", |
Bjorn Terelius | f4db542 | 2018-06-26 11:41:27 +0200 | [diff] [blame] | 153 | "../rtc_base:ptr_util", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 154 | "//third_party/abseil-cpp/absl/memory", |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 155 | ] |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 156 | } |
| 157 | |
Elad Alon | d95b0a2 | 2018-11-09 16:38:54 +0100 | [diff] [blame] | 158 | # TODO(eladalon): Break down into (1) encoder and (2) decoder; we don't need |
| 159 | # the decoder code in the WebRTC library, only in unit tests and tools. |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 160 | rtc_static_library("rtc_event_log_impl_encoder") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 161 | visibility = [ "*" ] |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 162 | sources = [ |
Elad Alon | cb21ffe | 2018-10-19 18:30:30 +0200 | [diff] [blame] | 163 | "rtc_event_log/encoder/blob_encoding.cc", |
| 164 | "rtc_event_log/encoder/blob_encoding.h", |
Elad Alon | 50b1e6b | 2018-10-18 13:43:35 +0200 | [diff] [blame] | 165 | "rtc_event_log/encoder/delta_encoding.cc", |
| 166 | "rtc_event_log/encoder/delta_encoding.h", |
Elad Alon | d95b0a2 | 2018-11-09 16:38:54 +0100 | [diff] [blame] | 167 | "rtc_event_log/encoder/rtc_event_log_encoder_common.cc", |
| 168 | "rtc_event_log/encoder/rtc_event_log_encoder_common.h", |
Elad Alon | ff43541 | 2018-10-26 19:09:41 +0200 | [diff] [blame] | 169 | "rtc_event_log/encoder/varint.cc", |
| 170 | "rtc_event_log/encoder/varint.h", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 171 | ] |
| 172 | |
| 173 | defines = [] |
| 174 | |
| 175 | deps = [ |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 176 | "../api:libjingle_peerconnection_api", |
| 177 | "../api/transport:network_control", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 178 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 179 | "../rtc_base:rtc_base_approved", |
Elad Alon | 50b1e6b | 2018-10-18 13:43:35 +0200 | [diff] [blame] | 180 | "//third_party/abseil-cpp/absl/memory", |
Elad Alon | cb21ffe | 2018-10-19 18:30:30 +0200 | [diff] [blame] | 181 | "//third_party/abseil-cpp/absl/strings:strings", |
Elad Alon | 73f3917 | 2018-10-23 18:24:10 +0200 | [diff] [blame] | 182 | "//third_party/abseil-cpp/absl/types:optional", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 183 | ] |
| 184 | |
| 185 | if (rtc_enable_protobuf) { |
| 186 | defines += [ "ENABLE_RTC_EVENT_LOG" ] |
Bjorn Terelius | c35096d | 2018-10-24 13:51:56 +0200 | [diff] [blame] | 187 | deps += [ |
| 188 | ":ice_log", |
| 189 | ":rtc_event_audio", |
| 190 | ":rtc_event_bwe", |
| 191 | ":rtc_event_log2_proto", |
| 192 | ":rtc_event_log_api", |
| 193 | ":rtc_event_log_impl_output", |
| 194 | ":rtc_event_log_proto", |
| 195 | ":rtc_event_pacing", |
| 196 | ":rtc_event_rtp_rtcp", |
| 197 | ":rtc_event_video", |
| 198 | ":rtc_stream_config", |
| 199 | "../api:array_view", |
| 200 | "../modules/audio_coding:audio_network_adaptor", |
| 201 | "../modules/remote_bitrate_estimator:remote_bitrate_estimator", |
| 202 | "../modules/rtp_rtcp:rtp_rtcp_format", |
| 203 | ] |
| 204 | sources += [ |
| 205 | "rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc", |
| 206 | "rtc_event_log/encoder/rtc_event_log_encoder_legacy.h", |
| 207 | "rtc_event_log/encoder/rtc_event_log_encoder_new_format.cc", |
| 208 | "rtc_event_log/encoder/rtc_event_log_encoder_new_format.h", |
| 209 | ] |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 210 | } |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 211 | } |
| 212 | |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 213 | rtc_source_set("rtc_event_log_impl_output") { |
| 214 | sources = [ |
| 215 | "rtc_event_log/output/rtc_event_log_output_file.cc", |
| 216 | "rtc_event_log/output/rtc_event_log_output_file.h", |
| 217 | ] |
| 218 | |
| 219 | deps = [ |
| 220 | ":rtc_event_log_api", |
| 221 | "../api:libjingle_logging_api", |
| 222 | "../rtc_base:checks", |
| 223 | "../rtc_base:rtc_base_approved", |
| 224 | ] |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 225 | } |
| 226 | |
| 227 | rtc_static_library("rtc_event_log_impl_base") { |
| 228 | visibility = [ "*" ] |
| 229 | sources = [ |
| 230 | "rtc_event_log/rtc_event_log_factory.cc", |
| 231 | "rtc_event_log/rtc_event_log_factory.h", |
| 232 | "rtc_event_log/rtc_event_log_impl.cc", |
| 233 | ] |
| 234 | |
| 235 | defines = [] |
| 236 | |
| 237 | deps = [ |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 238 | ":ice_log", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 239 | ":rtc_event_log_api", |
Bjorn Terelius | c35096d | 2018-10-24 13:51:56 +0200 | [diff] [blame] | 240 | "../api:libjingle_logging_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 241 | "../rtc_base:checks", |
| 242 | "../rtc_base:rtc_base_approved", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 243 | "../rtc_base:rtc_task_queue", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 244 | "../rtc_base:safe_minmax", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 245 | "../rtc_base:sequenced_task_checker", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 246 | "//third_party/abseil-cpp/absl/memory", |
Elad Alon | e7673cf | 2018-12-03 12:54:40 +0100 | [diff] [blame] | 247 | "//third_party/abseil-cpp/absl/types:optional", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 248 | ] |
| 249 | |
| 250 | if (rtc_enable_protobuf) { |
| 251 | defines += [ "ENABLE_RTC_EVENT_LOG" ] |
Bjorn Terelius | c35096d | 2018-10-24 13:51:56 +0200 | [diff] [blame] | 252 | deps += [ ":rtc_event_log_impl_encoder" ] |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 253 | } |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 254 | } |
| 255 | |
Qingsi Wang | 7685e86 | 2018-06-11 20:15:46 -0700 | [diff] [blame] | 256 | rtc_source_set("fake_rtc_event_log") { |
| 257 | testonly = true |
| 258 | sources = [ |
| 259 | "rtc_event_log/fake_rtc_event_log.cc", |
| 260 | "rtc_event_log/fake_rtc_event_log.h", |
| 261 | "rtc_event_log/fake_rtc_event_log_factory.cc", |
| 262 | "rtc_event_log/fake_rtc_event_log_factory.h", |
| 263 | ] |
| 264 | |
| 265 | deps = [ |
| 266 | ":ice_log", |
| 267 | ":rtc_event_log_api", |
| 268 | "../rtc_base:checks", |
| 269 | "../rtc_base:rtc_base", |
| 270 | ] |
| 271 | } |
| 272 | |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 273 | if (rtc_enable_protobuf) { |
| 274 | proto_library("rtc_event_log_proto") { |
Mirko Bonadei | d474672 | 2018-11-19 12:00:51 +0100 | [diff] [blame] | 275 | visibility = [ "*" ] |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 276 | sources = [ |
| 277 | "rtc_event_log/rtc_event_log.proto", |
| 278 | ] |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 279 | proto_out_dir = "logging/rtc_event_log" |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 280 | } |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 281 | |
Mirko Bonadei | b3c210f | 2017-12-15 17:12:42 +0100 | [diff] [blame] | 282 | proto_library("rtc_event_log2_proto") { |
Mirko Bonadei | d474672 | 2018-11-19 12:00:51 +0100 | [diff] [blame] | 283 | visibility = [ "*" ] |
Mirko Bonadei | b3c210f | 2017-12-15 17:12:42 +0100 | [diff] [blame] | 284 | sources = [ |
| 285 | "rtc_event_log/rtc_event_log2.proto", |
| 286 | ] |
| 287 | proto_out_dir = "logging/rtc_event_log" |
| 288 | } |
| 289 | |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 290 | rtc_static_library("rtc_event_log_parser") { |
Bjorn Terelius | 73df883 | 2018-04-26 14:46:06 +0200 | [diff] [blame] | 291 | visibility = [ "*" ] |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 292 | sources = [ |
Sebastian Jansson | 3f2b9aa | 2019-01-03 14:42:15 +0100 | [diff] [blame] | 293 | "rtc_event_log/logged_events.h", |
Sebastian Jansson | b290a6d | 2019-01-03 14:46:23 +0100 | [diff] [blame] | 294 | "rtc_event_log/rtc_event_log_parser.cc", |
| 295 | "rtc_event_log/rtc_event_log_parser.h", |
Sebastian Jansson | 03fbf1e | 2019-01-08 15:31:06 +0100 | [diff] [blame^] | 296 | "rtc_event_log/rtc_event_processor.cc", |
Bjorn Terelius | 60d629f | 2018-09-24 17:10:27 +0200 | [diff] [blame] | 297 | "rtc_event_log/rtc_event_processor.h", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 298 | ] |
| 299 | |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 300 | deps = [ |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 301 | ":ice_log", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 302 | ":rtc_event_bwe", |
Mirko Bonadei | b3c210f | 2017-12-15 17:12:42 +0100 | [diff] [blame] | 303 | ":rtc_event_log2_proto", |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 304 | ":rtc_event_log_api", |
Elad Alon | d95b0a2 | 2018-11-09 16:38:54 +0100 | [diff] [blame] | 305 | ":rtc_event_log_impl_encoder", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 306 | ":rtc_event_log_proto", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 307 | ":rtc_stream_config", |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 308 | "../api:libjingle_peerconnection_api", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 309 | "../call:video_stream_api", |
michaelt | cde46b7 | 2017-04-06 05:59:10 -0700 | [diff] [blame] | 310 | "../modules/audio_coding:audio_network_adaptor", |
Sebastian Jansson | a39a007 | 2018-10-15 20:59:07 +0200 | [diff] [blame] | 311 | "../modules/congestion_controller/rtp:transport_feedback", |
michaelt | 9765370 | 2017-04-11 00:49:44 -0700 | [diff] [blame] | 312 | "../modules/remote_bitrate_estimator:remote_bitrate_estimator", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 313 | "../modules/rtp_rtcp", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 314 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 315 | "../rtc_base:checks", |
Sebastian Jansson | b290a6d | 2019-01-03 14:46:23 +0100 | [diff] [blame] | 316 | "../rtc_base:deprecation", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 317 | "../rtc_base:protobuf_utils", |
| 318 | "../rtc_base:rtc_base_approved", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 319 | "//third_party/abseil-cpp/absl/memory", |
Elad Alon | 1ac9554 | 2018-10-02 13:20:40 +0200 | [diff] [blame] | 320 | "//third_party/abseil-cpp/absl/types:optional", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 321 | ] |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 322 | } |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 323 | |
| 324 | if (rtc_include_tests) { |
| 325 | rtc_source_set("rtc_event_log_tests") { |
| 326 | testonly = true |
Elad Alon | 1d87b0e | 2017-10-03 15:01:03 +0200 | [diff] [blame] | 327 | assert(rtc_enable_protobuf) |
| 328 | defines = [ "ENABLE_RTC_EVENT_LOG" ] |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 329 | sources = [ |
Elad Alon | cb21ffe | 2018-10-19 18:30:30 +0200 | [diff] [blame] | 330 | "rtc_event_log/encoder/blob_encoding_unittest.cc", |
Elad Alon | 50b1e6b | 2018-10-18 13:43:35 +0200 | [diff] [blame] | 331 | "rtc_event_log/encoder/delta_encoding_unittest.cc", |
Elad Alon | d95b0a2 | 2018-11-09 16:38:54 +0100 | [diff] [blame] | 332 | "rtc_event_log/encoder/rtc_event_log_encoder_common_unittest.cc", |
Elad Alon | 1d87b0e | 2017-10-03 15:01:03 +0200 | [diff] [blame] | 333 | "rtc_event_log/encoder/rtc_event_log_encoder_unittest.cc", |
Elad Alon | 83ccca1 | 2017-10-04 13:18:26 +0200 | [diff] [blame] | 334 | "rtc_event_log/output/rtc_event_log_output_file_unittest.cc", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 335 | "rtc_event_log/rtc_event_log_unittest.cc", |
| 336 | "rtc_event_log/rtc_event_log_unittest_helper.cc", |
eladalon | b5c319a | 2017-08-17 08:32:39 -0700 | [diff] [blame] | 337 | "rtc_event_log/rtc_event_log_unittest_helper.h", |
Bjorn Terelius | 60d629f | 2018-09-24 17:10:27 +0200 | [diff] [blame] | 338 | "rtc_event_log/rtc_event_processor_unittest.cc", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 339 | ] |
| 340 | deps = [ |
Bjorn Terelius | f4db542 | 2018-06-26 11:41:27 +0200 | [diff] [blame] | 341 | ":ice_log", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 342 | ":rtc_event_audio", |
| 343 | ":rtc_event_bwe", |
Bjorn Terelius | c35096d | 2018-10-24 13:51:56 +0200 | [diff] [blame] | 344 | ":rtc_event_log2_proto", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 345 | ":rtc_event_log_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 346 | ":rtc_event_log_impl_base", |
| 347 | ":rtc_event_log_impl_encoder", |
| 348 | ":rtc_event_log_impl_output", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 349 | ":rtc_event_log_parser", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 350 | ":rtc_event_log_proto", |
Bjorn Terelius | f4db542 | 2018-06-26 11:41:27 +0200 | [diff] [blame] | 351 | ":rtc_event_pacing", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 352 | ":rtc_event_rtp_rtcp", |
| 353 | ":rtc_event_video", |
| 354 | ":rtc_stream_config", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 355 | "../api:array_view", |
Mirko Bonadei | a0e1a55 | 2017-12-04 10:50:51 +0100 | [diff] [blame] | 356 | "../api:libjingle_peerconnection_api", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 357 | "../call", |
Mirko Bonadei | a0e1a55 | 2017-12-04 10:50:51 +0100 | [diff] [blame] | 358 | "../call:call_interfaces", |
michaelt | cde46b7 | 2017-04-06 05:59:10 -0700 | [diff] [blame] | 359 | "../modules/audio_coding:audio_network_adaptor", |
michaelt | 9765370 | 2017-04-11 00:49:44 -0700 | [diff] [blame] | 360 | "../modules/remote_bitrate_estimator:remote_bitrate_estimator", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 361 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 362 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 363 | "../rtc_base:rtc_base_approved", |
| 364 | "../rtc_base:rtc_base_tests_utils", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 365 | "../system_wrappers:system_wrappers", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 366 | "../test:fileutils", |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 367 | "../test:test_support", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 368 | "//testing/gtest", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 369 | "//third_party/abseil-cpp/absl/memory", |
Yves Gerey | 69807e8 | 2018-10-30 22:23:02 +0100 | [diff] [blame] | 370 | "//third_party/abseil-cpp/absl/types:optional", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 371 | ] |
| 372 | if (!build_with_chromium && is_clang) { |
| 373 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 374 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 375 | } |
| 376 | } |
Mirko Bonadei | 9d764e8 | 2018-07-16 15:38:06 +0200 | [diff] [blame] | 377 | |
ivoc | 54b6e98 | 2017-02-08 00:28:09 -0800 | [diff] [blame] | 378 | rtc_test("rtc_event_log2rtp_dump") { |
| 379 | testonly = true |
| 380 | sources = [ |
| 381 | "rtc_event_log/rtc_event_log2rtp_dump.cc", |
| 382 | ] |
| 383 | deps = [ |
| 384 | ":rtc_event_log_api", |
ivoc | 54b6e98 | 2017-02-08 00:28:09 -0800 | [diff] [blame] | 385 | ":rtc_event_log_parser", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 386 | "../api:array_view", |
| 387 | "../api:libjingle_peerconnection_api", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 388 | "../modules/rtp_rtcp", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 389 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 390 | "../rtc_base:checks", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 391 | "../rtc_base:protobuf_utils", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 392 | "../rtc_base:rtc_base_approved", |
ivoc | 54b6e98 | 2017-02-08 00:28:09 -0800 | [diff] [blame] | 393 | "../test:rtp_test_utils", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 394 | "//third_party/abseil-cpp/absl/memory", |
Bjorn Terelius | 60d629f | 2018-09-24 17:10:27 +0200 | [diff] [blame] | 395 | "//third_party/abseil-cpp/absl/types:optional", |
ivoc | 54b6e98 | 2017-02-08 00:28:09 -0800 | [diff] [blame] | 396 | ] |
| 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 | } |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 402 | } |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 403 | } |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame] | 404 | |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 405 | rtc_source_set("ice_log") { |
| 406 | sources = [ |
Zach Stein | c64078f | 2018-11-27 15:53:01 -0800 | [diff] [blame] | 407 | "rtc_event_log/events/rtc_event_dtls_transport_state.cc", |
| 408 | "rtc_event_log/events/rtc_event_dtls_transport_state.h", |
Zach Stein | 846dfdf | 2018-11-29 14:12:17 -0800 | [diff] [blame] | 409 | "rtc_event_log/events/rtc_event_dtls_writable_state.cc", |
| 410 | "rtc_event_log/events/rtc_event_dtls_writable_state.h", |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 411 | "rtc_event_log/events/rtc_event_ice_candidate_pair.cc", |
| 412 | "rtc_event_log/events/rtc_event_ice_candidate_pair.h", |
| 413 | "rtc_event_log/events/rtc_event_ice_candidate_pair_config.cc", |
| 414 | "rtc_event_log/events/rtc_event_ice_candidate_pair_config.h", |
| 415 | "rtc_event_log/icelogger.cc", |
| 416 | "rtc_event_log/icelogger.h", |
| 417 | ] |
| 418 | |
| 419 | deps = [ |
| 420 | ":rtc_event_log_api", |
| 421 | "../api:libjingle_logging_api", |
| 422 | "../rtc_base:rtc_base_approved", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 423 | "//third_party/abseil-cpp/absl/memory", |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 424 | ] |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 425 | } |
| 426 | |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame] | 427 | if (rtc_include_tests) { |
| 428 | rtc_source_set("mocks") { |
| 429 | testonly = true |
| 430 | sources = [ |
Danil Chapovalov | dd7e284 | 2018-03-09 15:37:03 +0000 | [diff] [blame] | 431 | "rtc_event_log/mock/mock_rtc_event_log.cc", |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame] | 432 | "rtc_event_log/mock/mock_rtc_event_log.h", |
| 433 | ] |
| 434 | deps = [ |
| 435 | ":rtc_event_log_api", |
Oleh Prypin | da04e06 | 2018-07-23 10:04:12 +0200 | [diff] [blame] | 436 | "../test:test_support", |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame] | 437 | ] |
| 438 | } |
| 439 | } |