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 | { |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 10 | 'targets': [ |
| 11 | { |
| 12 | 'target_name': 'audio_processing', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 13 | 'type': 'static_library', |
| 14 | 'variables': { |
| 15 | # Outputs some low-level debug files. |
| 16 | 'aec_debug_dump%': 0, |
| 17 | }, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 18 | 'dependencies': [ |
kjellander@webrtc.org | 0403ef4 | 2011-11-17 08:35:47 +0000 | [diff] [blame] | 19 | '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing', |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 20 | '<(webrtc_root)/common_audio/common_audio.gyp:vad', |
| 21 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 22 | ], |
| 23 | 'include_dirs': [ |
| 24 | '../interface', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 25 | 'aec/include', |
| 26 | 'aecm/include', |
| 27 | 'agc/include', |
| 28 | 'include', |
| 29 | 'ns/include', |
| 30 | 'utility', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 31 | ], |
| 32 | 'direct_dependent_settings': { |
| 33 | 'include_dirs': [ |
| 34 | '../interface', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 35 | 'include', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 36 | ], |
| 37 | }, |
| 38 | 'sources': [ |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 39 | 'aec/include/echo_cancellation.h', |
| 40 | 'aec/echo_cancellation.c', |
| 41 | 'aec/echo_cancellation_internal.h', |
| 42 | 'aec/aec_core.h', |
| 43 | 'aec/aec_core.c', |
| 44 | 'aec/aec_rdft.h', |
| 45 | 'aec/aec_rdft.c', |
| 46 | 'aec/aec_resampler.h', |
| 47 | 'aec/aec_resampler.c', |
| 48 | 'aecm/include/echo_control_mobile.h', |
| 49 | 'aecm/echo_control_mobile.c', |
| 50 | 'aecm/aecm_core.c', |
| 51 | 'aecm/aecm_core.h', |
| 52 | 'agc/include/gain_control.h', |
| 53 | 'agc/analog_agc.c', |
| 54 | 'agc/analog_agc.h', |
| 55 | 'agc/digital_agc.c', |
| 56 | 'agc/digital_agc.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 57 | 'audio_buffer.cc', |
| 58 | 'audio_buffer.h', |
| 59 | 'audio_processing_impl.cc', |
| 60 | 'audio_processing_impl.h', |
| 61 | 'echo_cancellation_impl.cc', |
| 62 | 'echo_cancellation_impl.h', |
| 63 | 'echo_control_mobile_impl.cc', |
| 64 | 'echo_control_mobile_impl.h', |
| 65 | 'gain_control_impl.cc', |
| 66 | 'gain_control_impl.h', |
| 67 | 'high_pass_filter_impl.cc', |
| 68 | 'high_pass_filter_impl.h', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 69 | 'include/audio_processing.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 70 | 'level_estimator_impl.cc', |
| 71 | 'level_estimator_impl.h', |
| 72 | 'noise_suppression_impl.cc', |
| 73 | 'noise_suppression_impl.h', |
| 74 | 'splitting_filter.cc', |
| 75 | 'splitting_filter.h', |
| 76 | 'processing_component.cc', |
| 77 | 'processing_component.h', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 78 | 'utility/delay_estimator.c', |
| 79 | 'utility/delay_estimator.h', |
| 80 | 'utility/delay_estimator_internal.h', |
| 81 | 'utility/delay_estimator_wrapper.c', |
| 82 | 'utility/delay_estimator_wrapper.h', |
| 83 | 'utility/fft4g.c', |
| 84 | 'utility/fft4g.h', |
| 85 | 'utility/ring_buffer.c', |
| 86 | 'utility/ring_buffer.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 87 | 'voice_detection_impl.cc', |
| 88 | 'voice_detection_impl.h', |
| 89 | ], |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 90 | 'conditions': [ |
| 91 | ['aec_debug_dump==1', { |
| 92 | 'defines': ['WEBRTC_AEC_DEBUG_DUMP',], |
| 93 | }], |
| 94 | ['enable_protobuf==1', { |
| 95 | 'dependencies': ['audioproc_debug_proto'], |
| 96 | 'defines': ['WEBRTC_AUDIOPROC_DEBUG_DUMP'], |
| 97 | }], |
| 98 | ['prefer_fixed_point==1', { |
| 99 | 'defines': ['WEBRTC_NS_FIXED'], |
| 100 | 'sources': [ |
| 101 | 'ns/include/noise_suppression_x.h', |
| 102 | 'ns/noise_suppression_x.c', |
| 103 | 'ns/nsx_core.c', |
| 104 | 'ns/nsx_core.h', |
| 105 | 'ns/nsx_defines.h', |
| 106 | ], |
| 107 | }, { |
| 108 | 'defines': ['WEBRTC_NS_FLOAT'], |
| 109 | 'sources': [ |
| 110 | 'ns/defines.h', |
| 111 | 'ns/include/noise_suppression.h', |
| 112 | 'ns/noise_suppression.c', |
| 113 | 'ns/ns_core.c', |
| 114 | 'ns/ns_core.h', |
| 115 | 'ns/windows_private.h', |
| 116 | ], |
| 117 | }], |
| 118 | ['target_arch=="ia32" or target_arch=="x64"', { |
| 119 | 'dependencies': ['audio_processing_sse2',], |
| 120 | }], |
| 121 | ['target_arch=="arm" and armv7==1', { |
| 122 | 'dependencies': ['audio_processing_neon',], |
| 123 | }], |
| 124 | ], |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 125 | }, |
andrew@webrtc.org | 7bf2646 | 2011-12-03 00:03:31 +0000 | [diff] [blame] | 126 | ], |
| 127 | 'conditions': [ |
| 128 | ['enable_protobuf==1', { |
| 129 | 'targets': [ |
| 130 | { |
| 131 | 'target_name': 'audioproc_debug_proto', |
| 132 | 'type': 'static_library', |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 133 | 'sources': ['debug.proto',], |
andrew@webrtc.org | 7bf2646 | 2011-12-03 00:03:31 +0000 | [diff] [blame] | 134 | 'variables': { |
| 135 | 'proto_in_dir': '.', |
| 136 | # Workaround to protect against gyp's pathname relativization when |
| 137 | # this file is included by modules.gyp. |
| 138 | 'proto_out_protected': 'webrtc/audio_processing', |
| 139 | 'proto_out_dir': '<(proto_out_protected)', |
| 140 | }, |
andrew@webrtc.org | 8c4696c | 2012-09-08 19:27:24 +0000 | [diff] [blame] | 141 | 'includes': ['../../build/protoc.gypi',], |
| 142 | }, |
| 143 | ], |
| 144 | }], |
| 145 | ['target_arch=="ia32" or target_arch=="x64"', { |
| 146 | 'targets': [ |
| 147 | { |
| 148 | 'target_name': 'audio_processing_sse2', |
| 149 | 'type': 'static_library', |
| 150 | 'sources': [ |
| 151 | 'aec/aec_core_sse2.c', |
| 152 | 'aec/aec_rdft_sse2.c', |
| 153 | ], |
| 154 | 'cflags': ['-msse2',], |
| 155 | 'xcode_settings': { |
| 156 | 'OTHER_CFLAGS': ['-msse2',], |
| 157 | }, |
| 158 | }, |
| 159 | ], |
| 160 | }], |
| 161 | ['target_arch=="arm" and armv7==1', { |
kma@webrtc.org | 1245402 | 2012-11-07 22:34:31 +0000 | [diff] [blame^] | 162 | 'targets': [{ |
| 163 | 'target_name': 'audio_processing_neon', |
| 164 | 'type': 'static_library', |
| 165 | 'includes': ['../../build/arm_neon.gypi',], |
| 166 | 'dependencies': [ |
| 167 | '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing', |
| 168 | ], |
| 169 | 'sources': [ |
| 170 | 'aecm/aecm_core_neon.c', |
| 171 | 'ns/nsx_core_neon.c', |
| 172 | ], |
| 173 | 'conditions': [ |
| 174 | ['OS=="android"', { |
| 175 | 'dependencies': [ |
| 176 | 'audio_processing_offsets', |
| 177 | ], |
| 178 | # TODO(kma): port this block from Android into other build systems. |
| 179 | 'sources': [ |
| 180 | 'aecm/aecm_core_neon.S', |
| 181 | 'ns/nsx_core_neon.S', |
| 182 | ], |
| 183 | 'sources!': [ |
| 184 | 'aecm/aecm_core_neon.c', |
| 185 | 'ns/nsx_core_neon.c', |
| 186 | ], |
| 187 | 'includes!': ['../../build/arm_neon.gypi',], |
| 188 | }], |
| 189 | ], |
| 190 | }], |
| 191 | 'conditions': [ |
| 192 | ['OS=="android"', { |
| 193 | 'targets': [{ |
| 194 | 'target_name': 'audio_processing_offsets', |
| 195 | 'type': 'none', |
| 196 | 'sources': [ |
| 197 | 'aecm/aecm_core_neon_offsets.c', |
| 198 | 'ns/nsx_core_neon_offsets.c', |
| 199 | ], |
| 200 | 'variables': { |
| 201 | 'asm_header_dir': 'asm_offsets', |
| 202 | }, |
| 203 | 'includes': ['../../build/generate_asm_header.gypi',], |
| 204 | }], |
| 205 | }], |
andrew@webrtc.org | 7bf2646 | 2011-12-03 00:03:31 +0000 | [diff] [blame] | 206 | ], |
| 207 | }], |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 208 | ], |
| 209 | } |