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 | |
| 9 | import("../build/webrtc.gni") |
| 10 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 11 | rtc_source_set("voice_engine") { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 12 | sources = [ |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 13 | "channel.cc", |
| 14 | "channel.h", |
| 15 | "channel_manager.cc", |
| 16 | "channel_manager.h", |
solenberg | 1372508 | 2015-11-25 08:16:52 -0800 | [diff] [blame] | 17 | "channel_proxy.cc", |
| 18 | "channel_proxy.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 19 | "include/voe_audio_processing.h", |
| 20 | "include/voe_base.h", |
| 21 | "include/voe_codec.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 22 | "include/voe_errors.h", |
| 23 | "include/voe_external_media.h", |
| 24 | "include/voe_file.h", |
| 25 | "include/voe_hardware.h", |
| 26 | "include/voe_neteq_stats.h", |
| 27 | "include/voe_network.h", |
| 28 | "include/voe_rtp_rtcp.h", |
| 29 | "include/voe_video_sync.h", |
| 30 | "include/voe_volume_control.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 31 | "monitor_module.cc", |
| 32 | "monitor_module.h", |
| 33 | "network_predictor.cc", |
| 34 | "network_predictor.h", |
| 35 | "output_mixer.cc", |
| 36 | "output_mixer.h", |
| 37 | "shared_data.cc", |
| 38 | "shared_data.h", |
| 39 | "statistics.cc", |
| 40 | "statistics.h", |
| 41 | "transmit_mixer.cc", |
| 42 | "transmit_mixer.h", |
| 43 | "utility.cc", |
| 44 | "utility.h", |
| 45 | "voe_audio_processing_impl.cc", |
| 46 | "voe_audio_processing_impl.h", |
| 47 | "voe_base_impl.cc", |
| 48 | "voe_base_impl.h", |
| 49 | "voe_codec_impl.cc", |
| 50 | "voe_codec_impl.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 51 | "voe_external_media_impl.cc", |
| 52 | "voe_external_media_impl.h", |
| 53 | "voe_file_impl.cc", |
| 54 | "voe_file_impl.h", |
| 55 | "voe_hardware_impl.cc", |
| 56 | "voe_hardware_impl.h", |
| 57 | "voe_neteq_stats_impl.cc", |
| 58 | "voe_neteq_stats_impl.h", |
| 59 | "voe_network_impl.cc", |
| 60 | "voe_network_impl.h", |
| 61 | "voe_rtp_rtcp_impl.cc", |
| 62 | "voe_rtp_rtcp_impl.h", |
| 63 | "voe_video_sync_impl.cc", |
| 64 | "voe_video_sync_impl.h", |
| 65 | "voe_volume_control_impl.cc", |
| 66 | "voe_volume_control_impl.h", |
| 67 | "voice_engine_defines.h", |
| 68 | "voice_engine_impl.cc", |
| 69 | "voice_engine_impl.h", |
| 70 | ] |
| 71 | |
| 72 | if (is_win) { |
| 73 | defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ] |
kjellander@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 74 | |
| 75 | cflags = [ |
| 76 | # TODO(kjellander): Bug 261: fix this warning. |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 77 | "/wd4373", # Virtual function override. |
kjellander@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 78 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 79 | } |
| 80 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 81 | configs += [ "..:common_config" ] |
| 82 | public_configs = [ "..:common_inherited_config" ] |
| 83 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 84 | if (is_clang) { |
| 85 | # Suppress warnings from Chrome's Clang plugins. |
| 86 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 87 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 88 | } |
| 89 | |
| 90 | deps = [ |
aleloi | e6ca9ec | 2016-08-10 05:01:51 -0700 | [diff] [blame] | 91 | ":level_indicator", |
ivoc | b04965c | 2015-09-09 00:09:43 -0700 | [diff] [blame] | 92 | "..:rtc_event_log", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 93 | "..:webrtc_common", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 94 | "../api:call_api", |
kjellander@webrtc.org | 7ffeab5 | 2016-02-26 22:46:09 +0100 | [diff] [blame] | 95 | "../base:rtc_base_approved", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 96 | "../common_audio", |
| 97 | "../modules/audio_coding", |
| 98 | "../modules/audio_conference_mixer", |
| 99 | "../modules/audio_device", |
| 100 | "../modules/audio_processing", |
| 101 | "../modules/bitrate_controller", |
| 102 | "../modules/media_file", |
Stefan Holmer | b86d4e4 | 2015-12-07 10:26:18 +0100 | [diff] [blame] | 103 | "../modules/pacing", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 104 | "../modules/rtp_rtcp", |
| 105 | "../modules/utility", |
| 106 | "../system_wrappers", |
| 107 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 108 | } |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 109 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 110 | rtc_source_set("level_indicator") { |
aleloi | e6ca9ec | 2016-08-10 05:01:51 -0700 | [diff] [blame] | 111 | sources = [ |
| 112 | "level_indicator.cc", |
| 113 | "level_indicator.h", |
| 114 | ] |
| 115 | |
| 116 | configs += [ "..:common_config" ] |
| 117 | public_configs = [ "..:common_inherited_config" ] |
| 118 | |
| 119 | deps = [ |
| 120 | "..:webrtc_common", |
| 121 | "../base:rtc_base_approved", |
| 122 | "../common_audio", |
| 123 | ] |
| 124 | } |
| 125 | |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 126 | if (rtc_include_tests) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 127 | rtc_test("voice_engine_unittests") { |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 128 | deps = [ |
| 129 | ":voice_engine", |
| 130 | "//testing/gmock", |
| 131 | "//testing/gtest", |
| 132 | "//webrtc/common_audio", |
| 133 | "//webrtc/modules/audio_coding", |
| 134 | "//webrtc/modules/audio_conference_mixer", |
| 135 | "//webrtc/modules/audio_device", |
| 136 | "//webrtc/modules/audio_processing", |
| 137 | "//webrtc/modules/media_file", |
| 138 | "//webrtc/modules/rtp_rtcp", |
| 139 | "//webrtc/modules/utility", |
| 140 | "//webrtc/system_wrappers", |
| 141 | "//webrtc/test:test_support_main", |
| 142 | ] |
| 143 | |
| 144 | if (is_android) { |
| 145 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
sakal | 714dd4e | 2016-08-15 02:29:11 -0700 | [diff] [blame] | 146 | shard_timeout = 900 |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 147 | } |
| 148 | |
| 149 | sources = [ |
| 150 | "channel_unittest.cc", |
| 151 | "network_predictor_unittest.cc", |
| 152 | "transmit_mixer_unittest.cc", |
| 153 | "utility_unittest.cc", |
| 154 | "voe_audio_processing_unittest.cc", |
| 155 | "voe_base_unittest.cc", |
| 156 | "voe_codec_unittest.cc", |
| 157 | "voe_network_unittest.cc", |
| 158 | "voice_engine_fixture.cc", |
| 159 | "voice_engine_fixture.h", |
| 160 | ] |
| 161 | |
| 162 | if (is_win) { |
| 163 | defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ] |
| 164 | |
| 165 | cflags = [ |
| 166 | # TODO(kjellander): Bug 261: fix this warning. |
| 167 | "/wd4373", # Virtual function override. |
| 168 | ] |
| 169 | } |
| 170 | |
| 171 | if (is_clang) { |
| 172 | # Suppress warnings from Chrome's Clang plugins. |
| 173 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 174 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 175 | } |
| 176 | } |
| 177 | |
| 178 | if (!is_ios) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 179 | rtc_executable("voe_auto_test") { |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 180 | testonly = true |
| 181 | |
| 182 | deps = [ |
| 183 | ":voice_engine", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 184 | "//build/config/sanitizers:deps", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 185 | "//testing/gmock", |
| 186 | "//testing/gtest", |
| 187 | "//third_party/gflags", |
| 188 | "//webrtc/:rtc_event_log", |
| 189 | "//webrtc/modules/video_capture", |
| 190 | "//webrtc/system_wrappers", |
| 191 | "//webrtc/system_wrappers/:system_wrappers_default", |
| 192 | "//webrtc/test/:channel_transport", |
| 193 | "//webrtc/test/:test_common", |
| 194 | "//webrtc/test/:test_support", |
| 195 | ] |
| 196 | |
| 197 | sources = [ |
| 198 | "test/auto_test/automated_mode.cc", |
| 199 | "test/auto_test/extended/agc_config_test.cc", |
| 200 | "test/auto_test/extended/ec_metrics_test.cc", |
| 201 | "test/auto_test/fakes/conference_transport.cc", |
| 202 | "test/auto_test/fakes/conference_transport.h", |
| 203 | "test/auto_test/fakes/loudest_filter.cc", |
| 204 | "test/auto_test/fakes/loudest_filter.h", |
| 205 | "test/auto_test/fixtures/after_initialization_fixture.cc", |
| 206 | "test/auto_test/fixtures/after_initialization_fixture.h", |
| 207 | "test/auto_test/fixtures/after_streaming_fixture.cc", |
| 208 | "test/auto_test/fixtures/after_streaming_fixture.h", |
| 209 | "test/auto_test/fixtures/before_initialization_fixture.cc", |
| 210 | "test/auto_test/fixtures/before_initialization_fixture.h", |
| 211 | "test/auto_test/fixtures/before_streaming_fixture.cc", |
| 212 | "test/auto_test/fixtures/before_streaming_fixture.h", |
| 213 | "test/auto_test/resource_manager.cc", |
| 214 | "test/auto_test/standard/audio_processing_test.cc", |
| 215 | "test/auto_test/standard/codec_before_streaming_test.cc", |
| 216 | "test/auto_test/standard/codec_test.cc", |
| 217 | "test/auto_test/standard/dtmf_test.cc", |
| 218 | "test/auto_test/standard/external_media_test.cc", |
| 219 | "test/auto_test/standard/file_before_streaming_test.cc", |
| 220 | "test/auto_test/standard/file_test.cc", |
| 221 | "test/auto_test/standard/hardware_before_initializing_test.cc", |
| 222 | "test/auto_test/standard/hardware_test.cc", |
| 223 | "test/auto_test/standard/mixing_test.cc", |
| 224 | "test/auto_test/standard/neteq_stats_test.cc", |
| 225 | "test/auto_test/standard/rtp_rtcp_before_streaming_test.cc", |
| 226 | "test/auto_test/standard/rtp_rtcp_extensions.cc", |
| 227 | "test/auto_test/standard/rtp_rtcp_test.cc", |
| 228 | "test/auto_test/standard/video_sync_test.cc", |
| 229 | "test/auto_test/standard/voe_base_misc_test.cc", |
| 230 | "test/auto_test/standard/volume_test.cc", |
| 231 | "test/auto_test/voe_conference_test.cc", |
| 232 | "test/auto_test/voe_cpu_test.cc", |
| 233 | "test/auto_test/voe_cpu_test.h", |
| 234 | "test/auto_test/voe_output_test.cc", |
| 235 | "test/auto_test/voe_standard_test.cc", |
| 236 | "test/auto_test/voe_standard_test.h", |
| 237 | "test/auto_test/voe_stress_test.cc", |
| 238 | "test/auto_test/voe_stress_test.h", |
| 239 | "test/auto_test/voe_test_defines.h", |
| 240 | "test/auto_test/voe_test_interface.h", |
| 241 | ] |
| 242 | |
| 243 | if (!is_android) { |
| 244 | # Some tests are not supported on android yet, exclude these tests. |
| 245 | sources += |
| 246 | [ "test/auto_test/standard/hardware_before_streaming_test.cc" ] |
| 247 | } |
| 248 | |
| 249 | defines = [] |
| 250 | |
| 251 | if (rtc_enable_protobuf) { |
| 252 | defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| 253 | } |
| 254 | |
| 255 | if (is_win) { |
| 256 | defines += [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ] |
| 257 | |
| 258 | cflags = [ |
| 259 | "/wd4267", # size_t to int truncation. |
| 260 | "/wd4373", # Virtual function override. |
| 261 | # TODO(kjellander): Bug 261: fix this warning. |
| 262 | ] |
| 263 | } |
| 264 | |
| 265 | if (is_clang) { |
| 266 | # Suppress warnings from Chrome's Clang plugins. |
| 267 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame^] | 268 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 269 | } |
| 270 | } |
| 271 | } |
| 272 | } |