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. |
bjornv@webrtc.org | ea29787 | 2014-09-23 11:21:39 +0000 | [diff] [blame] | 19 | 'agc_debug_dump%': 0, |
andrew@webrtc.org | 1760a17 | 2013-09-25 23:17:38 +0000 | [diff] [blame] | 20 | |
| 21 | # Disables the usual mode where we trust the reported system delay |
| 22 | # values the AEC receives. The corresponding define is set appropriately |
| 23 | # in the code, but it can be force-enabled here for testing. |
| 24 | 'aec_untrusted_delay_for_testing%': 0, |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 25 | }, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 26 | 'dependencies': [ |
aluebs@webrtc.org | 0c39e91 | 2014-12-18 22:22:04 +0000 | [diff] [blame] | 27 | '<(webrtc_root)/base/base.gyp:rtc_base_approved', |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 28 | '<(webrtc_root)/common.gyp:webrtc_common', |
aluebs@webrtc.org | 0c39e91 | 2014-12-18 22:22:04 +0000 | [diff] [blame] | 29 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
Zeke Chin | 786dbdc | 2015-06-10 13:45:08 -0700 | [diff] [blame] | 30 | '<(webrtc_root)/modules/modules.gyp:isac', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 31 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 32 | ], |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 33 | 'sources': [ |
peah | 8df5d4f | 2016-02-23 14:34:59 -0800 | [diff] [blame] | 34 | 'aec/aec_core.cc', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 35 | 'aec/aec_core.h', |
peah | e687f78 | 2016-05-09 03:57:33 -0700 | [diff] [blame] | 36 | 'aec/aec_core_optimized_methods.h', |
peah | 88950cf | 2016-03-04 00:12:40 -0800 | [diff] [blame] | 37 | 'aec/aec_resampler.cc', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 38 | 'aec/aec_resampler.h', |
peah | 8df5d4f | 2016-02-23 14:34:59 -0800 | [diff] [blame] | 39 | 'aec/echo_cancellation.cc', |
Henrik Kjellander | 9b72af9 | 2015-11-11 20:16:11 +0100 | [diff] [blame] | 40 | 'aec/echo_cancellation.h', |
peah | 2704512 | 2016-04-10 22:38:14 -0700 | [diff] [blame] | 41 | 'aecm/aecm_core.cc', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 42 | 'aecm/aecm_core.h', |
peah | 2704512 | 2016-04-10 22:38:14 -0700 | [diff] [blame] | 43 | 'aecm/echo_control_mobile.cc', |
Henrik Kjellander | 9b72af9 | 2015-11-11 20:16:11 +0100 | [diff] [blame] | 44 | 'aecm/echo_control_mobile.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 45 | 'agc/agc.cc', |
| 46 | 'agc/agc.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 47 | 'agc/agc_manager_direct.cc', |
| 48 | 'agc/agc_manager_direct.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 49 | 'agc/gain_map_internal.h', |
peah | bbe4233 | 2016-06-08 06:42:02 -0700 | [diff] [blame] | 50 | 'agc/loudness_histogram.cc', |
| 51 | 'agc/loudness_histogram.h', |
bjornv@webrtc.org | b395a5e | 2014-12-16 10:38:10 +0000 | [diff] [blame] | 52 | 'agc/legacy/analog_agc.c', |
| 53 | 'agc/legacy/analog_agc.h', |
| 54 | 'agc/legacy/digital_agc.c', |
| 55 | 'agc/legacy/digital_agc.h', |
| 56 | 'agc/legacy/gain_control.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 57 | 'agc/utility.cc', |
| 58 | 'agc/utility.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 59 | 'audio_buffer.cc', |
| 60 | 'audio_buffer.h', |
aleloi | 5f09980 | 2016-08-25 00:45:31 -0700 | [diff] [blame] | 61 | 'audio_processing.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 62 | 'audio_processing_impl.cc', |
| 63 | 'audio_processing_impl.h', |
aluebs | 4a66e4a | 2015-10-19 18:02:39 -0700 | [diff] [blame] | 64 | 'beamformer/array_util.cc', |
| 65 | 'beamformer/array_util.h', |
aluebs@webrtc.org | 0c39e91 | 2014-12-18 22:22:04 +0000 | [diff] [blame] | 66 | 'beamformer/complex_matrix.h', |
| 67 | 'beamformer/covariance_matrix_generator.cc', |
| 68 | 'beamformer/covariance_matrix_generator.h', |
| 69 | 'beamformer/matrix.h', |
andrew@webrtc.org | bd8c865 | 2015-03-20 00:28:22 +0000 | [diff] [blame] | 70 | 'beamformer/nonlinear_beamformer.cc', |
| 71 | 'beamformer/nonlinear_beamformer.h', |
andrew@webrtc.org | ddbb8a2 | 2014-04-22 21:00:04 +0000 | [diff] [blame] | 72 | 'common.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 73 | 'echo_cancellation_impl.cc', |
| 74 | 'echo_cancellation_impl.h', |
| 75 | 'echo_control_mobile_impl.cc', |
| 76 | 'echo_control_mobile_impl.h', |
peah | be61562 | 2016-02-13 16:40:47 -0800 | [diff] [blame] | 77 | 'gain_control_for_experimental_agc.cc', |
| 78 | 'gain_control_for_experimental_agc.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 79 | 'gain_control_impl.cc', |
| 80 | 'gain_control_impl.h', |
| 81 | 'high_pass_filter_impl.cc', |
| 82 | 'high_pass_filter_impl.h', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 83 | 'include/audio_processing.h', |
solenberg | 88499ec | 2016-09-07 07:34:41 -0700 | [diff] [blame] | 84 | 'include/config.cc', |
| 85 | 'include/config.h', |
peah | ca4cac7 | 2016-06-29 15:26:12 -0700 | [diff] [blame] | 86 | 'level_controller/biquad_filter.cc', |
| 87 | 'level_controller/biquad_filter.h', |
| 88 | 'level_controller/down_sampler.cc', |
| 89 | 'level_controller/down_sampler.h', |
| 90 | 'level_controller/gain_applier.cc', |
| 91 | 'level_controller/gain_applier.h', |
| 92 | 'level_controller/gain_selector.cc', |
| 93 | 'level_controller/gain_selector.h', |
| 94 | 'level_controller/lc_constants.h', |
| 95 | 'level_controller/level_controller.cc', |
| 96 | 'level_controller/level_controller.h', |
| 97 | 'level_controller/noise_spectrum_estimator.cc', |
| 98 | 'level_controller/noise_spectrum_estimator.h', |
| 99 | 'level_controller/noise_level_estimator.cc', |
| 100 | 'level_controller/noise_level_estimator.h', |
| 101 | 'level_controller/peak_level_estimator.cc', |
| 102 | 'level_controller/peak_level_estimator.h', |
| 103 | 'level_controller/saturating_gain_estimator.cc', |
| 104 | 'level_controller/saturating_gain_estimator.h', |
| 105 | 'level_controller/signal_classifier.cc', |
| 106 | 'level_controller/signal_classifier.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 107 | 'level_estimator_impl.cc', |
| 108 | 'level_estimator_impl.h', |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 109 | 'logging/apm_data_dumper.cc', |
| 110 | 'logging/apm_data_dumper.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 111 | 'noise_suppression_impl.cc', |
| 112 | 'noise_suppression_impl.h', |
peah | 737f4b8 | 2016-03-10 23:05:28 -0800 | [diff] [blame] | 113 | 'render_queue_item_verifier.h', |
andrew@webrtc.org | 382c0c2 | 2014-05-05 18:22:21 +0000 | [diff] [blame] | 114 | 'rms_level.cc', |
| 115 | 'rms_level.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 116 | 'splitting_filter.cc', |
| 117 | 'splitting_filter.h', |
Alejandro Luebs | 5a92aa8 | 2015-04-27 11:34:45 -0700 | [diff] [blame] | 118 | 'three_band_filter_bank.cc', |
| 119 | 'three_band_filter_bank.h', |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 120 | 'transient/common.h', |
| 121 | 'transient/daubechies_8_wavelet_coeffs.h', |
| 122 | 'transient/dyadic_decimator.h', |
| 123 | 'transient/moving_moments.cc', |
| 124 | 'transient/moving_moments.h', |
| 125 | 'transient/transient_detector.cc', |
| 126 | 'transient/transient_detector.h', |
| 127 | 'transient/transient_suppressor.cc', |
| 128 | 'transient/transient_suppressor.h', |
| 129 | 'transient/wpd_node.cc', |
| 130 | 'transient/wpd_node.h', |
| 131 | 'transient/wpd_tree.cc', |
| 132 | 'transient/wpd_tree.h', |
henrikg@webrtc.org | c693704 | 2014-01-30 09:50:46 +0000 | [diff] [blame] | 133 | 'typing_detection.cc', |
| 134 | 'typing_detection.h', |
minyue | 84db6fa | 2016-03-24 14:36:25 -0700 | [diff] [blame] | 135 | 'utility/block_mean_calculator.cc', |
| 136 | 'utility/block_mean_calculator.h', |
peah | bdb7af6 | 2016-04-12 14:47:40 -0700 | [diff] [blame] | 137 | 'utility/delay_estimator.cc', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 138 | 'utility/delay_estimator.h', |
| 139 | 'utility/delay_estimator_internal.h', |
peah | bdb7af6 | 2016-04-12 14:47:40 -0700 | [diff] [blame] | 140 | 'utility/delay_estimator_wrapper.cc', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 141 | 'utility/delay_estimator_wrapper.h', |
peah | 81b9291 | 2016-10-06 06:46:20 -0700 | [diff] [blame^] | 142 | 'utility/ooura_fft.cc', |
| 143 | 'utility/ooura_fft.h', |
| 144 | 'utility/ooura_fft_tables_common.h', |
aluebs | ecf6b81 | 2015-06-25 12:28:48 -0700 | [diff] [blame] | 145 | 'vad/common.h', |
| 146 | 'vad/gmm.cc', |
| 147 | 'vad/gmm.h', |
| 148 | 'vad/noise_gmm_tables.h', |
| 149 | 'vad/pitch_based_vad.cc', |
| 150 | 'vad/pitch_based_vad.h', |
| 151 | 'vad/pitch_internal.cc', |
| 152 | 'vad/pitch_internal.h', |
| 153 | 'vad/pole_zero_filter.cc', |
| 154 | 'vad/pole_zero_filter.h', |
| 155 | 'vad/standalone_vad.cc', |
| 156 | 'vad/standalone_vad.h', |
| 157 | 'vad/vad_audio_proc.cc', |
| 158 | 'vad/vad_audio_proc.h', |
| 159 | 'vad/vad_audio_proc_internal.h', |
| 160 | 'vad/vad_circular_buffer.cc', |
| 161 | 'vad/vad_circular_buffer.h', |
| 162 | 'vad/voice_activity_detector.cc', |
| 163 | 'vad/voice_activity_detector.h', |
| 164 | 'vad/voice_gmm_tables.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 165 | 'voice_detection_impl.cc', |
| 166 | 'voice_detection_impl.h', |
| 167 | ], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 168 | 'conditions': [ |
peah | f28a389 | 2016-09-01 08:58:21 -0700 | [diff] [blame] | 169 | ['apm_debug_dump==1', { |
| 170 | 'defines': ['WEBRTC_APM_DEBUG_DUMP=1',], |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 171 | }, { |
peah | f28a389 | 2016-09-01 08:58:21 -0700 | [diff] [blame] | 172 | 'defines': ['WEBRTC_APM_DEBUG_DUMP=0',], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 173 | }], |
andrew@webrtc.org | 1760a17 | 2013-09-25 23:17:38 +0000 | [diff] [blame] | 174 | ['aec_untrusted_delay_for_testing==1', { |
| 175 | 'defines': ['WEBRTC_UNTRUSTED_DELAY',], |
| 176 | }], |
bjornv@webrtc.org | ea29787 | 2014-09-23 11:21:39 +0000 | [diff] [blame] | 177 | ['agc_debug_dump==1', { |
| 178 | 'defines': ['WEBRTC_AGC_DEBUG_DUMP',], |
| 179 | }], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 180 | ['enable_protobuf==1', { |
| 181 | 'dependencies': ['audioproc_debug_proto'], |
| 182 | 'defines': ['WEBRTC_AUDIOPROC_DEBUG_DUMP'], |
| 183 | }], |
peah | 1bcfce5 | 2016-08-26 07:16:04 -0700 | [diff] [blame] | 184 | ['enable_intelligibility_enhancer==1', { |
| 185 | 'defines': ['WEBRTC_INTELLIGIBILITY_ENHANCER=1',], |
| 186 | 'sources': [ |
| 187 | 'intelligibility/intelligibility_enhancer.cc', |
| 188 | 'intelligibility/intelligibility_enhancer.h', |
| 189 | 'intelligibility/intelligibility_utils.cc', |
| 190 | 'intelligibility/intelligibility_utils.h', |
| 191 | ], |
| 192 | }, { |
| 193 | 'defines': ['WEBRTC_INTELLIGIBILITY_ENHANCER=0',], |
| 194 | }], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 195 | ['prefer_fixed_point==1', { |
| 196 | 'defines': ['WEBRTC_NS_FIXED'], |
| 197 | 'sources': [ |
Henrik Kjellander | 9b72af9 | 2015-11-11 20:16:11 +0100 | [diff] [blame] | 198 | 'ns/noise_suppression_x.h', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 199 | 'ns/noise_suppression_x.c', |
| 200 | 'ns/nsx_core.c', |
| 201 | 'ns/nsx_core.h', |
| 202 | 'ns/nsx_defines.h', |
| 203 | ], |
andrew@webrtc.org | ea9392d | 2014-01-16 07:22:01 +0000 | [diff] [blame] | 204 | 'conditions': [ |
Richard Coles | d417c93 | 2015-04-09 17:36:12 +0200 | [diff] [blame] | 205 | ['target_arch=="mipsel" and mips_arch_variant!="r6"', { |
andrew@webrtc.org | ea9392d | 2014-01-16 07:22:01 +0000 | [diff] [blame] | 206 | 'sources': [ |
| 207 | 'ns/nsx_core_mips.c', |
| 208 | ], |
| 209 | }, { |
| 210 | 'sources': [ |
| 211 | 'ns/nsx_core_c.c', |
| 212 | ], |
| 213 | }], |
| 214 | ], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 215 | }, { |
| 216 | 'defines': ['WEBRTC_NS_FLOAT'], |
| 217 | 'sources': [ |
| 218 | 'ns/defines.h', |
Henrik Kjellander | 9b72af9 | 2015-11-11 20:16:11 +0100 | [diff] [blame] | 219 | 'ns/noise_suppression.h', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 220 | 'ns/noise_suppression.c', |
| 221 | 'ns/ns_core.c', |
| 222 | 'ns/ns_core.h', |
| 223 | 'ns/windows_private.h', |
| 224 | ], |
| 225 | }], |
| 226 | ['target_arch=="ia32" or target_arch=="x64"', { |
| 227 | 'dependencies': ['audio_processing_sse2',], |
| 228 | }], |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 229 | ['build_with_neon==1', { |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 230 | 'dependencies': ['audio_processing_neon',], |
| 231 | }], |
Richard Coles | d417c93 | 2015-04-09 17:36:12 +0200 | [diff] [blame] | 232 | ['target_arch=="mipsel" and mips_arch_variant!="r6"', { |
andrew@webrtc.org | e03cafa | 2013-11-11 20:10:01 +0000 | [diff] [blame] | 233 | 'sources': [ |
peah | 2704512 | 2016-04-10 22:38:14 -0700 | [diff] [blame] | 234 | 'aecm/aecm_core_mips.cc', |
andrew@webrtc.org | e03cafa | 2013-11-11 20:10:01 +0000 | [diff] [blame] | 235 | ], |
andrew@webrtc.org | c0907ef | 2014-02-21 00:13:31 +0000 | [diff] [blame] | 236 | 'conditions': [ |
kjellander@webrtc.org | 6dab6d7 | 2015-03-04 09:50:31 +0000 | [diff] [blame] | 237 | ['mips_float_abi=="hard"', { |
andrew@webrtc.org | c0907ef | 2014-02-21 00:13:31 +0000 | [diff] [blame] | 238 | 'sources': [ |
peah | 8df5d4f | 2016-02-23 14:34:59 -0800 | [diff] [blame] | 239 | 'aec/aec_core_mips.cc', |
peah | 81b9291 | 2016-10-06 06:46:20 -0700 | [diff] [blame^] | 240 | 'utility/ooura_fft_mips.cc', |
andrew@webrtc.org | c0907ef | 2014-02-21 00:13:31 +0000 | [diff] [blame] | 241 | ], |
| 242 | }], |
| 243 | ], |
andrew@webrtc.org | e03cafa | 2013-11-11 20:10:01 +0000 | [diff] [blame] | 244 | }, { |
| 245 | 'sources': [ |
peah | 2704512 | 2016-04-10 22:38:14 -0700 | [diff] [blame] | 246 | 'aecm/aecm_core_c.cc', |
andrew@webrtc.org | e03cafa | 2013-11-11 20:10:01 +0000 | [diff] [blame] | 247 | ], |
| 248 | }], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 249 | ], |
andrew@webrtc.org | 63e0964 | 2013-01-29 06:45:22 +0000 | [diff] [blame] | 250 | # TODO(jschuh): Bug 1348: fix size_t to int truncations. |
| 251 | 'msvs_disabled_warnings': [ 4267, ], |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 252 | }, |
andrew@webrtc.org | 7bf2646 | 2011-12-03 00:03:31 +0000 | [diff] [blame] | 253 | ], |
| 254 | 'conditions': [ |
| 255 | ['enable_protobuf==1', { |
| 256 | 'targets': [ |
| 257 | { |
| 258 | 'target_name': 'audioproc_debug_proto', |
| 259 | 'type': 'static_library', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 260 | 'sources': ['debug.proto',], |
andrew@webrtc.org | 7bf2646 | 2011-12-03 00:03:31 +0000 | [diff] [blame] | 261 | 'variables': { |
| 262 | 'proto_in_dir': '.', |
| 263 | # Workaround to protect against gyp's pathname relativization when |
| 264 | # this file is included by modules.gyp. |
kjellander | 78ddd73 | 2016-02-09 08:13:06 -0800 | [diff] [blame] | 265 | 'proto_out_protected': 'webrtc/modules/audio_processing', |
andrew@webrtc.org | 7bf2646 | 2011-12-03 00:03:31 +0000 | [diff] [blame] | 266 | 'proto_out_dir': '<(proto_out_protected)', |
| 267 | }, |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 268 | 'includes': ['../../build/protoc.gypi',], |
| 269 | }, |
| 270 | ], |
| 271 | }], |
| 272 | ['target_arch=="ia32" or target_arch=="x64"', { |
| 273 | 'targets': [ |
| 274 | { |
| 275 | 'target_name': 'audio_processing_sse2', |
| 276 | 'type': 'static_library', |
| 277 | 'sources': [ |
peah | 8df5d4f | 2016-02-23 14:34:59 -0800 | [diff] [blame] | 278 | 'aec/aec_core_sse2.cc', |
peah | 81b9291 | 2016-10-06 06:46:20 -0700 | [diff] [blame^] | 279 | 'utility/ooura_fft_sse2.cc', |
| 280 | 'utility/ooura_fft_tables_neon_sse2.h', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 281 | ], |
Henrik Kjellander | f2497cf | 2015-04-16 08:57:16 +0200 | [diff] [blame] | 282 | 'conditions': [ |
peah | f28a389 | 2016-09-01 08:58:21 -0700 | [diff] [blame] | 283 | ['apm_debug_dump==1', { |
| 284 | 'defines': ['WEBRTC_APM_DEBUG_DUMP=1',], |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 285 | }, { |
peah | f28a389 | 2016-09-01 08:58:21 -0700 | [diff] [blame] | 286 | 'defines': ['WEBRTC_APM_DEBUG_DUMP=0',], |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 287 | }], |
Henrik Kjellander | f2497cf | 2015-04-16 08:57:16 +0200 | [diff] [blame] | 288 | ['os_posix==1', { |
| 289 | 'cflags': [ '-msse2', ], |
| 290 | 'xcode_settings': { |
| 291 | 'OTHER_CFLAGS': [ '-msse2', ], |
| 292 | }, |
| 293 | }], |
| 294 | ], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 295 | }, |
| 296 | ], |
| 297 | }], |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 298 | ['build_with_neon==1', { |
kma@webrtc.org | 1245402 | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 299 | 'targets': [{ |
| 300 | 'target_name': 'audio_processing_neon', |
| 301 | 'type': 'static_library', |
| 302 | 'includes': ['../../build/arm_neon.gypi',], |
| 303 | 'dependencies': [ |
andrew@webrtc.org | 3423537 | 2013-04-30 23:43:26 +0000 | [diff] [blame] | 304 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
kma@webrtc.org | 1245402 | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 305 | ], |
| 306 | 'sources': [ |
peah | 8df5d4f | 2016-02-23 14:34:59 -0800 | [diff] [blame] | 307 | 'aec/aec_core_neon.cc', |
peah | 2704512 | 2016-04-10 22:38:14 -0700 | [diff] [blame] | 308 | 'aecm/aecm_core_neon.cc', |
kma@webrtc.org | 1245402 | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 309 | 'ns/nsx_core_neon.c', |
peah | 81b9291 | 2016-10-06 06:46:20 -0700 | [diff] [blame^] | 310 | 'utility/ooura_fft_neon.cc', |
| 311 | 'utility/ooura_fft_tables_neon_sse2.h', |
kma@webrtc.org | 1245402 | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 312 | ], |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 313 | 'conditions': [ |
peah | f28a389 | 2016-09-01 08:58:21 -0700 | [diff] [blame] | 314 | ['apm_debug_dump==1', { |
| 315 | 'defines': ['WEBRTC_APM_DEBUG_DUMP=1',], |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 316 | }], |
peah | f28a389 | 2016-09-01 08:58:21 -0700 | [diff] [blame] | 317 | ['apm_debug_dump==0', { |
| 318 | 'defines': ['WEBRTC_APM_DEBUG_DUMP=0',], |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 319 | }], |
| 320 | ], |
kma@webrtc.org | 1245402 | 2012-11-07 22:34:31 +0000 | [diff] [blame] | 321 | }], |
andrew@webrtc.org | 7bf2646 | 2011-12-03 00:03:31 +0000 | [diff] [blame] | 322 | }], |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 323 | ], |
| 324 | } |