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") |
Kimmo Kinnunen | 08f6a6c | 2019-02-26 11:46:17 +0200 | [diff] [blame] | 10 | if (rtc_enable_protobuf) { |
Dan Minor | 9c68613 | 2018-01-15 10:20:00 -0500 | [diff] [blame] | 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", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 24 | ":rtc_event_pacing", |
| 25 | ":rtc_event_rtp_rtcp", |
| 26 | ":rtc_event_video", |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 27 | ] |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 28 | } |
| 29 | |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 30 | rtc_source_set("rtc_event_log_api") { |
| 31 | sources = [ |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 32 | "rtc_event_log/encoder/rtc_event_log_encoder.h", |
Elad Alon | 652cc84 | 2017-10-02 11:27:52 +0200 | [diff] [blame] | 33 | "rtc_event_log/events/rtc_event.h", |
Danil Chapovalov | 2a5ce2b | 2018-02-07 09:38:31 +0100 | [diff] [blame] | 34 | "rtc_event_log/rtc_event_log.cc", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 35 | "rtc_event_log/rtc_event_log.h", |
| 36 | "rtc_event_log/rtc_event_log_factory_interface.h", |
| 37 | ] |
| 38 | |
| 39 | deps = [ |
| 40 | "../api:libjingle_logging_api", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 41 | "../api:scoped_refptr", |
Mirko Bonadei | fc52b91 | 2019-03-01 10:32:56 +0100 | [diff] [blame] | 42 | "../api/task_queue", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 43 | "../rtc_base:rtc_base_approved", |
Danil Chapovalov | 608298b | 2018-10-18 14:20:44 +0200 | [diff] [blame] | 44 | "//third_party/abseil-cpp/absl/memory", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 45 | ] |
| 46 | } |
| 47 | |
| 48 | rtc_source_set("rtc_stream_config") { |
| 49 | sources = [ |
| 50 | "rtc_event_log/rtc_stream_config.cc", |
| 51 | "rtc_event_log/rtc_stream_config.h", |
| 52 | ] |
| 53 | |
| 54 | deps = [ |
| 55 | ":rtc_event_log_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 56 | "../api:libjingle_peerconnection_api", |
Niels Möller | ef1052a | 2019-03-20 08:40:23 +0100 | [diff] [blame] | 57 | "../api:rtp_headers", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 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", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 69 | "../api:scoped_refptr", |
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", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 89 | "../api:scoped_refptr", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 90 | "../modules/audio_coding:audio_network_adaptor_config", |
Elad Alon | 0b1b5c1 | 2018-11-09 21:50:14 +0100 | [diff] [blame] | 91 | "../rtc_base:checks", |
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", |
Sebastian Jansson | 166b45d | 2019-05-13 11:57:42 +0200 | [diff] [blame^] | 108 | "rtc_event_log/events/rtc_event_route_change.cc", |
| 109 | "rtc_event_log/events/rtc_event_route_change.h", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 110 | ] |
| 111 | |
| 112 | deps = [ |
| 113 | ":rtc_event_log_api", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 114 | "../api:scoped_refptr", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 115 | "../modules/remote_bitrate_estimator", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 116 | "//third_party/abseil-cpp/absl/memory", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 117 | ] |
| 118 | } |
| 119 | |
Piotr (Peter) Slatala | f6adac8 | 2019-02-08 10:31:35 -0800 | [diff] [blame] | 120 | rtc_source_set("rtc_event_generic_packet_events") { |
| 121 | visibility = [ "*" ] |
| 122 | sources = [ |
| 123 | "rtc_event_log/events/rtc_event_generic_ack_received.cc", |
| 124 | "rtc_event_log/events/rtc_event_generic_ack_received.h", |
| 125 | "rtc_event_log/events/rtc_event_generic_packet_received.cc", |
| 126 | "rtc_event_log/events/rtc_event_generic_packet_received.h", |
| 127 | "rtc_event_log/events/rtc_event_generic_packet_sent.cc", |
| 128 | "rtc_event_log/events/rtc_event_generic_packet_sent.h", |
| 129 | ] |
| 130 | deps = [ |
| 131 | ":rtc_event_log_api", |
tzik | 8aa00f0 | 2019-02-18 22:28:26 +0900 | [diff] [blame] | 132 | "//third_party/abseil-cpp/absl/memory", |
Piotr (Peter) Slatala | f6adac8 | 2019-02-08 10:31:35 -0800 | [diff] [blame] | 133 | ] |
Piotr (Peter) Slatala | f6adac8 | 2019-02-08 10:31:35 -0800 | [diff] [blame] | 134 | } |
| 135 | |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 136 | rtc_source_set("rtc_event_rtp_rtcp") { |
| 137 | sources = [ |
Elad Alon | 652cc84 | 2017-10-02 11:27:52 +0200 | [diff] [blame] | 138 | "rtc_event_log/events/rtc_event_rtcp_packet_incoming.cc", |
| 139 | "rtc_event_log/events/rtc_event_rtcp_packet_incoming.h", |
| 140 | "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.cc", |
| 141 | "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.h", |
| 142 | "rtc_event_log/events/rtc_event_rtp_packet_incoming.cc", |
| 143 | "rtc_event_log/events/rtc_event_rtp_packet_incoming.h", |
| 144 | "rtc_event_log/events/rtc_event_rtp_packet_outgoing.cc", |
| 145 | "rtc_event_log/events/rtc_event_rtp_packet_outgoing.h", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 146 | ] |
| 147 | |
| 148 | deps = [ |
| 149 | ":rtc_event_log_api", |
| 150 | "../api:array_view", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 151 | "../api:scoped_refptr", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 152 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Elad Alon | 0b1b5c1 | 2018-11-09 21:50:14 +0100 | [diff] [blame] | 153 | "../rtc_base:checks", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 154 | "../rtc_base:rtc_base_approved", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 155 | "//third_party/abseil-cpp/absl/memory", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 156 | ] |
| 157 | } |
| 158 | |
| 159 | rtc_source_set("rtc_event_video") { |
| 160 | sources = [ |
Elad Alon | 652cc84 | 2017-10-02 11:27:52 +0200 | [diff] [blame] | 161 | "rtc_event_log/events/rtc_event_video_receive_stream_config.cc", |
| 162 | "rtc_event_log/events/rtc_event_video_receive_stream_config.h", |
| 163 | "rtc_event_log/events/rtc_event_video_send_stream_config.cc", |
| 164 | "rtc_event_log/events/rtc_event_video_send_stream_config.h", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 165 | ] |
Elad Alon | 83ccca1 | 2017-10-04 13:18:26 +0200 | [diff] [blame] | 166 | |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 167 | deps = [ |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 168 | ":rtc_event_log_api", |
| 169 | ":rtc_stream_config", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 170 | "../api:scoped_refptr", |
Elad Alon | 0b1b5c1 | 2018-11-09 21:50:14 +0100 | [diff] [blame] | 171 | "../rtc_base:checks", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 172 | "//third_party/abseil-cpp/absl/memory", |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 173 | ] |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 174 | } |
| 175 | |
Elad Alon | d95b0a2 | 2018-11-09 16:38:54 +0100 | [diff] [blame] | 176 | # TODO(eladalon): Break down into (1) encoder and (2) decoder; we don't need |
| 177 | # 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] | 178 | rtc_static_library("rtc_event_log_impl_encoder") { |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 179 | sources = [ |
Elad Alon | cb21ffe | 2018-10-19 18:30:30 +0200 | [diff] [blame] | 180 | "rtc_event_log/encoder/blob_encoding.cc", |
| 181 | "rtc_event_log/encoder/blob_encoding.h", |
Elad Alon | 50b1e6b | 2018-10-18 13:43:35 +0200 | [diff] [blame] | 182 | "rtc_event_log/encoder/delta_encoding.cc", |
| 183 | "rtc_event_log/encoder/delta_encoding.h", |
Elad Alon | d95b0a2 | 2018-11-09 16:38:54 +0100 | [diff] [blame] | 184 | "rtc_event_log/encoder/rtc_event_log_encoder_common.cc", |
| 185 | "rtc_event_log/encoder/rtc_event_log_encoder_common.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 186 | "rtc_event_log/encoder/var_int.cc", |
| 187 | "rtc_event_log/encoder/var_int.h", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 188 | ] |
| 189 | |
| 190 | defines = [] |
| 191 | |
| 192 | deps = [ |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 193 | "../api:libjingle_peerconnection_api", |
Niels Möller | ef1052a | 2019-03-20 08:40:23 +0100 | [diff] [blame] | 194 | "../api:rtp_headers", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 195 | "../api/transport:network_control", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 196 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 197 | "../rtc_base:rtc_base_approved", |
Elad Alon | 50b1e6b | 2018-10-18 13:43:35 +0200 | [diff] [blame] | 198 | "//third_party/abseil-cpp/absl/memory", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 199 | "//third_party/abseil-cpp/absl/strings", |
Elad Alon | 73f3917 | 2018-10-23 18:24:10 +0200 | [diff] [blame] | 200 | "//third_party/abseil-cpp/absl/types:optional", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 201 | ] |
| 202 | |
| 203 | if (rtc_enable_protobuf) { |
| 204 | defines += [ "ENABLE_RTC_EVENT_LOG" ] |
Bjorn Terelius | c35096d | 2018-10-24 13:51:56 +0200 | [diff] [blame] | 205 | deps += [ |
| 206 | ":ice_log", |
| 207 | ":rtc_event_audio", |
| 208 | ":rtc_event_bwe", |
Piotr (Peter) Slatala | f6adac8 | 2019-02-08 10:31:35 -0800 | [diff] [blame] | 209 | ":rtc_event_generic_packet_events", |
Bjorn Terelius | c35096d | 2018-10-24 13:51:56 +0200 | [diff] [blame] | 210 | ":rtc_event_log2_proto", |
| 211 | ":rtc_event_log_api", |
Bjorn Terelius | c35096d | 2018-10-24 13:51:56 +0200 | [diff] [blame] | 212 | ":rtc_event_log_proto", |
| 213 | ":rtc_event_pacing", |
| 214 | ":rtc_event_rtp_rtcp", |
| 215 | ":rtc_event_video", |
| 216 | ":rtc_stream_config", |
| 217 | "../api:array_view", |
| 218 | "../modules/audio_coding:audio_network_adaptor", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 219 | "../modules/remote_bitrate_estimator", |
Bjorn Terelius | c35096d | 2018-10-24 13:51:56 +0200 | [diff] [blame] | 220 | "../modules/rtp_rtcp:rtp_rtcp_format", |
| 221 | ] |
| 222 | sources += [ |
| 223 | "rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc", |
| 224 | "rtc_event_log/encoder/rtc_event_log_encoder_legacy.h", |
| 225 | "rtc_event_log/encoder/rtc_event_log_encoder_new_format.cc", |
| 226 | "rtc_event_log/encoder/rtc_event_log_encoder_new_format.h", |
| 227 | ] |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 228 | } |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 229 | } |
| 230 | |
Niels Möller | d8b9ed7 | 2019-05-08 13:53:51 +0200 | [diff] [blame] | 231 | # TODO(bugs.webrtc.org/6463): For backwards compatibility; delete as |
| 232 | # soon as downstream dependencies are updated. |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 233 | rtc_source_set("rtc_event_log_impl_output") { |
| 234 | sources = [ |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 235 | "rtc_event_log/output/rtc_event_log_output_file.h", |
| 236 | ] |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 237 | deps = [ |
Niels Möller | d8b9ed7 | 2019-05-08 13:53:51 +0200 | [diff] [blame] | 238 | "../api:rtc_event_log_output_file", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 239 | ] |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 240 | } |
| 241 | |
| 242 | rtc_static_library("rtc_event_log_impl_base") { |
Bjorn Terelius | b8b3c99 | 2019-01-09 11:15:34 +0100 | [diff] [blame] | 243 | # TODO(terelius): Should this really be visible? Currently used to instantiate |
| 244 | # the default event log factory. |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 245 | visibility = [ "*" ] |
| 246 | sources = [ |
| 247 | "rtc_event_log/rtc_event_log_factory.cc", |
| 248 | "rtc_event_log/rtc_event_log_factory.h", |
| 249 | "rtc_event_log/rtc_event_log_impl.cc", |
| 250 | ] |
| 251 | |
| 252 | defines = [] |
| 253 | |
| 254 | deps = [ |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 255 | ":ice_log", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 256 | ":rtc_event_log_api", |
Bjorn Terelius | c35096d | 2018-10-24 13:51:56 +0200 | [diff] [blame] | 257 | "../api:libjingle_logging_api", |
Danil Chapovalov | 471783f | 2019-03-11 14:26:02 +0100 | [diff] [blame] | 258 | "../api/task_queue", |
Mirko Bonadei | fc52b91 | 2019-03-01 10:32:56 +0100 | [diff] [blame] | 259 | "../api/task_queue:global_task_queue_factory", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 260 | "../rtc_base:checks", |
| 261 | "../rtc_base:rtc_base_approved", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 262 | "../rtc_base:rtc_task_queue", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 263 | "../rtc_base:safe_minmax", |
Sebastian Jansson | b55015e | 2019-04-09 13:44:04 +0200 | [diff] [blame] | 264 | "../rtc_base/synchronization:sequence_checker", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 265 | "//third_party/abseil-cpp/absl/memory", |
Elad Alon | e7673cf | 2018-12-03 12:54:40 +0100 | [diff] [blame] | 266 | "//third_party/abseil-cpp/absl/types:optional", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 267 | ] |
| 268 | |
| 269 | if (rtc_enable_protobuf) { |
| 270 | defines += [ "ENABLE_RTC_EVENT_LOG" ] |
Bjorn Terelius | c35096d | 2018-10-24 13:51:56 +0200 | [diff] [blame] | 271 | deps += [ ":rtc_event_log_impl_encoder" ] |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 272 | } |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 273 | } |
| 274 | |
Qingsi Wang | 7685e86 | 2018-06-11 20:15:46 -0700 | [diff] [blame] | 275 | rtc_source_set("fake_rtc_event_log") { |
| 276 | testonly = true |
| 277 | sources = [ |
| 278 | "rtc_event_log/fake_rtc_event_log.cc", |
| 279 | "rtc_event_log/fake_rtc_event_log.h", |
| 280 | "rtc_event_log/fake_rtc_event_log_factory.cc", |
| 281 | "rtc_event_log/fake_rtc_event_log_factory.h", |
| 282 | ] |
| 283 | |
| 284 | deps = [ |
| 285 | ":ice_log", |
| 286 | ":rtc_event_log_api", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 287 | "../rtc_base", |
Qingsi Wang | 7685e86 | 2018-06-11 20:15:46 -0700 | [diff] [blame] | 288 | "../rtc_base:checks", |
Qingsi Wang | 7685e86 | 2018-06-11 20:15:46 -0700 | [diff] [blame] | 289 | ] |
| 290 | } |
| 291 | |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 292 | if (rtc_enable_protobuf) { |
| 293 | proto_library("rtc_event_log_proto") { |
Mirko Bonadei | d474672 | 2018-11-19 12:00:51 +0100 | [diff] [blame] | 294 | visibility = [ "*" ] |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 295 | sources = [ |
| 296 | "rtc_event_log/rtc_event_log.proto", |
| 297 | ] |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 298 | proto_out_dir = "logging/rtc_event_log" |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 299 | } |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 300 | |
Mirko Bonadei | b3c210f | 2017-12-15 17:12:42 +0100 | [diff] [blame] | 301 | proto_library("rtc_event_log2_proto") { |
Mirko Bonadei | d474672 | 2018-11-19 12:00:51 +0100 | [diff] [blame] | 302 | visibility = [ "*" ] |
Mirko Bonadei | b3c210f | 2017-12-15 17:12:42 +0100 | [diff] [blame] | 303 | sources = [ |
| 304 | "rtc_event_log/rtc_event_log2.proto", |
| 305 | ] |
| 306 | proto_out_dir = "logging/rtc_event_log" |
| 307 | } |
| 308 | |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 309 | rtc_static_library("rtc_event_log_parser") { |
Bjorn Terelius | 73df883 | 2018-04-26 14:46:06 +0200 | [diff] [blame] | 310 | visibility = [ "*" ] |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 311 | sources = [ |
Sebastian Jansson | 7e4341d | 2019-01-22 08:42:27 +0100 | [diff] [blame] | 312 | "rtc_event_log/logged_events.cc", |
Sebastian Jansson | 3f2b9aa | 2019-01-03 14:42:15 +0100 | [diff] [blame] | 313 | "rtc_event_log/logged_events.h", |
Sebastian Jansson | b290a6d | 2019-01-03 14:46:23 +0100 | [diff] [blame] | 314 | "rtc_event_log/rtc_event_log_parser.cc", |
| 315 | "rtc_event_log/rtc_event_log_parser.h", |
Sebastian Jansson | 03fbf1e | 2019-01-08 15:31:06 +0100 | [diff] [blame] | 316 | "rtc_event_log/rtc_event_processor.cc", |
Bjorn Terelius | 60d629f | 2018-09-24 17:10:27 +0200 | [diff] [blame] | 317 | "rtc_event_log/rtc_event_processor.h", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 318 | ] |
| 319 | |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 320 | deps = [ |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 321 | ":ice_log", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 322 | ":rtc_event_bwe", |
Mirko Bonadei | b3c210f | 2017-12-15 17:12:42 +0100 | [diff] [blame] | 323 | ":rtc_event_log2_proto", |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 324 | ":rtc_event_log_api", |
Elad Alon | d95b0a2 | 2018-11-09 16:38:54 +0100 | [diff] [blame] | 325 | ":rtc_event_log_impl_encoder", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 326 | ":rtc_event_log_proto", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 327 | ":rtc_stream_config", |
Artem Titov | 741daaf | 2019-03-21 14:37:36 +0100 | [diff] [blame] | 328 | "../api:function_view", |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 329 | "../api:libjingle_peerconnection_api", |
Niels Möller | ef1052a | 2019-03-20 08:40:23 +0100 | [diff] [blame] | 330 | "../api:rtp_headers", |
Sebastian Jansson | 7e4341d | 2019-01-22 08:42:27 +0100 | [diff] [blame] | 331 | "../api/units:data_rate", |
| 332 | "../api/units:time_delta", |
| 333 | "../api/units:timestamp", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 334 | "../call:video_stream_api", |
Sebastian Jansson | b468616 | 2019-05-02 17:07:22 +0200 | [diff] [blame] | 335 | "../modules:module_api", |
michaelt | cde46b7 | 2017-04-06 05:59:10 -0700 | [diff] [blame] | 336 | "../modules/audio_coding:audio_network_adaptor", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 337 | "../modules/remote_bitrate_estimator", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 338 | "../modules/rtp_rtcp", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 339 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 340 | "../rtc_base:checks", |
Sebastian Jansson | b290a6d | 2019-01-03 14:46:23 +0100 | [diff] [blame] | 341 | "../rtc_base:deprecation", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 342 | "../rtc_base:protobuf_utils", |
| 343 | "../rtc_base:rtc_base_approved", |
Sebastian Jansson | 7e4341d | 2019-01-22 08:42:27 +0100 | [diff] [blame] | 344 | "../rtc_base:rtc_numerics", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 345 | "//third_party/abseil-cpp/absl/memory", |
Elad Alon | 1ac9554 | 2018-10-02 13:20:40 +0200 | [diff] [blame] | 346 | "//third_party/abseil-cpp/absl/types:optional", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 347 | ] |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 348 | } |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 349 | |
| 350 | if (rtc_include_tests) { |
| 351 | rtc_source_set("rtc_event_log_tests") { |
| 352 | testonly = true |
Elad Alon | 1d87b0e | 2017-10-03 15:01:03 +0200 | [diff] [blame] | 353 | assert(rtc_enable_protobuf) |
| 354 | defines = [ "ENABLE_RTC_EVENT_LOG" ] |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 355 | sources = [ |
Elad Alon | cb21ffe | 2018-10-19 18:30:30 +0200 | [diff] [blame] | 356 | "rtc_event_log/encoder/blob_encoding_unittest.cc", |
Elad Alon | 50b1e6b | 2018-10-18 13:43:35 +0200 | [diff] [blame] | 357 | "rtc_event_log/encoder/delta_encoding_unittest.cc", |
Elad Alon | d95b0a2 | 2018-11-09 16:38:54 +0100 | [diff] [blame] | 358 | "rtc_event_log/encoder/rtc_event_log_encoder_common_unittest.cc", |
Elad Alon | 1d87b0e | 2017-10-03 15:01:03 +0200 | [diff] [blame] | 359 | "rtc_event_log/encoder/rtc_event_log_encoder_unittest.cc", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 360 | "rtc_event_log/rtc_event_log_unittest.cc", |
| 361 | "rtc_event_log/rtc_event_log_unittest_helper.cc", |
eladalon | b5c319a | 2017-08-17 08:32:39 -0700 | [diff] [blame] | 362 | "rtc_event_log/rtc_event_log_unittest_helper.h", |
Bjorn Terelius | 60d629f | 2018-09-24 17:10:27 +0200 | [diff] [blame] | 363 | "rtc_event_log/rtc_event_processor_unittest.cc", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 364 | ] |
| 365 | deps = [ |
Bjorn Terelius | f4db542 | 2018-06-26 11:41:27 +0200 | [diff] [blame] | 366 | ":ice_log", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 367 | ":rtc_event_audio", |
| 368 | ":rtc_event_bwe", |
Piotr (Peter) Slatala | 5e2aad1 | 2019-02-13 07:49:30 -0800 | [diff] [blame] | 369 | ":rtc_event_generic_packet_events", |
Bjorn Terelius | c35096d | 2018-10-24 13:51:56 +0200 | [diff] [blame] | 370 | ":rtc_event_log2_proto", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 371 | ":rtc_event_log_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 372 | ":rtc_event_log_impl_base", |
| 373 | ":rtc_event_log_impl_encoder", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 374 | ":rtc_event_log_parser", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 375 | ":rtc_event_log_proto", |
Bjorn Terelius | f4db542 | 2018-06-26 11:41:27 +0200 | [diff] [blame] | 376 | ":rtc_event_pacing", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 377 | ":rtc_event_rtp_rtcp", |
| 378 | ":rtc_event_video", |
| 379 | ":rtc_stream_config", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 380 | "../api:array_view", |
Mirko Bonadei | a0e1a55 | 2017-12-04 10:50:51 +0100 | [diff] [blame] | 381 | "../api:libjingle_peerconnection_api", |
Niels Möller | d8b9ed7 | 2019-05-08 13:53:51 +0200 | [diff] [blame] | 382 | "../api:rtc_event_log_output_file", |
Niels Möller | ef1052a | 2019-03-20 08:40:23 +0100 | [diff] [blame] | 383 | "../api:rtp_headers", |
Danil Chapovalov | 304ea5f | 2019-04-11 15:18:18 +0200 | [diff] [blame] | 384 | "../api/task_queue:default_task_queue_factory", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 385 | "../call", |
Mirko Bonadei | a0e1a55 | 2017-12-04 10:50:51 +0100 | [diff] [blame] | 386 | "../call:call_interfaces", |
michaelt | cde46b7 | 2017-04-06 05:59:10 -0700 | [diff] [blame] | 387 | "../modules/audio_coding:audio_network_adaptor", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 388 | "../modules/remote_bitrate_estimator", |
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", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 391 | "../rtc_base:rtc_base_approved", |
| 392 | "../rtc_base:rtc_base_tests_utils", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 393 | "../system_wrappers", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 394 | "../test:fileutils", |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 395 | "../test:test_support", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 396 | "//testing/gtest", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 397 | "//third_party/abseil-cpp/absl/memory", |
Yves Gerey | 69807e8 | 2018-10-30 22:23:02 +0100 | [diff] [blame] | 398 | "//third_party/abseil-cpp/absl/types:optional", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 399 | ] |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 400 | } |
Mirko Bonadei | 9d764e8 | 2018-07-16 15:38:06 +0200 | [diff] [blame] | 401 | |
ivoc | 54b6e98 | 2017-02-08 00:28:09 -0800 | [diff] [blame] | 402 | rtc_test("rtc_event_log2rtp_dump") { |
| 403 | testonly = true |
| 404 | sources = [ |
| 405 | "rtc_event_log/rtc_event_log2rtp_dump.cc", |
| 406 | ] |
| 407 | deps = [ |
| 408 | ":rtc_event_log_api", |
ivoc | 54b6e98 | 2017-02-08 00:28:09 -0800 | [diff] [blame] | 409 | ":rtc_event_log_parser", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 410 | "../api:array_view", |
| 411 | "../api:libjingle_peerconnection_api", |
Niels Möller | ef1052a | 2019-03-20 08:40:23 +0100 | [diff] [blame] | 412 | "../api:rtp_headers", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 413 | "../modules/rtp_rtcp", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 414 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 415 | "../rtc_base:checks", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 416 | "../rtc_base:protobuf_utils", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 417 | "../rtc_base:rtc_base_approved", |
ivoc | 54b6e98 | 2017-02-08 00:28:09 -0800 | [diff] [blame] | 418 | "../test:rtp_test_utils", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 419 | "//third_party/abseil-cpp/absl/memory", |
Bjorn Terelius | 60d629f | 2018-09-24 17:10:27 +0200 | [diff] [blame] | 420 | "//third_party/abseil-cpp/absl/types:optional", |
ivoc | 54b6e98 | 2017-02-08 00:28:09 -0800 | [diff] [blame] | 421 | ] |
ivoc | 54b6e98 | 2017-02-08 00:28:09 -0800 | [diff] [blame] | 422 | } |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 423 | } |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 424 | } |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame] | 425 | |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 426 | rtc_source_set("ice_log") { |
| 427 | sources = [ |
Zach Stein | c64078f | 2018-11-27 15:53:01 -0800 | [diff] [blame] | 428 | "rtc_event_log/events/rtc_event_dtls_transport_state.cc", |
| 429 | "rtc_event_log/events/rtc_event_dtls_transport_state.h", |
Zach Stein | 846dfdf | 2018-11-29 14:12:17 -0800 | [diff] [blame] | 430 | "rtc_event_log/events/rtc_event_dtls_writable_state.cc", |
| 431 | "rtc_event_log/events/rtc_event_dtls_writable_state.h", |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 432 | "rtc_event_log/events/rtc_event_ice_candidate_pair.cc", |
| 433 | "rtc_event_log/events/rtc_event_ice_candidate_pair.h", |
| 434 | "rtc_event_log/events/rtc_event_ice_candidate_pair_config.cc", |
| 435 | "rtc_event_log/events/rtc_event_ice_candidate_pair_config.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 436 | "rtc_event_log/ice_logger.cc", |
| 437 | "rtc_event_log/ice_logger.h", |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 438 | ] |
| 439 | |
| 440 | deps = [ |
| 441 | ":rtc_event_log_api", |
| 442 | "../api:libjingle_logging_api", |
Harald Alvestrand | 4a7b3ac | 2019-01-17 10:39:40 +0100 | [diff] [blame] | 443 | "../api:libjingle_peerconnection_api", |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 444 | "../rtc_base:rtc_base_approved", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 445 | "//third_party/abseil-cpp/absl/memory", |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 446 | ] |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 447 | } |
| 448 | |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame] | 449 | if (rtc_include_tests) { |
| 450 | rtc_source_set("mocks") { |
| 451 | testonly = true |
| 452 | sources = [ |
Danil Chapovalov | dd7e284 | 2018-03-09 15:37:03 +0000 | [diff] [blame] | 453 | "rtc_event_log/mock/mock_rtc_event_log.cc", |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame] | 454 | "rtc_event_log/mock/mock_rtc_event_log.h", |
| 455 | ] |
| 456 | deps = [ |
| 457 | ":rtc_event_log_api", |
Oleh Prypin | da04e06 | 2018-07-23 10:04:12 +0200 | [diff] [blame] | 458 | "../test:test_support", |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame] | 459 | ] |
| 460 | } |
| 461 | } |