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