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") |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 10 | import("audio_coding.gni") |
| 11 | import("//build/config/arm.gni") |
| 12 | import("//testing/test.gni") |
| 13 | import("//third_party/protobuf/proto_library.gni") |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 14 | |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 15 | audio_codec_deps = [ |
| 16 | ":cng", |
| 17 | ":g711", |
| 18 | ":pcm16b", |
| 19 | ] |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 20 | if (rtc_include_ilbc) { |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 21 | audio_codec_deps += [ ":ilbc" ] |
| 22 | } |
| 23 | if (rtc_include_opus) { |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 24 | audio_codec_deps += [ ":webrtc_opus" ] |
| 25 | } |
| 26 | if (!build_with_mozilla) { |
| 27 | if (current_cpu == "arm") { |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 28 | audio_codec_deps += [ ":isac_fix" ] |
| 29 | } else { |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 30 | audio_codec_deps += [ ":isac" ] |
| 31 | } |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 32 | audio_codec_deps += [ ":g722" ] |
| 33 | } |
| 34 | if (!build_with_mozilla && !build_with_chromium) { |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 35 | audio_codec_deps += [ ":red" ] |
| 36 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 37 | audio_coding_deps = audio_codec_deps + [ |
| 38 | "../..:webrtc_common", |
| 39 | "../../common_audio", |
| 40 | "../../system_wrappers", |
| 41 | ] |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 42 | |
kwiberg | c01c6a4 | 2016-04-28 14:23:32 -0700 | [diff] [blame] | 43 | source_set("audio_decoder_factory_interface") { |
| 44 | sources = [ |
| 45 | "codecs/audio_decoder_factory.h", |
| 46 | "codecs/audio_format.cc", |
| 47 | "codecs/audio_format.h", |
| 48 | ] |
| 49 | configs += [ "../..:common_config" ] |
| 50 | public_configs = [ "../..:common_inherited_config" ] |
| 51 | deps = [ |
| 52 | "../..:webrtc_common", |
| 53 | ] |
| 54 | } |
| 55 | |
| 56 | source_set("builtin_audio_decoder_factory") { |
| 57 | sources = [ |
| 58 | "codecs/builtin_audio_decoder_factory.cc", |
| 59 | "codecs/builtin_audio_decoder_factory.h", |
| 60 | ] |
| 61 | configs += [ "../..:common_config" ] |
| 62 | public_configs = [ "../..:common_inherited_config" ] |
| 63 | deps = [ |
| 64 | "../..:webrtc_common", |
| 65 | ":audio_decoder_factory_interface", |
| 66 | ] + audio_codec_deps |
| 67 | defines = audio_codec_defines |
| 68 | } |
| 69 | |
kwiberg | fce4a94 | 2015-10-27 11:40:24 -0700 | [diff] [blame] | 70 | source_set("rent_a_codec") { |
| 71 | sources = [ |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 72 | "acm2/acm_codec_database.cc", |
| 73 | "acm2/acm_codec_database.h", |
| 74 | "acm2/rent_a_codec.cc", |
| 75 | "acm2/rent_a_codec.h", |
kwiberg | fce4a94 | 2015-10-27 11:40:24 -0700 | [diff] [blame] | 76 | ] |
| 77 | configs += [ "../..:common_config" ] |
| 78 | public_configs = [ "../..:common_inherited_config" ] |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 79 | deps = [ "../..:webrtc_common" ] + audio_codec_deps |
| 80 | defines = audio_codec_defines |
kwiberg | fce4a94 | 2015-10-27 11:40:24 -0700 | [diff] [blame] | 81 | } |
| 82 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 83 | config("audio_coding_config") { |
| 84 | include_dirs = [ |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 85 | "include", |
Henrik Kjellander | ff761fb | 2015-11-04 08:31:52 +0100 | [diff] [blame] | 86 | "../include", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 87 | ] |
| 88 | } |
| 89 | |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 90 | source_set("audio_coding") { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 91 | sources = [ |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 92 | "acm2/acm_common_defs.h", |
| 93 | "acm2/acm_receiver.cc", |
| 94 | "acm2/acm_receiver.h", |
| 95 | "acm2/acm_resampler.cc", |
| 96 | "acm2/acm_resampler.h", |
| 97 | "acm2/audio_coding_module.cc", |
kjellander | 3e6db23 | 2015-11-26 04:44:54 -0800 | [diff] [blame] | 98 | "acm2/call_statistics.cc", |
| 99 | "acm2/call_statistics.h", |
| 100 | "acm2/codec_manager.cc", |
| 101 | "acm2/codec_manager.h", |
| 102 | "acm2/initial_delay_manager.cc", |
| 103 | "acm2/initial_delay_manager.h", |
| 104 | "include/audio_coding_module.h", |
| 105 | "include/audio_coding_module_typedefs.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 106 | ] |
| 107 | |
| 108 | defines = [] |
| 109 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 110 | configs += [ "../..:common_config" ] |
| 111 | |
| 112 | public_configs = [ |
| 113 | "../..:common_inherited_config", |
| 114 | ":audio_coding_config", |
| 115 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 116 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 117 | if (rtc_include_opus) { |
| 118 | public_deps = [ |
| 119 | ":webrtc_opus", |
| 120 | ] |
| 121 | } |
| 122 | |
kjellander@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 123 | if (is_win) { |
| 124 | cflags = [ |
| 125 | # TODO(kjellander): Bug 261: fix this warning. |
| 126 | "/wd4373", # virtual function override. |
| 127 | ] |
| 128 | } |
| 129 | |
ivoc | b04965c | 2015-09-09 00:09:43 -0700 | [diff] [blame] | 130 | if (is_clang) { |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 131 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
ivoc | b04965c | 2015-09-09 00:09:43 -0700 | [diff] [blame] | 132 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 133 | } |
| 134 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 135 | deps = audio_coding_deps + [ |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 136 | ":neteq", |
| 137 | ":rent_a_codec", |
| 138 | "../..:rtc_event_log", |
kwiberg | 0edb05b | 2016-01-19 05:54:28 -0800 | [diff] [blame] | 139 | ] |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 140 | defines = audio_coding_defines |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 141 | } |
| 142 | |
kwiberg@webrtc.org | e04a93b | 2014-12-09 10:12:53 +0000 | [diff] [blame] | 143 | source_set("audio_decoder_interface") { |
| 144 | sources = [ |
| 145 | "codecs/audio_decoder.cc", |
| 146 | "codecs/audio_decoder.h", |
| 147 | ] |
| 148 | configs += [ "../..:common_config" ] |
| 149 | public_configs = [ "../..:common_inherited_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 150 | deps = [ |
| 151 | "../..:webrtc_common", |
kjellander | 4e7f6c1 | 2016-04-25 21:59:50 -0700 | [diff] [blame] | 152 | "../../base:rtc_base_approved", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 153 | ] |
kwiberg@webrtc.org | e04a93b | 2014-12-09 10:12:53 +0000 | [diff] [blame] | 154 | } |
| 155 | |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 156 | source_set("audio_encoder_interface") { |
| 157 | sources = [ |
| 158 | "codecs/audio_encoder.cc", |
| 159 | "codecs/audio_encoder.h", |
| 160 | ] |
| 161 | configs += [ "../..:common_config" ] |
| 162 | public_configs = [ "../..:common_inherited_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 163 | deps = [ |
| 164 | "../..:webrtc_common", |
kjellander | 4e7f6c1 | 2016-04-25 21:59:50 -0700 | [diff] [blame] | 165 | "../../base:rtc_base_approved", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 166 | ] |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 167 | } |
| 168 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 169 | config("cng_config") { |
| 170 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 171 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 172 | "codecs/cng/include", |
| 173 | ] |
| 174 | } |
| 175 | |
| 176 | source_set("cng") { |
| 177 | sources = [ |
henrik.lundin@webrtc.org | ff1a3e3 | 2014-12-10 07:29:08 +0000 | [diff] [blame] | 178 | "codecs/cng/audio_encoder_cng.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 179 | "codecs/cng/audio_encoder_cng.h", |
ossu | 97ba30e | 2016-04-25 07:55:58 -0700 | [diff] [blame] | 180 | "codecs/cng/webrtc_cng.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 181 | "codecs/cng/webrtc_cng.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 182 | ] |
| 183 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 184 | configs += [ "../..:common_config" ] |
| 185 | |
| 186 | public_configs = [ |
| 187 | "../..:common_inherited_config", |
| 188 | ":cng_config", |
| 189 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 190 | |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 191 | deps = [ |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 192 | ":audio_encoder_interface", |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 193 | "../../common_audio", |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 194 | ] |
| 195 | } |
| 196 | |
| 197 | config("red_config") { |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 198 | include_dirs = [ "codecs/red" ] |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 199 | } |
| 200 | |
| 201 | source_set("red") { |
| 202 | sources = [ |
| 203 | "codecs/red/audio_encoder_copy_red.cc", |
| 204 | "codecs/red/audio_encoder_copy_red.h", |
| 205 | ] |
| 206 | |
| 207 | configs += [ "../..:common_config" ] |
| 208 | |
| 209 | public_configs = [ |
| 210 | "../..:common_inherited_config", |
| 211 | ":red_config", |
| 212 | ] |
| 213 | |
| 214 | deps = [ |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 215 | ":audio_encoder_interface", |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 216 | "../../common_audio", |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 217 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 218 | } |
| 219 | |
| 220 | config("g711_config") { |
| 221 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 222 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 223 | "codecs/g711/include", |
| 224 | ] |
| 225 | } |
| 226 | |
| 227 | source_set("g711") { |
| 228 | sources = [ |
kwiberg | 6faf5be | 2015-09-22 06:16:51 -0700 | [diff] [blame] | 229 | "codecs/g711/audio_decoder_pcm.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 230 | "codecs/g711/audio_decoder_pcm.h", |
henrik.lundin@webrtc.org | def1e97 | 2014-10-21 12:48:29 +0000 | [diff] [blame] | 231 | "codecs/g711/audio_encoder_pcm.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 232 | "codecs/g711/audio_encoder_pcm.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 233 | "codecs/g711/g711.c", |
| 234 | "codecs/g711/g711.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 235 | "codecs/g711/g711_interface.c", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 236 | "codecs/g711/g711_interface.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 237 | ] |
| 238 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 239 | configs += [ "../..:common_config" ] |
| 240 | |
| 241 | public_configs = [ |
| 242 | "../..:common_inherited_config", |
| 243 | ":g711_config", |
| 244 | ] |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 245 | |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 246 | deps = [ |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 247 | ":audio_decoder_interface", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 248 | ":audio_encoder_interface", |
| 249 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 250 | } |
| 251 | |
| 252 | config("g722_config") { |
| 253 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 254 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 255 | "codecs/g722/include", |
| 256 | ] |
| 257 | } |
| 258 | |
| 259 | source_set("g722") { |
| 260 | sources = [ |
kwiberg | ada4c13 | 2015-09-17 03:12:35 -0700 | [diff] [blame] | 261 | "codecs/g722/audio_decoder_g722.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 262 | "codecs/g722/audio_decoder_g722.h", |
kwiberg@webrtc.org | 0cd5558 | 2014-12-02 11:45:51 +0000 | [diff] [blame] | 263 | "codecs/g722/audio_encoder_g722.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 264 | "codecs/g722/audio_encoder_g722.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 265 | "codecs/g722/g722_decode.c", |
| 266 | "codecs/g722/g722_enc_dec.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 267 | "codecs/g722/g722_encode.c", |
| 268 | "codecs/g722/g722_interface.c", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 269 | "codecs/g722/g722_interface.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 270 | ] |
| 271 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 272 | configs += [ "../..:common_config" ] |
| 273 | |
| 274 | public_configs = [ |
| 275 | "../..:common_inherited_config", |
| 276 | ":g722_config", |
| 277 | ] |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 278 | |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 279 | deps = [ |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 280 | ":audio_decoder_interface", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 281 | ":audio_encoder_interface", |
| 282 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 283 | } |
| 284 | |
| 285 | config("ilbc_config") { |
| 286 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 287 | "../../..", |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 288 | "codecs/ilbc/include", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 289 | ] |
| 290 | } |
| 291 | |
| 292 | source_set("ilbc") { |
| 293 | sources = [ |
| 294 | "codecs/ilbc/abs_quant.c", |
| 295 | "codecs/ilbc/abs_quant.h", |
| 296 | "codecs/ilbc/abs_quant_loop.c", |
| 297 | "codecs/ilbc/abs_quant_loop.h", |
kwiberg | fff9f17 | 2015-09-16 21:26:32 -0700 | [diff] [blame] | 298 | "codecs/ilbc/audio_decoder_ilbc.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 299 | "codecs/ilbc/audio_decoder_ilbc.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 300 | "codecs/ilbc/audio_encoder_ilbc.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 301 | "codecs/ilbc/audio_encoder_ilbc.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 302 | "codecs/ilbc/augmented_cb_corr.c", |
| 303 | "codecs/ilbc/augmented_cb_corr.h", |
| 304 | "codecs/ilbc/bw_expand.c", |
| 305 | "codecs/ilbc/bw_expand.h", |
| 306 | "codecs/ilbc/cb_construct.c", |
| 307 | "codecs/ilbc/cb_construct.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 308 | "codecs/ilbc/cb_mem_energy.c", |
| 309 | "codecs/ilbc/cb_mem_energy.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 310 | "codecs/ilbc/cb_mem_energy_augmentation.c", |
| 311 | "codecs/ilbc/cb_mem_energy_augmentation.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 312 | "codecs/ilbc/cb_mem_energy_calc.c", |
| 313 | "codecs/ilbc/cb_mem_energy_calc.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 314 | "codecs/ilbc/cb_search.c", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 315 | "codecs/ilbc/cb_search.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 316 | "codecs/ilbc/cb_search_core.c", |
| 317 | "codecs/ilbc/cb_search_core.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 318 | "codecs/ilbc/cb_update_best_index.c", |
| 319 | "codecs/ilbc/cb_update_best_index.h", |
| 320 | "codecs/ilbc/chebyshev.c", |
| 321 | "codecs/ilbc/chebyshev.h", |
| 322 | "codecs/ilbc/comp_corr.c", |
| 323 | "codecs/ilbc/comp_corr.h", |
| 324 | "codecs/ilbc/constants.c", |
| 325 | "codecs/ilbc/constants.h", |
| 326 | "codecs/ilbc/create_augmented_vec.c", |
| 327 | "codecs/ilbc/create_augmented_vec.h", |
| 328 | "codecs/ilbc/decode.c", |
| 329 | "codecs/ilbc/decode.h", |
| 330 | "codecs/ilbc/decode_residual.c", |
| 331 | "codecs/ilbc/decode_residual.h", |
| 332 | "codecs/ilbc/decoder_interpolate_lsf.c", |
| 333 | "codecs/ilbc/decoder_interpolate_lsf.h", |
| 334 | "codecs/ilbc/defines.h", |
| 335 | "codecs/ilbc/do_plc.c", |
| 336 | "codecs/ilbc/do_plc.h", |
| 337 | "codecs/ilbc/encode.c", |
| 338 | "codecs/ilbc/encode.h", |
| 339 | "codecs/ilbc/energy_inverse.c", |
| 340 | "codecs/ilbc/energy_inverse.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 341 | "codecs/ilbc/enh_upsample.c", |
| 342 | "codecs/ilbc/enh_upsample.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 343 | "codecs/ilbc/enhancer.c", |
| 344 | "codecs/ilbc/enhancer.h", |
| 345 | "codecs/ilbc/enhancer_interface.c", |
| 346 | "codecs/ilbc/enhancer_interface.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 347 | "codecs/ilbc/filtered_cb_vecs.c", |
| 348 | "codecs/ilbc/filtered_cb_vecs.h", |
| 349 | "codecs/ilbc/frame_classify.c", |
| 350 | "codecs/ilbc/frame_classify.h", |
| 351 | "codecs/ilbc/gain_dequant.c", |
| 352 | "codecs/ilbc/gain_dequant.h", |
| 353 | "codecs/ilbc/gain_quant.c", |
| 354 | "codecs/ilbc/gain_quant.h", |
| 355 | "codecs/ilbc/get_cd_vec.c", |
| 356 | "codecs/ilbc/get_cd_vec.h", |
| 357 | "codecs/ilbc/get_lsp_poly.c", |
| 358 | "codecs/ilbc/get_lsp_poly.h", |
| 359 | "codecs/ilbc/get_sync_seq.c", |
| 360 | "codecs/ilbc/get_sync_seq.h", |
| 361 | "codecs/ilbc/hp_input.c", |
| 362 | "codecs/ilbc/hp_input.h", |
| 363 | "codecs/ilbc/hp_output.c", |
| 364 | "codecs/ilbc/hp_output.h", |
| 365 | "codecs/ilbc/ilbc.c", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 366 | "codecs/ilbc/ilbc.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 367 | "codecs/ilbc/index_conv_dec.c", |
| 368 | "codecs/ilbc/index_conv_dec.h", |
| 369 | "codecs/ilbc/index_conv_enc.c", |
| 370 | "codecs/ilbc/index_conv_enc.h", |
| 371 | "codecs/ilbc/init_decode.c", |
| 372 | "codecs/ilbc/init_decode.h", |
| 373 | "codecs/ilbc/init_encode.c", |
| 374 | "codecs/ilbc/init_encode.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 375 | "codecs/ilbc/interpolate.c", |
| 376 | "codecs/ilbc/interpolate.h", |
| 377 | "codecs/ilbc/interpolate_samples.c", |
| 378 | "codecs/ilbc/interpolate_samples.h", |
| 379 | "codecs/ilbc/lpc_encode.c", |
| 380 | "codecs/ilbc/lpc_encode.h", |
| 381 | "codecs/ilbc/lsf_check.c", |
| 382 | "codecs/ilbc/lsf_check.h", |
| 383 | "codecs/ilbc/lsf_interpolate_to_poly_dec.c", |
| 384 | "codecs/ilbc/lsf_interpolate_to_poly_dec.h", |
| 385 | "codecs/ilbc/lsf_interpolate_to_poly_enc.c", |
| 386 | "codecs/ilbc/lsf_interpolate_to_poly_enc.h", |
| 387 | "codecs/ilbc/lsf_to_lsp.c", |
| 388 | "codecs/ilbc/lsf_to_lsp.h", |
| 389 | "codecs/ilbc/lsf_to_poly.c", |
| 390 | "codecs/ilbc/lsf_to_poly.h", |
| 391 | "codecs/ilbc/lsp_to_lsf.c", |
| 392 | "codecs/ilbc/lsp_to_lsf.h", |
| 393 | "codecs/ilbc/my_corr.c", |
| 394 | "codecs/ilbc/my_corr.h", |
| 395 | "codecs/ilbc/nearest_neighbor.c", |
| 396 | "codecs/ilbc/nearest_neighbor.h", |
| 397 | "codecs/ilbc/pack_bits.c", |
| 398 | "codecs/ilbc/pack_bits.h", |
| 399 | "codecs/ilbc/poly_to_lsf.c", |
| 400 | "codecs/ilbc/poly_to_lsf.h", |
| 401 | "codecs/ilbc/poly_to_lsp.c", |
| 402 | "codecs/ilbc/poly_to_lsp.h", |
| 403 | "codecs/ilbc/refiner.c", |
| 404 | "codecs/ilbc/refiner.h", |
| 405 | "codecs/ilbc/simple_interpolate_lsf.c", |
| 406 | "codecs/ilbc/simple_interpolate_lsf.h", |
| 407 | "codecs/ilbc/simple_lpc_analysis.c", |
| 408 | "codecs/ilbc/simple_lpc_analysis.h", |
| 409 | "codecs/ilbc/simple_lsf_dequant.c", |
| 410 | "codecs/ilbc/simple_lsf_dequant.h", |
| 411 | "codecs/ilbc/simple_lsf_quant.c", |
| 412 | "codecs/ilbc/simple_lsf_quant.h", |
| 413 | "codecs/ilbc/smooth.c", |
| 414 | "codecs/ilbc/smooth.h", |
| 415 | "codecs/ilbc/smooth_out_data.c", |
| 416 | "codecs/ilbc/smooth_out_data.h", |
| 417 | "codecs/ilbc/sort_sq.c", |
| 418 | "codecs/ilbc/sort_sq.h", |
| 419 | "codecs/ilbc/split_vq.c", |
| 420 | "codecs/ilbc/split_vq.h", |
| 421 | "codecs/ilbc/state_construct.c", |
| 422 | "codecs/ilbc/state_construct.h", |
| 423 | "codecs/ilbc/state_search.c", |
| 424 | "codecs/ilbc/state_search.h", |
| 425 | "codecs/ilbc/swap_bytes.c", |
| 426 | "codecs/ilbc/swap_bytes.h", |
| 427 | "codecs/ilbc/unpack_bits.c", |
| 428 | "codecs/ilbc/unpack_bits.h", |
| 429 | "codecs/ilbc/vq3.c", |
| 430 | "codecs/ilbc/vq3.h", |
| 431 | "codecs/ilbc/vq4.c", |
| 432 | "codecs/ilbc/vq4.h", |
| 433 | "codecs/ilbc/window32_w32.c", |
| 434 | "codecs/ilbc/window32_w32.h", |
| 435 | "codecs/ilbc/xcorr_coef.c", |
| 436 | "codecs/ilbc/xcorr_coef.h", |
| 437 | ] |
| 438 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 439 | configs += [ "../..:common_config" ] |
| 440 | |
| 441 | public_configs = [ |
| 442 | "../..:common_inherited_config", |
| 443 | ":ilbc_config", |
| 444 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 445 | |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 446 | deps = [ |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 447 | ":audio_decoder_interface", |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 448 | ":audio_encoder_interface", |
kwiberg | 619a211 | 2016-08-24 02:46:44 -0700 | [diff] [blame] | 449 | "../../base:rtc_base_approved", |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 450 | "../../common_audio", |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 451 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 452 | } |
| 453 | |
kwiberg | 608c3cf | 2015-08-24 02:03:23 -0700 | [diff] [blame] | 454 | source_set("isac_common") { |
| 455 | sources = [ |
| 456 | "codecs/isac/audio_encoder_isac_t.h", |
| 457 | "codecs/isac/audio_encoder_isac_t_impl.h", |
| 458 | "codecs/isac/locked_bandwidth_info.cc", |
| 459 | "codecs/isac/locked_bandwidth_info.h", |
| 460 | ] |
Karl Wiberg | 39b8eb3 | 2015-08-24 19:50:32 +0200 | [diff] [blame] | 461 | public_configs = [ "../..:common_inherited_config" ] |
kwiberg | 608c3cf | 2015-08-24 02:03:23 -0700 | [diff] [blame] | 462 | } |
| 463 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 464 | config("isac_config") { |
| 465 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 466 | "../../..", |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 467 | "codecs/isac/main/include", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 468 | ] |
| 469 | } |
| 470 | |
| 471 | source_set("isac") { |
| 472 | sources = [ |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 473 | "codecs/isac/main/include/audio_decoder_isac.h", |
| 474 | "codecs/isac/main/include/audio_encoder_isac.h", |
| 475 | "codecs/isac/main/include/isac.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 476 | "codecs/isac/main/source/arith_routines.c", |
| 477 | "codecs/isac/main/source/arith_routines.h", |
| 478 | "codecs/isac/main/source/arith_routines_hist.c", |
| 479 | "codecs/isac/main/source/arith_routines_logist.c", |
Karl Wiberg | 7404368 | 2015-09-22 19:31:40 +0200 | [diff] [blame] | 480 | "codecs/isac/main/source/audio_decoder_isac.cc", |
kwiberg@webrtc.org | b3ad8cf | 2014-12-11 10:08:19 +0000 | [diff] [blame] | 481 | "codecs/isac/main/source/audio_encoder_isac.cc", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 482 | "codecs/isac/main/source/bandwidth_estimator.c", |
| 483 | "codecs/isac/main/source/bandwidth_estimator.h", |
| 484 | "codecs/isac/main/source/codec.h", |
| 485 | "codecs/isac/main/source/crc.c", |
| 486 | "codecs/isac/main/source/crc.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 487 | "codecs/isac/main/source/decode.c", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 488 | "codecs/isac/main/source/decode_bwe.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 489 | "codecs/isac/main/source/encode.c", |
| 490 | "codecs/isac/main/source/encode_lpc_swb.c", |
| 491 | "codecs/isac/main/source/encode_lpc_swb.h", |
| 492 | "codecs/isac/main/source/entropy_coding.c", |
| 493 | "codecs/isac/main/source/entropy_coding.h", |
| 494 | "codecs/isac/main/source/fft.c", |
| 495 | "codecs/isac/main/source/fft.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 496 | "codecs/isac/main/source/filter_functions.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 497 | "codecs/isac/main/source/filterbank_tables.c", |
| 498 | "codecs/isac/main/source/filterbank_tables.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 499 | "codecs/isac/main/source/filterbanks.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 500 | "codecs/isac/main/source/intialize.c", |
| 501 | "codecs/isac/main/source/isac.c", |
Karl Wiberg | 7404368 | 2015-09-22 19:31:40 +0200 | [diff] [blame] | 502 | "codecs/isac/main/source/isac_float_type.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 503 | "codecs/isac/main/source/lattice.c", |
| 504 | "codecs/isac/main/source/lpc_analysis.c", |
| 505 | "codecs/isac/main/source/lpc_analysis.h", |
| 506 | "codecs/isac/main/source/lpc_gain_swb_tables.c", |
| 507 | "codecs/isac/main/source/lpc_gain_swb_tables.h", |
| 508 | "codecs/isac/main/source/lpc_shape_swb12_tables.c", |
| 509 | "codecs/isac/main/source/lpc_shape_swb12_tables.h", |
| 510 | "codecs/isac/main/source/lpc_shape_swb16_tables.c", |
| 511 | "codecs/isac/main/source/lpc_shape_swb16_tables.h", |
| 512 | "codecs/isac/main/source/lpc_tables.c", |
| 513 | "codecs/isac/main/source/lpc_tables.h", |
| 514 | "codecs/isac/main/source/os_specific_inline.h", |
| 515 | "codecs/isac/main/source/pitch_estimator.c", |
| 516 | "codecs/isac/main/source/pitch_estimator.h", |
| 517 | "codecs/isac/main/source/pitch_filter.c", |
| 518 | "codecs/isac/main/source/pitch_gain_tables.c", |
| 519 | "codecs/isac/main/source/pitch_gain_tables.h", |
| 520 | "codecs/isac/main/source/pitch_lag_tables.c", |
| 521 | "codecs/isac/main/source/pitch_lag_tables.h", |
| 522 | "codecs/isac/main/source/settings.h", |
| 523 | "codecs/isac/main/source/spectrum_ar_model_tables.c", |
| 524 | "codecs/isac/main/source/spectrum_ar_model_tables.h", |
| 525 | "codecs/isac/main/source/structs.h", |
| 526 | "codecs/isac/main/source/transform.c", |
| 527 | ] |
| 528 | |
| 529 | if (is_linux) { |
| 530 | libs = [ "m" ] |
| 531 | } |
| 532 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 533 | configs += [ "../..:common_config" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 534 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 535 | public_configs = [ |
| 536 | "../..:common_inherited_config", |
| 537 | ":isac_config", |
| 538 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 539 | |
kwiberg@webrtc.org | b3ad8cf | 2014-12-11 10:08:19 +0000 | [diff] [blame] | 540 | deps = [ |
| 541 | ":audio_decoder_interface", |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 542 | ":audio_encoder_interface", |
kwiberg | 608c3cf | 2015-08-24 02:03:23 -0700 | [diff] [blame] | 543 | ":isac_common", |
kwiberg@webrtc.org | b3ad8cf | 2014-12-11 10:08:19 +0000 | [diff] [blame] | 544 | "../../common_audio", |
| 545 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 546 | } |
| 547 | |
| 548 | config("isac_fix_config") { |
| 549 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 550 | "../../..", |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 551 | "codecs/isac/fix/include", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 552 | ] |
| 553 | } |
| 554 | |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 555 | source_set("isac_fix") { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 556 | sources = [ |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 557 | "codecs/isac/fix/include/audio_decoder_isacfix.h", |
| 558 | "codecs/isac/fix/include/audio_encoder_isacfix.h", |
| 559 | "codecs/isac/fix/include/isacfix.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 560 | "codecs/isac/fix/source/arith_routines.c", |
| 561 | "codecs/isac/fix/source/arith_routines_hist.c", |
| 562 | "codecs/isac/fix/source/arith_routines_logist.c", |
| 563 | "codecs/isac/fix/source/arith_routins.h", |
Karl Wiberg | 7404368 | 2015-09-22 19:31:40 +0200 | [diff] [blame] | 564 | "codecs/isac/fix/source/audio_decoder_isacfix.cc", |
kwiberg@webrtc.org | 88bdec8 | 2014-12-16 12:49:37 +0000 | [diff] [blame] | 565 | "codecs/isac/fix/source/audio_encoder_isacfix.cc", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 566 | "codecs/isac/fix/source/bandwidth_estimator.c", |
| 567 | "codecs/isac/fix/source/bandwidth_estimator.h", |
| 568 | "codecs/isac/fix/source/codec.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 569 | "codecs/isac/fix/source/decode.c", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 570 | "codecs/isac/fix/source/decode_bwe.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 571 | "codecs/isac/fix/source/decode_plc.c", |
| 572 | "codecs/isac/fix/source/encode.c", |
| 573 | "codecs/isac/fix/source/entropy_coding.c", |
| 574 | "codecs/isac/fix/source/entropy_coding.h", |
| 575 | "codecs/isac/fix/source/fft.c", |
| 576 | "codecs/isac/fix/source/fft.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 577 | "codecs/isac/fix/source/filterbank_tables.c", |
| 578 | "codecs/isac/fix/source/filterbank_tables.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 579 | "codecs/isac/fix/source/filterbanks.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 580 | "codecs/isac/fix/source/filters.c", |
| 581 | "codecs/isac/fix/source/initialize.c", |
Karl Wiberg | 7404368 | 2015-09-22 19:31:40 +0200 | [diff] [blame] | 582 | "codecs/isac/fix/source/isac_fix_type.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 583 | "codecs/isac/fix/source/isacfix.c", |
| 584 | "codecs/isac/fix/source/lattice.c", |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 585 | "codecs/isac/fix/source/lattice_c.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 586 | "codecs/isac/fix/source/lpc_masking_model.c", |
| 587 | "codecs/isac/fix/source/lpc_masking_model.h", |
| 588 | "codecs/isac/fix/source/lpc_tables.c", |
| 589 | "codecs/isac/fix/source/lpc_tables.h", |
| 590 | "codecs/isac/fix/source/pitch_estimator.c", |
| 591 | "codecs/isac/fix/source/pitch_estimator.h", |
Ljubomir Papuga | 8f85dbc | 2015-04-21 16:52:45 -0700 | [diff] [blame] | 592 | "codecs/isac/fix/source/pitch_estimator_c.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 593 | "codecs/isac/fix/source/pitch_filter.c", |
Ljubomir Papuga | 8f85dbc | 2015-04-21 16:52:45 -0700 | [diff] [blame] | 594 | "codecs/isac/fix/source/pitch_filter_c.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 595 | "codecs/isac/fix/source/pitch_gain_tables.c", |
| 596 | "codecs/isac/fix/source/pitch_gain_tables.h", |
| 597 | "codecs/isac/fix/source/pitch_lag_tables.c", |
| 598 | "codecs/isac/fix/source/pitch_lag_tables.h", |
| 599 | "codecs/isac/fix/source/settings.h", |
| 600 | "codecs/isac/fix/source/spectrum_ar_model_tables.c", |
| 601 | "codecs/isac/fix/source/spectrum_ar_model_tables.h", |
| 602 | "codecs/isac/fix/source/structs.h", |
| 603 | "codecs/isac/fix/source/transform.c", |
| 604 | "codecs/isac/fix/source/transform_tables.c", |
| 605 | ] |
| 606 | |
| 607 | if (!is_win) { |
| 608 | defines = [ "WEBRTC_LINUX" ] |
| 609 | } |
| 610 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 611 | configs += [ "../..:common_config" ] |
| 612 | |
| 613 | public_configs = [ |
| 614 | "../..:common_inherited_config", |
| 615 | ":isac_fix_config", |
| 616 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 617 | |
| 618 | deps = [ |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 619 | ":audio_decoder_interface", |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 620 | ":audio_encoder_interface", |
kwiberg | 608c3cf | 2015-08-24 02:03:23 -0700 | [diff] [blame] | 621 | ":isac_common", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 622 | "../../common_audio", |
| 623 | "../../system_wrappers", |
| 624 | ] |
| 625 | |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 626 | if (rtc_build_with_neon) { |
Zhongwei Yao | e8a197b | 2015-04-28 14:42:11 +0800 | [diff] [blame] | 627 | deps += [ ":isac_neon" ] |
| 628 | } |
| 629 | |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 630 | if (current_cpu == "arm" && arm_version >= 7) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 631 | sources += [ |
| 632 | "codecs/isac/fix/source/lattice_armv7.S", |
| 633 | "codecs/isac/fix/source/pitch_filter_armv6.S", |
| 634 | ] |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 635 | sources -= [ |
| 636 | "codecs/isac/fix/source/lattice_c.c", |
| 637 | "codecs/isac/fix/source/pitch_filter_c.c", |
| 638 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 639 | } |
| 640 | |
kjellander@webrtc.org | 7227391 | 2015-02-23 19:08:31 +0000 | [diff] [blame] | 641 | if (current_cpu == "mipsel") { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 642 | sources += [ |
| 643 | "codecs/isac/fix/source/entropy_coding_mips.c", |
| 644 | "codecs/isac/fix/source/filters_mips.c", |
| 645 | "codecs/isac/fix/source/lattice_mips.c", |
| 646 | "codecs/isac/fix/source/pitch_estimator_mips.c", |
| 647 | "codecs/isac/fix/source/transform_mips.c", |
| 648 | ] |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 649 | sources -= [ |
| 650 | "codecs/isac/fix/source/lattice_c.c", |
| 651 | "codecs/isac/fix/source/pitch_estimator_c.c", |
| 652 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 653 | if (mips_dsp_rev > 0) { |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 654 | sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 655 | } |
| 656 | if (mips_dsp_rev > 1) { |
| 657 | sources += [ |
| 658 | "codecs/isac/fix/source/lpc_masking_model_mips.c", |
| 659 | "codecs/isac/fix/source/pitch_filter_mips.c", |
| 660 | ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 661 | sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 662 | } |
| 663 | } |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 664 | } |
| 665 | |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 666 | if (rtc_build_with_neon) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 667 | source_set("isac_neon") { |
Zhongwei Yao | f242e66 | 2015-05-06 16:39:17 +0800 | [diff] [blame] | 668 | sources = [ |
| 669 | "codecs/isac/fix/source/entropy_coding_neon.c", |
Zhongwei Yao | b3cc77f | 2015-07-28 11:17:40 +0800 | [diff] [blame] | 670 | "codecs/isac/fix/source/filterbanks_neon.c", |
Zhongwei Yao | f242e66 | 2015-05-06 16:39:17 +0800 | [diff] [blame] | 671 | "codecs/isac/fix/source/filters_neon.c", |
| 672 | "codecs/isac/fix/source/lattice_neon.c", |
| 673 | "codecs/isac/fix/source/transform_neon.c", |
| 674 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 675 | |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 676 | if (current_cpu != "arm64") { |
| 677 | # Enable compilation for the NEON instruction set. This is needed |
| 678 | # since //build/config/arm.gni only enables NEON for iOS, not Android. |
| 679 | # This provides the same functionality as webrtc/build/arm_neon.gypi. |
| 680 | configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
| 681 | cflags = [ "-mfpu=neon" ] |
| 682 | } |
| 683 | |
| 684 | # Disable LTO on NEON targets due to compiler bug. |
| 685 | # TODO(fdegans): Enable this. See crbug.com/408997. |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 686 | if (rtc_use_lto) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 687 | cflags -= [ |
| 688 | "-flto", |
| 689 | "-ffat-lto-objects", |
| 690 | ] |
| 691 | } |
| 692 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 693 | configs += [ "../..:common_config" ] |
| 694 | public_configs = [ "../..:common_inherited_config" ] |
| 695 | |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 696 | deps = [ |
| 697 | "../../common_audio", |
| 698 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 699 | } |
| 700 | } |
| 701 | |
| 702 | config("pcm16b_config") { |
| 703 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 704 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 705 | "codecs/pcm16b/include", |
| 706 | ] |
| 707 | } |
| 708 | |
| 709 | source_set("pcm16b") { |
| 710 | sources = [ |
Karl Wiberg | c0ac6ca | 2015-09-17 07:47:34 +0200 | [diff] [blame] | 711 | "codecs/pcm16b/audio_decoder_pcm16b.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 712 | "codecs/pcm16b/audio_decoder_pcm16b.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 713 | "codecs/pcm16b/audio_encoder_pcm16b.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 714 | "codecs/pcm16b/audio_encoder_pcm16b.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 715 | "codecs/pcm16b/pcm16b.c", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 716 | "codecs/pcm16b/pcm16b.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 717 | ] |
| 718 | |
henrik.lundin@webrtc.org | 817e50d | 2014-12-11 10:47:19 +0000 | [diff] [blame] | 719 | deps = [ |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 720 | ":audio_decoder_interface", |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 721 | ":audio_encoder_interface", |
henrik.lundin@webrtc.org | 817e50d | 2014-12-11 10:47:19 +0000 | [diff] [blame] | 722 | ":g711", |
| 723 | ] |
| 724 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 725 | configs += [ "../..:common_config" ] |
| 726 | |
| 727 | public_configs = [ |
| 728 | "../..:common_inherited_config", |
| 729 | ":pcm16b_config", |
| 730 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 731 | } |
| 732 | |
| 733 | config("opus_config") { |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 734 | include_dirs = [ "../../.." ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 735 | } |
| 736 | |
| 737 | source_set("webrtc_opus") { |
| 738 | sources = [ |
Karl Wiberg | 0b05879 | 2015-09-15 17:28:18 +0200 | [diff] [blame] | 739 | "codecs/opus/audio_decoder_opus.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 740 | "codecs/opus/audio_decoder_opus.h", |
kwiberg@webrtc.org | 663fdd0 | 2014-10-29 07:28:36 +0000 | [diff] [blame] | 741 | "codecs/opus/audio_encoder_opus.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 742 | "codecs/opus/audio_encoder_opus.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 743 | "codecs/opus/opus_inst.h", |
| 744 | "codecs/opus/opus_interface.c", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 745 | "codecs/opus/opus_interface.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 746 | ] |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 747 | |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 748 | deps = [ |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 749 | ":audio_decoder_interface", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 750 | ":audio_encoder_interface", |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 751 | "../../base:rtc_base_approved", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 752 | ] |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 753 | |
minyue@webrtc.org | 7c112f3 | 2015-03-17 14:04:56 +0000 | [diff] [blame] | 754 | if (rtc_build_opus) { |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 755 | configs += [ "../..:common_config" ] |
| 756 | public_configs = [ "../..:common_inherited_config" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 757 | |
tfarina | 702f397 | 2015-09-25 05:57:37 -0700 | [diff] [blame] | 758 | public_deps = [ |
| 759 | rtc_opus_dir, |
| 760 | ] |
minyue@webrtc.org | 7c112f3 | 2015-03-17 14:04:56 +0000 | [diff] [blame] | 761 | } else if (build_with_mozilla) { |
| 762 | include_dirs = [ getenv("DIST") + "/include/opus" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 763 | } |
| 764 | } |
| 765 | |
| 766 | config("neteq_config") { |
| 767 | include_dirs = [ |
| 768 | # Need Opus header files for the audio classifier. |
| 769 | "//third_party/opus/src/celt", |
| 770 | "//third_party/opus/src/src", |
| 771 | ] |
| 772 | } |
| 773 | |
| 774 | source_set("neteq") { |
| 775 | sources = [ |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 776 | "neteq/accelerate.cc", |
| 777 | "neteq/accelerate.h", |
| 778 | "neteq/audio_classifier.cc", |
| 779 | "neteq/audio_classifier.h", |
| 780 | "neteq/audio_decoder_impl.cc", |
| 781 | "neteq/audio_decoder_impl.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 782 | "neteq/audio_multi_vector.cc", |
| 783 | "neteq/audio_multi_vector.h", |
| 784 | "neteq/audio_vector.cc", |
| 785 | "neteq/audio_vector.h", |
| 786 | "neteq/background_noise.cc", |
| 787 | "neteq/background_noise.h", |
| 788 | "neteq/buffer_level_filter.cc", |
| 789 | "neteq/buffer_level_filter.h", |
| 790 | "neteq/comfort_noise.cc", |
| 791 | "neteq/comfort_noise.h", |
minyue | 53ff70f | 2016-05-02 01:50:30 -0700 | [diff] [blame] | 792 | "neteq/cross_correlation.cc", |
| 793 | "neteq/cross_correlation.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 794 | "neteq/decision_logic.cc", |
| 795 | "neteq/decision_logic.h", |
| 796 | "neteq/decision_logic_fax.cc", |
| 797 | "neteq/decision_logic_fax.h", |
| 798 | "neteq/decision_logic_normal.cc", |
| 799 | "neteq/decision_logic_normal.h", |
| 800 | "neteq/decoder_database.cc", |
| 801 | "neteq/decoder_database.h", |
| 802 | "neteq/defines.h", |
| 803 | "neteq/delay_manager.cc", |
| 804 | "neteq/delay_manager.h", |
| 805 | "neteq/delay_peak_detector.cc", |
| 806 | "neteq/delay_peak_detector.h", |
| 807 | "neteq/dsp_helper.cc", |
| 808 | "neteq/dsp_helper.h", |
| 809 | "neteq/dtmf_buffer.cc", |
| 810 | "neteq/dtmf_buffer.h", |
| 811 | "neteq/dtmf_tone_generator.cc", |
| 812 | "neteq/dtmf_tone_generator.h", |
| 813 | "neteq/expand.cc", |
| 814 | "neteq/expand.h", |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 815 | "neteq/include/neteq.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 816 | "neteq/merge.cc", |
| 817 | "neteq/merge.h", |
henrik.lundin | 9195186 | 2016-06-08 06:43:41 -0700 | [diff] [blame] | 818 | "neteq/nack_tracker.cc", |
| 819 | "neteq/nack_tracker.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 820 | "neteq/neteq.cc", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 821 | "neteq/neteq_impl.cc", |
| 822 | "neteq/neteq_impl.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 823 | "neteq/normal.cc", |
| 824 | "neteq/normal.h", |
henrik.lundin | 84f8cd6 | 2016-04-26 07:45:16 -0700 | [diff] [blame] | 825 | "neteq/packet.cc", |
| 826 | "neteq/packet.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 827 | "neteq/packet_buffer.cc", |
| 828 | "neteq/packet_buffer.h", |
| 829 | "neteq/payload_splitter.cc", |
| 830 | "neteq/payload_splitter.h", |
| 831 | "neteq/post_decode_vad.cc", |
| 832 | "neteq/post_decode_vad.h", |
| 833 | "neteq/preemptive_expand.cc", |
| 834 | "neteq/preemptive_expand.h", |
| 835 | "neteq/random_vector.cc", |
| 836 | "neteq/random_vector.h", |
| 837 | "neteq/rtcp.cc", |
| 838 | "neteq/rtcp.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 839 | "neteq/statistics_calculator.cc", |
| 840 | "neteq/statistics_calculator.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 841 | "neteq/sync_buffer.cc", |
| 842 | "neteq/sync_buffer.h", |
henrik.lundin | 8053f79 | 2016-04-22 13:21:43 -0700 | [diff] [blame] | 843 | "neteq/tick_timer.cc", |
| 844 | "neteq/tick_timer.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 845 | "neteq/time_stretch.cc", |
| 846 | "neteq/time_stretch.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 847 | "neteq/timestamp_scaler.cc", |
| 848 | "neteq/timestamp_scaler.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 849 | ] |
| 850 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 851 | configs += [ "../..:common_config" ] |
| 852 | |
| 853 | public_configs = [ |
| 854 | "../..:common_inherited_config", |
| 855 | ":neteq_config", |
| 856 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 857 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 858 | deps = [ |
kwiberg@webrtc.org | e04a93b | 2014-12-09 10:12:53 +0000 | [diff] [blame] | 859 | ":audio_decoder_interface", |
kwiberg | 5178ee8 | 2016-05-03 01:39:01 -0700 | [diff] [blame] | 860 | ":builtin_audio_decoder_factory", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 861 | ":cng", |
| 862 | ":g711", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 863 | ":pcm16b", |
kwiberg | 5178ee8 | 2016-05-03 01:39:01 -0700 | [diff] [blame] | 864 | ":rent_a_codec", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 865 | "../..:webrtc_common", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 866 | "../../common_audio", |
| 867 | "../../system_wrappers", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 868 | ] |
phoglund@webrtc.org | 49d0d34 | 2015-03-10 16:23:24 +0000 | [diff] [blame] | 869 | |
| 870 | defines = [] |
| 871 | |
kwiberg | f8c2bac | 2016-01-18 06:38:32 -0800 | [diff] [blame] | 872 | if (rtc_include_ilbc) { |
| 873 | defines += [ "WEBRTC_CODEC_ILBC" ] |
| 874 | deps += [ ":ilbc" ] |
| 875 | } |
phoglund@webrtc.org | 49d0d34 | 2015-03-10 16:23:24 +0000 | [diff] [blame] | 876 | if (rtc_include_opus) { |
| 877 | defines += [ "WEBRTC_CODEC_OPUS" ] |
| 878 | deps += [ ":webrtc_opus" ] |
| 879 | } |
kwiberg | 98ab3a4 | 2015-09-30 21:54:21 -0700 | [diff] [blame] | 880 | if (!build_with_mozilla) { |
| 881 | if (current_cpu == "arm") { |
| 882 | defines += [ "WEBRTC_CODEC_ISACFX" ] |
| 883 | deps += [ ":isac_fix" ] |
| 884 | } else { |
| 885 | defines += [ "WEBRTC_CODEC_ISAC" ] |
| 886 | deps += [ ":isac" ] |
| 887 | } |
| 888 | defines += [ "WEBRTC_CODEC_G722" ] |
| 889 | deps += [ ":g722" ] |
| 890 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 891 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 892 | |
| 893 | if (rtc_include_tests) { |
| 894 | source_set("acm_receive_test") { |
| 895 | testonly = true |
| 896 | sources = [ |
| 897 | "acm2/acm_receive_test_oldapi.cc", |
| 898 | "acm2/acm_receive_test_oldapi.h", |
| 899 | ] |
| 900 | |
| 901 | configs += [ "../..:common_config" ] |
| 902 | public_configs = [ "../..:common_inherited_config" ] |
| 903 | |
| 904 | if (is_clang) { |
| 905 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 906 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 907 | } |
| 908 | |
| 909 | defines = audio_coding_defines |
| 910 | |
| 911 | deps = audio_coding_deps + [ |
| 912 | ":audio_coding", |
| 913 | ":neteq_unittest_tools", |
| 914 | "//testing/gtest", |
| 915 | ] |
| 916 | } |
| 917 | |
| 918 | source_set("acm_send_test") { |
| 919 | testonly = true |
| 920 | sources = [ |
| 921 | "acm2/acm_send_test_oldapi.cc", |
| 922 | "acm2/acm_send_test_oldapi.h", |
| 923 | ] |
| 924 | |
| 925 | configs += [ "../..:common_config" ] |
| 926 | public_configs = [ "../..:common_inherited_config" ] |
| 927 | |
| 928 | if (is_clang) { |
| 929 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 930 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 931 | } |
| 932 | |
| 933 | defines = audio_coding_defines |
| 934 | |
| 935 | deps = audio_coding_deps + [ |
| 936 | ":audio_coding", |
| 937 | ":neteq_unittest_tools", |
| 938 | "//testing/gtest", |
| 939 | ] |
| 940 | } |
| 941 | |
aleloi | 333f206 | 2016-07-28 01:21:29 -0700 | [diff] [blame] | 942 | executable("delay_test") { |
| 943 | testonly = true |
| 944 | sources = [ |
| 945 | "test/Channel.cc", |
| 946 | "test/PCMFile.cc", |
| 947 | "test/delay_test.cc", |
| 948 | "test/utility.cc", |
| 949 | ] |
| 950 | |
| 951 | configs += [ "../..:common_config" ] |
| 952 | public_configs = [ "../..:common_inherited_config" ] |
| 953 | |
| 954 | if (is_clang) { |
| 955 | # Suppress warnings from Chrome's Clang plugins. |
| 956 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 957 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 958 | } |
| 959 | |
| 960 | deps = [ |
| 961 | ":audio_coding", |
| 962 | "../../:webrtc_common", |
| 963 | "../../system_wrappers", |
| 964 | "../../system_wrappers:system_wrappers_default", |
| 965 | "../../test:test_support", |
| 966 | "../rtp_rtcp", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 967 | "//build/config/sanitizers:deps", |
aleloi | 333f206 | 2016-07-28 01:21:29 -0700 | [diff] [blame] | 968 | "//testing/gtest", |
| 969 | "//third_party/gflags:gflags", |
| 970 | ] |
| 971 | } # delay_test |
| 972 | |
aleloi | 00730c7 | 2016-07-28 01:27:10 -0700 | [diff] [blame] | 973 | executable("insert_packet_with_timing") { |
| 974 | testonly = true |
| 975 | sources = [ |
| 976 | "test/Channel.cc", |
| 977 | "test/PCMFile.cc", |
| 978 | "test/insert_packet_with_timing.cc", |
| 979 | ] |
| 980 | |
| 981 | configs += [ "../..:common_config" ] |
| 982 | public_configs = [ "../..:common_inherited_config" ] |
| 983 | |
| 984 | if (is_clang) { |
| 985 | # Suppress warnings from Chrome's Clang plugins. |
| 986 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 987 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 988 | } |
| 989 | |
| 990 | deps = [ |
| 991 | ":audio_coding", |
| 992 | "../../:webrtc_common", |
| 993 | "../../system_wrappers", |
| 994 | "../../system_wrappers:system_wrappers_default", |
| 995 | "../../test:test_support", |
| 996 | "../rtp_rtcp", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 997 | "//build/config/sanitizers:deps", |
aleloi | 00730c7 | 2016-07-28 01:27:10 -0700 | [diff] [blame] | 998 | "//testing/gtest", |
| 999 | "//third_party/gflags:gflags", |
| 1000 | ] |
| 1001 | } # insert_packet_with_timing |
| 1002 | |
charujain | ddf3e4a | 2016-08-01 07:49:42 -0700 | [diff] [blame] | 1003 | test("audio_decoder_unittests") { |
| 1004 | testonly = true |
| 1005 | sources = [ |
| 1006 | "neteq/audio_decoder_unittest.cc", |
| 1007 | ] |
| 1008 | |
| 1009 | configs += [ "../..:common_config" ] |
| 1010 | public_configs = [ "../..:common_inherited_config" ] |
| 1011 | |
| 1012 | if (is_clang) { |
| 1013 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 1014 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1015 | } |
| 1016 | |
| 1017 | deps = [] |
| 1018 | |
| 1019 | defines = neteq_defines |
| 1020 | |
| 1021 | deps += audio_coding_deps |
| 1022 | deps += [ |
| 1023 | ":audio_decoder_interface", |
| 1024 | ":isac", |
| 1025 | ":isac_fix", |
| 1026 | ":neteq", |
| 1027 | ":neteq_unittest_tools", |
| 1028 | "../../common_audio/", |
| 1029 | "../../test:test_support_main", |
| 1030 | "//testing/gtest", |
| 1031 | ] |
| 1032 | |
| 1033 | if (is_android) { |
| 1034 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
sakal | 714dd4e | 2016-08-15 02:29:11 -0700 | [diff] [blame] | 1035 | shard_timeout = 900 |
charujain | ddf3e4a | 2016-08-01 07:49:42 -0700 | [diff] [blame] | 1036 | } |
| 1037 | |
kjellander | 28a0ffd | 2016-08-24 07:48:42 -0700 | [diff] [blame] | 1038 | if (is_android || is_ios) { |
charujain | ddf3e4a | 2016-08-01 07:49:42 -0700 | [diff] [blame] | 1039 | data = [ |
| 1040 | "//resources/audio_coding/testfile32kHz.pcm", |
| 1041 | ] |
| 1042 | } |
| 1043 | } # audio_decoder_unittests |
| 1044 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1045 | if (rtc_enable_protobuf) { |
| 1046 | proto_library("neteq_unittest_proto") { |
| 1047 | sources = [ |
| 1048 | "neteq/neteq_unittest.proto", |
| 1049 | ] |
| 1050 | proto_out_dir = "webrtc/audio_coding/neteq" |
| 1051 | } |
henrik.lundin | 03153f1 | 2016-06-21 05:38:42 -0700 | [diff] [blame] | 1052 | |
| 1053 | source_set("rtc_event_log_source") { |
| 1054 | testonly = true |
| 1055 | sources = [ |
| 1056 | "neteq/tools/rtc_event_log_source.cc", |
| 1057 | "neteq/tools/rtc_event_log_source.h", |
| 1058 | ] |
| 1059 | |
| 1060 | if (is_clang) { |
| 1061 | # Suppress warnings from the Chromium Clang plugins |
| 1062 | # (bugs.webrtc.org/163). |
| 1063 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1064 | } |
| 1065 | |
| 1066 | deps = [ |
| 1067 | "../../:rtc_event_log_parser", |
| 1068 | ] |
| 1069 | public_deps = [ |
| 1070 | "../../:rtc_event_log_proto", |
| 1071 | ] |
| 1072 | } |
| 1073 | |
| 1074 | test("neteq_rtpplay") { |
| 1075 | testonly = true |
| 1076 | defines = [] |
| 1077 | deps = [] |
| 1078 | sources = [ |
| 1079 | "neteq/tools/neteq_rtpplay.cc", |
| 1080 | ] |
| 1081 | |
| 1082 | if (is_clang) { |
| 1083 | # Suppress warnings from the Chromium Clang plugins |
| 1084 | # (bugs.webrtc.org/163). |
| 1085 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1086 | } |
| 1087 | |
| 1088 | if (is_win) { |
| 1089 | cflags = [ |
| 1090 | # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
| 1091 | "/wd4373", # virtual function override. |
| 1092 | ] |
| 1093 | } |
| 1094 | |
| 1095 | deps += [ |
| 1096 | ":neteq", |
| 1097 | ":neteq_unittest_tools", |
henrik.lundin | 03153f1 | 2016-06-21 05:38:42 -0700 | [diff] [blame] | 1098 | "../../system_wrappers:system_wrappers_default", |
| 1099 | "../../test:test_support", |
| 1100 | "//third_party/gflags", |
| 1101 | ] |
| 1102 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1103 | } |
| 1104 | |
aleloi | e6b60a4 | 2016-07-28 02:34:30 -0700 | [diff] [blame] | 1105 | test("audio_codec_speed_tests") { |
| 1106 | testonly = true |
| 1107 | defines = [] |
| 1108 | deps = [] |
| 1109 | sources = [ |
| 1110 | "codecs/isac/fix/test/isac_speed_test.cc", |
| 1111 | "codecs/opus/opus_speed_test.cc", |
| 1112 | "codecs/tools/audio_codec_speed_test.cc", |
| 1113 | "codecs/tools/audio_codec_speed_test.h", |
| 1114 | ] |
| 1115 | |
| 1116 | if (is_clang) { |
| 1117 | # Suppress warnings from the Chromium Clang plugins |
| 1118 | # (bugs.webrtc.org/163). |
| 1119 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1120 | } |
| 1121 | |
| 1122 | if (is_android) { |
| 1123 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
sakal | 714dd4e | 2016-08-15 02:29:11 -0700 | [diff] [blame] | 1124 | shard_timeout = 900 |
aleloi | e6b60a4 | 2016-07-28 02:34:30 -0700 | [diff] [blame] | 1125 | } |
| 1126 | |
| 1127 | deps += [ |
| 1128 | ":isac_fix", |
| 1129 | ":webrtc_opus", |
| 1130 | "../../system_wrappers:system_wrappers_default", |
| 1131 | "../../test:test_support_main", |
| 1132 | "../audio_processing/", |
| 1133 | "//testing/gtest", |
| 1134 | ] |
| 1135 | } |
| 1136 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1137 | source_set("neteq_test_support") { |
| 1138 | testonly = true |
| 1139 | sources = [ |
| 1140 | "neteq/tools/neteq_external_decoder_test.cc", |
| 1141 | "neteq/tools/neteq_external_decoder_test.h", |
| 1142 | "neteq/tools/neteq_performance_test.cc", |
| 1143 | "neteq/tools/neteq_performance_test.h", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1144 | ] |
| 1145 | |
| 1146 | configs += [ "../..:common_config" ] |
| 1147 | public_configs = [ "../..:common_inherited_config" ] |
| 1148 | |
| 1149 | if (is_clang) { |
| 1150 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 1151 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1152 | } |
| 1153 | |
| 1154 | deps = [ |
| 1155 | ":neteq", |
| 1156 | ":neteq_unittest_tools", |
| 1157 | ":pcm16b", |
| 1158 | "//testing/gtest", |
| 1159 | "//third_party/gflags", |
| 1160 | ] |
| 1161 | } |
| 1162 | |
ehmaldonado | 861da3c | 2016-08-19 07:02:24 -0700 | [diff] [blame] | 1163 | source_set("neteq_quality_test_support") { |
| 1164 | testonly = true |
| 1165 | sources = [ |
| 1166 | "neteq/tools/neteq_quality_test.cc", |
| 1167 | "neteq/tools/neteq_quality_test.h", |
| 1168 | ] |
| 1169 | |
| 1170 | configs += [ "../..:common_config" ] |
| 1171 | public_configs = [ "../..:common_inherited_config" ] |
| 1172 | |
| 1173 | if (is_clang) { |
| 1174 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 1175 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1176 | } |
| 1177 | |
| 1178 | deps = [ |
| 1179 | ":neteq", |
| 1180 | ":neteq_unittest_tools", |
ehmaldonado | 6c46eaa | 2016-08-22 09:48:02 -0700 | [diff] [blame] | 1181 | "//testing/gtest", |
ehmaldonado | 861da3c | 2016-08-19 07:02:24 -0700 | [diff] [blame] | 1182 | "//third_party/gflags", |
| 1183 | ] |
| 1184 | } |
| 1185 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1186 | config("neteq_unittest_tools_config") { |
| 1187 | include_dirs = [ "tools" ] |
| 1188 | } |
| 1189 | |
| 1190 | source_set("neteq_unittest_tools") { |
| 1191 | testonly = true |
| 1192 | sources = [ |
| 1193 | "neteq/tools/audio_checksum.h", |
| 1194 | "neteq/tools/audio_loop.cc", |
| 1195 | "neteq/tools/audio_loop.h", |
aleloi | 0e0be0a | 2016-08-10 04:55:20 -0700 | [diff] [blame] | 1196 | "neteq/tools/audio_sink.cc", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1197 | "neteq/tools/audio_sink.h", |
| 1198 | "neteq/tools/constant_pcm_packet_source.cc", |
| 1199 | "neteq/tools/constant_pcm_packet_source.h", |
henrik.lundin | e8a77e3 | 2016-06-22 06:34:03 -0700 | [diff] [blame] | 1200 | "neteq/tools/fake_decode_from_file.cc", |
| 1201 | "neteq/tools/fake_decode_from_file.h", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1202 | "neteq/tools/input_audio_file.cc", |
| 1203 | "neteq/tools/input_audio_file.h", |
henrik.lundin | e8a77e3 | 2016-06-22 06:34:03 -0700 | [diff] [blame] | 1204 | "neteq/tools/neteq_input.h", |
| 1205 | "neteq/tools/neteq_packet_source_input.cc", |
| 1206 | "neteq/tools/neteq_packet_source_input.h", |
| 1207 | "neteq/tools/neteq_replacement_input.cc", |
| 1208 | "neteq/tools/neteq_replacement_input.h", |
| 1209 | "neteq/tools/neteq_test.cc", |
| 1210 | "neteq/tools/neteq_test.h", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1211 | "neteq/tools/output_audio_file.h", |
| 1212 | "neteq/tools/output_wav_file.h", |
| 1213 | "neteq/tools/packet.cc", |
| 1214 | "neteq/tools/packet.h", |
| 1215 | "neteq/tools/packet_source.h", |
| 1216 | "neteq/tools/resample_input_audio_file.cc", |
| 1217 | "neteq/tools/resample_input_audio_file.h", |
| 1218 | "neteq/tools/rtp_file_source.cc", |
| 1219 | "neteq/tools/rtp_file_source.h", |
| 1220 | "neteq/tools/rtp_generator.cc", |
| 1221 | "neteq/tools/rtp_generator.h", |
| 1222 | ] |
| 1223 | |
| 1224 | configs += [ "../..:common_config" ] |
| 1225 | public_configs = [ |
| 1226 | "../..:common_inherited_config", |
| 1227 | ":neteq_unittest_tools_config", |
| 1228 | ] |
| 1229 | |
| 1230 | if (is_clang) { |
| 1231 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 1232 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1233 | } |
| 1234 | |
| 1235 | deps = [ |
| 1236 | "../../common_audio", |
| 1237 | "../../test:rtp_test_utils", |
| 1238 | "../rtp_rtcp", |
| 1239 | ] |
henrik.lundin | e8a77e3 | 2016-06-22 06:34:03 -0700 | [diff] [blame] | 1240 | |
| 1241 | if (rtc_enable_protobuf) { |
| 1242 | deps += [ ":rtc_event_log_source" ] |
| 1243 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1244 | } |
aleloi | 3022a34 | 2016-07-26 06:36:03 -0700 | [diff] [blame] | 1245 | |
| 1246 | source_set("neteq_test_tools") { |
| 1247 | testonly = true |
| 1248 | sources = [ |
| 1249 | "neteq/test/NETEQTEST_DummyRTPpacket.cc", |
| 1250 | "neteq/test/NETEQTEST_DummyRTPpacket.h", |
| 1251 | "neteq/test/NETEQTEST_RTPpacket.cc", |
| 1252 | "neteq/test/NETEQTEST_RTPpacket.h", |
| 1253 | ] |
| 1254 | |
| 1255 | deps = [ |
| 1256 | ":cng", |
| 1257 | ":g711", |
| 1258 | ":g722", |
| 1259 | ":ilbc", |
| 1260 | ":isac", |
| 1261 | ":pcm16b", |
| 1262 | "../..:webrtc_common", |
| 1263 | "//testing/gtest", |
| 1264 | ] |
| 1265 | |
| 1266 | include_dirs = [ |
| 1267 | "neteq/include", |
| 1268 | "neteq/test", |
| 1269 | "../../", |
| 1270 | ] |
| 1271 | |
| 1272 | if (is_win) { |
| 1273 | cflags = [ |
| 1274 | # Disable warnings to enable Win64 build, issue 1323. |
| 1275 | "/wd4267", # size_t to int truncation |
| 1276 | ] |
| 1277 | } |
| 1278 | } |
aleloi | 47bded4 | 2016-07-26 06:46:19 -0700 | [diff] [blame] | 1279 | |
aleloi | 8266773 | 2016-08-02 01:45:50 -0700 | [diff] [blame] | 1280 | config("RTPencode_config") { |
| 1281 | defines = [ |
| 1282 | "CODEC_ILBC", |
| 1283 | "CODEC_PCM16B", |
| 1284 | "CODEC_G711", |
| 1285 | "CODEC_G722", |
| 1286 | "CODEC_ISAC", |
| 1287 | "CODEC_PCM16B_WB", |
| 1288 | "CODEC_ISAC_SWB", |
| 1289 | "CODEC_PCM16B_32KHZ", |
| 1290 | "CODEC_PCM16B_48KHZ", |
| 1291 | "CODEC_CNGCODEC8", |
| 1292 | "CODEC_CNGCODEC16", |
| 1293 | "CODEC_CNGCODEC32", |
| 1294 | "CODEC_ATEVENT_DECODE", |
| 1295 | "CODEC_RED", |
| 1296 | "CODEC_OPUS", |
| 1297 | ] |
| 1298 | } |
| 1299 | |
| 1300 | executable("RTPencode") { |
| 1301 | testonly = true |
| 1302 | |
| 1303 | deps = [ |
| 1304 | # TODO(hlundin): Make RTPencode use ACM to encode files. |
| 1305 | ":cng", |
| 1306 | ":g711", |
| 1307 | ":g722", |
| 1308 | ":ilbc", |
| 1309 | ":isac", |
| 1310 | ":neteq_test_tools", |
| 1311 | ":pcm16b", |
| 1312 | ":webrtc_opus", |
| 1313 | "../../common_audio", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1314 | "//build/config/sanitizers:deps", |
aleloi | 8266773 | 2016-08-02 01:45:50 -0700 | [diff] [blame] | 1315 | ] |
| 1316 | |
| 1317 | configs += [ ":RTPencode_config" ] |
| 1318 | |
| 1319 | sources = [ |
| 1320 | "neteq/test/RTPencode.cc", |
| 1321 | ] |
| 1322 | |
| 1323 | include_dirs = [ |
| 1324 | "neteq/include", |
| 1325 | "neteq/test", |
| 1326 | ] |
| 1327 | |
| 1328 | if (is_win) { |
| 1329 | cflags = [ |
| 1330 | # Disable warnings to enable Win64 build, issue 1323. |
| 1331 | "/wd4267", # size_t to int truncation |
| 1332 | ] |
| 1333 | } |
| 1334 | } |
| 1335 | |
aleloi | 76cbe19 | 2016-08-02 02:05:03 -0700 | [diff] [blame] | 1336 | executable("RTPchange") { |
| 1337 | testonly = true |
| 1338 | |
| 1339 | sources = [ |
| 1340 | "neteq/test/RTPchange.cc", |
| 1341 | ] |
| 1342 | |
| 1343 | deps = [ |
| 1344 | ":neteq_test_tools", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1345 | "//build/config/sanitizers:deps", |
aleloi | 76cbe19 | 2016-08-02 02:05:03 -0700 | [diff] [blame] | 1346 | ] |
| 1347 | } |
| 1348 | |
aleloi | 5556dcb | 2016-08-02 04:27:25 -0700 | [diff] [blame] | 1349 | executable("rtpcat") { |
| 1350 | testonly = true |
| 1351 | |
| 1352 | sources = [ |
| 1353 | "neteq/tools/rtpcat.cc", |
| 1354 | ] |
| 1355 | |
| 1356 | deps = [ |
| 1357 | "../../system_wrappers:system_wrappers_default", |
| 1358 | "../../test:rtp_test_utils", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1359 | "//build/config/sanitizers:deps", |
aleloi | 5556dcb | 2016-08-02 04:27:25 -0700 | [diff] [blame] | 1360 | "//testing/gtest", |
| 1361 | ] |
| 1362 | } |
| 1363 | |
aleloi | 5a74650 | 2016-08-02 06:06:33 -0700 | [diff] [blame] | 1364 | executable("RTPtimeshift") { |
| 1365 | testonly = true |
| 1366 | |
| 1367 | sources = [ |
| 1368 | "neteq/test/RTPtimeshift.cc", |
| 1369 | ] |
| 1370 | |
| 1371 | deps = [ |
| 1372 | ":neteq_test_tools", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1373 | "//build/config/sanitizers:deps", |
aleloi | 5a74650 | 2016-08-02 06:06:33 -0700 | [diff] [blame] | 1374 | "//testing/gtest", |
| 1375 | ] |
| 1376 | } |
| 1377 | |
aleloi | 17dfa74 | 2016-08-03 01:17:25 -0700 | [diff] [blame] | 1378 | executable("RTPjitter") { |
| 1379 | testonly = true |
| 1380 | deps = [ |
| 1381 | "../..:webrtc_common", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1382 | "//build/config/sanitizers:deps", |
aleloi | 17dfa74 | 2016-08-03 01:17:25 -0700 | [diff] [blame] | 1383 | "//testing/gtest", |
| 1384 | ] |
| 1385 | sources = [ |
| 1386 | "neteq/test/RTPjitter.cc", |
| 1387 | ] |
| 1388 | } |
| 1389 | |
aleloi | 47bded4 | 2016-07-26 06:46:19 -0700 | [diff] [blame] | 1390 | executable("rtp_analyze") { |
| 1391 | testonly = true |
| 1392 | |
| 1393 | sources = [ |
| 1394 | "neteq/tools/rtp_analyze.cc", |
| 1395 | ] |
| 1396 | |
| 1397 | deps = [ |
| 1398 | ":neteq", |
| 1399 | ":neteq_unittest_tools", |
| 1400 | ":pcm16b", |
| 1401 | "../../system_wrappers:system_wrappers_default", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1402 | "//build/config/sanitizers:deps", |
aleloi | 47bded4 | 2016-07-26 06:46:19 -0700 | [diff] [blame] | 1403 | "//testing/gtest", |
| 1404 | "//third_party/gflags:gflags", |
| 1405 | ] |
| 1406 | |
| 1407 | if (is_clang) { |
| 1408 | # Suppress warnings from Chrome's Clang plugins. |
| 1409 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 1410 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1411 | } |
| 1412 | } |
aleloi | 630c6d5 | 2016-08-10 02:11:30 -0700 | [diff] [blame] | 1413 | |
| 1414 | executable("neteq_opus_quality_test") { |
| 1415 | testonly = true |
| 1416 | |
| 1417 | sources = [ |
| 1418 | "neteq/test/neteq_opus_quality_test.cc", |
| 1419 | ] |
| 1420 | |
| 1421 | deps = [ |
| 1422 | ":neteq", |
ehmaldonado | 861da3c | 2016-08-19 07:02:24 -0700 | [diff] [blame] | 1423 | ":neteq_quality_test_support", |
aleloi | 0e0be0a | 2016-08-10 04:55:20 -0700 | [diff] [blame] | 1424 | ":neteq_unittest_tools", |
aleloi | 630c6d5 | 2016-08-10 02:11:30 -0700 | [diff] [blame] | 1425 | ":webrtc_opus", |
| 1426 | "../../test:test_support_main", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1427 | "//build/config/sanitizers:deps", |
aleloi | 630c6d5 | 2016-08-10 02:11:30 -0700 | [diff] [blame] | 1428 | "//testing/gtest", |
| 1429 | "//third_party/gflags", |
| 1430 | ] |
aleloi | 630c6d5 | 2016-08-10 02:11:30 -0700 | [diff] [blame] | 1431 | } |
aleloi | 116fd61 | 2016-08-10 04:16:36 -0700 | [diff] [blame] | 1432 | |
| 1433 | executable("neteq_speed_test") { |
| 1434 | testonly = true |
| 1435 | |
| 1436 | sources = [ |
| 1437 | "neteq/test/neteq_speed_test.cc", |
| 1438 | ] |
| 1439 | |
| 1440 | deps = [ |
| 1441 | ":neteq", |
| 1442 | ":neteq_test_support", |
| 1443 | "../../system_wrappers:system_wrappers_default", |
| 1444 | "../../test:test_support", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1445 | "//build/config/sanitizers:deps", |
aleloi | 116fd61 | 2016-08-10 04:16:36 -0700 | [diff] [blame] | 1446 | "//third_party/gflags", |
| 1447 | ] |
| 1448 | } |
aleloi | 6391012 | 2016-08-10 04:41:14 -0700 | [diff] [blame] | 1449 | |
| 1450 | executable("audio_classifier_test") { |
| 1451 | testonly = true |
| 1452 | sources = [ |
| 1453 | "neteq/test/audio_classifier_test.cc", |
| 1454 | ] |
| 1455 | deps = [ |
| 1456 | ":neteq", |
| 1457 | ":webrtc_opus", |
| 1458 | "../../system_wrappers:system_wrappers_default", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1459 | "//build/config/sanitizers:deps", |
aleloi | 6391012 | 2016-08-10 04:41:14 -0700 | [diff] [blame] | 1460 | ] |
| 1461 | } |
aleloi | 0e0be0a | 2016-08-10 04:55:20 -0700 | [diff] [blame] | 1462 | |
| 1463 | executable("neteq_ilbc_quality_test") { |
| 1464 | testonly = true |
| 1465 | |
| 1466 | sources = [ |
| 1467 | "neteq/test/neteq_ilbc_quality_test.cc", |
| 1468 | ] |
| 1469 | |
| 1470 | deps = [ |
| 1471 | ":ilbc", |
| 1472 | ":neteq", |
ehmaldonado | 861da3c | 2016-08-19 07:02:24 -0700 | [diff] [blame] | 1473 | ":neteq_quality_test_support", |
aleloi | 0e0be0a | 2016-08-10 04:55:20 -0700 | [diff] [blame] | 1474 | ":neteq_unittest_tools", |
| 1475 | "../../system_wrappers:system_wrappers_default", |
| 1476 | "../../test:test_support_main", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1477 | "//build/config/sanitizers:deps", |
aleloi | 0e0be0a | 2016-08-10 04:55:20 -0700 | [diff] [blame] | 1478 | "//testing/gtest", |
| 1479 | "//third_party/gflags", |
| 1480 | ] |
| 1481 | } |
aleloi | 6df36dc | 2016-08-10 05:04:47 -0700 | [diff] [blame] | 1482 | |
| 1483 | executable("neteq_isac_quality_test") { |
| 1484 | testonly = true |
| 1485 | |
| 1486 | sources = [ |
| 1487 | "neteq/test/neteq_isac_quality_test.cc", |
| 1488 | ] |
| 1489 | |
| 1490 | deps = [ |
| 1491 | ":isac_fix", |
| 1492 | ":neteq", |
ehmaldonado | 861da3c | 2016-08-19 07:02:24 -0700 | [diff] [blame] | 1493 | ":neteq_quality_test_support", |
aleloi | 6df36dc | 2016-08-10 05:04:47 -0700 | [diff] [blame] | 1494 | "../../test:test_support_main", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1495 | "//build/config/sanitizers:deps", |
aleloi | 6df36dc | 2016-08-10 05:04:47 -0700 | [diff] [blame] | 1496 | "//testing/gtest", |
| 1497 | "//third_party/gflags", |
| 1498 | ] |
| 1499 | } |
aleloi | c4ac700 | 2016-08-10 05:06:27 -0700 | [diff] [blame] | 1500 | |
| 1501 | executable("neteq_pcmu_quality_test") { |
| 1502 | testonly = true |
| 1503 | |
| 1504 | sources = [ |
| 1505 | "neteq/test/neteq_pcmu_quality_test.cc", |
| 1506 | ] |
| 1507 | |
| 1508 | deps = [ |
| 1509 | ":g711", |
| 1510 | ":neteq", |
ehmaldonado | 861da3c | 2016-08-19 07:02:24 -0700 | [diff] [blame] | 1511 | ":neteq_quality_test_support", |
aleloi | c4ac700 | 2016-08-10 05:06:27 -0700 | [diff] [blame] | 1512 | "../../test:test_support_main", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1513 | "//build/config/sanitizers:deps", |
aleloi | c4ac700 | 2016-08-10 05:06:27 -0700 | [diff] [blame] | 1514 | "//testing/gtest", |
| 1515 | "//third_party/gflags", |
| 1516 | ] |
| 1517 | } |
aleloi | b7186d0 | 2016-08-16 01:47:16 -0700 | [diff] [blame] | 1518 | |
| 1519 | executable("isac_fix_test") { |
| 1520 | testonly = true |
| 1521 | |
| 1522 | sources = [ |
| 1523 | "codecs/isac/fix/test/kenny.cc", |
| 1524 | ] |
| 1525 | |
| 1526 | deps = [ |
| 1527 | ":isac_fix", |
| 1528 | "../../test:test_support", |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 1529 | "//build/config/sanitizers:deps", |
aleloi | b7186d0 | 2016-08-16 01:47:16 -0700 | [diff] [blame] | 1530 | ] |
| 1531 | |
| 1532 | if (is_win) { |
| 1533 | cflags = [ |
| 1534 | # Disable warnings to enable Win64 build, issue 1323. |
| 1535 | "/wd4267", # size_t to int truncation |
| 1536 | ] |
| 1537 | } |
| 1538 | } |
aleloi | 16f55a1 | 2016-08-23 08:08:23 -0700 | [diff] [blame] | 1539 | |
ivoc | e51b41a | 2016-08-24 02:25:57 -0700 | [diff] [blame] | 1540 | executable("isac_test") { |
| 1541 | testonly = true |
| 1542 | |
| 1543 | sources = [ |
| 1544 | "codecs/isac/main/test/simpleKenny.c", |
| 1545 | "codecs/isac/main/util/utility.c", |
| 1546 | ] |
| 1547 | |
| 1548 | include_dirs = [ |
| 1549 | "codecs/isac/main/include", |
| 1550 | "codecs/isac/main/test", |
| 1551 | "codecs/isac/main/util", |
| 1552 | ] |
| 1553 | |
| 1554 | deps = [ |
| 1555 | ":isac", |
ivoc | 4805231 | 2016-08-25 04:43:45 -0700 | [diff] [blame^] | 1556 | "../../base:rtc_base_approved", |
ivoc | e51b41a | 2016-08-24 02:25:57 -0700 | [diff] [blame] | 1557 | "//build/config/sanitizers:deps", |
| 1558 | ] |
| 1559 | |
| 1560 | if (is_win && is_clang) { |
| 1561 | cflags = [ |
| 1562 | # Disable warnings failing when compiling with Clang on Windows. |
| 1563 | # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 1564 | "-Wno-format", |
| 1565 | ] |
| 1566 | } |
| 1567 | } |
| 1568 | |
aleloi | 16f55a1 | 2016-08-23 08:08:23 -0700 | [diff] [blame] | 1569 | executable("g711_test") { |
| 1570 | testonly = true |
| 1571 | |
| 1572 | sources = [ |
| 1573 | "codecs/g711/test/testG711.cc", |
| 1574 | ] |
| 1575 | |
| 1576 | configs += [ "../..:common_config" ] |
| 1577 | public_configs = [ "../..:common_inherited_config" ] |
| 1578 | |
| 1579 | deps = [ |
| 1580 | ":g711", |
ehmaldonado | 19319a3 | 2016-08-25 02:44:01 -0700 | [diff] [blame] | 1581 | "//build/config/sanitizers:deps", |
aleloi | 16f55a1 | 2016-08-23 08:08:23 -0700 | [diff] [blame] | 1582 | ] |
| 1583 | } |
aleloi | 9a11784 | 2016-08-23 08:36:10 -0700 | [diff] [blame] | 1584 | |
| 1585 | executable("g722_test") { |
| 1586 | testonly = true |
| 1587 | |
| 1588 | sources = [ |
| 1589 | "codecs/g722/test/testG722.cc", |
| 1590 | ] |
| 1591 | |
| 1592 | configs += [ "../..:common_config" ] |
| 1593 | public_configs = [ "../..:common_inherited_config" ] |
| 1594 | |
| 1595 | deps = [ |
| 1596 | ":g722", |
| 1597 | "../..:webrtc_common", |
ehmaldonado | 19319a3 | 2016-08-25 02:44:01 -0700 | [diff] [blame] | 1598 | "//build/config/sanitizers:deps", |
aleloi | 9a11784 | 2016-08-23 08:36:10 -0700 | [diff] [blame] | 1599 | ] |
| 1600 | } |
ivoc | 2c670db | 2016-08-24 06:11:18 -0700 | [diff] [blame] | 1601 | |
| 1602 | executable("webrtc_opus_fec_test") { |
| 1603 | testonly = true |
| 1604 | |
| 1605 | sources = [ |
| 1606 | "codecs/opus/opus_fec_test.cc", |
| 1607 | ] |
| 1608 | |
| 1609 | deps = [ |
| 1610 | ":webrtc_opus", |
ivoc | 4805231 | 2016-08-25 04:43:45 -0700 | [diff] [blame^] | 1611 | "../../base:rtc_base_approved", |
ivoc | 2c670db | 2016-08-24 06:11:18 -0700 | [diff] [blame] | 1612 | "../../common_audio", |
| 1613 | "../../test:test_support", |
| 1614 | "../../test:test_support_main", |
| 1615 | "//build/config/sanitizers:deps", |
| 1616 | "//testing/gtest", |
| 1617 | ] |
| 1618 | |
| 1619 | if (is_clang) { |
| 1620 | # Suppress warnings from Chrome's Clang plugins. |
| 1621 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 1622 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1623 | } |
| 1624 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1625 | } |