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