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