diff --git a/common_audio/BUILD.gn b/common_audio/BUILD.gn index 89ede3884a..63756a43f3 100644 --- a/common_audio/BUILD.gn +++ b/common_audio/BUILD.gn @@ -61,6 +61,7 @@ rtc_static_library("common_audio") { deps = [ ":common_audio_c", + ":fft4g", ":sinc_resampler", "..:webrtc_common", "../:typedefs", @@ -130,8 +131,6 @@ rtc_source_set("common_audio_c_arm_asm") { rtc_source_set("common_audio_c") { visibility += webrtc_default_visibility sources = [ - "fft4g.c", - "fft4g.h", "ring_buffer.c", "ring_buffer.h", "signal_processing/auto_corr_to_refl_coef.c", @@ -216,6 +215,7 @@ rtc_source_set("common_audio_c") { deps = [ ":common_audio_c_arm_asm", ":common_audio_cc", + ":fft4g", "..:webrtc_common", "../:typedefs", "../rtc_base:checks", @@ -227,6 +227,14 @@ rtc_source_set("common_audio_c") { ] } +rtc_source_set("fft4g") { + visibility += webrtc_default_visibility + sources = [ + "fft4g.c", + "fft4g.h", + ] +} + rtc_source_set("common_audio_cc") { sources = [ "signal_processing/dot_product_with_scale.cc", diff --git a/modules/audio_processing/BUILD.gn b/modules/audio_processing/BUILD.gn index b5565fcfcc..89493ec712 100644 --- a/modules/audio_processing/BUILD.gn +++ b/modules/audio_processing/BUILD.gn @@ -123,6 +123,7 @@ rtc_static_library("audio_processing") { "../../api/audio:echo_control", "../../audio/utility:audio_frame_operations", "../../common_audio:common_audio_c", + "../../common_audio:fft4g", "../../rtc_base:checks", "../../rtc_base:deprecation", "../../rtc_base:gtest_prod", @@ -268,6 +269,7 @@ rtc_source_set("audio_processing_c") { "../..:webrtc_common", "../../common_audio", "../../common_audio:common_audio_c", + "../../common_audio:fft4g", "../../rtc_base:checks", "../../rtc_base:rtc_base_approved", "../../system_wrappers:cpu_features_api", diff --git a/modules/audio_processing/vad/BUILD.gn b/modules/audio_processing/vad/BUILD.gn index ae2a84d57c..e16b57f8f3 100644 --- a/modules/audio_processing/vad/BUILD.gn +++ b/modules/audio_processing/vad/BUILD.gn @@ -39,6 +39,7 @@ rtc_static_library("vad") { "../../../audio/utility:audio_frame_operations", "../../../common_audio", "../../../common_audio:common_audio_c", + "../../../common_audio:fft4g", "../../../rtc_base:checks", "../../audio_coding:isac_vad", ]