From 3ffb3f26f36c63f1c58e7a3d6d2657f18c833bc3 Mon Sep 17 00:00:00 2001 From: Pierre Bodilis Date: Thu, 25 Apr 2024 15:24:51 +0200 Subject: [PATCH] [code] add dnn sources to CMake when compiling on arm with RTCD --- CMakeLists.txt | 1 + cmake/OpusSources.cmake | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8535ad5f3..c7bc54994 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -551,6 +551,7 @@ if(NOT OPUS_DISABLE_INTRINSICS) target_compile_definitions(opus PRIVATE OPUS_HAVE_RTCD) add_sources_group(opus celt ${celt_sources_arm_rtcd}) add_sources_group(opus silk ${silk_sources_arm_rtcd}) + add_sources_group(opus lpcnet ${dnn_sources_arm_rtcd}) else() message(ERROR "Runtime cpu capability detection needed for MAY_HAVE_NEON") endif() diff --git a/cmake/OpusSources.cmake b/cmake/OpusSources.cmake index 0cf245578..070f6f0e4 100644 --- a/cmake/OpusSources.cmake +++ b/cmake/OpusSources.cmake @@ -52,6 +52,7 @@ get_opus_sources(DNN_SOURCES_SSE4_1 lpcnet_sources.mk dnn_sources_sse4_1) get_opus_sources(DNN_SOURCES_AVX2 lpcnet_sources.mk dnn_sources_avx2) get_opus_sources(DNN_SOURCES_NEON lpcnet_sources.mk dnn_sources_arm_neon) get_opus_sources(DNN_SOURCES_DOTPROD lpcnet_sources.mk dnn_sources_arm_dotprod) +get_opus_sources(DNN_SOURCES_ARM_RTCD lpcnet_sources.mk dnn_sources_arm_rtcd) get_opus_sources(opus_demo_SOURCES Makefile.am opus_demo_sources) get_opus_sources(opus_custom_demo_SOURCES Makefile.am opus_custom_demo_sources)