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