OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 import("//third_party/protobuf/proto_library.gni") | 10 import("//third_party/protobuf/proto_library.gni") |
11 import("../../build/webrtc.gni") | 11 import("../../build/webrtc.gni") |
12 | 12 |
13 declare_args() { | 13 declare_args() { |
14 # Outputs some low-level debug files. | 14 # Outputs some low-level debug files. |
15 aec_debug_dump = false | 15 aec_debug_dump = false |
16 | 16 |
17 # Disables the usual mode where we trust the reported system delay | 17 # Disables the usual mode where we trust the reported system delay |
18 # values the AEC receives. The corresponding define is set appropriately | 18 # values the AEC receives. The corresponding define is set appropriately |
19 # in the code, but it can be force-enabled here for testing. | 19 # in the code, but it can be force-enabled here for testing. |
20 aec_untrusted_delay_for_testing = false | 20 aec_untrusted_delay_for_testing = false |
21 } | 21 } |
22 | 22 |
23 source_set("audio_processing") { | 23 source_set("audio_processing") { |
24 sources = [ | 24 sources = [ |
25 "aec/aec_core.c", | 25 "aec/aec_core.cc", |
26 "aec/aec_core.h", | 26 "aec/aec_core.h", |
27 "aec/aec_core_internal.h", | 27 "aec/aec_core_internal.h", |
28 "aec/aec_rdft.c", | 28 "aec/aec_rdft.c", |
29 "aec/aec_rdft.h", | 29 "aec/aec_rdft.h", |
30 "aec/aec_resampler.c", | 30 "aec/aec_resampler.c", |
31 "aec/aec_resampler.h", | 31 "aec/aec_resampler.h", |
32 "aec/echo_cancellation.c", | 32 "aec/echo_cancellation.cc", |
33 "aec/echo_cancellation.h", | 33 "aec/echo_cancellation.h", |
34 "aec/echo_cancellation_internal.h", | 34 "aec/echo_cancellation_internal.h", |
35 "aecm/aecm_core.c", | 35 "aecm/aecm_core.c", |
36 "aecm/aecm_core.h", | 36 "aecm/aecm_core.h", |
37 "aecm/echo_control_mobile.c", | 37 "aecm/echo_control_mobile.c", |
38 "aecm/echo_control_mobile.h", | 38 "aecm/echo_control_mobile.h", |
39 "agc/agc.cc", | 39 "agc/agc.cc", |
40 "agc/agc.h", | 40 "agc/agc.h", |
41 "agc/agc_manager_direct.cc", | 41 "agc/agc_manager_direct.cc", |
42 "agc/agc_manager_direct.h", | 42 "agc/agc_manager_direct.h", |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 } | 191 } |
192 | 192 |
193 if (rtc_build_with_neon) { | 193 if (rtc_build_with_neon) { |
194 deps += [ ":audio_processing_neon" ] | 194 deps += [ ":audio_processing_neon" ] |
195 } | 195 } |
196 | 196 |
197 if (current_cpu == "mipsel") { | 197 if (current_cpu == "mipsel") { |
198 sources += [ "aecm/aecm_core_mips.c" ] | 198 sources += [ "aecm/aecm_core_mips.c" ] |
199 if (mips_float_abi == "hard") { | 199 if (mips_float_abi == "hard") { |
200 sources += [ | 200 sources += [ |
201 "aec/aec_core_mips.c", | 201 "aec/aec_core_mips.cc", |
202 "aec/aec_rdft_mips.c", | 202 "aec/aec_rdft_mips.c", |
203 ] | 203 ] |
204 } | 204 } |
205 } else { | 205 } else { |
206 sources += [ "aecm/aecm_core_c.c" ] | 206 sources += [ "aecm/aecm_core_c.c" ] |
207 } | 207 } |
208 | 208 |
209 if (is_win) { | 209 if (is_win) { |
210 cflags = [ | 210 cflags = [ |
211 # TODO(jschuh): Bug 1348: fix this warning. | 211 # TODO(jschuh): Bug 1348: fix this warning. |
(...skipping 20 matching lines...) Expand all Loading... |
232 "debug.proto", | 232 "debug.proto", |
233 ] | 233 ] |
234 | 234 |
235 proto_out_dir = "webrtc/modules/audio_processing" | 235 proto_out_dir = "webrtc/modules/audio_processing" |
236 } | 236 } |
237 } | 237 } |
238 | 238 |
239 if (current_cpu == "x86" || current_cpu == "x64") { | 239 if (current_cpu == "x86" || current_cpu == "x64") { |
240 source_set("audio_processing_sse2") { | 240 source_set("audio_processing_sse2") { |
241 sources = [ | 241 sources = [ |
242 "aec/aec_core_sse2.c", | 242 "aec/aec_core_sse2.cc", |
243 "aec/aec_rdft_sse2.c", | 243 "aec/aec_rdft_sse2.c", |
244 ] | 244 ] |
245 | 245 |
246 if (is_posix) { | 246 if (is_posix) { |
247 cflags = [ "-msse2" ] | 247 cflags = [ "-msse2" ] |
248 } | 248 } |
249 | 249 |
250 configs += [ "../..:common_config" ] | 250 configs += [ "../..:common_config" ] |
251 public_configs = [ "../..:common_inherited_config" ] | 251 public_configs = [ "../..:common_inherited_config" ] |
252 } | 252 } |
253 } | 253 } |
254 | 254 |
255 if (rtc_build_with_neon) { | 255 if (rtc_build_with_neon) { |
256 source_set("audio_processing_neon") { | 256 source_set("audio_processing_neon") { |
257 sources = [ | 257 sources = [ |
258 "aec/aec_core_neon.c", | 258 "aec/aec_core_neon.cc", |
259 "aec/aec_rdft_neon.c", | 259 "aec/aec_rdft_neon.c", |
260 "aecm/aecm_core_neon.c", | 260 "aecm/aecm_core_neon.c", |
261 "ns/nsx_core_neon.c", | 261 "ns/nsx_core_neon.c", |
262 ] | 262 ] |
263 | 263 |
264 if (current_cpu != "arm64") { | 264 if (current_cpu != "arm64") { |
265 # Enable compilation for the NEON instruction set. This is needed | 265 # Enable compilation for the NEON instruction set. This is needed |
266 # since //build/config/arm.gni only enables NEON for iOS, not Android. | 266 # since //build/config/arm.gni only enables NEON for iOS, not Android. |
267 # This provides the same functionality as webrtc/build/arm_neon.gypi. | 267 # This provides the same functionality as webrtc/build/arm_neon.gypi. |
268 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] | 268 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
(...skipping 10 matching lines...) Expand all Loading... |
279 } | 279 } |
280 | 280 |
281 configs += [ "../..:common_config" ] | 281 configs += [ "../..:common_config" ] |
282 public_configs = [ "../..:common_inherited_config" ] | 282 public_configs = [ "../..:common_inherited_config" ] |
283 | 283 |
284 deps = [ | 284 deps = [ |
285 "../../common_audio", | 285 "../../common_audio", |
286 ] | 286 ] |
287 } | 287 } |
288 } | 288 } |
OLD | NEW |