@@ -1870,8 +1870,16 @@ if (WTF_CPU_X86_64 OR WTF_CPU_X86)
18701870 add_definitions (-DWEBRTC_ENABLE_AVX2 )
18711871endif ()
18721872
1873+ if (WTF_CPU_ARM_THUMB2)
1874+ add_definitions (-DWEBRTC_ARCH_ARM_V7 )
1875+ endif ()
1876+
18731877if (WTF_CPU_ARM64)
1874- list (APPEND webrtc_SOURCES
1878+ add_definitions (-DWEBRTC_ARCH_ARM64 )
1879+ endif ()
1880+
1881+ if (WTF_CPU_ARM OR WTF_CPU_ARM64)
1882+ list (APPEND webrtc_neon_SOURCES
18751883 Source/webrtc/common_audio/fir_filter_neon.cc
18761884 Source/webrtc/common_audio/resampler/sinc_resampler_neon.cc
18771885 Source/webrtc/common_audio/signal_processing/cross_correlation_neon.c
@@ -1880,9 +1888,22 @@ if (WTF_CPU_ARM64)
18801888 Source/webrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_neon.cc
18811889 Source/webrtc/modules/audio_processing/aecm/aecm_core_neon.cc
18821890 )
1883- add_definitions ( -DWEBRTC_ARCH_ARM64 )
1891+ list ( APPEND webrtc_SOURCES ${webrtc_neon_SOURCES} )
18841892 add_definitions (-DWEBRTC_HAS_NEON )
1885- endif ()
1893+ endif ()
1894+
1895+ if (WTF_CPU_ARM)
1896+ list (APPEND webrtc_neon_SOURCES
1897+ Source/third_party/pffft/src/pffft.c
1898+ Source/webrtc/modules/audio_processing/aec3/adaptive_fir_filter.cc
1899+ Source/webrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl.cc
1900+ Source/webrtc/modules/audio_processing/aec3/comfort_noise_generator.cc
1901+ Source/webrtc/modules/audio_processing/aec3/matched_filter.cc
1902+ Source/webrtc/modules/audio_processing/aec3/suppression_filter.cc
1903+ Source/webrtc/modules/audio_processing/aec3/suppression_gain.cc
1904+ )
1905+ set_source_files_properties (${webrtc_neon_SOURCES} PROPERTIES COMPILE_OPTIONS "-mfpu=neon;-mfloat-abi=hard" )
1906+ endif ()
18861907
18871908if (WTF_CPU_MIPS)
18881909 list (APPEND webrtc_SOURCES
0 commit comments