Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 1 | # Copyright (c) 2015 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") |
kjellander | 8f8d1a0 | 2017-03-06 04:01:16 -0800 | [diff] [blame] | 10 | if (is_android) { |
| 11 | import("//build/config/android/config.gni") |
| 12 | import("//build/config/android/rules.gni") |
| 13 | } |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 14 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 15 | rtc_static_library("audio") { |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 16 | sources = [ |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 17 | "audio_level.cc", |
| 18 | "audio_level.h", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 19 | "audio_receive_stream.cc", |
| 20 | "audio_receive_stream.h", |
solenberg | c7a8b08 | 2015-10-16 14:35:07 -0700 | [diff] [blame] | 21 | "audio_send_stream.cc", |
| 22 | "audio_send_stream.h", |
solenberg | 566ef24 | 2015-11-06 15:34:49 -0800 | [diff] [blame] | 23 | "audio_state.cc", |
| 24 | "audio_state.h", |
Fredrik Solenberg | 2a87797 | 2017-12-15 16:42:15 +0100 | [diff] [blame] | 25 | "audio_transport_impl.cc", |
| 26 | "audio_transport_impl.h", |
Niels Möller | 530ead4 | 2018-10-04 14:28:39 +0200 | [diff] [blame] | 27 | "channel_receive.cc", |
| 28 | "channel_receive.h", |
Niels Möller | b222f49 | 2018-10-03 16:50:08 +0200 | [diff] [blame] | 29 | "channel_receive_proxy.cc", |
| 30 | "channel_receive_proxy.h", |
Niels Möller | 530ead4 | 2018-10-04 14:28:39 +0200 | [diff] [blame] | 31 | "channel_send.cc", |
| 32 | "channel_send.h", |
Niels Möller | b222f49 | 2018-10-03 16:50:08 +0200 | [diff] [blame] | 33 | "channel_send_proxy.cc", |
| 34 | "channel_send_proxy.h", |
Fredrik Solenberg | 4f4ec0a | 2015-10-22 10:49:27 +0200 | [diff] [blame] | 35 | "conversion.h", |
henrika | 5f6bf24 | 2017-11-01 11:06:56 +0100 | [diff] [blame] | 36 | "null_audio_poller.cc", |
| 37 | "null_audio_poller.h", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 38 | "remix_resample.cc", |
| 39 | "remix_resample.h", |
saza | c58f8c0 | 2017-07-19 00:39:19 -0700 | [diff] [blame] | 40 | "time_interval.cc", |
| 41 | "time_interval.h", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 42 | "transport_feedback_packet_loss_tracker.cc", |
| 43 | "transport_feedback_packet_loss_tracker.h", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 44 | ] |
| 45 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 46 | if (!build_with_chromium && is_clang) { |
| 47 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 48 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | deps = [ |
| 52 | "..:webrtc_common", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 53 | "../api:array_view", |
kjellander | 676e08f | 2016-12-07 08:23:27 -0800 | [diff] [blame] | 54 | "../api:call_api", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 55 | "../api:libjingle_peerconnection_api", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 56 | "../api:transport_api", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 57 | "../api/audio:aec3_factory", |
Fredrik Solenberg | bbf21a3 | 2018-04-12 22:44:09 +0200 | [diff] [blame] | 58 | "../api/audio:audio_frame_api", |
Gustaf Ullberg | 2ae140a | 2018-02-16 13:43:49 +0100 | [diff] [blame] | 59 | "../api/audio:audio_mixer_api", |
ossu | eb1fde4 | 2017-05-02 06:46:30 -0700 | [diff] [blame] | 60 | "../api/audio_codecs:audio_codecs_api", |
Mirko Bonadei | 245660a | 2017-10-10 14:38:11 +0200 | [diff] [blame] | 61 | "../call:bitrate_allocator", |
ossu | f515ab8 | 2016-12-07 04:52:58 -0800 | [diff] [blame] | 62 | "../call:call_interfaces", |
nisse | d76b7b2 | 2017-06-01 04:02:35 -0700 | [diff] [blame] | 63 | "../call:rtp_interfaces", |
aleloi | 04c0722 | 2016-11-22 06:42:53 -0800 | [diff] [blame] | 64 | "../common_audio", |
Mirko Bonadei | dbbb33c | 2018-02-05 15:50:41 +0100 | [diff] [blame] | 65 | "../common_audio:common_audio_c", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 66 | "../logging:rtc_event_audio", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 67 | "../logging:rtc_event_log_api", |
Oskar Sundbom | 56ef305 | 2018-10-30 16:11:02 +0100 | [diff] [blame^] | 68 | "../logging:rtc_stream_config", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 69 | "../modules/audio_coding", |
| 70 | "../modules/audio_coding:audio_format_conversion", |
| 71 | "../modules/audio_coding:audio_network_adaptor_config", |
ossu | 20a4b3f | 2017-04-27 02:08:52 -0700 | [diff] [blame] | 72 | "../modules/audio_coding:cng", |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 73 | "../modules/audio_device", |
| 74 | "../modules/audio_processing", |
stefan | 7de8d64 | 2017-02-07 07:14:08 -0800 | [diff] [blame] | 75 | "../modules/bitrate_controller:bitrate_controller", |
kjellander | 676e08f | 2016-12-07 08:23:27 -0800 | [diff] [blame] | 76 | "../modules/pacing:pacing", |
| 77 | "../modules/remote_bitrate_estimator:remote_bitrate_estimator", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 78 | "../modules/rtp_rtcp", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 79 | "../modules/rtp_rtcp:rtp_rtcp_format", |
| 80 | "../modules/utility", |
Jonas Olsson | abbe841 | 2018-04-03 13:40:05 +0200 | [diff] [blame] | 81 | "../rtc_base:audio_format_to_string", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 82 | "../rtc_base:checks", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 83 | "../rtc_base:rate_limiter", |
henrika | 5f6bf24 | 2017-11-01 11:06:56 +0100 | [diff] [blame] | 84 | "../rtc_base:rtc_base", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 85 | "../rtc_base:rtc_base_approved", |
| 86 | "../rtc_base:rtc_task_queue", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 87 | "../rtc_base:safe_minmax", |
Tommi | fef0500 | 2018-02-27 13:51:08 +0100 | [diff] [blame] | 88 | "../rtc_base:stringutils", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 89 | "../system_wrappers", |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 90 | "../system_wrappers:field_trial", |
| 91 | "../system_wrappers:metrics", |
Fredrik Solenberg | 2a87797 | 2017-12-15 16:42:15 +0100 | [diff] [blame] | 92 | "utility:audio_frame_operations", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 93 | "//third_party/abseil-cpp/absl/memory", |
Danil Chapovalov | b9b146c | 2018-06-15 12:28:07 +0200 | [diff] [blame] | 94 | "//third_party/abseil-cpp/absl/types:optional", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 95 | ] |
| 96 | } |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 97 | if (rtc_include_tests) { |
Fredrik Solenberg | 73276ad | 2017-09-14 14:46:47 +0200 | [diff] [blame] | 98 | rtc_source_set("audio_end_to_end_test") { |
| 99 | testonly = true |
| 100 | |
| 101 | sources = [ |
| 102 | "test/audio_end_to_end_test.cc", |
| 103 | "test/audio_end_to_end_test.h", |
| 104 | ] |
| 105 | deps = [ |
| 106 | ":audio", |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 107 | "../api:simulated_network_api", |
Artem Titov | 4e199e9 | 2018-08-20 13:30:39 +0200 | [diff] [blame] | 108 | "../call:fake_network", |
| 109 | "../call:simulated_network", |
Fredrik Solenberg | 73276ad | 2017-09-14 14:46:47 +0200 | [diff] [blame] | 110 | "../system_wrappers:system_wrappers", |
Fredrik Solenberg | 73276ad | 2017-09-14 14:46:47 +0200 | [diff] [blame] | 111 | "../test:test_common", |
| 112 | "../test:test_support", |
| 113 | ] |
| 114 | |
| 115 | if (!build_with_chromium && is_clang) { |
| 116 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 117 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 118 | } |
| 119 | } |
| 120 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 121 | rtc_source_set("audio_tests") { |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 122 | testonly = true |
kjellander | 676e08f | 2016-12-07 08:23:27 -0800 | [diff] [blame] | 123 | |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 124 | sources = [ |
| 125 | "audio_receive_stream_unittest.cc", |
solenberg | 18f5427 | 2017-09-15 09:56:08 -0700 | [diff] [blame] | 126 | "audio_send_stream_tests.cc", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 127 | "audio_send_stream_unittest.cc", |
| 128 | "audio_state_unittest.cc", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 129 | "mock_voe_channel_proxy.h", |
| 130 | "remix_resample_unittest.cc", |
Mirko Bonadei | 264bee8 | 2018-08-07 08:53:41 +0200 | [diff] [blame] | 131 | "test/audio_stats_test.cc", |
Niels Möller | 7d76a31 | 2018-10-26 12:57:07 +0200 | [diff] [blame] | 132 | "test/media_transport_test.cc", |
saza | c58f8c0 | 2017-07-19 00:39:19 -0700 | [diff] [blame] | 133 | "time_interval_unittest.cc", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 134 | "transport_feedback_packet_loss_tracker_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 135 | ] |
| 136 | deps = [ |
| 137 | ":audio", |
Fredrik Solenberg | 73276ad | 2017-09-14 14:46:47 +0200 | [diff] [blame] | 138 | ":audio_end_to_end_test", |
Niels Möller | 7d76a31 | 2018-10-26 12:57:07 +0200 | [diff] [blame] | 139 | "../api:loopback_media_transport", |
aleloi | 04c0722 | 2016-11-22 06:42:53 -0800 | [diff] [blame] | 140 | "../api:mock_audio_mixer", |
Benjamin Wright | 78410ad | 2018-10-25 09:52:57 -0700 | [diff] [blame] | 141 | "../api:mock_frame_decryptor", |
| 142 | "../api:mock_frame_encryptor", |
Fredrik Solenberg | bbf21a3 | 2018-04-12 22:44:09 +0200 | [diff] [blame] | 143 | "../api/audio:audio_frame_api", |
Niels Möller | 7d76a31 | 2018-10-26 12:57:07 +0200 | [diff] [blame] | 144 | "../api/audio_codecs:audio_codecs_api", |
| 145 | "../api/audio_codecs/opus:audio_decoder_opus", |
| 146 | "../api/audio_codecs/opus:audio_encoder_opus", |
Sebastian Jansson | 5f83cf0 | 2018-05-08 14:52:22 +0200 | [diff] [blame] | 147 | "../api/units:time_delta", |
Niels Möller | 7d76a31 | 2018-10-26 12:57:07 +0200 | [diff] [blame] | 148 | "../call:mock_bitrate_allocator", |
Fredrik Solenberg | 2a87797 | 2017-12-15 16:42:15 +0100 | [diff] [blame] | 149 | "../call:mock_call_interfaces", |
Sebastian Jansson | ef9daee | 2018-02-22 14:49:02 +0100 | [diff] [blame] | 150 | "../call:mock_rtp_interfaces", |
Patrik Höglund | c0e6804 | 2017-11-13 17:04:05 +0100 | [diff] [blame] | 151 | "../call:rtp_interfaces", |
nisse | 0f15f92 | 2017-06-21 01:05:22 -0700 | [diff] [blame] | 152 | "../call:rtp_receiver", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 153 | "../common_audio", |
Patrik Höglund | 731082c | 2018-01-03 09:08:20 +0100 | [diff] [blame] | 154 | "../logging:mocks", |
Niels Möller | 7d76a31 | 2018-10-26 12:57:07 +0200 | [diff] [blame] | 155 | "../logging:rtc_event_log_api", |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 156 | "../modules/audio_device:mock_audio_device", |
Niels Möller | 7d76a31 | 2018-10-26 12:57:07 +0200 | [diff] [blame] | 157 | |
| 158 | # For TestAudioDeviceModule |
| 159 | "../modules/audio_device:audio_device_impl", |
aleloi | 04c0722 | 2016-11-22 06:42:53 -0800 | [diff] [blame] | 160 | "../modules/audio_mixer:audio_mixer_impl", |
Ivo Creusen | 56d4609 | 2017-11-24 17:29:59 +0100 | [diff] [blame] | 161 | "../modules/audio_processing:audio_processing_statistics", |
Patrik Höglund | 6213929 | 2017-12-19 16:44:45 +0100 | [diff] [blame] | 162 | "../modules/audio_processing:mocks", |
Patrik Höglund | 94dc177 | 2018-01-02 14:20:17 +0100 | [diff] [blame] | 163 | "../modules/bitrate_controller:mocks", |
kjellander | 676e08f | 2016-12-07 08:23:27 -0800 | [diff] [blame] | 164 | "../modules/pacing:pacing", |
Patrik Höglund | c0e6804 | 2017-11-13 17:04:05 +0100 | [diff] [blame] | 165 | "../modules/rtp_rtcp:mock_rtp_rtcp", |
| 166 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Niels Möller | 7d76a31 | 2018-10-26 12:57:07 +0200 | [diff] [blame] | 167 | "../modules/utility", |
Fredrik Solenberg | a8b7c7f | 2018-01-17 11:18:31 +0100 | [diff] [blame] | 168 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 169 | "../rtc_base:rtc_base_approved", |
Patrik Höglund | c0e6804 | 2017-11-13 17:04:05 +0100 | [diff] [blame] | 170 | "../rtc_base:rtc_base_tests_utils", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 171 | "../rtc_base:rtc_task_queue", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 172 | "../rtc_base:safe_compare", |
Patrik Höglund | c0e6804 | 2017-11-13 17:04:05 +0100 | [diff] [blame] | 173 | "../system_wrappers:system_wrappers", |
| 174 | "../test:audio_codec_mocks", |
| 175 | "../test:rtp_test_utils", |
aleloi | 10111bc | 2016-11-17 06:48:48 -0800 | [diff] [blame] | 176 | "../test:test_common", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 177 | "../test:test_support", |
ehmaldonado | 894c2bb | 2017-01-05 06:03:24 -0800 | [diff] [blame] | 178 | "utility:utility_tests", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 179 | "//testing/gtest", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 180 | "//third_party/abseil-cpp/absl/memory", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 181 | ] |
oprypin | 5e1ca78 | 2017-03-20 02:06:18 -0700 | [diff] [blame] | 182 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 183 | if (!build_with_chromium && is_clang) { |
| 184 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 185 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 186 | } |
| 187 | } |
kjellander | 8f8d1a0 | 2017-03-06 04:01:16 -0800 | [diff] [blame] | 188 | |
| 189 | if (rtc_enable_protobuf) { |
oprypin | 6d305ba | 2017-03-30 04:01:30 -0700 | [diff] [blame] | 190 | rtc_test("low_bandwidth_audio_test") { |
kjellander | 8f8d1a0 | 2017-03-06 04:01:16 -0800 | [diff] [blame] | 191 | testonly = true |
| 192 | |
| 193 | sources = [ |
| 194 | "test/low_bandwidth_audio_test.cc", |
| 195 | ] |
| 196 | |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 197 | deps = [ |
Fredrik Solenberg | 73276ad | 2017-09-14 14:46:47 +0200 | [diff] [blame] | 198 | ":audio_end_to_end_test", |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 199 | "../api:simulated_network_api", |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 200 | "../common_audio", |
oprypin | 9b2f20c | 2017-08-29 05:51:57 -0700 | [diff] [blame] | 201 | "../rtc_base:rtc_base_approved", |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 202 | "../system_wrappers", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 203 | "../test:fileutils", |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 204 | "../test:test_common", |
| 205 | "../test:test_main", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 206 | "//testing/gtest", |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 207 | ] |
kjellander | 8f8d1a0 | 2017-03-06 04:01:16 -0800 | [diff] [blame] | 208 | if (is_android) { |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 209 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 210 | } |
| 211 | |
| 212 | data = [ |
Oleh Prypin | 8cf0a87 | 2018-03-18 22:31:06 +0100 | [diff] [blame] | 213 | "../resources/voice_engine/audio_tiny16.wav", |
Oleh Prypin | 9c1ee36 | 2018-03-19 15:58:08 +0100 | [diff] [blame] | 214 | "../resources/voice_engine/audio_tiny48.wav", |
Oleh Prypin | 8cf0a87 | 2018-03-18 22:31:06 +0100 | [diff] [blame] | 215 | ] |
| 216 | |
| 217 | if (!build_with_chromium && is_clang) { |
| 218 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) |
| 219 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | group("low_bandwidth_audio_perf_test") { |
| 224 | testonly = true |
| 225 | |
| 226 | deps = [ |
| 227 | ":low_bandwidth_audio_test", |
| 228 | ] |
| 229 | |
| 230 | data = [ |
| 231 | "test/low_bandwidth_audio_test.py", |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 232 | "../resources/voice_engine/audio_tiny16.wav", |
| 233 | "../resources/voice_engine/audio_tiny48.wav", |
oprypin | 92220ff | 2017-03-23 03:40:03 -0700 | [diff] [blame] | 234 | ] |
Oleh Prypin | 7b2676f | 2018-03-19 11:33:03 +0100 | [diff] [blame] | 235 | if (is_win) { |
| 236 | data += [ "${root_out_dir}/low_bandwidth_audio_test.exe" ] |
| 237 | } else { |
| 238 | data += [ "${root_out_dir}/low_bandwidth_audio_test" ] |
| 239 | } |
| 240 | |
Edward Lemur | 98d4036 | 2018-01-15 17:37:04 +0100 | [diff] [blame] | 241 | if (is_linux || is_android) { |
Edward Lemur | 2011075 | 2017-09-28 16:14:37 +0200 | [diff] [blame] | 242 | data += [ |
| 243 | "../tools_webrtc/audio_quality/linux/PolqaOem64", |
| 244 | "../tools_webrtc/audio_quality/linux/pesq", |
| 245 | ] |
| 246 | } |
| 247 | if (is_win) { |
| 248 | data += [ |
| 249 | "../tools_webrtc/audio_quality/win/PolqaOem64.dll", |
| 250 | "../tools_webrtc/audio_quality/win/PolqaOem64.exe", |
| 251 | "../tools_webrtc/audio_quality/win/pesq.exe", |
| 252 | "../tools_webrtc/audio_quality/win/vcomp120.dll", |
| 253 | ] |
| 254 | } |
| 255 | if (is_mac) { |
| 256 | data += [ "../tools_webrtc/audio_quality/mac/pesq" ] |
| 257 | } |
Oleh Prypin | 650a826 | 2018-03-15 13:52:41 +0000 | [diff] [blame] | 258 | |
Oleh Prypin | 8cf0a87 | 2018-03-18 22:31:06 +0100 | [diff] [blame] | 259 | write_runtime_deps = "${root_out_dir}/${target_name}.runtime_deps" |
kjellander | 8f8d1a0 | 2017-03-06 04:01:16 -0800 | [diff] [blame] | 260 | } |
| 261 | } |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 262 | |
| 263 | rtc_source_set("audio_perf_tests") { |
| 264 | testonly = true |
| 265 | |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 266 | sources = [ |
| 267 | "test/audio_bwe_integration_test.cc", |
| 268 | "test/audio_bwe_integration_test.h", |
| 269 | ] |
| 270 | deps = [ |
Artem Titov | 46c4e60 | 2018-08-17 14:26:54 +0200 | [diff] [blame] | 271 | "../api:simulated_network_api", |
Artem Titov | 4e199e9 | 2018-08-20 13:30:39 +0200 | [diff] [blame] | 272 | "../call:fake_network", |
| 273 | "../call:simulated_network", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 274 | "../common_audio", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 275 | "../rtc_base:rtc_base_approved", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 276 | "../system_wrappers", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 277 | "../test:field_trial", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 278 | "../test:fileutils", |
eladalon | 413ee9a | 2017-08-22 04:02:52 -0700 | [diff] [blame] | 279 | "../test:single_threaded_task_queue", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 280 | "../test:test_common", |
| 281 | "../test:test_main", |
Yves Gerey | 21cddff | 2018-10-30 21:12:42 +0100 | [diff] [blame] | 282 | "../test:test_support", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 283 | "//testing/gtest", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 284 | "//third_party/abseil-cpp/absl/memory", |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 285 | ] |
| 286 | |
| 287 | data = [ |
| 288 | "//resources/voice_engine/audio_dtx16.wav", |
| 289 | ] |
| 290 | |
| 291 | if (!build_with_chromium && is_clang) { |
| 292 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 293 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 294 | } |
| 295 | } |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 296 | } |