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.

156 lines
3.4 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. # Copyright (c) 2014 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("cascaded_biquad_filter") {
  10. sources = [
  11. "cascaded_biquad_filter.cc",
  12. "cascaded_biquad_filter.h",
  13. ]
  14. deps = [
  15. "../../../api:array_view",
  16. "../../../rtc_base:checks",
  17. ]
  18. }
  19. rtc_library("block_mean_calculator") {
  20. sources = [
  21. "block_mean_calculator.cc",
  22. "block_mean_calculator.h",
  23. ]
  24. deps = [
  25. "../../../rtc_base:checks",
  26. "../../../rtc_base:rtc_base_approved",
  27. ]
  28. }
  29. rtc_library("legacy_delay_estimator") {
  30. sources = [
  31. "delay_estimator.cc",
  32. "delay_estimator.h",
  33. "delay_estimator_internal.h",
  34. "delay_estimator_wrapper.cc",
  35. "delay_estimator_wrapper.h",
  36. ]
  37. deps = [
  38. "../../../rtc_base:checks",
  39. ]
  40. }
  41. rtc_library("ooura_fft") {
  42. sources = [
  43. "ooura_fft.cc",
  44. "ooura_fft.h",
  45. "ooura_fft_tables_common.h",
  46. ]
  47. deps = [
  48. "../../../rtc_base/system:arch",
  49. "../../../system_wrappers:cpu_features_api",
  50. ]
  51. cflags = []
  52. if (current_cpu == "x86" || current_cpu == "x64") {
  53. sources += [
  54. "ooura_fft_sse2.cc",
  55. "ooura_fft_tables_neon_sse2.h",
  56. ]
  57. if (is_posix || is_fuchsia) {
  58. cflags += [ "-msse2" ]
  59. }
  60. }
  61. if (rtc_build_with_neon) {
  62. sources += [
  63. "ooura_fft_neon.cc",
  64. "ooura_fft_tables_neon_sse2.h",
  65. ]
  66. deps += [ "../../../common_audio" ]
  67. if (current_cpu != "arm64") {
  68. # Enable compilation for the NEON instruction set.
  69. suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
  70. cflags += [ "-mfpu=neon" ]
  71. }
  72. }
  73. if (current_cpu == "mipsel" && mips_float_abi == "hard") {
  74. sources += [ "ooura_fft_mips.cc" ]
  75. }
  76. }
  77. rtc_library("pffft_wrapper") {
  78. visibility = [ "../*" ]
  79. sources = [
  80. "pffft_wrapper.cc",
  81. "pffft_wrapper.h",
  82. ]
  83. deps = [
  84. "../../../api:array_view",
  85. "../../../rtc_base:checks",
  86. "//third_party/pffft",
  87. ]
  88. }
  89. if (rtc_include_tests) {
  90. rtc_library("cascaded_biquad_filter_unittest") {
  91. testonly = true
  92. sources = [
  93. "cascaded_biquad_filter_unittest.cc",
  94. ]
  95. deps = [
  96. ":cascaded_biquad_filter",
  97. "../../../rtc_base:rtc_base_approved",
  98. "../../../test:test_support",
  99. "//testing/gtest",
  100. ]
  101. }
  102. rtc_library("block_mean_calculator_unittest") {
  103. testonly = true
  104. sources = [
  105. "block_mean_calculator_unittest.cc",
  106. ]
  107. deps = [
  108. ":block_mean_calculator",
  109. "../../../rtc_base:rtc_base_approved",
  110. "../../../test:test_support",
  111. "//testing/gtest",
  112. ]
  113. }
  114. rtc_library("legacy_delay_estimator_unittest") {
  115. testonly = true
  116. sources = [
  117. "delay_estimator_unittest.cc",
  118. ]
  119. deps = [
  120. ":legacy_delay_estimator",
  121. "../../../rtc_base:rtc_base_approved",
  122. "../../../test:test_support",
  123. "//testing/gtest",
  124. ]
  125. }
  126. rtc_library("pffft_wrapper_unittest") {
  127. testonly = true
  128. sources = [
  129. "pffft_wrapper_unittest.cc",
  130. ]
  131. deps = [
  132. ":pffft_wrapper",
  133. "../../../test:test_support",
  134. "//testing/gtest",
  135. "//third_party/pffft",
  136. ]
  137. }
  138. }