Commit 7e159188 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix build for Windows Universal.

parent a6629b67
...@@ -117,7 +117,8 @@ if(UNIX) ...@@ -117,7 +117,8 @@ if(UNIX)
endif() endif()
endif() endif()
string(REGEX MATCH "^(arm*|aarch64)" FIXED_POINT_PROCESSOR "${CMAKE_SYSTEM_PROCESSOR}") string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" SYSTEM_PROCESSOR)
string(REGEX MATCH "^(arm*|aarch64)" FIXED_POINT_PROCESSOR "${SYSTEM_PROCESSOR}")
if(FIXED_POINT_PROCESSOR) if(FIXED_POINT_PROCESSOR)
add_definitions(-D__ARMEL__) add_definitions(-D__ARMEL__)
endif() endif()
...@@ -176,13 +177,12 @@ if(ENABLE_AEC) ...@@ -176,13 +177,12 @@ if(ENABLE_AEC)
${WEBRTC_SRC_DIR}/modules/audio_processing/utility/delay_estimator.c ${WEBRTC_SRC_DIR}/modules/audio_processing/utility/delay_estimator.c
${WEBRTC_SRC_DIR}/modules/audio_processing/utility/delay_estimator_wrapper.c ${WEBRTC_SRC_DIR}/modules/audio_processing/utility/delay_estimator_wrapper.c
) )
string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} SYSTEM_PROCESSOR)
if(SYSTEM_PROCESSOR MATCHES "^arm.*" OR SYSTEM_PROCESSOR MATCHES "^aarch64.*") if(SYSTEM_PROCESSOR MATCHES "^arm.*" OR SYSTEM_PROCESSOR MATCHES "^aarch64.*")
list(APPEND AEC_SRCS list(APPEND AEC_SRCS
${AEC_SRC_DIR}/aec_core_neon.c ${AEC_SRC_DIR}/aec_core_neon.c
${AEC_SRC_DIR}/aec_rdft_neon.c ${AEC_SRC_DIR}/aec_rdft_neon.c
) )
elseif(SYSTEM_PROCESSOR MATCHES "^i.?86.*" OR SYSTEM_PROCESSOR MATCHES "^x86.*" OR SYSTEM_PROCESSOR MATCHES "^x86_64.*" OR SYSTEM_PROCESSOR MATCHES "^amd64.*") elseif(SYSTEM_PROCESSOR MATCHES "^i.?86.*" OR SYSTEM_PROCESSOR MATCHES "^x86.*" OR SYSTEM_PROCESSOR MATCHES "^x86_64.*" OR SYSTEM_PROCESSOR MATCHES "^amd64.*" OR SYSTEM_PROCESSOR MATCHES "^x64.*")
list(APPEND AEC_SRCS list(APPEND AEC_SRCS
${AEC_SRC_DIR}/aec_core_sse2.c ${AEC_SRC_DIR}/aec_core_sse2.c
${AEC_SRC_DIR}/aec_rdft_sse2.c ${AEC_SRC_DIR}/aec_rdft_sse2.c
......
...@@ -235,7 +235,7 @@ static void webrtc_aec_process(MSFilter *f) { ...@@ -235,7 +235,7 @@ static void webrtc_aec_process(MSFilter *f) {
mblk_t *refm; mblk_t *refm;
uint8_t *ref, *echo; uint8_t *ref, *echo;
#ifdef BUILD_AEC #ifdef BUILD_AEC
float *fref, *fecho, *foecho; float *fref = NULL, *fecho = NULL, *foecho = NULL;
#endif #endif
if (s->bypass_mode) { if (s->bypass_mode) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment