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