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", |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 449 | "../../common_audio", |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 450 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 451 | } |
| 452 | |
kwiberg | 608c3cf | 2015-08-24 02:03:23 -0700 | [diff] [blame] | 453 | source_set("isac_common") { |
| 454 | sources = [ |
| 455 | "codecs/isac/audio_encoder_isac_t.h", |
| 456 | "codecs/isac/audio_encoder_isac_t_impl.h", |
| 457 | "codecs/isac/locked_bandwidth_info.cc", |
| 458 | "codecs/isac/locked_bandwidth_info.h", |
| 459 | ] |
Karl Wiberg | 39b8eb3 | 2015-08-24 19:50:32 +0200 | [diff] [blame] | 460 | public_configs = [ "../..:common_inherited_config" ] |
kwiberg | 608c3cf | 2015-08-24 02:03:23 -0700 | [diff] [blame] | 461 | } |
| 462 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 463 | config("isac_config") { |
| 464 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 465 | "../../..", |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 466 | "codecs/isac/main/include", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 467 | ] |
| 468 | } |
| 469 | |
| 470 | source_set("isac") { |
| 471 | sources = [ |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 472 | "codecs/isac/main/include/audio_decoder_isac.h", |
| 473 | "codecs/isac/main/include/audio_encoder_isac.h", |
| 474 | "codecs/isac/main/include/isac.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 475 | "codecs/isac/main/source/arith_routines.c", |
| 476 | "codecs/isac/main/source/arith_routines.h", |
| 477 | "codecs/isac/main/source/arith_routines_hist.c", |
| 478 | "codecs/isac/main/source/arith_routines_logist.c", |
Karl Wiberg | 7404368 | 2015-09-22 19:31:40 +0200 | [diff] [blame] | 479 | "codecs/isac/main/source/audio_decoder_isac.cc", |
kwiberg@webrtc.org | b3ad8cf | 2014-12-11 10:08:19 +0000 | [diff] [blame] | 480 | "codecs/isac/main/source/audio_encoder_isac.cc", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 481 | "codecs/isac/main/source/bandwidth_estimator.c", |
| 482 | "codecs/isac/main/source/bandwidth_estimator.h", |
| 483 | "codecs/isac/main/source/codec.h", |
| 484 | "codecs/isac/main/source/crc.c", |
| 485 | "codecs/isac/main/source/crc.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 486 | "codecs/isac/main/source/decode.c", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 487 | "codecs/isac/main/source/decode_bwe.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 488 | "codecs/isac/main/source/encode.c", |
| 489 | "codecs/isac/main/source/encode_lpc_swb.c", |
| 490 | "codecs/isac/main/source/encode_lpc_swb.h", |
| 491 | "codecs/isac/main/source/entropy_coding.c", |
| 492 | "codecs/isac/main/source/entropy_coding.h", |
| 493 | "codecs/isac/main/source/fft.c", |
| 494 | "codecs/isac/main/source/fft.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 495 | "codecs/isac/main/source/filter_functions.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 496 | "codecs/isac/main/source/filterbank_tables.c", |
| 497 | "codecs/isac/main/source/filterbank_tables.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 498 | "codecs/isac/main/source/filterbanks.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 499 | "codecs/isac/main/source/intialize.c", |
| 500 | "codecs/isac/main/source/isac.c", |
Karl Wiberg | 7404368 | 2015-09-22 19:31:40 +0200 | [diff] [blame] | 501 | "codecs/isac/main/source/isac_float_type.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 502 | "codecs/isac/main/source/lattice.c", |
| 503 | "codecs/isac/main/source/lpc_analysis.c", |
| 504 | "codecs/isac/main/source/lpc_analysis.h", |
| 505 | "codecs/isac/main/source/lpc_gain_swb_tables.c", |
| 506 | "codecs/isac/main/source/lpc_gain_swb_tables.h", |
| 507 | "codecs/isac/main/source/lpc_shape_swb12_tables.c", |
| 508 | "codecs/isac/main/source/lpc_shape_swb12_tables.h", |
| 509 | "codecs/isac/main/source/lpc_shape_swb16_tables.c", |
| 510 | "codecs/isac/main/source/lpc_shape_swb16_tables.h", |
| 511 | "codecs/isac/main/source/lpc_tables.c", |
| 512 | "codecs/isac/main/source/lpc_tables.h", |
| 513 | "codecs/isac/main/source/os_specific_inline.h", |
| 514 | "codecs/isac/main/source/pitch_estimator.c", |
| 515 | "codecs/isac/main/source/pitch_estimator.h", |
| 516 | "codecs/isac/main/source/pitch_filter.c", |
| 517 | "codecs/isac/main/source/pitch_gain_tables.c", |
| 518 | "codecs/isac/main/source/pitch_gain_tables.h", |
| 519 | "codecs/isac/main/source/pitch_lag_tables.c", |
| 520 | "codecs/isac/main/source/pitch_lag_tables.h", |
| 521 | "codecs/isac/main/source/settings.h", |
| 522 | "codecs/isac/main/source/spectrum_ar_model_tables.c", |
| 523 | "codecs/isac/main/source/spectrum_ar_model_tables.h", |
| 524 | "codecs/isac/main/source/structs.h", |
| 525 | "codecs/isac/main/source/transform.c", |
| 526 | ] |
| 527 | |
| 528 | if (is_linux) { |
| 529 | libs = [ "m" ] |
| 530 | } |
| 531 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 532 | configs += [ "../..:common_config" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 533 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 534 | public_configs = [ |
| 535 | "../..:common_inherited_config", |
| 536 | ":isac_config", |
| 537 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 538 | |
kwiberg@webrtc.org | b3ad8cf | 2014-12-11 10:08:19 +0000 | [diff] [blame] | 539 | deps = [ |
| 540 | ":audio_decoder_interface", |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 541 | ":audio_encoder_interface", |
kwiberg | 608c3cf | 2015-08-24 02:03:23 -0700 | [diff] [blame] | 542 | ":isac_common", |
kwiberg@webrtc.org | b3ad8cf | 2014-12-11 10:08:19 +0000 | [diff] [blame] | 543 | "../../common_audio", |
| 544 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 545 | } |
| 546 | |
| 547 | config("isac_fix_config") { |
| 548 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 549 | "../../..", |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 550 | "codecs/isac/fix/include", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 551 | ] |
| 552 | } |
| 553 | |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 554 | source_set("isac_fix") { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 555 | sources = [ |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 556 | "codecs/isac/fix/include/audio_decoder_isacfix.h", |
| 557 | "codecs/isac/fix/include/audio_encoder_isacfix.h", |
| 558 | "codecs/isac/fix/include/isacfix.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 559 | "codecs/isac/fix/source/arith_routines.c", |
| 560 | "codecs/isac/fix/source/arith_routines_hist.c", |
| 561 | "codecs/isac/fix/source/arith_routines_logist.c", |
| 562 | "codecs/isac/fix/source/arith_routins.h", |
Karl Wiberg | 7404368 | 2015-09-22 19:31:40 +0200 | [diff] [blame] | 563 | "codecs/isac/fix/source/audio_decoder_isacfix.cc", |
kwiberg@webrtc.org | 88bdec8 | 2014-12-16 12:49:37 +0000 | [diff] [blame] | 564 | "codecs/isac/fix/source/audio_encoder_isacfix.cc", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 565 | "codecs/isac/fix/source/bandwidth_estimator.c", |
| 566 | "codecs/isac/fix/source/bandwidth_estimator.h", |
| 567 | "codecs/isac/fix/source/codec.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 568 | "codecs/isac/fix/source/decode.c", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 569 | "codecs/isac/fix/source/decode_bwe.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 570 | "codecs/isac/fix/source/decode_plc.c", |
| 571 | "codecs/isac/fix/source/encode.c", |
| 572 | "codecs/isac/fix/source/entropy_coding.c", |
| 573 | "codecs/isac/fix/source/entropy_coding.h", |
| 574 | "codecs/isac/fix/source/fft.c", |
| 575 | "codecs/isac/fix/source/fft.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 576 | "codecs/isac/fix/source/filterbank_tables.c", |
| 577 | "codecs/isac/fix/source/filterbank_tables.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 578 | "codecs/isac/fix/source/filterbanks.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 579 | "codecs/isac/fix/source/filters.c", |
| 580 | "codecs/isac/fix/source/initialize.c", |
Karl Wiberg | 7404368 | 2015-09-22 19:31:40 +0200 | [diff] [blame] | 581 | "codecs/isac/fix/source/isac_fix_type.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 582 | "codecs/isac/fix/source/isacfix.c", |
| 583 | "codecs/isac/fix/source/lattice.c", |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 584 | "codecs/isac/fix/source/lattice_c.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 585 | "codecs/isac/fix/source/lpc_masking_model.c", |
| 586 | "codecs/isac/fix/source/lpc_masking_model.h", |
| 587 | "codecs/isac/fix/source/lpc_tables.c", |
| 588 | "codecs/isac/fix/source/lpc_tables.h", |
| 589 | "codecs/isac/fix/source/pitch_estimator.c", |
| 590 | "codecs/isac/fix/source/pitch_estimator.h", |
Ljubomir Papuga | 8f85dbc | 2015-04-21 16:52:45 -0700 | [diff] [blame] | 591 | "codecs/isac/fix/source/pitch_estimator_c.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 592 | "codecs/isac/fix/source/pitch_filter.c", |
Ljubomir Papuga | 8f85dbc | 2015-04-21 16:52:45 -0700 | [diff] [blame] | 593 | "codecs/isac/fix/source/pitch_filter_c.c", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 594 | "codecs/isac/fix/source/pitch_gain_tables.c", |
| 595 | "codecs/isac/fix/source/pitch_gain_tables.h", |
| 596 | "codecs/isac/fix/source/pitch_lag_tables.c", |
| 597 | "codecs/isac/fix/source/pitch_lag_tables.h", |
| 598 | "codecs/isac/fix/source/settings.h", |
| 599 | "codecs/isac/fix/source/spectrum_ar_model_tables.c", |
| 600 | "codecs/isac/fix/source/spectrum_ar_model_tables.h", |
| 601 | "codecs/isac/fix/source/structs.h", |
| 602 | "codecs/isac/fix/source/transform.c", |
| 603 | "codecs/isac/fix/source/transform_tables.c", |
| 604 | ] |
| 605 | |
| 606 | if (!is_win) { |
| 607 | defines = [ "WEBRTC_LINUX" ] |
| 608 | } |
| 609 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 610 | configs += [ "../..:common_config" ] |
| 611 | |
| 612 | public_configs = [ |
| 613 | "../..:common_inherited_config", |
| 614 | ":isac_fix_config", |
| 615 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 616 | |
| 617 | deps = [ |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 618 | ":audio_decoder_interface", |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 619 | ":audio_encoder_interface", |
kwiberg | 608c3cf | 2015-08-24 02:03:23 -0700 | [diff] [blame] | 620 | ":isac_common", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 621 | "../../common_audio", |
| 622 | "../../system_wrappers", |
| 623 | ] |
| 624 | |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 625 | if (rtc_build_with_neon) { |
Zhongwei Yao | e8a197b | 2015-04-28 14:42:11 +0800 | [diff] [blame] | 626 | deps += [ ":isac_neon" ] |
| 627 | } |
| 628 | |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 629 | if (current_cpu == "arm" && arm_version >= 7) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 630 | sources += [ |
| 631 | "codecs/isac/fix/source/lattice_armv7.S", |
| 632 | "codecs/isac/fix/source/pitch_filter_armv6.S", |
| 633 | ] |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 634 | sources -= [ |
| 635 | "codecs/isac/fix/source/lattice_c.c", |
| 636 | "codecs/isac/fix/source/pitch_filter_c.c", |
| 637 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 638 | } |
| 639 | |
kjellander@webrtc.org | 7227391 | 2015-02-23 19:08:31 +0000 | [diff] [blame] | 640 | if (current_cpu == "mipsel") { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 641 | sources += [ |
| 642 | "codecs/isac/fix/source/entropy_coding_mips.c", |
| 643 | "codecs/isac/fix/source/filters_mips.c", |
| 644 | "codecs/isac/fix/source/lattice_mips.c", |
| 645 | "codecs/isac/fix/source/pitch_estimator_mips.c", |
| 646 | "codecs/isac/fix/source/transform_mips.c", |
| 647 | ] |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 648 | sources -= [ |
| 649 | "codecs/isac/fix/source/lattice_c.c", |
| 650 | "codecs/isac/fix/source/pitch_estimator_c.c", |
| 651 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 652 | if (mips_dsp_rev > 0) { |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 653 | sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 654 | } |
| 655 | if (mips_dsp_rev > 1) { |
| 656 | sources += [ |
| 657 | "codecs/isac/fix/source/lpc_masking_model_mips.c", |
| 658 | "codecs/isac/fix/source/pitch_filter_mips.c", |
| 659 | ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 660 | sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 661 | } |
| 662 | } |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 663 | } |
| 664 | |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 665 | if (rtc_build_with_neon) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 666 | source_set("isac_neon") { |
Zhongwei Yao | f242e66 | 2015-05-06 16:39:17 +0800 | [diff] [blame] | 667 | sources = [ |
| 668 | "codecs/isac/fix/source/entropy_coding_neon.c", |
Zhongwei Yao | b3cc77f | 2015-07-28 11:17:40 +0800 | [diff] [blame] | 669 | "codecs/isac/fix/source/filterbanks_neon.c", |
Zhongwei Yao | f242e66 | 2015-05-06 16:39:17 +0800 | [diff] [blame] | 670 | "codecs/isac/fix/source/filters_neon.c", |
| 671 | "codecs/isac/fix/source/lattice_neon.c", |
| 672 | "codecs/isac/fix/source/transform_neon.c", |
| 673 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 674 | |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 675 | if (current_cpu != "arm64") { |
| 676 | # Enable compilation for the NEON instruction set. This is needed |
| 677 | # since //build/config/arm.gni only enables NEON for iOS, not Android. |
| 678 | # This provides the same functionality as webrtc/build/arm_neon.gypi. |
| 679 | configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
| 680 | cflags = [ "-mfpu=neon" ] |
| 681 | } |
| 682 | |
| 683 | # Disable LTO on NEON targets due to compiler bug. |
| 684 | # TODO(fdegans): Enable this. See crbug.com/408997. |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 685 | if (rtc_use_lto) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 686 | cflags -= [ |
| 687 | "-flto", |
| 688 | "-ffat-lto-objects", |
| 689 | ] |
| 690 | } |
| 691 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 692 | configs += [ "../..:common_config" ] |
| 693 | public_configs = [ "../..:common_inherited_config" ] |
| 694 | |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 695 | deps = [ |
| 696 | "../../common_audio", |
| 697 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 698 | } |
| 699 | } |
| 700 | |
| 701 | config("pcm16b_config") { |
| 702 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 703 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 704 | "codecs/pcm16b/include", |
| 705 | ] |
| 706 | } |
| 707 | |
| 708 | source_set("pcm16b") { |
| 709 | sources = [ |
Karl Wiberg | c0ac6ca | 2015-09-17 07:47:34 +0200 | [diff] [blame] | 710 | "codecs/pcm16b/audio_decoder_pcm16b.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 711 | "codecs/pcm16b/audio_decoder_pcm16b.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 712 | "codecs/pcm16b/audio_encoder_pcm16b.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 713 | "codecs/pcm16b/audio_encoder_pcm16b.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 714 | "codecs/pcm16b/pcm16b.c", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 715 | "codecs/pcm16b/pcm16b.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 716 | ] |
| 717 | |
henrik.lundin@webrtc.org | 817e50d | 2014-12-11 10:47:19 +0000 | [diff] [blame] | 718 | deps = [ |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 719 | ":audio_decoder_interface", |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 720 | ":audio_encoder_interface", |
henrik.lundin@webrtc.org | 817e50d | 2014-12-11 10:47:19 +0000 | [diff] [blame] | 721 | ":g711", |
| 722 | ] |
| 723 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 724 | configs += [ "../..:common_config" ] |
| 725 | |
| 726 | public_configs = [ |
| 727 | "../..:common_inherited_config", |
| 728 | ":pcm16b_config", |
| 729 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 730 | } |
| 731 | |
| 732 | config("opus_config") { |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 733 | include_dirs = [ "../../.." ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 734 | } |
| 735 | |
| 736 | source_set("webrtc_opus") { |
| 737 | sources = [ |
Karl Wiberg | 0b05879 | 2015-09-15 17:28:18 +0200 | [diff] [blame] | 738 | "codecs/opus/audio_decoder_opus.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 739 | "codecs/opus/audio_decoder_opus.h", |
kwiberg@webrtc.org | 663fdd0 | 2014-10-29 07:28:36 +0000 | [diff] [blame] | 740 | "codecs/opus/audio_encoder_opus.cc", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 741 | "codecs/opus/audio_encoder_opus.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 742 | "codecs/opus/opus_inst.h", |
| 743 | "codecs/opus/opus_interface.c", |
kjellander@webrtc.org | 3c652b6 | 2015-11-18 23:07:57 +0100 | [diff] [blame] | 744 | "codecs/opus/opus_interface.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 745 | ] |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 746 | |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 747 | deps = [ |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 748 | ":audio_decoder_interface", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 749 | ":audio_encoder_interface", |
Henrik Lundin | d048aa0 | 2015-12-03 17:47:21 +0100 | [diff] [blame] | 750 | "../../base:rtc_base_approved", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 751 | ] |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 752 | |
minyue@webrtc.org | 7c112f3 | 2015-03-17 14:04:56 +0000 | [diff] [blame] | 753 | if (rtc_build_opus) { |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 754 | configs += [ "../..:common_config" ] |
| 755 | public_configs = [ "../..:common_inherited_config" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 756 | |
tfarina | 702f397 | 2015-09-25 05:57:37 -0700 | [diff] [blame] | 757 | public_deps = [ |
| 758 | rtc_opus_dir, |
| 759 | ] |
minyue@webrtc.org | 7c112f3 | 2015-03-17 14:04:56 +0000 | [diff] [blame] | 760 | } else if (build_with_mozilla) { |
| 761 | include_dirs = [ getenv("DIST") + "/include/opus" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 762 | } |
| 763 | } |
| 764 | |
| 765 | config("neteq_config") { |
| 766 | include_dirs = [ |
| 767 | # Need Opus header files for the audio classifier. |
| 768 | "//third_party/opus/src/celt", |
| 769 | "//third_party/opus/src/src", |
| 770 | ] |
| 771 | } |
| 772 | |
| 773 | source_set("neteq") { |
| 774 | sources = [ |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 775 | "neteq/accelerate.cc", |
| 776 | "neteq/accelerate.h", |
| 777 | "neteq/audio_classifier.cc", |
| 778 | "neteq/audio_classifier.h", |
| 779 | "neteq/audio_decoder_impl.cc", |
| 780 | "neteq/audio_decoder_impl.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 781 | "neteq/audio_multi_vector.cc", |
| 782 | "neteq/audio_multi_vector.h", |
| 783 | "neteq/audio_vector.cc", |
| 784 | "neteq/audio_vector.h", |
| 785 | "neteq/background_noise.cc", |
| 786 | "neteq/background_noise.h", |
| 787 | "neteq/buffer_level_filter.cc", |
| 788 | "neteq/buffer_level_filter.h", |
| 789 | "neteq/comfort_noise.cc", |
| 790 | "neteq/comfort_noise.h", |
minyue | 53ff70f | 2016-05-02 01:50:30 -0700 | [diff] [blame] | 791 | "neteq/cross_correlation.cc", |
| 792 | "neteq/cross_correlation.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 793 | "neteq/decision_logic.cc", |
| 794 | "neteq/decision_logic.h", |
| 795 | "neteq/decision_logic_fax.cc", |
| 796 | "neteq/decision_logic_fax.h", |
| 797 | "neteq/decision_logic_normal.cc", |
| 798 | "neteq/decision_logic_normal.h", |
| 799 | "neteq/decoder_database.cc", |
| 800 | "neteq/decoder_database.h", |
| 801 | "neteq/defines.h", |
| 802 | "neteq/delay_manager.cc", |
| 803 | "neteq/delay_manager.h", |
| 804 | "neteq/delay_peak_detector.cc", |
| 805 | "neteq/delay_peak_detector.h", |
| 806 | "neteq/dsp_helper.cc", |
| 807 | "neteq/dsp_helper.h", |
| 808 | "neteq/dtmf_buffer.cc", |
| 809 | "neteq/dtmf_buffer.h", |
| 810 | "neteq/dtmf_tone_generator.cc", |
| 811 | "neteq/dtmf_tone_generator.h", |
| 812 | "neteq/expand.cc", |
| 813 | "neteq/expand.h", |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 814 | "neteq/include/neteq.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 815 | "neteq/merge.cc", |
| 816 | "neteq/merge.h", |
henrik.lundin | 9195186 | 2016-06-08 06:43:41 -0700 | [diff] [blame] | 817 | "neteq/nack_tracker.cc", |
| 818 | "neteq/nack_tracker.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 819 | "neteq/neteq.cc", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 820 | "neteq/neteq_impl.cc", |
| 821 | "neteq/neteq_impl.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 822 | "neteq/normal.cc", |
| 823 | "neteq/normal.h", |
henrik.lundin | 84f8cd6 | 2016-04-26 07:45:16 -0700 | [diff] [blame] | 824 | "neteq/packet.cc", |
| 825 | "neteq/packet.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 826 | "neteq/packet_buffer.cc", |
| 827 | "neteq/packet_buffer.h", |
| 828 | "neteq/payload_splitter.cc", |
| 829 | "neteq/payload_splitter.h", |
| 830 | "neteq/post_decode_vad.cc", |
| 831 | "neteq/post_decode_vad.h", |
| 832 | "neteq/preemptive_expand.cc", |
| 833 | "neteq/preemptive_expand.h", |
| 834 | "neteq/random_vector.cc", |
| 835 | "neteq/random_vector.h", |
| 836 | "neteq/rtcp.cc", |
| 837 | "neteq/rtcp.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 838 | "neteq/statistics_calculator.cc", |
| 839 | "neteq/statistics_calculator.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 840 | "neteq/sync_buffer.cc", |
| 841 | "neteq/sync_buffer.h", |
henrik.lundin | 8053f79 | 2016-04-22 13:21:43 -0700 | [diff] [blame] | 842 | "neteq/tick_timer.cc", |
| 843 | "neteq/tick_timer.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 844 | "neteq/time_stretch.cc", |
| 845 | "neteq/time_stretch.h", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 846 | "neteq/timestamp_scaler.cc", |
| 847 | "neteq/timestamp_scaler.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 848 | ] |
| 849 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 850 | configs += [ "../..:common_config" ] |
| 851 | |
| 852 | public_configs = [ |
| 853 | "../..:common_inherited_config", |
| 854 | ":neteq_config", |
| 855 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 856 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 857 | deps = [ |
kwiberg@webrtc.org | e04a93b | 2014-12-09 10:12:53 +0000 | [diff] [blame] | 858 | ":audio_decoder_interface", |
kwiberg | 5178ee8 | 2016-05-03 01:39:01 -0700 | [diff] [blame] | 859 | ":builtin_audio_decoder_factory", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 860 | ":cng", |
| 861 | ":g711", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 862 | ":pcm16b", |
kwiberg | 5178ee8 | 2016-05-03 01:39:01 -0700 | [diff] [blame] | 863 | ":rent_a_codec", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 864 | "../..:webrtc_common", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 865 | "../../common_audio", |
| 866 | "../../system_wrappers", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 867 | ] |
phoglund@webrtc.org | 49d0d34 | 2015-03-10 16:23:24 +0000 | [diff] [blame] | 868 | |
| 869 | defines = [] |
| 870 | |
kwiberg | f8c2bac | 2016-01-18 06:38:32 -0800 | [diff] [blame] | 871 | if (rtc_include_ilbc) { |
| 872 | defines += [ "WEBRTC_CODEC_ILBC" ] |
| 873 | deps += [ ":ilbc" ] |
| 874 | } |
phoglund@webrtc.org | 49d0d34 | 2015-03-10 16:23:24 +0000 | [diff] [blame] | 875 | if (rtc_include_opus) { |
| 876 | defines += [ "WEBRTC_CODEC_OPUS" ] |
| 877 | deps += [ ":webrtc_opus" ] |
| 878 | } |
kwiberg | 98ab3a4 | 2015-09-30 21:54:21 -0700 | [diff] [blame] | 879 | if (!build_with_mozilla) { |
| 880 | if (current_cpu == "arm") { |
| 881 | defines += [ "WEBRTC_CODEC_ISACFX" ] |
| 882 | deps += [ ":isac_fix" ] |
| 883 | } else { |
| 884 | defines += [ "WEBRTC_CODEC_ISAC" ] |
| 885 | deps += [ ":isac" ] |
| 886 | } |
| 887 | defines += [ "WEBRTC_CODEC_G722" ] |
| 888 | deps += [ ":g722" ] |
| 889 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 890 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 891 | |
| 892 | if (rtc_include_tests) { |
| 893 | source_set("acm_receive_test") { |
| 894 | testonly = true |
| 895 | sources = [ |
| 896 | "acm2/acm_receive_test_oldapi.cc", |
| 897 | "acm2/acm_receive_test_oldapi.h", |
| 898 | ] |
| 899 | |
| 900 | configs += [ "../..:common_config" ] |
| 901 | public_configs = [ "../..:common_inherited_config" ] |
| 902 | |
| 903 | if (is_clang) { |
| 904 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 905 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 906 | } |
| 907 | |
| 908 | defines = audio_coding_defines |
| 909 | |
| 910 | deps = audio_coding_deps + [ |
| 911 | ":audio_coding", |
| 912 | ":neteq_unittest_tools", |
| 913 | "//testing/gtest", |
| 914 | ] |
| 915 | } |
| 916 | |
| 917 | source_set("acm_send_test") { |
| 918 | testonly = true |
| 919 | sources = [ |
| 920 | "acm2/acm_send_test_oldapi.cc", |
| 921 | "acm2/acm_send_test_oldapi.h", |
| 922 | ] |
| 923 | |
| 924 | configs += [ "../..:common_config" ] |
| 925 | public_configs = [ "../..:common_inherited_config" ] |
| 926 | |
| 927 | if (is_clang) { |
| 928 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 929 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 930 | } |
| 931 | |
| 932 | defines = audio_coding_defines |
| 933 | |
| 934 | deps = audio_coding_deps + [ |
| 935 | ":audio_coding", |
| 936 | ":neteq_unittest_tools", |
| 937 | "//testing/gtest", |
| 938 | ] |
| 939 | } |
| 940 | |
aleloi | 333f206 | 2016-07-28 01:21:29 -0700 | [diff] [blame] | 941 | executable("delay_test") { |
| 942 | testonly = true |
| 943 | sources = [ |
| 944 | "test/Channel.cc", |
| 945 | "test/PCMFile.cc", |
| 946 | "test/delay_test.cc", |
| 947 | "test/utility.cc", |
| 948 | ] |
| 949 | |
| 950 | configs += [ "../..:common_config" ] |
| 951 | public_configs = [ "../..:common_inherited_config" ] |
| 952 | |
| 953 | if (is_clang) { |
| 954 | # Suppress warnings from Chrome's Clang plugins. |
| 955 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 956 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 957 | } |
| 958 | |
| 959 | deps = [ |
| 960 | ":audio_coding", |
| 961 | "../../:webrtc_common", |
| 962 | "../../system_wrappers", |
| 963 | "../../system_wrappers:system_wrappers_default", |
| 964 | "../../test:test_support", |
| 965 | "../rtp_rtcp", |
| 966 | "//testing/gtest", |
| 967 | "//third_party/gflags:gflags", |
| 968 | ] |
| 969 | } # delay_test |
| 970 | |
aleloi | 00730c7 | 2016-07-28 01:27:10 -0700 | [diff] [blame] | 971 | executable("insert_packet_with_timing") { |
| 972 | testonly = true |
| 973 | sources = [ |
| 974 | "test/Channel.cc", |
| 975 | "test/PCMFile.cc", |
| 976 | "test/insert_packet_with_timing.cc", |
| 977 | ] |
| 978 | |
| 979 | configs += [ "../..:common_config" ] |
| 980 | public_configs = [ "../..:common_inherited_config" ] |
| 981 | |
| 982 | if (is_clang) { |
| 983 | # Suppress warnings from Chrome's Clang plugins. |
| 984 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 985 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 986 | } |
| 987 | |
| 988 | deps = [ |
| 989 | ":audio_coding", |
| 990 | "../../:webrtc_common", |
| 991 | "../../system_wrappers", |
| 992 | "../../system_wrappers:system_wrappers_default", |
| 993 | "../../test:test_support", |
| 994 | "../rtp_rtcp", |
| 995 | "//testing/gtest", |
| 996 | "//third_party/gflags:gflags", |
| 997 | ] |
| 998 | } # insert_packet_with_timing |
| 999 | |
charujain | ddf3e4a | 2016-08-01 07:49:42 -0700 | [diff] [blame] | 1000 | test("audio_decoder_unittests") { |
| 1001 | testonly = true |
| 1002 | sources = [ |
| 1003 | "neteq/audio_decoder_unittest.cc", |
| 1004 | ] |
| 1005 | |
| 1006 | configs += [ "../..:common_config" ] |
| 1007 | public_configs = [ "../..:common_inherited_config" ] |
| 1008 | |
| 1009 | if (is_clang) { |
| 1010 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 1011 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1012 | } |
| 1013 | |
| 1014 | deps = [] |
| 1015 | |
| 1016 | defines = neteq_defines |
| 1017 | |
| 1018 | deps += audio_coding_deps |
| 1019 | deps += [ |
| 1020 | ":audio_decoder_interface", |
| 1021 | ":isac", |
| 1022 | ":isac_fix", |
| 1023 | ":neteq", |
| 1024 | ":neteq_unittest_tools", |
| 1025 | "../../common_audio/", |
| 1026 | "../../test:test_support_main", |
| 1027 | "//testing/gtest", |
| 1028 | ] |
| 1029 | |
| 1030 | if (is_android) { |
| 1031 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 1032 | } |
| 1033 | |
| 1034 | if (is_ios) { |
| 1035 | data = [ |
| 1036 | "//resources/audio_coding/testfile32kHz.pcm", |
| 1037 | ] |
| 1038 | } |
| 1039 | } # audio_decoder_unittests |
| 1040 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1041 | if (rtc_enable_protobuf) { |
| 1042 | proto_library("neteq_unittest_proto") { |
| 1043 | sources = [ |
| 1044 | "neteq/neteq_unittest.proto", |
| 1045 | ] |
| 1046 | proto_out_dir = "webrtc/audio_coding/neteq" |
| 1047 | } |
henrik.lundin | 03153f1 | 2016-06-21 05:38:42 -0700 | [diff] [blame] | 1048 | |
| 1049 | source_set("rtc_event_log_source") { |
| 1050 | testonly = true |
| 1051 | sources = [ |
| 1052 | "neteq/tools/rtc_event_log_source.cc", |
| 1053 | "neteq/tools/rtc_event_log_source.h", |
| 1054 | ] |
| 1055 | |
| 1056 | if (is_clang) { |
| 1057 | # Suppress warnings from the Chromium Clang plugins |
| 1058 | # (bugs.webrtc.org/163). |
| 1059 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1060 | } |
| 1061 | |
| 1062 | deps = [ |
| 1063 | "../../:rtc_event_log_parser", |
| 1064 | ] |
| 1065 | public_deps = [ |
| 1066 | "../../:rtc_event_log_proto", |
| 1067 | ] |
| 1068 | } |
| 1069 | |
| 1070 | test("neteq_rtpplay") { |
| 1071 | testonly = true |
| 1072 | defines = [] |
| 1073 | deps = [] |
| 1074 | sources = [ |
| 1075 | "neteq/tools/neteq_rtpplay.cc", |
| 1076 | ] |
| 1077 | |
| 1078 | if (is_clang) { |
| 1079 | # Suppress warnings from the Chromium Clang plugins |
| 1080 | # (bugs.webrtc.org/163). |
| 1081 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1082 | } |
| 1083 | |
| 1084 | if (is_win) { |
| 1085 | cflags = [ |
| 1086 | # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
| 1087 | "/wd4373", # virtual function override. |
| 1088 | ] |
| 1089 | } |
| 1090 | |
| 1091 | deps += [ |
| 1092 | ":neteq", |
| 1093 | ":neteq_unittest_tools", |
henrik.lundin | 03153f1 | 2016-06-21 05:38:42 -0700 | [diff] [blame] | 1094 | "../../system_wrappers:system_wrappers_default", |
| 1095 | "../../test:test_support", |
| 1096 | "//third_party/gflags", |
| 1097 | ] |
| 1098 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1099 | } |
| 1100 | |
aleloi | e6b60a4 | 2016-07-28 02:34:30 -0700 | [diff] [blame] | 1101 | test("audio_codec_speed_tests") { |
| 1102 | testonly = true |
| 1103 | defines = [] |
| 1104 | deps = [] |
| 1105 | sources = [ |
| 1106 | "codecs/isac/fix/test/isac_speed_test.cc", |
| 1107 | "codecs/opus/opus_speed_test.cc", |
| 1108 | "codecs/tools/audio_codec_speed_test.cc", |
| 1109 | "codecs/tools/audio_codec_speed_test.h", |
| 1110 | ] |
| 1111 | |
| 1112 | if (is_clang) { |
| 1113 | # Suppress warnings from the Chromium Clang plugins |
| 1114 | # (bugs.webrtc.org/163). |
| 1115 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1116 | } |
| 1117 | |
| 1118 | if (is_android) { |
| 1119 | deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 1120 | } |
| 1121 | |
| 1122 | deps += [ |
| 1123 | ":isac_fix", |
| 1124 | ":webrtc_opus", |
| 1125 | "../../system_wrappers:system_wrappers_default", |
| 1126 | "../../test:test_support_main", |
| 1127 | "../audio_processing/", |
| 1128 | "//testing/gtest", |
| 1129 | ] |
| 1130 | } |
| 1131 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1132 | source_set("neteq_test_support") { |
| 1133 | testonly = true |
| 1134 | sources = [ |
| 1135 | "neteq/tools/neteq_external_decoder_test.cc", |
| 1136 | "neteq/tools/neteq_external_decoder_test.h", |
| 1137 | "neteq/tools/neteq_performance_test.cc", |
| 1138 | "neteq/tools/neteq_performance_test.h", |
| 1139 | "neteq/tools/neteq_quality_test.cc", |
| 1140 | "neteq/tools/neteq_quality_test.h", |
| 1141 | ] |
| 1142 | |
| 1143 | configs += [ "../..:common_config" ] |
| 1144 | public_configs = [ "../..:common_inherited_config" ] |
| 1145 | |
| 1146 | if (is_clang) { |
| 1147 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 1148 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1149 | } |
| 1150 | |
| 1151 | deps = [ |
| 1152 | ":neteq", |
| 1153 | ":neteq_unittest_tools", |
| 1154 | ":pcm16b", |
| 1155 | "//testing/gtest", |
| 1156 | "//third_party/gflags", |
| 1157 | ] |
| 1158 | } |
| 1159 | |
| 1160 | config("neteq_unittest_tools_config") { |
| 1161 | include_dirs = [ "tools" ] |
| 1162 | } |
| 1163 | |
| 1164 | source_set("neteq_unittest_tools") { |
| 1165 | testonly = true |
| 1166 | sources = [ |
| 1167 | "neteq/tools/audio_checksum.h", |
| 1168 | "neteq/tools/audio_loop.cc", |
| 1169 | "neteq/tools/audio_loop.h", |
| 1170 | "neteq/tools/audio_sink.h", |
| 1171 | "neteq/tools/constant_pcm_packet_source.cc", |
| 1172 | "neteq/tools/constant_pcm_packet_source.h", |
henrik.lundin | e8a77e3 | 2016-06-22 06:34:03 -0700 | [diff] [blame] | 1173 | "neteq/tools/fake_decode_from_file.cc", |
| 1174 | "neteq/tools/fake_decode_from_file.h", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1175 | "neteq/tools/input_audio_file.cc", |
| 1176 | "neteq/tools/input_audio_file.h", |
henrik.lundin | e8a77e3 | 2016-06-22 06:34:03 -0700 | [diff] [blame] | 1177 | "neteq/tools/neteq_input.h", |
| 1178 | "neteq/tools/neteq_packet_source_input.cc", |
| 1179 | "neteq/tools/neteq_packet_source_input.h", |
| 1180 | "neteq/tools/neteq_replacement_input.cc", |
| 1181 | "neteq/tools/neteq_replacement_input.h", |
| 1182 | "neteq/tools/neteq_test.cc", |
| 1183 | "neteq/tools/neteq_test.h", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1184 | "neteq/tools/output_audio_file.h", |
| 1185 | "neteq/tools/output_wav_file.h", |
| 1186 | "neteq/tools/packet.cc", |
| 1187 | "neteq/tools/packet.h", |
| 1188 | "neteq/tools/packet_source.h", |
| 1189 | "neteq/tools/resample_input_audio_file.cc", |
| 1190 | "neteq/tools/resample_input_audio_file.h", |
| 1191 | "neteq/tools/rtp_file_source.cc", |
| 1192 | "neteq/tools/rtp_file_source.h", |
| 1193 | "neteq/tools/rtp_generator.cc", |
| 1194 | "neteq/tools/rtp_generator.h", |
| 1195 | ] |
| 1196 | |
| 1197 | configs += [ "../..:common_config" ] |
| 1198 | public_configs = [ |
| 1199 | "../..:common_inherited_config", |
| 1200 | ":neteq_unittest_tools_config", |
| 1201 | ] |
| 1202 | |
| 1203 | if (is_clang) { |
| 1204 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
| 1205 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1206 | } |
| 1207 | |
| 1208 | deps = [ |
| 1209 | "../../common_audio", |
| 1210 | "../../test:rtp_test_utils", |
| 1211 | "../rtp_rtcp", |
| 1212 | ] |
henrik.lundin | e8a77e3 | 2016-06-22 06:34:03 -0700 | [diff] [blame] | 1213 | |
| 1214 | if (rtc_enable_protobuf) { |
| 1215 | deps += [ ":rtc_event_log_source" ] |
| 1216 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1217 | } |
aleloi | 3022a34 | 2016-07-26 06:36:03 -0700 | [diff] [blame] | 1218 | |
| 1219 | source_set("neteq_test_tools") { |
| 1220 | testonly = true |
| 1221 | sources = [ |
| 1222 | "neteq/test/NETEQTEST_DummyRTPpacket.cc", |
| 1223 | "neteq/test/NETEQTEST_DummyRTPpacket.h", |
| 1224 | "neteq/test/NETEQTEST_RTPpacket.cc", |
| 1225 | "neteq/test/NETEQTEST_RTPpacket.h", |
| 1226 | ] |
| 1227 | |
| 1228 | deps = [ |
| 1229 | ":cng", |
| 1230 | ":g711", |
| 1231 | ":g722", |
| 1232 | ":ilbc", |
| 1233 | ":isac", |
| 1234 | ":pcm16b", |
| 1235 | "../..:webrtc_common", |
| 1236 | "//testing/gtest", |
| 1237 | ] |
| 1238 | |
| 1239 | include_dirs = [ |
| 1240 | "neteq/include", |
| 1241 | "neteq/test", |
| 1242 | "../../", |
| 1243 | ] |
| 1244 | |
| 1245 | if (is_win) { |
| 1246 | cflags = [ |
| 1247 | # Disable warnings to enable Win64 build, issue 1323. |
| 1248 | "/wd4267", # size_t to int truncation |
| 1249 | ] |
| 1250 | } |
| 1251 | } |
aleloi | 47bded4 | 2016-07-26 06:46:19 -0700 | [diff] [blame] | 1252 | |
aleloi | 8266773 | 2016-08-02 01:45:50 -0700 | [diff] [blame] | 1253 | config("RTPencode_config") { |
| 1254 | defines = [ |
| 1255 | "CODEC_ILBC", |
| 1256 | "CODEC_PCM16B", |
| 1257 | "CODEC_G711", |
| 1258 | "CODEC_G722", |
| 1259 | "CODEC_ISAC", |
| 1260 | "CODEC_PCM16B_WB", |
| 1261 | "CODEC_ISAC_SWB", |
| 1262 | "CODEC_PCM16B_32KHZ", |
| 1263 | "CODEC_PCM16B_48KHZ", |
| 1264 | "CODEC_CNGCODEC8", |
| 1265 | "CODEC_CNGCODEC16", |
| 1266 | "CODEC_CNGCODEC32", |
| 1267 | "CODEC_ATEVENT_DECODE", |
| 1268 | "CODEC_RED", |
| 1269 | "CODEC_OPUS", |
| 1270 | ] |
| 1271 | } |
| 1272 | |
| 1273 | executable("RTPencode") { |
| 1274 | testonly = true |
| 1275 | |
| 1276 | deps = [ |
| 1277 | # TODO(hlundin): Make RTPencode use ACM to encode files. |
| 1278 | ":cng", |
| 1279 | ":g711", |
| 1280 | ":g722", |
| 1281 | ":ilbc", |
| 1282 | ":isac", |
| 1283 | ":neteq_test_tools", |
| 1284 | ":pcm16b", |
| 1285 | ":webrtc_opus", |
| 1286 | "../../common_audio", |
| 1287 | ] |
| 1288 | |
| 1289 | configs += [ ":RTPencode_config" ] |
| 1290 | |
| 1291 | sources = [ |
| 1292 | "neteq/test/RTPencode.cc", |
| 1293 | ] |
| 1294 | |
| 1295 | include_dirs = [ |
| 1296 | "neteq/include", |
| 1297 | "neteq/test", |
| 1298 | ] |
| 1299 | |
| 1300 | if (is_win) { |
| 1301 | cflags = [ |
| 1302 | # Disable warnings to enable Win64 build, issue 1323. |
| 1303 | "/wd4267", # size_t to int truncation |
| 1304 | ] |
| 1305 | } |
| 1306 | } |
| 1307 | |
aleloi | 76cbe19 | 2016-08-02 02:05:03 -0700 | [diff] [blame] | 1308 | executable("RTPchange") { |
| 1309 | testonly = true |
| 1310 | |
| 1311 | sources = [ |
| 1312 | "neteq/test/RTPchange.cc", |
| 1313 | ] |
| 1314 | |
| 1315 | deps = [ |
| 1316 | ":neteq_test_tools", |
| 1317 | ] |
| 1318 | } |
| 1319 | |
aleloi | 5556dcb | 2016-08-02 04:27:25 -0700 | [diff] [blame] | 1320 | executable("rtpcat") { |
| 1321 | testonly = true |
| 1322 | |
| 1323 | sources = [ |
| 1324 | "neteq/tools/rtpcat.cc", |
| 1325 | ] |
| 1326 | |
| 1327 | deps = [ |
| 1328 | "../../system_wrappers:system_wrappers_default", |
| 1329 | "../../test:rtp_test_utils", |
| 1330 | "//testing/gtest", |
| 1331 | ] |
| 1332 | } |
| 1333 | |
aleloi | 5a74650 | 2016-08-02 06:06:33 -0700 | [diff] [blame] | 1334 | executable("RTPtimeshift") { |
| 1335 | testonly = true |
| 1336 | |
| 1337 | sources = [ |
| 1338 | "neteq/test/RTPtimeshift.cc", |
| 1339 | ] |
| 1340 | |
| 1341 | deps = [ |
| 1342 | ":neteq_test_tools", |
| 1343 | "//testing/gtest", |
| 1344 | ] |
| 1345 | } |
| 1346 | |
aleloi | 17dfa74 | 2016-08-03 01:17:25 -0700 | [diff] [blame] | 1347 | executable("RTPjitter") { |
| 1348 | testonly = true |
| 1349 | deps = [ |
| 1350 | "../..:webrtc_common", |
| 1351 | "//testing/gtest", |
| 1352 | ] |
| 1353 | sources = [ |
| 1354 | "neteq/test/RTPjitter.cc", |
| 1355 | ] |
| 1356 | } |
| 1357 | |
aleloi | 47bded4 | 2016-07-26 06:46:19 -0700 | [diff] [blame] | 1358 | executable("rtp_analyze") { |
| 1359 | testonly = true |
| 1360 | |
| 1361 | sources = [ |
| 1362 | "neteq/tools/rtp_analyze.cc", |
| 1363 | ] |
| 1364 | |
| 1365 | deps = [ |
| 1366 | ":neteq", |
| 1367 | ":neteq_unittest_tools", |
| 1368 | ":pcm16b", |
| 1369 | "../../system_wrappers:system_wrappers_default", |
| 1370 | "//testing/gtest", |
| 1371 | "//third_party/gflags:gflags", |
| 1372 | ] |
| 1373 | |
| 1374 | if (is_clang) { |
| 1375 | # Suppress warnings from Chrome's Clang plugins. |
| 1376 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 1377 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1378 | } |
| 1379 | } |
aleloi | 630c6d5 | 2016-08-10 02:11:30 -0700 | [diff] [blame] | 1380 | |
| 1381 | executable("neteq_opus_quality_test") { |
| 1382 | testonly = true |
| 1383 | |
| 1384 | sources = [ |
| 1385 | "neteq/test/neteq_opus_quality_test.cc", |
| 1386 | ] |
| 1387 | |
| 1388 | deps = [ |
| 1389 | ":neteq", |
| 1390 | ":neteq_test_support", |
| 1391 | ":webrtc_opus", |
| 1392 | "../../test:test_support_main", |
| 1393 | "//testing/gtest", |
| 1394 | "//third_party/gflags", |
| 1395 | ] |
| 1396 | |
| 1397 | if (is_clang) { |
| 1398 | # Suppress warnings from the Chromium Clang plugins |
| 1399 | # (bugs.webrtc.org/163). |
| 1400 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 1401 | } |
| 1402 | } |
aleloi | 116fd61 | 2016-08-10 04:16:36 -0700 | [diff] [blame^] | 1403 | |
| 1404 | executable("neteq_speed_test") { |
| 1405 | testonly = true |
| 1406 | |
| 1407 | sources = [ |
| 1408 | "neteq/test/neteq_speed_test.cc", |
| 1409 | ] |
| 1410 | |
| 1411 | deps = [ |
| 1412 | ":neteq", |
| 1413 | ":neteq_test_support", |
| 1414 | "../../system_wrappers:system_wrappers_default", |
| 1415 | "../../test:test_support", |
| 1416 | "//third_party/gflags", |
| 1417 | ] |
| 1418 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 1419 | } |