andrew@webrtc.org | b9d7d93 | 2012-01-25 19:21:13 +0000 | [diff] [blame] | 1 | # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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 | { |
andrew@webrtc.org | b073010 | 2013-11-11 17:20:27 +0000 | [diff] [blame] | 10 | 'variables': { |
michaelbai@google.com | 82ebb46 | 2014-02-11 04:48:27 +0000 | [diff] [blame] | 11 | 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/audio_processing/asm_offsets', |
andrew@webrtc.org | b073010 | 2013-11-11 17:20:27 +0000 | [diff] [blame] | 12 | }, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 13 | 'targets': [ |
| 14 | { |
| 15 | 'target_name': 'audio_processing', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 16 | 'type': 'static_library', |
| 17 | 'variables': { |
| 18 | # Outputs some low-level debug files. |
| 19 | 'aec_debug_dump%': 0, |
bjornv@webrtc.org | ea29787 | 2014-09-23 11:21:39 +0000 | [diff] [blame] | 20 | 'agc_debug_dump%': 0, |
andrew@webrtc.org | 1760a17 | 2013-09-25 23:17:38 +0000 | [diff] [blame] | 21 | |
| 22 | # Disables the usual mode where we trust the reported system delay |
| 23 | # values the AEC receives. The corresponding define is set appropriately |
| 24 | # in the code, but it can be force-enabled here for testing. |
| 25 | 'aec_untrusted_delay_for_testing%': 0, |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 26 | }, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 27 | 'dependencies': [ |
aluebs@webrtc.org | 0c39e91 | 2014-12-18 22:22:04 +0000 | [diff] [blame] | 28 | '<(webrtc_root)/base/base.gyp:rtc_base_approved', |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 29 | '<(webrtc_root)/common.gyp:webrtc_common', |
aluebs@webrtc.org | 0c39e91 | 2014-12-18 22:22:04 +0000 | [diff] [blame] | 30 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 31 | '<(webrtc_root)/modules/modules.gyp:isac', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 32 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 33 | ], |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 34 | 'sources': [ |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 35 | 'aec/aec_core.c', |
| 36 | 'aec/aec_core.h', |
| 37 | 'aec/aec_core_internal.h', |
| 38 | 'aec/aec_rdft.c', |
| 39 | 'aec/aec_rdft.h', |
| 40 | 'aec/aec_resampler.c', |
| 41 | 'aec/aec_resampler.h', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 42 | 'aec/echo_cancellation.c', |
| 43 | 'aec/echo_cancellation_internal.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 44 | 'aec/include/echo_cancellation.h', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 45 | 'aecm/aecm_core.c', |
| 46 | 'aecm/aecm_core.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 47 | 'aecm/echo_control_mobile.c', |
| 48 | 'aecm/include/echo_control_mobile.h', |
| 49 | 'agc/agc.cc', |
| 50 | 'agc/agc.h', |
Alejandro Luebs | f260fc2 | 2015-06-19 11:23:55 -0700 | [diff] [blame] | 51 | 'agc/agc_audio_proc.cc', |
| 52 | 'agc/agc_audio_proc.h', |
| 53 | 'agc/agc_audio_proc_internal.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 54 | 'agc/agc_manager_direct.cc', |
| 55 | 'agc/agc_manager_direct.h', |
Alejandro Luebs | f260fc2 | 2015-06-19 11:23:55 -0700 | [diff] [blame] | 56 | 'agc/circular_buffer.cc', |
| 57 | 'agc/circular_buffer.h', |
| 58 | 'agc/common.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 59 | 'agc/gain_map_internal.h', |
Alejandro Luebs | f260fc2 | 2015-06-19 11:23:55 -0700 | [diff] [blame] | 60 | 'agc/gmm.cc', |
| 61 | 'agc/gmm.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 62 | 'agc/histogram.cc', |
| 63 | 'agc/histogram.h', |
bjornv@webrtc.org | b395a5e | 2014-12-16 10:38:10 +0000 | [diff] [blame] | 64 | 'agc/legacy/analog_agc.c', |
| 65 | 'agc/legacy/analog_agc.h', |
| 66 | 'agc/legacy/digital_agc.c', |
| 67 | 'agc/legacy/digital_agc.h', |
| 68 | 'agc/legacy/gain_control.h', |
Alejandro Luebs | f260fc2 | 2015-06-19 11:23:55 -0700 | [diff] [blame] | 69 | 'agc/noise_gmm_tables.h', |
| 70 | 'agc/pitch_based_vad.cc', |
| 71 | 'agc/pitch_based_vad.h', |
| 72 | 'agc/pitch_internal.cc', |
| 73 | 'agc/pitch_internal.h', |
| 74 | 'agc/pole_zero_filter.cc', |
| 75 | 'agc/pole_zero_filter.h', |
| 76 | 'agc/standalone_vad.cc', |
| 77 | 'agc/standalone_vad.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 78 | 'agc/utility.cc', |
| 79 | 'agc/utility.h', |
Alejandro Luebs | f260fc2 | 2015-06-19 11:23:55 -0700 | [diff] [blame] | 80 | 'agc/voice_gmm_tables.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 81 | 'audio_buffer.cc', |
| 82 | 'audio_buffer.h', |
| 83 | 'audio_processing_impl.cc', |
| 84 | 'audio_processing_impl.h', |
Michael Graczyk | dfa3605 | 2015-03-25 16:37:27 -0700 | [diff] [blame] | 85 | 'beamformer/beamformer.h', |
aluebs@webrtc.org | 0c39e91 | 2014-12-18 22:22:04 +0000 | [diff] [blame] | 86 | 'beamformer/complex_matrix.h', |
| 87 | 'beamformer/covariance_matrix_generator.cc', |
| 88 | 'beamformer/covariance_matrix_generator.h', |
| 89 | 'beamformer/matrix.h', |
andrew@webrtc.org | bd8c865 | 2015-03-20 00:28:22 +0000 | [diff] [blame] | 90 | 'beamformer/nonlinear_beamformer.cc', |
| 91 | 'beamformer/nonlinear_beamformer.h', |
andrew@webrtc.org | ddbb8a2 | 2014-04-22 21:00:04 +0000 | [diff] [blame] | 92 | 'common.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 93 | 'echo_cancellation_impl.cc', |
| 94 | 'echo_cancellation_impl.h', |
| 95 | 'echo_control_mobile_impl.cc', |
| 96 | 'echo_control_mobile_impl.h', |
| 97 | 'gain_control_impl.cc', |
| 98 | 'gain_control_impl.h', |
| 99 | 'high_pass_filter_impl.cc', |
| 100 | 'high_pass_filter_impl.h', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 101 | 'include/audio_processing.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 102 | 'level_estimator_impl.cc', |
| 103 | 'level_estimator_impl.h', |
| 104 | 'noise_suppression_impl.cc', |
| 105 | 'noise_suppression_impl.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 106 | 'processing_component.cc', |
| 107 | 'processing_component.h', |
andrew@webrtc.org | 382c0c2 | 2014-05-05 18:22:21 +0000 | [diff] [blame] | 108 | 'rms_level.cc', |
| 109 | 'rms_level.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 110 | 'splitting_filter.cc', |
| 111 | 'splitting_filter.h', |
Alejandro Luebs | 5a92aa8 | 2015-04-27 11:34:45 -0700 | [diff] [blame] | 112 | 'three_band_filter_bank.cc', |
| 113 | 'three_band_filter_bank.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 114 | 'transient/common.h', |
| 115 | 'transient/daubechies_8_wavelet_coeffs.h', |
| 116 | 'transient/dyadic_decimator.h', |
| 117 | 'transient/moving_moments.cc', |
| 118 | 'transient/moving_moments.h', |
| 119 | 'transient/transient_detector.cc', |
| 120 | 'transient/transient_detector.h', |
| 121 | 'transient/transient_suppressor.cc', |
| 122 | 'transient/transient_suppressor.h', |
| 123 | 'transient/wpd_node.cc', |
| 124 | 'transient/wpd_node.h', |
| 125 | 'transient/wpd_tree.cc', |
| 126 | 'transient/wpd_tree.h', |
henrikg@webrtc.org | c693704 | 2014-01-30 09:50:46 +0000 | [diff] [blame] | 127 | 'typing_detection.cc', |
| 128 | 'typing_detection.h', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 129 | 'utility/delay_estimator.c', |
| 130 | 'utility/delay_estimator.h', |
| 131 | 'utility/delay_estimator_internal.h', |
| 132 | 'utility/delay_estimator_wrapper.c', |
| 133 | 'utility/delay_estimator_wrapper.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 134 | 'voice_detection_impl.cc', |
| 135 | 'voice_detection_impl.h', |
| 136 | ], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 137 | 'conditions': [ |
| 138 | ['aec_debug_dump==1', { |
| 139 | 'defines': ['WEBRTC_AEC_DEBUG_DUMP',], |
| 140 | }], |
andrew@webrtc.org | 1760a17 | 2013-09-25 23:17:38 +0000 | [diff] [blame] | 141 | ['aec_untrusted_delay_for_testing==1', { |
| 142 | 'defines': ['WEBRTC_UNTRUSTED_DELAY',], |
| 143 | }], |
bjornv@webrtc.org | ea29787 | 2014-09-23 11:21:39 +0000 | [diff] [blame] | 144 | ['agc_debug_dump==1', { |
| 145 | 'defines': ['WEBRTC_AGC_DEBUG_DUMP',], |
| 146 | }], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 147 | ['enable_protobuf==1', { |
| 148 | 'dependencies': ['audioproc_debug_proto'], |
| 149 | 'defines': ['WEBRTC_AUDIOPROC_DEBUG_DUMP'], |
| 150 | }], |
| 151 | ['prefer_fixed_point==1', { |
| 152 | 'defines': ['WEBRTC_NS_FIXED'], |
| 153 | 'sources': [ |
| 154 | 'ns/include/noise_suppression_x.h', |
| 155 | 'ns/noise_suppression_x.c', |
| 156 | 'ns/nsx_core.c', |
| 157 | 'ns/nsx_core.h', |
| 158 | 'ns/nsx_defines.h', |
| 159 | ], |
andrew@webrtc.org | ea9392d | 2014-01-16 07:22:01 +0000 | [diff] [blame] | 160 | 'conditions': [ |
Richard Coles | d417c93 | 2015-04-09 17:36:12 +0200 | [diff] [blame] | 161 | ['target_arch=="mipsel" and mips_arch_variant!="r6"', { |
andrew@webrtc.org | ea9392d | 2014-01-16 07:22:01 +0000 | [diff] [blame] | 162 | 'sources': [ |
| 163 | 'ns/nsx_core_mips.c', |
| 164 | ], |
| 165 | }, { |
| 166 | 'sources': [ |
| 167 | 'ns/nsx_core_c.c', |
| 168 | ], |
| 169 | }], |
| 170 | ], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 171 | }, { |
| 172 | 'defines': ['WEBRTC_NS_FLOAT'], |
| 173 | 'sources': [ |
| 174 | 'ns/defines.h', |
| 175 | 'ns/include/noise_suppression.h', |
| 176 | 'ns/noise_suppression.c', |
| 177 | 'ns/ns_core.c', |
| 178 | 'ns/ns_core.h', |
| 179 | 'ns/windows_private.h', |
| 180 | ], |
| 181 | }], |
| 182 | ['target_arch=="ia32" or target_arch=="x64"', { |
| 183 | 'dependencies': ['audio_processing_sse2',], |
| 184 | }], |
andrew@webrtc.org | 1090a6e | 2014-12-18 21:36:18 +0000 | [diff] [blame] | 185 | ['(target_arch=="arm" and arm_version>=7) or target_arch=="arm64"', { |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 186 | 'dependencies': ['audio_processing_neon',], |
| 187 | }], |
Richard Coles | d417c93 | 2015-04-09 17:36:12 +0200 | [diff] [blame] | 188 | ['target_arch=="mipsel" and mips_arch_variant!="r6"', { |
andrew@webrtc.org | e03cafa | 2013-11-11 20:10:01 +0000 | [diff] [blame] | 189 | 'sources': [ |
| 190 | 'aecm/aecm_core_mips.c', |
| 191 | ], |
andrew@webrtc.org | c0907ef | 2014-02-21 00:13:31 +0000 | [diff] [blame] | 192 | 'conditions': [ |
kjellander@webrtc.org | 6dab6d7 | 2015-03-04 09:50:31 +0000 | [diff] [blame] | 193 | ['mips_float_abi=="hard"', { |
andrew@webrtc.org | c0907ef | 2014-02-21 00:13:31 +0000 | [diff] [blame] | 194 | 'sources': [ |
| 195 | 'aec/aec_core_mips.c', |
| 196 | 'aec/aec_rdft_mips.c', |
| 197 | ], |
| 198 | }], |
| 199 | ], |
andrew@webrtc.org | e03cafa | 2013-11-11 20:10:01 +0000 | [diff] [blame] | 200 | }, { |
| 201 | 'sources': [ |
| 202 | 'aecm/aecm_core_c.c', |
| 203 | ], |
| 204 | }], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 205 | ], |
andrew@webrtc.org | 63e0964 | 2013-01-29 06:45:22 +0000 | [diff] [blame] | 206 | # TODO(jschuh): Bug 1348: fix size_t to int truncations. |
| 207 | 'msvs_disabled_warnings': [ 4267, ], |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 208 | }, |
andrew@webrtc.org | 7bf2646 | 2011-12-03 00:03:31 +0000 | [diff] [blame] | 209 | ], |
| 210 | 'conditions': [ |
| 211 | ['enable_protobuf==1', { |
| 212 | 'targets': [ |
| 213 | { |
| 214 | 'target_name': 'audioproc_debug_proto', |
| 215 | 'type': 'static_library', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 216 | 'sources': ['debug.proto',], |
andrew@webrtc.org | 7bf2646 | 2011-12-03 00:03:31 +0000 | [diff] [blame] | 217 | 'variables': { |
| 218 | 'proto_in_dir': '.', |
| 219 | # Workaround to protect against gyp's pathname relativization when |
| 220 | # this file is included by modules.gyp. |
| 221 | 'proto_out_protected': 'webrtc/audio_processing', |
| 222 | 'proto_out_dir': '<(proto_out_protected)', |
| 223 | }, |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 224 | 'includes': ['../../build/protoc.gypi',], |
| 225 | }, |
| 226 | ], |
| 227 | }], |
| 228 | ['target_arch=="ia32" or target_arch=="x64"', { |
| 229 | 'targets': [ |
| 230 | { |
| 231 | 'target_name': 'audio_processing_sse2', |
| 232 | 'type': 'static_library', |
| 233 | 'sources': [ |
| 234 | 'aec/aec_core_sse2.c', |
| 235 | 'aec/aec_rdft_sse2.c', |
| 236 | ], |
Henrik Kjellander | f2497cf | 2015-04-16 08:57:16 +0200 | [diff] [blame] | 237 | 'conditions': [ |
| 238 | ['os_posix==1', { |
| 239 | 'cflags': [ '-msse2', ], |
| 240 | 'xcode_settings': { |
| 241 | 'OTHER_CFLAGS': [ '-msse2', ], |
| 242 | }, |
| 243 | }], |
| 244 | ], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 245 | }, |
| 246 | ], |
| 247 | }], |
andrew@webrtc.org | 1090a6e | 2014-12-18 21:36:18 +0000 | [diff] [blame] | 248 | ['(target_arch=="arm" and arm_version>=7) or target_arch=="arm64"', { |
kma@webrtc.org | 1245402 | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 249 | 'targets': [{ |
| 250 | 'target_name': 'audio_processing_neon', |
| 251 | 'type': 'static_library', |
| 252 | 'includes': ['../../build/arm_neon.gypi',], |
| 253 | 'dependencies': [ |
andrew@webrtc.org | 3423537 | 2013-04-30 23:43:26 +0000 | [diff] [blame] | 254 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
kma@webrtc.org | 1245402 | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 255 | ], |
| 256 | 'sources': [ |
bjornv@webrtc.org | af6f02f | 2014-06-13 14:50:23 +0000 | [diff] [blame] | 257 | 'aec/aec_core_neon.c', |
bjornv@webrtc.org | cd9b90a | 2014-06-30 12:05:18 +0000 | [diff] [blame] | 258 | 'aec/aec_rdft_neon.c', |
kma@webrtc.org | 1245402 | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 259 | 'aecm/aecm_core_neon.c', |
| 260 | 'ns/nsx_core_neon.c', |
| 261 | ], |
| 262 | 'conditions': [ |
andrew@webrtc.org | af7fdfc | 2014-08-29 17:41:13 +0000 | [diff] [blame] | 263 | # Disable LTO in audio_processing_neon target due to compiler bug |
| 264 | ['use_lto==1', { |
| 265 | 'cflags!': [ |
| 266 | '-flto', |
| 267 | '-ffat-lto-objects', |
| 268 | ], |
| 269 | }], |
kma@webrtc.org | 1245402 | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 270 | ], |
| 271 | }], |
andrew@webrtc.org | 7bf2646 | 2011-12-03 00:03:31 +0000 | [diff] [blame] | 272 | }], |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 273 | ], |
| 274 | } |