kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # Copyright (c) 2014 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@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 10 | |
kwiberg | 9774447 | 2017-01-10 01:12:51 -0800 | [diff] [blame] | 11 | rtc_static_library("audio_coder") { |
| 12 | sources = [ |
| 13 | "coder.cc", |
| 14 | "coder.h", |
| 15 | ] |
| 16 | deps = [ |
| 17 | "..:webrtc_common", |
kwiberg | 087bd34 | 2017-02-10 08:15:44 -0800 | [diff] [blame] | 18 | "../api/audio_codecs:builtin_audio_decoder_factory", |
kwiberg | 9774447 | 2017-01-10 01:12:51 -0800 | [diff] [blame] | 19 | "../modules/audio_coding", |
| 20 | "../modules/audio_coding:audio_format_conversion", |
kwiberg | 9774447 | 2017-01-10 01:12:51 -0800 | [diff] [blame] | 21 | "../modules/audio_coding:rent_a_codec", |
| 22 | ] |
| 23 | |
| 24 | if (!build_with_chromium && is_clang) { |
| 25 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 26 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | rtc_static_library("file_player") { |
| 31 | sources = [ |
| 32 | "file_player.cc", |
| 33 | "file_player.h", |
| 34 | ] |
| 35 | deps = [ |
| 36 | ":audio_coder", |
| 37 | "..:webrtc_common", |
| 38 | "../common_audio", |
| 39 | "../modules/media_file", |
| 40 | "../system_wrappers", |
| 41 | ] |
| 42 | |
| 43 | if (!build_with_chromium && is_clang) { |
| 44 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 45 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | rtc_static_library("file_recorder") { |
| 50 | sources = [ |
| 51 | "file_recorder.cc", |
| 52 | "file_recorder.h", |
| 53 | ] |
| 54 | deps = [ |
| 55 | ":audio_coder", |
| 56 | "..:webrtc_common", |
| 57 | "../base:rtc_base_approved", |
| 58 | "../common_audio", |
| 59 | "../modules/media_file:media_file", |
| 60 | "../system_wrappers", |
| 61 | ] |
| 62 | |
| 63 | if (!build_with_chromium && is_clang) { |
| 64 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 65 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 66 | } |
| 67 | } |
| 68 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 69 | rtc_static_library("voice_engine") { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 70 | sources = [ |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 71 | "channel.cc", |
| 72 | "channel.h", |
| 73 | "channel_manager.cc", |
| 74 | "channel_manager.h", |
solenberg | 1372508 | 2015-11-25 08:16:52 -0800 | [diff] [blame] | 75 | "channel_proxy.cc", |
| 76 | "channel_proxy.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 77 | "include/voe_audio_processing.h", |
| 78 | "include/voe_base.h", |
| 79 | "include/voe_codec.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 80 | "include/voe_errors.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 81 | "include/voe_file.h", |
| 82 | "include/voe_hardware.h", |
| 83 | "include/voe_neteq_stats.h", |
| 84 | "include/voe_network.h", |
| 85 | "include/voe_rtp_rtcp.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 86 | "include/voe_volume_control.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 87 | "monitor_module.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 88 | "output_mixer.cc", |
| 89 | "output_mixer.h", |
| 90 | "shared_data.cc", |
| 91 | "shared_data.h", |
| 92 | "statistics.cc", |
| 93 | "statistics.h", |
| 94 | "transmit_mixer.cc", |
| 95 | "transmit_mixer.h", |
minyue | 435ddf9 | 2017-01-23 08:07:05 -0800 | [diff] [blame] | 96 | "transport_feedback_packet_loss_tracker.cc", |
| 97 | "transport_feedback_packet_loss_tracker.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 98 | "utility.cc", |
| 99 | "utility.h", |
| 100 | "voe_audio_processing_impl.cc", |
| 101 | "voe_audio_processing_impl.h", |
| 102 | "voe_base_impl.cc", |
| 103 | "voe_base_impl.h", |
| 104 | "voe_codec_impl.cc", |
| 105 | "voe_codec_impl.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 106 | "voe_file_impl.cc", |
| 107 | "voe_file_impl.h", |
| 108 | "voe_hardware_impl.cc", |
| 109 | "voe_hardware_impl.h", |
| 110 | "voe_neteq_stats_impl.cc", |
| 111 | "voe_neteq_stats_impl.h", |
| 112 | "voe_network_impl.cc", |
| 113 | "voe_network_impl.h", |
| 114 | "voe_rtp_rtcp_impl.cc", |
| 115 | "voe_rtp_rtcp_impl.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 116 | "voe_volume_control_impl.cc", |
| 117 | "voe_volume_control_impl.h", |
| 118 | "voice_engine_defines.h", |
| 119 | "voice_engine_impl.cc", |
| 120 | "voice_engine_impl.h", |
| 121 | ] |
| 122 | |
| 123 | if (is_win) { |
| 124 | defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ] |
kjellander@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 125 | |
| 126 | cflags = [ |
| 127 | # TODO(kjellander): Bug 261: fix this warning. |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 128 | "/wd4373", # Virtual function override. |
kjellander@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 129 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 130 | } |
| 131 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 132 | if (!build_with_chromium && is_clang) { |
| 133 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 134 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 135 | } |
| 136 | |
ehmaldonado | 53cec04 | 2016-09-09 05:32:14 -0700 | [diff] [blame] | 137 | public_deps = [ |
| 138 | "../modules/audio_coding", |
| 139 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 140 | deps = [ |
kwiberg | 9774447 | 2017-01-10 01:12:51 -0800 | [diff] [blame] | 141 | ":file_player", |
| 142 | ":file_recorder", |
aleloi | e6ca9ec | 2016-08-10 05:01:51 -0700 | [diff] [blame] | 143 | ":level_indicator", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 144 | "..:webrtc_common", |
aleloi | aed581a | 2016-10-20 06:32:39 -0700 | [diff] [blame] | 145 | "../api:audio_mixer_api", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 146 | "../api:call_api", |
aleloi | a8eb756 | 2016-11-28 07:02:13 -0800 | [diff] [blame] | 147 | "../api:transport_api", |
kwiberg | 087bd34 | 2017-02-10 08:15:44 -0800 | [diff] [blame] | 148 | "../api/audio_codecs:audio_codecs_api", |
| 149 | "../api/audio_codecs:builtin_audio_decoder_factory", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 150 | "../audio/utility:audio_frame_operations", |
kjellander@webrtc.org | 7ffeab5 | 2016-02-26 22:46:09 +0100 | [diff] [blame] | 151 | "../base:rtc_base_approved", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 152 | "../common_audio", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 153 | "../logging:rtc_event_log_api", |
kwiberg | da2bf4e | 2016-10-24 13:47:09 -0700 | [diff] [blame] | 154 | "../modules/audio_coding:audio_format_conversion", |
aleloi | 9ae585d | 2016-10-13 06:57:16 -0700 | [diff] [blame] | 155 | "../modules/audio_coding:rent_a_codec", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 156 | "../modules/audio_conference_mixer", |
| 157 | "../modules/audio_device", |
| 158 | "../modules/audio_processing", |
| 159 | "../modules/bitrate_controller", |
| 160 | "../modules/media_file", |
Stefan Holmer | b86d4e4 | 2015-12-07 10:26:18 +0100 | [diff] [blame] | 161 | "../modules/pacing", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 162 | "../modules/rtp_rtcp", |
| 163 | "../modules/utility", |
| 164 | "../system_wrappers", |
| 165 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 166 | } |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 167 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 168 | rtc_static_library("level_indicator") { |
aleloi | e6ca9ec | 2016-08-10 05:01:51 -0700 | [diff] [blame] | 169 | sources = [ |
| 170 | "level_indicator.cc", |
| 171 | "level_indicator.h", |
| 172 | ] |
| 173 | |
aleloi | e6ca9ec | 2016-08-10 05:01:51 -0700 | [diff] [blame] | 174 | deps = [ |
| 175 | "..:webrtc_common", |
| 176 | "../base:rtc_base_approved", |
| 177 | "../common_audio", |
| 178 | ] |
| 179 | } |
| 180 | |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 181 | if (rtc_include_tests) { |
solenberg | ba56b6c | 2016-09-13 07:29:12 -0700 | [diff] [blame] | 182 | config("channel_transport_warnings_config") { |
| 183 | if (is_win) { |
| 184 | cflags = [ "/wd4302" ] # cast truncation |
| 185 | |
| 186 | if (is_clang) { |
| 187 | # GN orders flags on a target before flags from configs. The default |
| 188 | # config adds -Wall, and this flag have to be after -Wall -- so they need |
| 189 | # to come from a config and cannot be on the target directly. |
| 190 | cflags += [ |
| 191 | "-Wno-parentheses-equality", |
| 192 | "-Wno-reorder", |
| 193 | "-Wno-tautological-constant-out-of-range-compare", |
| 194 | |
| 195 | # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6268 |
| 196 | # for -Wno-thread-safety-analysis |
| 197 | "-Wno-thread-safety-analysis", |
| 198 | "-Wno-unused-private-field", |
| 199 | ] |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 204 | rtc_static_library("channel_transport") { |
solenberg | ba56b6c | 2016-09-13 07:29:12 -0700 | [diff] [blame] | 205 | testonly = true |
| 206 | sources = [ |
| 207 | "test/channel_transport/channel_transport.cc", |
| 208 | "test/channel_transport/channel_transport.h", |
| 209 | "test/channel_transport/traffic_control_win.cc", |
| 210 | "test/channel_transport/traffic_control_win.h", |
| 211 | "test/channel_transport/udp_socket2_manager_win.cc", |
| 212 | "test/channel_transport/udp_socket2_manager_win.h", |
| 213 | "test/channel_transport/udp_socket2_win.cc", |
| 214 | "test/channel_transport/udp_socket2_win.h", |
| 215 | "test/channel_transport/udp_socket_manager_posix.cc", |
| 216 | "test/channel_transport/udp_socket_manager_posix.h", |
| 217 | "test/channel_transport/udp_socket_manager_wrapper.cc", |
| 218 | "test/channel_transport/udp_socket_manager_wrapper.h", |
| 219 | "test/channel_transport/udp_socket_posix.cc", |
| 220 | "test/channel_transport/udp_socket_posix.h", |
| 221 | "test/channel_transport/udp_socket_wrapper.cc", |
| 222 | "test/channel_transport/udp_socket_wrapper.h", |
| 223 | "test/channel_transport/udp_transport.h", |
| 224 | "test/channel_transport/udp_transport_impl.cc", |
| 225 | "test/channel_transport/udp_transport_impl.h", |
| 226 | ] |
| 227 | |
| 228 | configs += [ ":channel_transport_warnings_config" ] |
| 229 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 230 | if (!build_with_chromium && is_clang) { |
| 231 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
solenberg | ba56b6c | 2016-09-13 07:29:12 -0700 | [diff] [blame] | 232 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 233 | } |
| 234 | |
| 235 | deps = [ |
kjellander | cfa95aa | 2017-03-02 21:28:23 -0800 | [diff] [blame^] | 236 | ":voice_engine", |
solenberg | ba56b6c | 2016-09-13 07:29:12 -0700 | [diff] [blame] | 237 | "..:webrtc_common", |
aleloi | a8eb756 | 2016-11-28 07:02:13 -0800 | [diff] [blame] | 238 | "../api:transport_api", |
kjellander | cfa95aa | 2017-03-02 21:28:23 -0800 | [diff] [blame^] | 239 | "../base:rtc_base_approved", |
solenberg | ba56b6c | 2016-09-13 07:29:12 -0700 | [diff] [blame] | 240 | "../system_wrappers", |
kjellander | cfa95aa | 2017-03-02 21:28:23 -0800 | [diff] [blame^] | 241 | "../test:test_support", |
solenberg | ba56b6c | 2016-09-13 07:29:12 -0700 | [diff] [blame] | 242 | "//testing/gtest", |
| 243 | ] |
| 244 | } |
| 245 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 246 | rtc_test("voice_engine_unittests") { |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 247 | deps = [ |
solenberg | ba56b6c | 2016-09-13 07:29:12 -0700 | [diff] [blame] | 248 | ":channel_transport", |
kjellander | cfa95aa | 2017-03-02 21:28:23 -0800 | [diff] [blame^] | 249 | ":file_player", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 250 | ":voice_engine", |
kjellander | cfa95aa | 2017-03-02 21:28:23 -0800 | [diff] [blame^] | 251 | "../base:rtc_base_approved", |
| 252 | "../test:test_common", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 253 | "//testing/gmock", |
| 254 | "//testing/gtest", |
kwiberg | 9774447 | 2017-01-10 01:12:51 -0800 | [diff] [blame] | 255 | "//third_party/gflags", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 256 | "//webrtc/common_audio", |
| 257 | "//webrtc/modules/audio_coding", |
| 258 | "//webrtc/modules/audio_conference_mixer", |
| 259 | "//webrtc/modules/audio_device", |
| 260 | "//webrtc/modules/audio_processing", |
| 261 | "//webrtc/modules/media_file", |
| 262 | "//webrtc/modules/rtp_rtcp", |
solenberg | 71b9b58 | 2016-11-25 11:45:05 -0800 | [diff] [blame] | 263 | "//webrtc/modules/utility", |
kjellander | cfa95aa | 2017-03-02 21:28:23 -0800 | [diff] [blame^] | 264 | "//webrtc/modules/video_capture:video_capture", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 265 | "//webrtc/system_wrappers", |
ehmaldonado | 26bddb9 | 2016-11-30 06:12:01 -0800 | [diff] [blame] | 266 | "//webrtc/test:test_main", |
kjellander | cfa95aa | 2017-03-02 21:28:23 -0800 | [diff] [blame^] | 267 | "//webrtc/test:video_test_common", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 268 | ] |
| 269 | |
| 270 | if (is_android) { |
| 271 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
sakal | 714dd4e | 2016-08-15 02:29:11 -0700 | [diff] [blame] | 272 | shard_timeout = 900 |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 273 | } |
| 274 | |
| 275 | sources = [ |
| 276 | "channel_unittest.cc", |
kwiberg | 9774447 | 2017-01-10 01:12:51 -0800 | [diff] [blame] | 277 | "file_player_unittests.cc", |
solenberg | ba56b6c | 2016-09-13 07:29:12 -0700 | [diff] [blame] | 278 | "test/channel_transport/udp_socket_manager_unittest.cc", |
| 279 | "test/channel_transport/udp_socket_wrapper_unittest.cc", |
| 280 | "test/channel_transport/udp_transport_unittest.cc", |
minyue | 435ddf9 | 2017-01-23 08:07:05 -0800 | [diff] [blame] | 281 | "transport_feedback_packet_loss_tracker_unittest.cc", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 282 | "utility_unittest.cc", |
| 283 | "voe_audio_processing_unittest.cc", |
| 284 | "voe_base_unittest.cc", |
| 285 | "voe_codec_unittest.cc", |
| 286 | "voe_network_unittest.cc", |
| 287 | "voice_engine_fixture.cc", |
| 288 | "voice_engine_fixture.h", |
| 289 | ] |
| 290 | |
kwiberg | 9774447 | 2017-01-10 01:12:51 -0800 | [diff] [blame] | 291 | data = [ |
| 292 | "//resources/utility/encapsulated_pcm16b_8khz.wav", |
| 293 | "//resources/utility/encapsulated_pcmu_8khz.wav", |
| 294 | ] |
| 295 | |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 296 | if (is_win) { |
| 297 | defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ] |
| 298 | |
| 299 | cflags = [ |
| 300 | # TODO(kjellander): Bug 261: fix this warning. |
| 301 | "/wd4373", # Virtual function override. |
| 302 | ] |
| 303 | } |
| 304 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 305 | if (!build_with_chromium && is_clang) { |
| 306 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 307 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 308 | } |
| 309 | } |
| 310 | |
solenberg | fb2c1d0 | 2016-09-15 13:12:02 -0700 | [diff] [blame] | 311 | rtc_executable("voe_cmd_test") { |
| 312 | testonly = true |
| 313 | |
| 314 | deps = [ |
| 315 | ":channel_transport", |
| 316 | ":voice_engine", |
kjellander | cfa95aa | 2017-03-02 21:28:23 -0800 | [diff] [blame^] | 317 | "..:webrtc_common", |
| 318 | "../base:rtc_base_approved", |
solenberg | fb2c1d0 | 2016-09-15 13:12:02 -0700 | [diff] [blame] | 319 | "//testing/gtest", |
| 320 | "//third_party/gflags", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 321 | "//webrtc/logging:rtc_event_log_api", |
kjellander | cfa95aa | 2017-03-02 21:28:23 -0800 | [diff] [blame^] | 322 | "//webrtc/modules/audio_processing", |
solenberg | fb2c1d0 | 2016-09-15 13:12:02 -0700 | [diff] [blame] | 323 | "//webrtc/system_wrappers", |
| 324 | "//webrtc/system_wrappers:system_wrappers_default", |
| 325 | "//webrtc/test:test_support", |
| 326 | ] |
| 327 | |
| 328 | sources = [ |
| 329 | "test/cmd_test/voe_cmd_test.cc", |
| 330 | ] |
| 331 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 332 | if (!build_with_chromium && is_clang) { |
| 333 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
solenberg | fb2c1d0 | 2016-09-15 13:12:02 -0700 | [diff] [blame] | 334 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 335 | } |
| 336 | } |
| 337 | |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 338 | if (!is_ios) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 339 | rtc_executable("voe_auto_test") { |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 340 | testonly = true |
| 341 | |
| 342 | deps = [ |
solenberg | ba56b6c | 2016-09-13 07:29:12 -0700 | [diff] [blame] | 343 | ":channel_transport", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 344 | ":voice_engine", |
kjellander | cfa95aa | 2017-03-02 21:28:23 -0800 | [diff] [blame^] | 345 | "..:webrtc_common", |
| 346 | "../base:rtc_base_approved", |
| 347 | "../modules/audio_device:audio_device", |
| 348 | "../modules/audio_processing:audio_processing", |
| 349 | "../modules/rtp_rtcp:rtp_rtcp", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 350 | "//testing/gmock", |
| 351 | "//testing/gtest", |
| 352 | "//third_party/gflags", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 353 | "//webrtc/logging:rtc_event_log_api", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 354 | "//webrtc/modules/video_capture", |
| 355 | "//webrtc/system_wrappers", |
| 356 | "//webrtc/system_wrappers/:system_wrappers_default", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 357 | "//webrtc/test/:test_common", |
| 358 | "//webrtc/test/:test_support", |
ehmaldonado | 656610f | 2017-02-06 02:21:11 -0800 | [diff] [blame] | 359 | "//webrtc/test/:video_test_common", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 360 | ] |
| 361 | |
| 362 | sources = [ |
| 363 | "test/auto_test/automated_mode.cc", |
| 364 | "test/auto_test/extended/agc_config_test.cc", |
| 365 | "test/auto_test/extended/ec_metrics_test.cc", |
| 366 | "test/auto_test/fakes/conference_transport.cc", |
| 367 | "test/auto_test/fakes/conference_transport.h", |
| 368 | "test/auto_test/fakes/loudest_filter.cc", |
| 369 | "test/auto_test/fakes/loudest_filter.h", |
| 370 | "test/auto_test/fixtures/after_initialization_fixture.cc", |
| 371 | "test/auto_test/fixtures/after_initialization_fixture.h", |
| 372 | "test/auto_test/fixtures/after_streaming_fixture.cc", |
| 373 | "test/auto_test/fixtures/after_streaming_fixture.h", |
| 374 | "test/auto_test/fixtures/before_initialization_fixture.cc", |
| 375 | "test/auto_test/fixtures/before_initialization_fixture.h", |
| 376 | "test/auto_test/fixtures/before_streaming_fixture.cc", |
| 377 | "test/auto_test/fixtures/before_streaming_fixture.h", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 378 | "test/auto_test/standard/audio_processing_test.cc", |
| 379 | "test/auto_test/standard/codec_before_streaming_test.cc", |
| 380 | "test/auto_test/standard/codec_test.cc", |
| 381 | "test/auto_test/standard/dtmf_test.cc", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 382 | "test/auto_test/standard/file_before_streaming_test.cc", |
| 383 | "test/auto_test/standard/file_test.cc", |
| 384 | "test/auto_test/standard/hardware_before_initializing_test.cc", |
| 385 | "test/auto_test/standard/hardware_test.cc", |
| 386 | "test/auto_test/standard/mixing_test.cc", |
| 387 | "test/auto_test/standard/neteq_stats_test.cc", |
| 388 | "test/auto_test/standard/rtp_rtcp_before_streaming_test.cc", |
| 389 | "test/auto_test/standard/rtp_rtcp_extensions.cc", |
| 390 | "test/auto_test/standard/rtp_rtcp_test.cc", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 391 | "test/auto_test/standard/voe_base_misc_test.cc", |
| 392 | "test/auto_test/standard/volume_test.cc", |
| 393 | "test/auto_test/voe_conference_test.cc", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 394 | "test/auto_test/voe_standard_test.cc", |
| 395 | "test/auto_test/voe_standard_test.h", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 396 | "test/auto_test/voe_test_defines.h", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 397 | ] |
| 398 | |
| 399 | if (!is_android) { |
| 400 | # Some tests are not supported on android yet, exclude these tests. |
| 401 | sources += |
| 402 | [ "test/auto_test/standard/hardware_before_streaming_test.cc" ] |
| 403 | } |
| 404 | |
| 405 | defines = [] |
| 406 | |
| 407 | if (rtc_enable_protobuf) { |
| 408 | defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| 409 | } |
| 410 | |
| 411 | if (is_win) { |
| 412 | defines += [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ] |
| 413 | |
| 414 | cflags = [ |
| 415 | "/wd4267", # size_t to int truncation. |
| 416 | "/wd4373", # Virtual function override. |
| 417 | # TODO(kjellander): Bug 261: fix this warning. |
| 418 | ] |
| 419 | } |
| 420 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 421 | if (!build_with_chromium && is_clang) { |
| 422 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 423 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 424 | } |
| 425 | } |
| 426 | } |
| 427 | } |