You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.3 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. # Copyright (c) 2018 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. import("../../../webrtc.gni")
  9. rtc_library("aec") {
  10. configs += [ "..:apm_debug_dump" ]
  11. sources = [
  12. "aec_resampler.cc",
  13. "aec_resampler.h",
  14. "echo_cancellation.cc",
  15. "echo_cancellation.h",
  16. ]
  17. deps = [
  18. ":aec_core",
  19. "..:apm_logging",
  20. "../../../common_audio:common_audio_c",
  21. "../../../rtc_base:checks",
  22. "../../../rtc_base:rtc_base_approved",
  23. ]
  24. }
  25. rtc_library("aec_core") {
  26. configs += [ "..:apm_debug_dump" ]
  27. sources = [
  28. "aec_common.h",
  29. "aec_core.cc",
  30. "aec_core.h",
  31. "aec_core_optimized_methods.h",
  32. ]
  33. deps = [
  34. "..:apm_logging",
  35. "../../../common_audio:common_audio_c",
  36. "../../../rtc_base:checks",
  37. "../../../rtc_base:rtc_base_approved",
  38. "../../../rtc_base/system:arch",
  39. "../../../system_wrappers:cpu_features_api",
  40. "../../../system_wrappers:metrics",
  41. "../utility:block_mean_calculator",
  42. "../utility:legacy_delay_estimator",
  43. "../utility:ooura_fft",
  44. ]
  45. cflags = []
  46. if (current_cpu == "x86" || current_cpu == "x64") {
  47. sources += [ "aec_core_sse2.cc" ]
  48. if (is_posix || is_fuchsia) {
  49. cflags += [ "-msse2" ]
  50. }
  51. }
  52. if (rtc_build_with_neon) {
  53. sources += [ "aec_core_neon.cc" ]
  54. if (current_cpu != "arm64") {
  55. # Enable compilation for the NEON instruction set.
  56. suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
  57. cflags += [ "-mfpu=neon" ]
  58. }
  59. deps += [ "../../../common_audio" ]
  60. }
  61. if (current_cpu == "mipsel" && mips_float_abi == "hard") {
  62. sources += [ "aec_core_mips.cc" ]
  63. }
  64. }
  65. if (rtc_include_tests) {
  66. rtc_library("aec_unittests") {
  67. testonly = true
  68. sources = [
  69. "echo_cancellation_unittest.cc",
  70. "system_delay_unittest.cc",
  71. ]
  72. deps = [
  73. ":aec",
  74. ":aec_core",
  75. "../../../rtc_base:checks",
  76. "../../../rtc_base:rtc_base_approved",
  77. "../../../test:test_support",
  78. "//testing/gtest",
  79. ]
  80. }
  81. }