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