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") |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 10 | import("//third_party/protobuf/proto_library.gni") |
| 11 | if (is_android) { |
| 12 | import("//build/config/android/config.gni") |
| 13 | import("//build/config/android/rules.gni") |
| 14 | } |
| 15 | |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 16 | group("logging") { |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 17 | deps = [ |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 18 | ":rtc_event_log_impl", |
| 19 | ] |
| 20 | if (rtc_enable_protobuf) { |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 21 | deps += [ ":rtc_event_log_parser" ] |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 22 | } |
| 23 | } |
| 24 | |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 25 | rtc_source_set("rtc_event_log_api") { |
| 26 | sources = [ |
Elad Alon | 652cc84 | 2017-10-02 11:27:52 +0200 | [diff] [blame] | 27 | "rtc_event_log/events/rtc_event.h", |
Ilya Nikolaevskiy | a4259f6 | 2017-12-05 13:19:45 +0100 | [diff] [blame] | 28 | "rtc_event_log/events/rtc_event_alr_state.cc", |
| 29 | "rtc_event_log/events/rtc_event_alr_state.h", |
Elad Alon | 652cc84 | 2017-10-02 11:27:52 +0200 | [diff] [blame] | 30 | "rtc_event_log/events/rtc_event_audio_network_adaptation.cc", |
| 31 | "rtc_event_log/events/rtc_event_audio_network_adaptation.h", |
| 32 | "rtc_event_log/events/rtc_event_audio_playout.cc", |
| 33 | "rtc_event_log/events/rtc_event_audio_playout.h", |
| 34 | "rtc_event_log/events/rtc_event_audio_receive_stream_config.cc", |
| 35 | "rtc_event_log/events/rtc_event_audio_receive_stream_config.h", |
| 36 | "rtc_event_log/events/rtc_event_audio_send_stream_config.cc", |
| 37 | "rtc_event_log/events/rtc_event_audio_send_stream_config.h", |
| 38 | "rtc_event_log/events/rtc_event_bwe_update_delay_based.cc", |
| 39 | "rtc_event_log/events/rtc_event_bwe_update_delay_based.h", |
| 40 | "rtc_event_log/events/rtc_event_bwe_update_loss_based.cc", |
| 41 | "rtc_event_log/events/rtc_event_bwe_update_loss_based.h", |
| 42 | "rtc_event_log/events/rtc_event_logging_started.cc", |
| 43 | "rtc_event_log/events/rtc_event_logging_started.h", |
| 44 | "rtc_event_log/events/rtc_event_logging_stopped.cc", |
| 45 | "rtc_event_log/events/rtc_event_logging_stopped.h", |
| 46 | "rtc_event_log/events/rtc_event_probe_cluster_created.cc", |
| 47 | "rtc_event_log/events/rtc_event_probe_cluster_created.h", |
| 48 | "rtc_event_log/events/rtc_event_probe_result_failure.cc", |
| 49 | "rtc_event_log/events/rtc_event_probe_result_failure.h", |
| 50 | "rtc_event_log/events/rtc_event_probe_result_success.cc", |
| 51 | "rtc_event_log/events/rtc_event_probe_result_success.h", |
| 52 | "rtc_event_log/events/rtc_event_rtcp_packet_incoming.cc", |
| 53 | "rtc_event_log/events/rtc_event_rtcp_packet_incoming.h", |
| 54 | "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.cc", |
| 55 | "rtc_event_log/events/rtc_event_rtcp_packet_outgoing.h", |
| 56 | "rtc_event_log/events/rtc_event_rtp_packet_incoming.cc", |
| 57 | "rtc_event_log/events/rtc_event_rtp_packet_incoming.h", |
| 58 | "rtc_event_log/events/rtc_event_rtp_packet_outgoing.cc", |
| 59 | "rtc_event_log/events/rtc_event_rtp_packet_outgoing.h", |
| 60 | "rtc_event_log/events/rtc_event_video_receive_stream_config.cc", |
| 61 | "rtc_event_log/events/rtc_event_video_receive_stream_config.h", |
| 62 | "rtc_event_log/events/rtc_event_video_send_stream_config.cc", |
| 63 | "rtc_event_log/events/rtc_event_video_send_stream_config.h", |
Elad Alon | 83ccca1 | 2017-10-04 13:18:26 +0200 | [diff] [blame] | 64 | "rtc_event_log/output/rtc_event_log_output_file.cc", |
| 65 | "rtc_event_log/output/rtc_event_log_output_file.h", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 66 | "rtc_event_log/rtc_event_log.h", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 67 | "rtc_event_log/rtc_event_log_factory_interface.h", |
eladalon | 4bb3b9c | 2017-09-11 07:25:26 -0700 | [diff] [blame] | 68 | "rtc_event_log/rtc_stream_config.cc", |
| 69 | "rtc_event_log/rtc_stream_config.h", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 70 | ] |
Elad Alon | 83ccca1 | 2017-10-04 13:18:26 +0200 | [diff] [blame] | 71 | |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 72 | deps = [ |
perkj | 77cd58e | 2017-05-30 03:52:10 -0700 | [diff] [blame] | 73 | "..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 74 | "../:typedefs", |
Bjorn Terelius | 440216f | 2017-09-29 21:01:42 +0200 | [diff] [blame] | 75 | "../api:array_view", |
Elad Alon | 8081073 | 2017-10-06 13:07:32 +0200 | [diff] [blame] | 76 | "../api:libjingle_logging_api", |
Stefan Holmer | 1acbd68 | 2017-09-01 15:29:28 +0200 | [diff] [blame] | 77 | "../api:libjingle_peerconnection_api", |
aleloi | 440b6d9 | 2017-08-22 05:43:23 -0700 | [diff] [blame] | 78 | "../call:video_stream_api", |
Elad Alon | 078a781 | 2017-10-02 13:33:31 +0200 | [diff] [blame] | 79 | "../modules/audio_coding:audio_network_adaptor_config", |
| 80 | "../modules/remote_bitrate_estimator:remote_bitrate_estimator", |
| 81 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 82 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 83 | "../rtc_base:rtc_base_approved", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 84 | "../system_wrappers", |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 85 | ] |
Elad Alon | 83ccca1 | 2017-10-04 13:18:26 +0200 | [diff] [blame] | 86 | |
| 87 | # TODO(eladalon): Remove this. |
| 88 | if (!build_with_chromium && is_clang) { |
| 89 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 90 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 91 | } |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | rtc_static_library("rtc_event_log_impl") { |
| 95 | sources = [ |
Elad Alon | 1d87b0e | 2017-10-03 15:01:03 +0200 | [diff] [blame] | 96 | "rtc_event_log/encoder/rtc_event_log_encoder.h", |
| 97 | "rtc_event_log/encoder/rtc_event_log_encoder_legacy.cc", |
| 98 | "rtc_event_log/encoder/rtc_event_log_encoder_legacy.h", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 99 | "rtc_event_log/rtc_event_log.cc", |
zhihuang | 38ede13 | 2017-06-15 12:52:32 -0700 | [diff] [blame] | 100 | "rtc_event_log/rtc_event_log_factory.cc", |
| 101 | "rtc_event_log/rtc_event_log_factory.h", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 102 | ] |
| 103 | |
| 104 | defines = [] |
| 105 | |
| 106 | deps = [ |
| 107 | ":rtc_event_log_api", |
| 108 | "..:webrtc_common", |
minyue | 4b7c952 | 2017-01-24 04:54:59 -0800 | [diff] [blame] | 109 | "../modules/audio_coding:audio_network_adaptor", |
michaelt | 9765370 | 2017-04-11 00:49:44 -0700 | [diff] [blame] | 110 | "../modules/remote_bitrate_estimator:remote_bitrate_estimator", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 111 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 112 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 113 | "../rtc_base:protobuf_utils", |
| 114 | "../rtc_base:rtc_base_approved", |
eladalon | 248fd4f | 2017-09-06 05:18:15 -0700 | [diff] [blame] | 115 | "../rtc_base:rtc_task_queue", |
| 116 | "../rtc_base:sequenced_task_checker", |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 117 | "../system_wrappers", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 118 | ] |
| 119 | |
| 120 | if (rtc_enable_protobuf) { |
| 121 | defines += [ "ENABLE_RTC_EVENT_LOG" ] |
| 122 | deps += [ ":rtc_event_log_proto" ] |
| 123 | } |
Elad Alon | 83ccca1 | 2017-10-04 13:18:26 +0200 | [diff] [blame] | 124 | |
| 125 | # TODO(eladalon): Remove this. |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 126 | if (!build_with_chromium && is_clang) { |
| 127 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 128 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 129 | } |
| 130 | } |
| 131 | |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 132 | if (rtc_enable_protobuf) { |
| 133 | proto_library("rtc_event_log_proto") { |
| 134 | sources = [ |
| 135 | "rtc_event_log/rtc_event_log.proto", |
| 136 | ] |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 137 | proto_out_dir = "logging/rtc_event_log" |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 138 | } |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 139 | |
Mirko Bonadei | b3c210f | 2017-12-15 17:12:42 +0100 | [diff] [blame] | 140 | proto_library("rtc_event_log2_proto") { |
| 141 | sources = [ |
| 142 | "rtc_event_log/rtc_event_log2.proto", |
| 143 | ] |
| 144 | proto_out_dir = "logging/rtc_event_log" |
| 145 | } |
| 146 | |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 147 | rtc_static_library("rtc_event_log_parser") { |
| 148 | sources = [ |
| 149 | "rtc_event_log/rtc_event_log_parser.cc", |
| 150 | "rtc_event_log/rtc_event_log_parser.h", |
| 151 | ] |
| 152 | |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 153 | deps = [ |
Mirko Bonadei | b3c210f | 2017-12-15 17:12:42 +0100 | [diff] [blame] | 154 | ":rtc_event_log2_proto", |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 155 | ":rtc_event_log_api", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 156 | ":rtc_event_log_proto", |
| 157 | "..:webrtc_common", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 158 | "../call:video_stream_api", |
michaelt | cde46b7 | 2017-04-06 05:59:10 -0700 | [diff] [blame] | 159 | "../modules/audio_coding:audio_network_adaptor", |
michaelt | 9765370 | 2017-04-11 00:49:44 -0700 | [diff] [blame] | 160 | "../modules/remote_bitrate_estimator:remote_bitrate_estimator", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 161 | "../modules/rtp_rtcp", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 162 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 163 | "../rtc_base:checks", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 164 | "../rtc_base:protobuf_utils", |
| 165 | "../rtc_base:rtc_base_approved", |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 166 | "../system_wrappers", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 167 | ] |
| 168 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 169 | if (!build_with_chromium && is_clang) { |
| 170 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 171 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 172 | } |
| 173 | } |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 174 | |
| 175 | if (rtc_include_tests) { |
| 176 | rtc_source_set("rtc_event_log_tests") { |
| 177 | testonly = true |
Elad Alon | 1d87b0e | 2017-10-03 15:01:03 +0200 | [diff] [blame] | 178 | assert(rtc_enable_protobuf) |
| 179 | defines = [ "ENABLE_RTC_EVENT_LOG" ] |
Elad Alon | 8233bfe | 2017-10-05 15:27:29 +0200 | [diff] [blame] | 180 | if (rtc_use_memcheck) { |
| 181 | defines += [ "WEBRTC_USE_MEMCHECK" ] |
| 182 | } |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 183 | sources = [ |
Elad Alon | 1d87b0e | 2017-10-03 15:01:03 +0200 | [diff] [blame] | 184 | "rtc_event_log/encoder/rtc_event_log_encoder_unittest.cc", |
Elad Alon | 83ccca1 | 2017-10-04 13:18:26 +0200 | [diff] [blame] | 185 | "rtc_event_log/output/rtc_event_log_output_file_unittest.cc", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 186 | "rtc_event_log/rtc_event_log_unittest.cc", |
| 187 | "rtc_event_log/rtc_event_log_unittest_helper.cc", |
eladalon | b5c319a | 2017-08-17 08:32:39 -0700 | [diff] [blame] | 188 | "rtc_event_log/rtc_event_log_unittest_helper.h", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 189 | ] |
| 190 | deps = [ |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 191 | ":rtc_event_log_api", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 192 | ":rtc_event_log_impl", |
| 193 | ":rtc_event_log_parser", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 194 | ":rtc_event_log_proto", |
Mirko Bonadei | a0e1a55 | 2017-12-04 10:50:51 +0100 | [diff] [blame] | 195 | "../api:libjingle_peerconnection_api", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 196 | "../call", |
Mirko Bonadei | a0e1a55 | 2017-12-04 10:50:51 +0100 | [diff] [blame] | 197 | "../call:call_interfaces", |
michaelt | cde46b7 | 2017-04-06 05:59:10 -0700 | [diff] [blame] | 198 | "../modules/audio_coding:audio_network_adaptor", |
michaelt | 9765370 | 2017-04-11 00:49:44 -0700 | [diff] [blame] | 199 | "../modules/remote_bitrate_estimator:remote_bitrate_estimator", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 200 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 201 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 202 | "../rtc_base:rtc_base_approved", |
| 203 | "../rtc_base:rtc_base_tests_utils", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 204 | "../system_wrappers:metrics_default", |
kjellander | 727ac1d | 2017-03-08 02:12:11 -0800 | [diff] [blame] | 205 | "../test:test_support", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 206 | "//testing/gmock", |
| 207 | "//testing/gtest", |
| 208 | ] |
| 209 | if (!build_with_chromium && is_clang) { |
| 210 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 211 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 212 | } |
| 213 | } |
ivoc | 54b6e98 | 2017-02-08 00:28:09 -0800 | [diff] [blame] | 214 | rtc_test("rtc_event_log2rtp_dump") { |
| 215 | testonly = true |
| 216 | sources = [ |
| 217 | "rtc_event_log/rtc_event_log2rtp_dump.cc", |
| 218 | ] |
| 219 | deps = [ |
| 220 | ":rtc_event_log_api", |
| 221 | ":rtc_event_log_impl", |
| 222 | ":rtc_event_log_parser", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 223 | "../modules/rtp_rtcp", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 224 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 225 | "../rtc_base:checks", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 226 | "../rtc_base:protobuf_utils", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 227 | "../rtc_base:rtc_base_approved", |
ivoc | 54b6e98 | 2017-02-08 00:28:09 -0800 | [diff] [blame] | 228 | "../system_wrappers:field_trial_default", |
| 229 | "../system_wrappers:metrics_default", |
| 230 | "../test:rtp_test_utils", |
ivoc | 54b6e98 | 2017-02-08 00:28:09 -0800 | [diff] [blame] | 231 | ] |
| 232 | if (!build_with_chromium && is_clang) { |
| 233 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 234 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 235 | } |
| 236 | } |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 237 | } |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame^] | 238 | |
terelius | d4ed7f5 | 2017-02-08 04:22:53 -0800 | [diff] [blame] | 239 | if (rtc_include_tests) { |
| 240 | rtc_executable("rtc_event_log2text") { |
| 241 | testonly = true |
| 242 | sources = [ |
| 243 | "rtc_event_log/rtc_event_log2text.cc", |
| 244 | ] |
| 245 | deps = [ |
| 246 | ":rtc_event_log_api", |
| 247 | ":rtc_event_log_impl", |
| 248 | ":rtc_event_log_parser", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 249 | "../:webrtc_common", |
Stefan Holmer | 1acbd68 | 2017-09-01 15:29:28 +0200 | [diff] [blame] | 250 | "../call:video_stream_api", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 251 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 252 | "../rtc_base:checks", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 253 | "../rtc_base:protobuf_utils", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 254 | "../rtc_base:rtc_base_approved", |
terelius | bb46b95 | 2017-02-08 09:37:30 -0800 | [diff] [blame] | 255 | |
| 256 | # TODO(kwiberg): Remove this dependency. |
kwiberg | 087bd34 | 2017-02-10 08:15:44 -0800 | [diff] [blame] | 257 | "../api/audio_codecs:audio_codecs_api", |
Elad Alon | a96fd7f | 2017-09-15 16:13:21 +0200 | [diff] [blame] | 258 | "../modules/audio_coding:audio_network_adaptor_config", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 259 | "../modules/rtp_rtcp", |
terelius | d4ed7f5 | 2017-02-08 04:22:53 -0800 | [diff] [blame] | 260 | ] |
| 261 | if (!build_with_chromium && is_clang) { |
| 262 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 263 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 264 | } |
| 265 | } |
| 266 | } |
terelius | ee37e86 | 2017-04-28 07:48:17 -0700 | [diff] [blame] | 267 | if (rtc_include_tests) { |
| 268 | rtc_executable("rtc_event_log2stats") { |
| 269 | testonly = true |
| 270 | sources = [ |
| 271 | "rtc_event_log/rtc_event_log2stats.cc", |
| 272 | ] |
| 273 | deps = [ |
| 274 | ":rtc_event_log_api", |
| 275 | ":rtc_event_log_impl", |
| 276 | ":rtc_event_log_proto", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 277 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 278 | "../rtc_base:rtc_base_approved", |
terelius | ee37e86 | 2017-04-28 07:48:17 -0700 | [diff] [blame] | 279 | ] |
| 280 | if (!build_with_chromium && is_clang) { |
| 281 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 282 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 283 | } |
| 284 | } |
| 285 | } |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 286 | } |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame^] | 287 | |
| 288 | if (rtc_include_tests) { |
| 289 | rtc_source_set("mocks") { |
| 290 | testonly = true |
| 291 | sources = [ |
| 292 | "rtc_event_log/mock/mock_rtc_event_log.h", |
| 293 | ] |
| 294 | deps = [ |
| 295 | ":rtc_event_log_api", |
| 296 | "../../test:test_support", |
| 297 | ] |
| 298 | } |
| 299 | } |