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