andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 1 | # Copyright (c) 2012 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 | { |
andrew@webrtc.org | 731a87b | 2013-11-11 17:20:27 +0000 | [diff] [blame] | 10 | 'variables': { |
| 11 | 'audio_processing_dependencies': [ |
| 12 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
| 13 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
| 14 | ], |
| 15 | }, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 16 | 'targets': [ |
| 17 | { |
| 18 | 'target_name': 'audio_processing', |
| 19 | 'type': 'static_library', |
| 20 | 'variables': { |
| 21 | # Outputs some low-level debug files. |
| 22 | 'aec_debug_dump%': 0, |
andrew@webrtc.org | 8ddec2c | 2013-09-25 23:17:38 +0000 | [diff] [blame] | 23 | |
| 24 | # Disables the usual mode where we trust the reported system delay |
| 25 | # values the AEC receives. The corresponding define is set appropriately |
| 26 | # in the code, but it can be force-enabled here for testing. |
| 27 | 'aec_untrusted_delay_for_testing%': 0, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 28 | }, |
| 29 | 'dependencies': [ |
andrew@webrtc.org | 731a87b | 2013-11-11 17:20:27 +0000 | [diff] [blame] | 30 | '<@(audio_processing_dependencies)', |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 31 | ], |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 32 | 'sources': [ |
| 33 | 'aec/include/echo_cancellation.h', |
| 34 | 'aec/echo_cancellation.c', |
| 35 | 'aec/echo_cancellation_internal.h', |
| 36 | 'aec/aec_core.h', |
| 37 | 'aec/aec_core.c', |
bjornv@webrtc.org | 3a4f3f1 | 2013-02-20 22:38:47 +0000 | [diff] [blame] | 38 | 'aec/aec_core_internal.h', |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 39 | 'aec/aec_rdft.h', |
| 40 | 'aec/aec_rdft.c', |
| 41 | 'aec/aec_resampler.h', |
| 42 | 'aec/aec_resampler.c', |
| 43 | 'aecm/include/echo_control_mobile.h', |
| 44 | 'aecm/echo_control_mobile.c', |
| 45 | 'aecm/aecm_core.c', |
| 46 | 'aecm/aecm_core.h', |
| 47 | 'agc/include/gain_control.h', |
| 48 | 'agc/analog_agc.c', |
| 49 | 'agc/analog_agc.h', |
| 50 | 'agc/digital_agc.c', |
| 51 | 'agc/digital_agc.h', |
| 52 | 'audio_buffer.cc', |
| 53 | 'audio_buffer.h', |
| 54 | 'audio_processing_impl.cc', |
| 55 | 'audio_processing_impl.h', |
| 56 | 'echo_cancellation_impl.cc', |
| 57 | 'echo_cancellation_impl.h', |
andrew@webrtc.org | 25613ea | 2013-07-25 18:28:29 +0000 | [diff] [blame] | 58 | 'echo_cancellation_impl_wrapper.h', |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 59 | 'echo_control_mobile_impl.cc', |
| 60 | 'echo_control_mobile_impl.h', |
| 61 | 'gain_control_impl.cc', |
| 62 | 'gain_control_impl.h', |
| 63 | 'high_pass_filter_impl.cc', |
| 64 | 'high_pass_filter_impl.h', |
| 65 | 'include/audio_processing.h', |
| 66 | 'level_estimator_impl.cc', |
| 67 | 'level_estimator_impl.h', |
| 68 | 'noise_suppression_impl.cc', |
| 69 | 'noise_suppression_impl.h', |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 70 | 'processing_component.cc', |
| 71 | 'processing_component.h', |
henrikg@webrtc.org | c13a537 | 2014-01-30 09:50:46 +0000 | [diff] [blame] | 72 | 'typing_detection.cc', |
| 73 | 'typing_detection.h', |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 74 | 'utility/delay_estimator.c', |
| 75 | 'utility/delay_estimator.h', |
| 76 | 'utility/delay_estimator_internal.h', |
| 77 | 'utility/delay_estimator_wrapper.c', |
| 78 | 'utility/delay_estimator_wrapper.h', |
| 79 | 'utility/fft4g.c', |
| 80 | 'utility/fft4g.h', |
| 81 | 'utility/ring_buffer.c', |
| 82 | 'utility/ring_buffer.h', |
| 83 | 'voice_detection_impl.cc', |
| 84 | 'voice_detection_impl.h', |
| 85 | ], |
| 86 | 'conditions': [ |
| 87 | ['aec_debug_dump==1', { |
| 88 | 'defines': ['WEBRTC_AEC_DEBUG_DUMP',], |
| 89 | }], |
andrew@webrtc.org | 8ddec2c | 2013-09-25 23:17:38 +0000 | [diff] [blame] | 90 | ['aec_untrusted_delay_for_testing==1', { |
| 91 | 'defines': ['WEBRTC_UNTRUSTED_DELAY',], |
| 92 | }], |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 93 | ['enable_protobuf==1', { |
| 94 | 'dependencies': ['audioproc_debug_proto'], |
| 95 | 'defines': ['WEBRTC_AUDIOPROC_DEBUG_DUMP'], |
| 96 | }], |
| 97 | ['prefer_fixed_point==1', { |
| 98 | 'defines': ['WEBRTC_NS_FIXED'], |
| 99 | 'sources': [ |
| 100 | 'ns/include/noise_suppression_x.h', |
| 101 | 'ns/noise_suppression_x.c', |
| 102 | 'ns/nsx_core.c', |
| 103 | 'ns/nsx_core.h', |
| 104 | 'ns/nsx_defines.h', |
| 105 | ], |
andrew@webrtc.org | 556423f | 2014-01-16 07:22:01 +0000 | [diff] [blame] | 106 | 'conditions': [ |
| 107 | ['target_arch=="mipsel"', { |
| 108 | 'sources': [ |
| 109 | 'ns/nsx_core_mips.c', |
| 110 | ], |
| 111 | }, { |
| 112 | 'sources': [ |
| 113 | 'ns/nsx_core_c.c', |
| 114 | ], |
| 115 | }], |
| 116 | ], |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 117 | }, { |
| 118 | 'defines': ['WEBRTC_NS_FLOAT'], |
| 119 | 'sources': [ |
| 120 | 'ns/defines.h', |
| 121 | 'ns/include/noise_suppression.h', |
| 122 | 'ns/noise_suppression.c', |
| 123 | 'ns/ns_core.c', |
| 124 | 'ns/ns_core.h', |
| 125 | 'ns/windows_private.h', |
| 126 | ], |
| 127 | }], |
| 128 | ['target_arch=="ia32" or target_arch=="x64"', { |
| 129 | 'dependencies': ['audio_processing_sse2',], |
| 130 | }], |
kjellander@webrtc.org | 2cafda4 | 2013-12-10 09:26:07 +0000 | [diff] [blame] | 131 | ['(target_arch=="arm" and arm_version==7) or target_arch=="armv7"', { |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 132 | 'dependencies': ['audio_processing_neon',], |
| 133 | }], |
andrew@webrtc.org | ff4fc2b | 2013-11-11 20:10:01 +0000 | [diff] [blame] | 134 | ['target_arch=="mipsel"', { |
| 135 | 'sources': [ |
| 136 | 'aecm/aecm_core_mips.c', |
| 137 | ], |
| 138 | }, { |
| 139 | 'sources': [ |
| 140 | 'aecm/aecm_core_c.c', |
| 141 | ], |
| 142 | }], |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 143 | ], |
andrew@webrtc.org | 2be6c3e | 2013-01-29 06:45:22 +0000 | [diff] [blame] | 144 | # TODO(jschuh): Bug 1348: fix size_t to int truncations. |
| 145 | 'msvs_disabled_warnings': [ 4267, ], |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 146 | }, |
| 147 | ], |
| 148 | 'conditions': [ |
| 149 | ['enable_protobuf==1', { |
| 150 | 'targets': [ |
| 151 | { |
| 152 | 'target_name': 'audioproc_debug_proto', |
| 153 | 'type': 'static_library', |
| 154 | 'sources': ['debug.proto',], |
| 155 | 'variables': { |
| 156 | 'proto_in_dir': '.', |
| 157 | # Workaround to protect against gyp's pathname relativization when |
| 158 | # this file is included by modules.gyp. |
| 159 | 'proto_out_protected': 'webrtc/audio_processing', |
| 160 | 'proto_out_dir': '<(proto_out_protected)', |
| 161 | }, |
| 162 | 'includes': ['../../build/protoc.gypi',], |
| 163 | }, |
| 164 | ], |
| 165 | }], |
| 166 | ['target_arch=="ia32" or target_arch=="x64"', { |
| 167 | 'targets': [ |
| 168 | { |
| 169 | 'target_name': 'audio_processing_sse2', |
| 170 | 'type': 'static_library', |
| 171 | 'sources': [ |
| 172 | 'aec/aec_core_sse2.c', |
| 173 | 'aec/aec_rdft_sse2.c', |
| 174 | ], |
| 175 | 'cflags': ['-msse2',], |
| 176 | 'xcode_settings': { |
| 177 | 'OTHER_CFLAGS': ['-msse2',], |
| 178 | }, |
| 179 | }, |
| 180 | ], |
| 181 | }], |
kjellander@webrtc.org | 2cafda4 | 2013-12-10 09:26:07 +0000 | [diff] [blame] | 182 | ['(target_arch=="arm" and arm_version==7) or target_arch=="armv7"', { |
kma@webrtc.org | b9c67af | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 183 | 'targets': [{ |
| 184 | 'target_name': 'audio_processing_neon', |
| 185 | 'type': 'static_library', |
| 186 | 'includes': ['../../build/arm_neon.gypi',], |
| 187 | 'dependencies': [ |
andrew@webrtc.org | 166153e | 2013-04-30 23:43:26 +0000 | [diff] [blame] | 188 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
kma@webrtc.org | b9c67af | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 189 | ], |
| 190 | 'sources': [ |
| 191 | 'aecm/aecm_core_neon.c', |
| 192 | 'ns/nsx_core_neon.c', |
| 193 | ], |
| 194 | 'conditions': [ |
kma@webrtc.org | 9bf0d09 | 2013-02-23 04:16:59 +0000 | [diff] [blame] | 195 | ['OS=="android" or OS=="ios"', { |
kma@webrtc.org | b9c67af | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 196 | 'dependencies': [ |
michaelbai@google.com | 0d03514 | 2014-02-10 19:26:26 +0000 | [diff] [blame^] | 197 | 'audio_processing_offsets', |
kma@webrtc.org | b9c67af | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 198 | ], |
kma@webrtc.org | b9c67af | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 199 | 'sources': [ |
| 200 | 'aecm/aecm_core_neon.S', |
| 201 | 'ns/nsx_core_neon.S', |
| 202 | ], |
| 203 | 'sources!': [ |
| 204 | 'aecm/aecm_core_neon.c', |
| 205 | 'ns/nsx_core_neon.c', |
| 206 | ], |
| 207 | 'includes!': ['../../build/arm_neon.gypi',], |
| 208 | }], |
| 209 | ], |
| 210 | }], |
michaelbai@google.com | 0d03514 | 2014-02-10 19:26:26 +0000 | [diff] [blame^] | 211 | 'conditions': [ |
| 212 | ['OS=="android" or OS=="ios"', { |
| 213 | 'targets': [{ |
| 214 | 'target_name': 'audio_processing_offsets', |
| 215 | 'type': 'none', |
| 216 | 'sources': [ |
| 217 | 'aecm/aecm_core_neon_offsets.c', |
| 218 | 'ns/nsx_core_neon_offsets.c', |
| 219 | ], |
| 220 | 'variables': { |
| 221 | 'asm_header_dir': 'asm_offsets', |
| 222 | }, |
| 223 | 'includes': ['../../build/generate_asm_header.gypi',], |
| 224 | }], |
| 225 | }], |
| 226 | ], |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 227 | }], |
| 228 | ], |
| 229 | } |