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 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 9 | import("//build/config/arm.gni") |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 10 | import("../../build/webrtc.gni") |
| 11 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 12 | config("audio_coding_config") { |
| 13 | include_dirs = [ |
| 14 | "main/interface", |
| 15 | "../interface", |
| 16 | ] |
| 17 | } |
| 18 | |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 19 | source_set("audio_coding") { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 20 | sources = [ |
| 21 | "main/acm2/acm_amr.cc", |
| 22 | "main/acm2/acm_amr.h", |
| 23 | "main/acm2/acm_amrwb.cc", |
| 24 | "main/acm2/acm_amrwb.h", |
| 25 | "main/acm2/acm_celt.cc", |
| 26 | "main/acm2/acm_celt.h", |
| 27 | "main/acm2/acm_cng.cc", |
| 28 | "main/acm2/acm_cng.h", |
| 29 | "main/acm2/acm_codec_database.cc", |
| 30 | "main/acm2/acm_codec_database.h", |
| 31 | "main/acm2/acm_common_defs.h", |
| 32 | "main/acm2/acm_dtmf_playout.cc", |
| 33 | "main/acm2/acm_dtmf_playout.h", |
| 34 | "main/acm2/acm_g722.cc", |
| 35 | "main/acm2/acm_g722.h", |
| 36 | "main/acm2/acm_g7221.cc", |
| 37 | "main/acm2/acm_g7221.h", |
| 38 | "main/acm2/acm_g7221c.cc", |
| 39 | "main/acm2/acm_g7221c.h", |
| 40 | "main/acm2/acm_g729.cc", |
| 41 | "main/acm2/acm_g729.h", |
| 42 | "main/acm2/acm_g7291.cc", |
| 43 | "main/acm2/acm_g7291.h", |
| 44 | "main/acm2/acm_generic_codec.cc", |
| 45 | "main/acm2/acm_generic_codec.h", |
| 46 | "main/acm2/acm_gsmfr.cc", |
| 47 | "main/acm2/acm_gsmfr.h", |
| 48 | "main/acm2/acm_ilbc.cc", |
| 49 | "main/acm2/acm_ilbc.h", |
| 50 | "main/acm2/acm_isac.cc", |
| 51 | "main/acm2/acm_isac.h", |
| 52 | "main/acm2/acm_isac_macros.h", |
| 53 | "main/acm2/acm_opus.cc", |
| 54 | "main/acm2/acm_opus.h", |
| 55 | "main/acm2/acm_speex.cc", |
| 56 | "main/acm2/acm_speex.h", |
| 57 | "main/acm2/acm_pcm16b.cc", |
| 58 | "main/acm2/acm_pcm16b.h", |
| 59 | "main/acm2/acm_pcma.cc", |
| 60 | "main/acm2/acm_pcma.h", |
| 61 | "main/acm2/acm_pcmu.cc", |
| 62 | "main/acm2/acm_pcmu.h", |
| 63 | "main/acm2/acm_red.cc", |
| 64 | "main/acm2/acm_red.h", |
| 65 | "main/acm2/acm_receiver.cc", |
| 66 | "main/acm2/acm_receiver.h", |
| 67 | "main/acm2/acm_resampler.cc", |
| 68 | "main/acm2/acm_resampler.h", |
| 69 | "main/acm2/audio_coding_module.cc", |
| 70 | "main/acm2/audio_coding_module_impl.cc", |
| 71 | "main/acm2/audio_coding_module_impl.h", |
| 72 | "main/acm2/call_statistics.cc", |
| 73 | "main/acm2/call_statistics.h", |
| 74 | "main/acm2/initial_delay_manager.cc", |
| 75 | "main/acm2/initial_delay_manager.h", |
| 76 | "main/acm2/nack.cc", |
| 77 | "main/acm2/nack.h", |
| 78 | "main/interface/audio_coding_module.h", |
| 79 | "main/interface/audio_coding_module_typedefs.h", |
| 80 | ] |
| 81 | |
| 82 | defines = [] |
| 83 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 84 | configs += [ "../..:common_config" ] |
| 85 | |
| 86 | public_configs = [ |
| 87 | "../..:common_inherited_config", |
| 88 | ":audio_coding_config", |
| 89 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 90 | |
| 91 | if (is_clang) { |
| 92 | # Suppress warnings from Chrome's Clang plugins. |
| 93 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 94 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 95 | } |
| 96 | |
| 97 | deps = [ |
| 98 | ":cng", |
| 99 | ":g711", |
| 100 | ":g722", |
| 101 | ":ilbc", |
| 102 | ":isac", |
| 103 | ":isacfix", |
| 104 | ":neteq", |
| 105 | ":pcm16b", |
| 106 | "../../common_audio", |
| 107 | "../../system_wrappers", |
| 108 | ] |
| 109 | |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 110 | if (rtc_include_opus) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 111 | defines += [ "WEBRTC_CODEC_OPUS" ] |
| 112 | deps += [ ":webrtc_opus" ] |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | config("cng_config") { |
| 117 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 118 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 119 | "codecs/cng/include", |
| 120 | ] |
| 121 | } |
| 122 | |
| 123 | source_set("cng") { |
| 124 | sources = [ |
| 125 | "codecs/cng/cng_helpfuns.c", |
| 126 | "codecs/cng/cng_helpfuns.h", |
| 127 | "codecs/cng/include/webrtc_cng.h", |
| 128 | "codecs/cng/webrtc_cng.c", |
| 129 | ] |
| 130 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 131 | configs += [ "../..:common_config" ] |
| 132 | |
| 133 | public_configs = [ |
| 134 | "../..:common_inherited_config", |
| 135 | ":cng_config", |
| 136 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 137 | |
| 138 | deps = [ "../../common_audio" ] |
| 139 | } |
| 140 | |
| 141 | config("g711_config") { |
| 142 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 143 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 144 | "codecs/g711/include", |
| 145 | ] |
| 146 | } |
| 147 | |
| 148 | source_set("g711") { |
| 149 | sources = [ |
henrik.lundin@webrtc.org | def1e97 | 2014-10-21 12:48:29 +0000 | [diff] [blame^] | 150 | "codecs/g711/include/audio_encoder_pcm.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 151 | "codecs/g711/include/g711_interface.h", |
henrik.lundin@webrtc.org | def1e97 | 2014-10-21 12:48:29 +0000 | [diff] [blame^] | 152 | "codecs/g711/audio_encoder_pcm.cc", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 153 | "codecs/g711/g711_interface.c", |
| 154 | "codecs/g711/g711.c", |
| 155 | "codecs/g711/g711.h", |
| 156 | ] |
| 157 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 158 | configs += [ "../..:common_config" ] |
| 159 | |
| 160 | public_configs = [ |
| 161 | "../..:common_inherited_config", |
| 162 | ":g711_config", |
| 163 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 164 | } |
| 165 | |
| 166 | config("g722_config") { |
| 167 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 168 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 169 | "codecs/g722/include", |
| 170 | ] |
| 171 | } |
| 172 | |
| 173 | source_set("g722") { |
| 174 | sources = [ |
| 175 | "codecs/g722/include/g722_interface.h", |
| 176 | "codecs/g722/g722_interface.c", |
| 177 | "codecs/g722/g722_encode.c", |
| 178 | "codecs/g722/g722_decode.c", |
| 179 | "codecs/g722/g722_enc_dec.h", |
| 180 | ] |
| 181 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 182 | configs += [ "../..:common_config" ] |
| 183 | |
| 184 | public_configs = [ |
| 185 | "../..:common_inherited_config", |
| 186 | ":g722_config", |
| 187 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 188 | } |
| 189 | |
| 190 | config("ilbc_config") { |
| 191 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 192 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 193 | "codecs/ilbc/interface", |
| 194 | ] |
| 195 | } |
| 196 | |
| 197 | source_set("ilbc") { |
| 198 | sources = [ |
| 199 | "codecs/ilbc/abs_quant.c", |
| 200 | "codecs/ilbc/abs_quant.h", |
| 201 | "codecs/ilbc/abs_quant_loop.c", |
| 202 | "codecs/ilbc/abs_quant_loop.h", |
| 203 | "codecs/ilbc/augmented_cb_corr.c", |
| 204 | "codecs/ilbc/augmented_cb_corr.h", |
| 205 | "codecs/ilbc/bw_expand.c", |
| 206 | "codecs/ilbc/bw_expand.h", |
| 207 | "codecs/ilbc/cb_construct.c", |
| 208 | "codecs/ilbc/cb_construct.h", |
| 209 | "codecs/ilbc/cb_mem_energy_augmentation.c", |
| 210 | "codecs/ilbc/cb_mem_energy_augmentation.h", |
| 211 | "codecs/ilbc/cb_mem_energy.c", |
| 212 | "codecs/ilbc/cb_mem_energy_calc.c", |
| 213 | "codecs/ilbc/cb_mem_energy_calc.h", |
| 214 | "codecs/ilbc/cb_mem_energy.h", |
| 215 | "codecs/ilbc/cb_search.c", |
| 216 | "codecs/ilbc/cb_search_core.c", |
| 217 | "codecs/ilbc/cb_search_core.h", |
| 218 | "codecs/ilbc/cb_search.h", |
| 219 | "codecs/ilbc/cb_update_best_index.c", |
| 220 | "codecs/ilbc/cb_update_best_index.h", |
| 221 | "codecs/ilbc/chebyshev.c", |
| 222 | "codecs/ilbc/chebyshev.h", |
| 223 | "codecs/ilbc/comp_corr.c", |
| 224 | "codecs/ilbc/comp_corr.h", |
| 225 | "codecs/ilbc/constants.c", |
| 226 | "codecs/ilbc/constants.h", |
| 227 | "codecs/ilbc/create_augmented_vec.c", |
| 228 | "codecs/ilbc/create_augmented_vec.h", |
| 229 | "codecs/ilbc/decode.c", |
| 230 | "codecs/ilbc/decode.h", |
| 231 | "codecs/ilbc/decode_residual.c", |
| 232 | "codecs/ilbc/decode_residual.h", |
| 233 | "codecs/ilbc/decoder_interpolate_lsf.c", |
| 234 | "codecs/ilbc/decoder_interpolate_lsf.h", |
| 235 | "codecs/ilbc/defines.h", |
| 236 | "codecs/ilbc/do_plc.c", |
| 237 | "codecs/ilbc/do_plc.h", |
| 238 | "codecs/ilbc/encode.c", |
| 239 | "codecs/ilbc/encode.h", |
| 240 | "codecs/ilbc/energy_inverse.c", |
| 241 | "codecs/ilbc/energy_inverse.h", |
| 242 | "codecs/ilbc/enhancer.c", |
| 243 | "codecs/ilbc/enhancer.h", |
| 244 | "codecs/ilbc/enhancer_interface.c", |
| 245 | "codecs/ilbc/enhancer_interface.h", |
| 246 | "codecs/ilbc/enh_upsample.c", |
| 247 | "codecs/ilbc/enh_upsample.h", |
| 248 | "codecs/ilbc/filtered_cb_vecs.c", |
| 249 | "codecs/ilbc/filtered_cb_vecs.h", |
| 250 | "codecs/ilbc/frame_classify.c", |
| 251 | "codecs/ilbc/frame_classify.h", |
| 252 | "codecs/ilbc/gain_dequant.c", |
| 253 | "codecs/ilbc/gain_dequant.h", |
| 254 | "codecs/ilbc/gain_quant.c", |
| 255 | "codecs/ilbc/gain_quant.h", |
| 256 | "codecs/ilbc/get_cd_vec.c", |
| 257 | "codecs/ilbc/get_cd_vec.h", |
| 258 | "codecs/ilbc/get_lsp_poly.c", |
| 259 | "codecs/ilbc/get_lsp_poly.h", |
| 260 | "codecs/ilbc/get_sync_seq.c", |
| 261 | "codecs/ilbc/get_sync_seq.h", |
| 262 | "codecs/ilbc/hp_input.c", |
| 263 | "codecs/ilbc/hp_input.h", |
| 264 | "codecs/ilbc/hp_output.c", |
| 265 | "codecs/ilbc/hp_output.h", |
| 266 | "codecs/ilbc/ilbc.c", |
| 267 | "codecs/ilbc/index_conv_dec.c", |
| 268 | "codecs/ilbc/index_conv_dec.h", |
| 269 | "codecs/ilbc/index_conv_enc.c", |
| 270 | "codecs/ilbc/index_conv_enc.h", |
| 271 | "codecs/ilbc/init_decode.c", |
| 272 | "codecs/ilbc/init_decode.h", |
| 273 | "codecs/ilbc/init_encode.c", |
| 274 | "codecs/ilbc/init_encode.h", |
| 275 | "codecs/ilbc/interface/ilbc.h", |
| 276 | "codecs/ilbc/interpolate.c", |
| 277 | "codecs/ilbc/interpolate.h", |
| 278 | "codecs/ilbc/interpolate_samples.c", |
| 279 | "codecs/ilbc/interpolate_samples.h", |
| 280 | "codecs/ilbc/lpc_encode.c", |
| 281 | "codecs/ilbc/lpc_encode.h", |
| 282 | "codecs/ilbc/lsf_check.c", |
| 283 | "codecs/ilbc/lsf_check.h", |
| 284 | "codecs/ilbc/lsf_interpolate_to_poly_dec.c", |
| 285 | "codecs/ilbc/lsf_interpolate_to_poly_dec.h", |
| 286 | "codecs/ilbc/lsf_interpolate_to_poly_enc.c", |
| 287 | "codecs/ilbc/lsf_interpolate_to_poly_enc.h", |
| 288 | "codecs/ilbc/lsf_to_lsp.c", |
| 289 | "codecs/ilbc/lsf_to_lsp.h", |
| 290 | "codecs/ilbc/lsf_to_poly.c", |
| 291 | "codecs/ilbc/lsf_to_poly.h", |
| 292 | "codecs/ilbc/lsp_to_lsf.c", |
| 293 | "codecs/ilbc/lsp_to_lsf.h", |
| 294 | "codecs/ilbc/my_corr.c", |
| 295 | "codecs/ilbc/my_corr.h", |
| 296 | "codecs/ilbc/nearest_neighbor.c", |
| 297 | "codecs/ilbc/nearest_neighbor.h", |
| 298 | "codecs/ilbc/pack_bits.c", |
| 299 | "codecs/ilbc/pack_bits.h", |
| 300 | "codecs/ilbc/poly_to_lsf.c", |
| 301 | "codecs/ilbc/poly_to_lsf.h", |
| 302 | "codecs/ilbc/poly_to_lsp.c", |
| 303 | "codecs/ilbc/poly_to_lsp.h", |
| 304 | "codecs/ilbc/refiner.c", |
| 305 | "codecs/ilbc/refiner.h", |
| 306 | "codecs/ilbc/simple_interpolate_lsf.c", |
| 307 | "codecs/ilbc/simple_interpolate_lsf.h", |
| 308 | "codecs/ilbc/simple_lpc_analysis.c", |
| 309 | "codecs/ilbc/simple_lpc_analysis.h", |
| 310 | "codecs/ilbc/simple_lsf_dequant.c", |
| 311 | "codecs/ilbc/simple_lsf_dequant.h", |
| 312 | "codecs/ilbc/simple_lsf_quant.c", |
| 313 | "codecs/ilbc/simple_lsf_quant.h", |
| 314 | "codecs/ilbc/smooth.c", |
| 315 | "codecs/ilbc/smooth.h", |
| 316 | "codecs/ilbc/smooth_out_data.c", |
| 317 | "codecs/ilbc/smooth_out_data.h", |
| 318 | "codecs/ilbc/sort_sq.c", |
| 319 | "codecs/ilbc/sort_sq.h", |
| 320 | "codecs/ilbc/split_vq.c", |
| 321 | "codecs/ilbc/split_vq.h", |
| 322 | "codecs/ilbc/state_construct.c", |
| 323 | "codecs/ilbc/state_construct.h", |
| 324 | "codecs/ilbc/state_search.c", |
| 325 | "codecs/ilbc/state_search.h", |
| 326 | "codecs/ilbc/swap_bytes.c", |
| 327 | "codecs/ilbc/swap_bytes.h", |
| 328 | "codecs/ilbc/unpack_bits.c", |
| 329 | "codecs/ilbc/unpack_bits.h", |
| 330 | "codecs/ilbc/vq3.c", |
| 331 | "codecs/ilbc/vq3.h", |
| 332 | "codecs/ilbc/vq4.c", |
| 333 | "codecs/ilbc/vq4.h", |
| 334 | "codecs/ilbc/window32_w32.c", |
| 335 | "codecs/ilbc/window32_w32.h", |
| 336 | "codecs/ilbc/xcorr_coef.c", |
| 337 | "codecs/ilbc/xcorr_coef.h", |
| 338 | ] |
| 339 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 340 | configs += [ "../..:common_config" ] |
| 341 | |
| 342 | public_configs = [ |
| 343 | "../..:common_inherited_config", |
| 344 | ":ilbc_config", |
| 345 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 346 | |
| 347 | deps = [ "../../common_audio" ] |
| 348 | } |
| 349 | |
| 350 | config("isac_config") { |
| 351 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 352 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 353 | "codecs/isac/main/interface", |
| 354 | ] |
| 355 | } |
| 356 | |
| 357 | source_set("isac") { |
| 358 | sources = [ |
| 359 | "codecs/isac/main/interface/isac.h", |
| 360 | "codecs/isac/main/source/arith_routines.c", |
| 361 | "codecs/isac/main/source/arith_routines.h", |
| 362 | "codecs/isac/main/source/arith_routines_hist.c", |
| 363 | "codecs/isac/main/source/arith_routines_logist.c", |
| 364 | "codecs/isac/main/source/bandwidth_estimator.c", |
| 365 | "codecs/isac/main/source/bandwidth_estimator.h", |
| 366 | "codecs/isac/main/source/codec.h", |
| 367 | "codecs/isac/main/source/crc.c", |
| 368 | "codecs/isac/main/source/crc.h", |
| 369 | "codecs/isac/main/source/decode_bwe.c", |
| 370 | "codecs/isac/main/source/decode.c", |
| 371 | "codecs/isac/main/source/encode.c", |
| 372 | "codecs/isac/main/source/encode_lpc_swb.c", |
| 373 | "codecs/isac/main/source/encode_lpc_swb.h", |
| 374 | "codecs/isac/main/source/entropy_coding.c", |
| 375 | "codecs/isac/main/source/entropy_coding.h", |
| 376 | "codecs/isac/main/source/fft.c", |
| 377 | "codecs/isac/main/source/fft.h", |
| 378 | "codecs/isac/main/source/filterbanks.c", |
| 379 | "codecs/isac/main/source/filterbank_tables.c", |
| 380 | "codecs/isac/main/source/filterbank_tables.h", |
| 381 | "codecs/isac/main/source/filter_functions.c", |
| 382 | "codecs/isac/main/source/intialize.c", |
| 383 | "codecs/isac/main/source/isac.c", |
| 384 | "codecs/isac/main/source/lattice.c", |
| 385 | "codecs/isac/main/source/lpc_analysis.c", |
| 386 | "codecs/isac/main/source/lpc_analysis.h", |
| 387 | "codecs/isac/main/source/lpc_gain_swb_tables.c", |
| 388 | "codecs/isac/main/source/lpc_gain_swb_tables.h", |
| 389 | "codecs/isac/main/source/lpc_shape_swb12_tables.c", |
| 390 | "codecs/isac/main/source/lpc_shape_swb12_tables.h", |
| 391 | "codecs/isac/main/source/lpc_shape_swb16_tables.c", |
| 392 | "codecs/isac/main/source/lpc_shape_swb16_tables.h", |
| 393 | "codecs/isac/main/source/lpc_tables.c", |
| 394 | "codecs/isac/main/source/lpc_tables.h", |
| 395 | "codecs/isac/main/source/os_specific_inline.h", |
| 396 | "codecs/isac/main/source/pitch_estimator.c", |
| 397 | "codecs/isac/main/source/pitch_estimator.h", |
| 398 | "codecs/isac/main/source/pitch_filter.c", |
| 399 | "codecs/isac/main/source/pitch_gain_tables.c", |
| 400 | "codecs/isac/main/source/pitch_gain_tables.h", |
| 401 | "codecs/isac/main/source/pitch_lag_tables.c", |
| 402 | "codecs/isac/main/source/pitch_lag_tables.h", |
| 403 | "codecs/isac/main/source/settings.h", |
| 404 | "codecs/isac/main/source/spectrum_ar_model_tables.c", |
| 405 | "codecs/isac/main/source/spectrum_ar_model_tables.h", |
| 406 | "codecs/isac/main/source/structs.h", |
| 407 | "codecs/isac/main/source/transform.c", |
| 408 | ] |
| 409 | |
| 410 | if (is_linux) { |
| 411 | libs = [ "m" ] |
| 412 | } |
| 413 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 414 | configs += [ "../..:common_config" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 415 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 416 | public_configs = [ |
| 417 | "../..:common_inherited_config", |
| 418 | ":isac_config", |
| 419 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 420 | |
| 421 | deps = [ "../../common_audio" ] |
| 422 | } |
| 423 | |
| 424 | config("isac_fix_config") { |
| 425 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 426 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 427 | "codecs/isac/fix/interface", |
| 428 | ] |
| 429 | } |
| 430 | |
| 431 | source_set("isacfix") { |
| 432 | sources = [ |
| 433 | "codecs/isac/fix/interface/isacfix.h", |
| 434 | "codecs/isac/fix/source/arith_routines.c", |
| 435 | "codecs/isac/fix/source/arith_routines_hist.c", |
| 436 | "codecs/isac/fix/source/arith_routines_logist.c", |
| 437 | "codecs/isac/fix/source/arith_routins.h", |
| 438 | "codecs/isac/fix/source/bandwidth_estimator.c", |
| 439 | "codecs/isac/fix/source/bandwidth_estimator.h", |
| 440 | "codecs/isac/fix/source/codec.h", |
| 441 | "codecs/isac/fix/source/decode_bwe.c", |
| 442 | "codecs/isac/fix/source/decode.c", |
| 443 | "codecs/isac/fix/source/decode_plc.c", |
| 444 | "codecs/isac/fix/source/encode.c", |
| 445 | "codecs/isac/fix/source/entropy_coding.c", |
| 446 | "codecs/isac/fix/source/entropy_coding.h", |
| 447 | "codecs/isac/fix/source/fft.c", |
| 448 | "codecs/isac/fix/source/fft.h", |
| 449 | "codecs/isac/fix/source/filterbanks.c", |
| 450 | "codecs/isac/fix/source/filterbank_tables.c", |
| 451 | "codecs/isac/fix/source/filterbank_tables.h", |
| 452 | "codecs/isac/fix/source/filters.c", |
| 453 | "codecs/isac/fix/source/initialize.c", |
| 454 | "codecs/isac/fix/source/isacfix.c", |
| 455 | "codecs/isac/fix/source/lattice.c", |
| 456 | "codecs/isac/fix/source/lpc_masking_model.c", |
| 457 | "codecs/isac/fix/source/lpc_masking_model.h", |
| 458 | "codecs/isac/fix/source/lpc_tables.c", |
| 459 | "codecs/isac/fix/source/lpc_tables.h", |
| 460 | "codecs/isac/fix/source/pitch_estimator.c", |
| 461 | "codecs/isac/fix/source/pitch_estimator.h", |
| 462 | "codecs/isac/fix/source/pitch_filter.c", |
| 463 | "codecs/isac/fix/source/pitch_gain_tables.c", |
| 464 | "codecs/isac/fix/source/pitch_gain_tables.h", |
| 465 | "codecs/isac/fix/source/pitch_lag_tables.c", |
| 466 | "codecs/isac/fix/source/pitch_lag_tables.h", |
| 467 | "codecs/isac/fix/source/settings.h", |
| 468 | "codecs/isac/fix/source/spectrum_ar_model_tables.c", |
| 469 | "codecs/isac/fix/source/spectrum_ar_model_tables.h", |
| 470 | "codecs/isac/fix/source/structs.h", |
| 471 | "codecs/isac/fix/source/transform.c", |
| 472 | "codecs/isac/fix/source/transform_tables.c", |
| 473 | ] |
| 474 | |
| 475 | if (!is_win) { |
| 476 | defines = [ "WEBRTC_LINUX" ] |
| 477 | } |
| 478 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 479 | configs += [ "../..:common_config" ] |
| 480 | |
| 481 | public_configs = [ |
| 482 | "../..:common_inherited_config", |
| 483 | ":isac_fix_config", |
| 484 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 485 | |
| 486 | deps = [ |
| 487 | "../../common_audio", |
| 488 | "../../system_wrappers", |
| 489 | ] |
| 490 | |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 491 | if (rtc_build_armv7_neon) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 492 | deps += [ ":isac_neon" ] |
| 493 | |
| 494 | # Enable compilation for the ARM v7 Neon instruction set. This is needed |
| 495 | # since //build/config/arm.gni only enables Neon for iOS, not Android. |
| 496 | # This provides the same functionality as webrtc/build/arm_neon.gypi. |
| 497 | # TODO(kjellander): Investigate if this can be moved into webrtc.gni or |
| 498 | # //build/config/arm.gni instead, to reduce code duplication. |
| 499 | # Remove the -mfpu=vfpv3-d16 cflag. |
| 500 | configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
| 501 | cflags = [ |
| 502 | "-flax-vector-conversions", |
| 503 | "-mfpu=neon", |
| 504 | ] |
| 505 | |
| 506 | sources += [ |
| 507 | "codecs/isac/fix/source/lattice_armv7.S", |
| 508 | "codecs/isac/fix/source/pitch_filter_armv6.S", |
| 509 | ] |
| 510 | } else { |
| 511 | sources += [ "codecs/isac/fix/source/pitch_filter_c.c" ] |
| 512 | } |
| 513 | |
| 514 | if (cpu_arch == "mipsel") { |
| 515 | sources += [ |
| 516 | "codecs/isac/fix/source/entropy_coding_mips.c", |
| 517 | "codecs/isac/fix/source/filters_mips.c", |
| 518 | "codecs/isac/fix/source/lattice_mips.c", |
| 519 | "codecs/isac/fix/source/pitch_estimator_mips.c", |
| 520 | "codecs/isac/fix/source/transform_mips.c", |
| 521 | ] |
| 522 | if (mips_dsp_rev > 0) { |
| 523 | sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ] |
| 524 | } |
| 525 | if (mips_dsp_rev > 1) { |
| 526 | sources += [ |
| 527 | "codecs/isac/fix/source/lpc_masking_model_mips.c", |
| 528 | "codecs/isac/fix/source/pitch_filter_mips.c", |
| 529 | ] |
| 530 | } else { |
| 531 | sources += [ "codecs/isac/fix/source/pitch_filter_c.c" ] |
| 532 | } |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 533 | } else { |
| 534 | sources += [ "codecs/isac/fix/source/pitch_estimator_c.c" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 535 | } |
| 536 | |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 537 | if (!rtc_build_armv7_neon && cpu_arch != "mipsel") { |
| 538 | sources += [ "codecs/isac/fix/source/lattice_c.c" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 539 | } |
| 540 | } |
| 541 | |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 542 | if (rtc_build_armv7_neon) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 543 | source_set("isac_neon") { |
| 544 | sources = [ |
| 545 | "codecs/isac/fix/source/entropy_coding_neon.c", |
| 546 | "codecs/isac/fix/source/filterbanks_neon.S", |
| 547 | "codecs/isac/fix/source/filters_neon.S", |
| 548 | "codecs/isac/fix/source/lattice_neon.S", |
| 549 | "codecs/isac/fix/source/lpc_masking_model_neon.S", |
| 550 | "codecs/isac/fix/source/transform_neon.S", |
| 551 | ] |
| 552 | |
| 553 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 554 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 555 | ] |
| 556 | |
| 557 | # Disable LTO in audio_processing_neon target due to compiler bug. |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 558 | if (rtc_use_lto) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 559 | cflags -= [ |
| 560 | "-flto", |
| 561 | "-ffat-lto-objects", |
| 562 | ] |
| 563 | } |
| 564 | |
| 565 | # Enable compilation for the ARM v7 Neon instruction set. This is needed |
| 566 | # since //build/config/arm.gni only enables Neon for iOS, not Android. |
| 567 | # This provides the same functionality as webrtc/build/arm_neon.gypi. |
| 568 | # TODO(kjellander): Investigate if this can be moved into webrtc.gni or |
| 569 | # //build/config/arm.gni instead, to reduce code duplication. |
| 570 | # Remove the -mfpu=vfpv3-d16 cflag. |
| 571 | configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
| 572 | cflags = [ |
| 573 | "-flax-vector-conversions", |
| 574 | "-mfpu=neon", |
| 575 | ] |
| 576 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 577 | configs += [ "../..:common_config" ] |
| 578 | public_configs = [ "../..:common_inherited_config" ] |
| 579 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 580 | deps = [ "../../common_audio" ] |
| 581 | } |
| 582 | } |
| 583 | |
| 584 | config("pcm16b_config") { |
| 585 | include_dirs = [ |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 586 | "../../..", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 587 | "codecs/pcm16b/include", |
| 588 | ] |
| 589 | } |
| 590 | |
| 591 | source_set("pcm16b") { |
| 592 | sources = [ |
| 593 | "codecs/pcm16b/include/pcm16b.h", |
| 594 | "codecs/pcm16b/pcm16b.c", |
| 595 | ] |
| 596 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 597 | configs += [ "../..:common_config" ] |
| 598 | |
| 599 | public_configs = [ |
| 600 | "../..:common_inherited_config", |
| 601 | ":pcm16b_config", |
| 602 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 603 | } |
| 604 | |
| 605 | config("opus_config") { |
andresp@webrtc.org | 262e676 | 2014-09-04 13:28:48 +0000 | [diff] [blame] | 606 | include_dirs = [ "../../.." ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 607 | } |
| 608 | |
| 609 | source_set("webrtc_opus") { |
| 610 | sources = [ |
| 611 | "codecs/opus/interface/opus_interface.h", |
| 612 | "codecs/opus/opus_inst.h", |
| 613 | "codecs/opus/opus_interface.c", |
| 614 | ] |
| 615 | if (build_with_mozilla) { |
| 616 | include_dirs = [ getenv("DIST") + "/include/opus" ] |
| 617 | } else { |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 618 | configs += [ "../..:common_config" ] |
| 619 | public_configs = [ "../..:common_inherited_config" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 620 | |
| 621 | deps = [ "//third_party/opus" ] |
| 622 | } |
| 623 | } |
| 624 | |
| 625 | config("neteq_config") { |
| 626 | include_dirs = [ |
| 627 | # Need Opus header files for the audio classifier. |
| 628 | "//third_party/opus/src/celt", |
| 629 | "//third_party/opus/src/src", |
| 630 | ] |
| 631 | } |
| 632 | |
| 633 | source_set("neteq") { |
| 634 | sources = [ |
| 635 | "neteq/interface/audio_decoder.h", |
| 636 | "neteq/interface/neteq.h", |
| 637 | "neteq/accelerate.cc", |
| 638 | "neteq/accelerate.h", |
| 639 | "neteq/audio_classifier.cc", |
| 640 | "neteq/audio_classifier.h", |
| 641 | "neteq/audio_decoder_impl.cc", |
| 642 | "neteq/audio_decoder_impl.h", |
| 643 | "neteq/audio_decoder.cc", |
| 644 | "neteq/audio_multi_vector.cc", |
| 645 | "neteq/audio_multi_vector.h", |
| 646 | "neteq/audio_vector.cc", |
| 647 | "neteq/audio_vector.h", |
| 648 | "neteq/background_noise.cc", |
| 649 | "neteq/background_noise.h", |
| 650 | "neteq/buffer_level_filter.cc", |
| 651 | "neteq/buffer_level_filter.h", |
| 652 | "neteq/comfort_noise.cc", |
| 653 | "neteq/comfort_noise.h", |
| 654 | "neteq/decision_logic.cc", |
| 655 | "neteq/decision_logic.h", |
| 656 | "neteq/decision_logic_fax.cc", |
| 657 | "neteq/decision_logic_fax.h", |
| 658 | "neteq/decision_logic_normal.cc", |
| 659 | "neteq/decision_logic_normal.h", |
| 660 | "neteq/decoder_database.cc", |
| 661 | "neteq/decoder_database.h", |
| 662 | "neteq/defines.h", |
| 663 | "neteq/delay_manager.cc", |
| 664 | "neteq/delay_manager.h", |
| 665 | "neteq/delay_peak_detector.cc", |
| 666 | "neteq/delay_peak_detector.h", |
| 667 | "neteq/dsp_helper.cc", |
| 668 | "neteq/dsp_helper.h", |
| 669 | "neteq/dtmf_buffer.cc", |
| 670 | "neteq/dtmf_buffer.h", |
| 671 | "neteq/dtmf_tone_generator.cc", |
| 672 | "neteq/dtmf_tone_generator.h", |
| 673 | "neteq/expand.cc", |
| 674 | "neteq/expand.h", |
| 675 | "neteq/merge.cc", |
| 676 | "neteq/merge.h", |
| 677 | "neteq/neteq_impl.cc", |
| 678 | "neteq/neteq_impl.h", |
| 679 | "neteq/neteq.cc", |
| 680 | "neteq/statistics_calculator.cc", |
| 681 | "neteq/statistics_calculator.h", |
| 682 | "neteq/normal.cc", |
| 683 | "neteq/normal.h", |
| 684 | "neteq/packet_buffer.cc", |
| 685 | "neteq/packet_buffer.h", |
| 686 | "neteq/payload_splitter.cc", |
| 687 | "neteq/payload_splitter.h", |
| 688 | "neteq/post_decode_vad.cc", |
| 689 | "neteq/post_decode_vad.h", |
| 690 | "neteq/preemptive_expand.cc", |
| 691 | "neteq/preemptive_expand.h", |
| 692 | "neteq/random_vector.cc", |
| 693 | "neteq/random_vector.h", |
| 694 | "neteq/rtcp.cc", |
| 695 | "neteq/rtcp.h", |
| 696 | "neteq/sync_buffer.cc", |
| 697 | "neteq/sync_buffer.h", |
| 698 | "neteq/timestamp_scaler.cc", |
| 699 | "neteq/timestamp_scaler.h", |
| 700 | "neteq/time_stretch.cc", |
| 701 | "neteq/time_stretch.h", |
| 702 | ] |
| 703 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 704 | configs += [ "../..:common_config" ] |
| 705 | |
| 706 | public_configs = [ |
| 707 | "../..:common_inherited_config", |
| 708 | ":neteq_config", |
| 709 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 710 | |
| 711 | forward_dependent_configs_from = [ "//third_party/opus" ] |
| 712 | |
| 713 | if (is_clang) { |
| 714 | # Suppress warnings from Chrome's Clang plugins. |
| 715 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 716 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 717 | } |
| 718 | |
| 719 | deps = [ |
| 720 | ":cng", |
| 721 | ":g711", |
| 722 | ":g722", |
| 723 | ":ilbc", |
| 724 | ":isac", |
| 725 | ":isacfix", |
| 726 | ":pcm16b", |
| 727 | "../../common_audio", |
| 728 | "../../system_wrappers", |
| 729 | "//third_party/opus", |
| 730 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 731 | } |