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 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 11 | rtc_static_library("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_base.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 20 | "include/voe_errors.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 21 | "monitor_module.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 22 | "shared_data.cc", |
| 23 | "shared_data.h", |
| 24 | "statistics.cc", |
| 25 | "statistics.h", |
| 26 | "transmit_mixer.cc", |
| 27 | "transmit_mixer.h", |
minyue | 435ddf9 | 2017-01-23 08:07:05 -0800 | [diff] [blame] | 28 | "transport_feedback_packet_loss_tracker.cc", |
| 29 | "transport_feedback_packet_loss_tracker.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 30 | "utility.cc", |
| 31 | "utility.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 32 | "voe_base_impl.cc", |
| 33 | "voe_base_impl.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 34 | "voice_engine_defines.h", |
| 35 | "voice_engine_impl.cc", |
| 36 | "voice_engine_impl.h", |
| 37 | ] |
| 38 | |
| 39 | if (is_win) { |
| 40 | defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ] |
kjellander@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 41 | |
| 42 | cflags = [ |
| 43 | # TODO(kjellander): Bug 261: fix this warning. |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 44 | "/wd4373", # Virtual function override. |
kjellander@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 45 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 46 | } |
| 47 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 48 | if (!build_with_chromium && is_clang) { |
| 49 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 50 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 51 | } |
| 52 | |
ehmaldonado | 53cec04 | 2016-09-09 05:32:14 -0700 | [diff] [blame] | 53 | public_deps = [ |
| 54 | "../modules/audio_coding", |
| 55 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 56 | deps = [ |
henrik.lundin | 92a7a18 | 2017-03-07 01:58:55 -0800 | [diff] [blame] | 57 | ":audio_level", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 58 | "..:webrtc_common", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 59 | "../api:array_view", |
aleloi | aed581a | 2016-10-20 06:32:39 -0700 | [diff] [blame] | 60 | "../api:audio_mixer_api", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 61 | "../api:call_api", |
hbos | 8d609f6 | 2017-04-10 07:39:05 -0700 | [diff] [blame] | 62 | "../api:libjingle_peerconnection_api", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 63 | "../api:optional", |
aleloi | a8eb756 | 2016-11-28 07:02:13 -0800 | [diff] [blame] | 64 | "../api:transport_api", |
kwiberg | 087bd34 | 2017-02-10 08:15:44 -0800 | [diff] [blame] | 65 | "../api/audio_codecs:audio_codecs_api", |
| 66 | "../api/audio_codecs:builtin_audio_decoder_factory", |
ossu | eb1fde4 | 2017-05-02 06:46:30 -0700 | [diff] [blame] | 67 | "../api/audio_codecs:builtin_audio_encoder_factory", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 68 | "../audio/utility:audio_frame_operations", |
nisse | d76b7b2 | 2017-06-01 04:02:35 -0700 | [diff] [blame] | 69 | "../call:rtp_interfaces", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 70 | "../common_audio", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 71 | "../logging:rtc_event_log_api", |
nisse | d76b7b2 | 2017-06-01 04:02:35 -0700 | [diff] [blame] | 72 | "../modules:module_api", |
kwiberg | da2bf4e | 2016-10-24 13:47:09 -0700 | [diff] [blame] | 73 | "../modules/audio_coding:audio_format_conversion", |
aleloi | 9ae585d | 2016-10-13 06:57:16 -0700 | [diff] [blame] | 74 | "../modules/audio_coding:rent_a_codec", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 75 | "../modules/audio_device", |
| 76 | "../modules/audio_processing", |
| 77 | "../modules/bitrate_controller", |
| 78 | "../modules/media_file", |
Stefan Holmer | b86d4e4 | 2015-12-07 10:26:18 +0100 | [diff] [blame] | 79 | "../modules/pacing", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 80 | "../modules/rtp_rtcp", |
| 81 | "../modules/utility", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 82 | "../rtc_base:rtc_base_approved", |
| 83 | "../rtc_base:rtc_task_queue", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 84 | "../system_wrappers", |
| 85 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 86 | } |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 87 | |
henrik.lundin | 92a7a18 | 2017-03-07 01:58:55 -0800 | [diff] [blame] | 88 | rtc_static_library("audio_level") { |
aleloi | e6ca9ec | 2016-08-10 05:01:51 -0700 | [diff] [blame] | 89 | sources = [ |
henrik.lundin | 92a7a18 | 2017-03-07 01:58:55 -0800 | [diff] [blame] | 90 | "audio_level.cc", |
| 91 | "audio_level.h", |
aleloi | e6ca9ec | 2016-08-10 05:01:51 -0700 | [diff] [blame] | 92 | ] |
| 93 | |
aleloi | e6ca9ec | 2016-08-10 05:01:51 -0700 | [diff] [blame] | 94 | deps = [ |
| 95 | "..:webrtc_common", |
aleloi | e6ca9ec | 2016-08-10 05:01:51 -0700 | [diff] [blame] | 96 | "../common_audio", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 97 | "../modules:module_api", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 98 | "../rtc_base:rtc_base_approved", |
aleloi | e6ca9ec | 2016-08-10 05:01:51 -0700 | [diff] [blame] | 99 | ] |
| 100 | } |
| 101 | |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 102 | if (rtc_include_tests) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 103 | rtc_test("voice_engine_unittests") { |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 104 | deps = [ |
| 105 | ":voice_engine", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 106 | "../common_audio", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 107 | "../modules:module_api", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 108 | "../modules/audio_coding", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 109 | "../modules/audio_device", |
| 110 | "../modules/audio_processing", |
| 111 | "../modules/media_file", |
| 112 | "../modules/rtp_rtcp", |
| 113 | "../modules/utility", |
| 114 | "../modules/video_capture:video_capture", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 115 | "../rtc_base:rtc_base_approved", |
| 116 | "../rtc_base:rtc_base_tests_utils", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 117 | "../system_wrappers", |
kjellander | cfa95aa | 2017-03-02 21:28:23 -0800 | [diff] [blame] | 118 | "../test:test_common", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 119 | "../test:test_main", |
| 120 | "../test:video_test_common", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 121 | "//testing/gmock", |
| 122 | "//testing/gtest", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 123 | ] |
| 124 | |
| 125 | if (is_android) { |
| 126 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
sakal | 714dd4e | 2016-08-15 02:29:11 -0700 | [diff] [blame] | 127 | shard_timeout = 900 |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 128 | } |
| 129 | |
| 130 | sources = [ |
| 131 | "channel_unittest.cc", |
minyue | 435ddf9 | 2017-01-23 08:07:05 -0800 | [diff] [blame] | 132 | "transport_feedback_packet_loss_tracker_unittest.cc", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 133 | "utility_unittest.cc", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 134 | "voe_base_unittest.cc", |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 135 | ] |
| 136 | |
kwiberg | 9774447 | 2017-01-10 01:12:51 -0800 | [diff] [blame] | 137 | data = [ |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 138 | "../resources/utility/encapsulated_pcm16b_8khz.wav", |
| 139 | "../resources/utility/encapsulated_pcmu_8khz.wav", |
kwiberg | 9774447 | 2017-01-10 01:12:51 -0800 | [diff] [blame] | 140 | ] |
| 141 | |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 142 | if (is_win) { |
| 143 | defines = [ "WEBRTC_DRIFT_COMPENSATION_SUPPORTED" ] |
| 144 | |
| 145 | cflags = [ |
| 146 | # TODO(kjellander): Bug 261: fix this warning. |
| 147 | "/wd4373", # Virtual function override. |
| 148 | ] |
| 149 | } |
| 150 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 151 | if (!build_with_chromium && is_clang) { |
| 152 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 153 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 154 | } |
| 155 | } |
ossu | a16f7a8 | 2016-07-08 02:12:55 -0700 | [diff] [blame] | 156 | } |