math/kfr: Fix build

When applying patch from PR 288643 new files got lost, add these
to unbreak build

PR:		288643
Approved by:	blanket (build fix)
This commit is contained in:
Daniel Engberg
2025-08-17 18:59:29 +02:00
parent 2c95e6006b
commit d573cccf09
3 changed files with 40 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
--- CMakeLists.txt.orig 2025-07-18 13:33:23 UTC
+++ CMakeLists.txt
@@ -180,8 +180,6 @@ option(ENABLE_TESTS "Enable KFR tests" OFF)
"Multiple architectures will be built with runtime dispatch" ON)
option(ENABLE_TESTS "Enable KFR tests" OFF)
-cmake_dependent_option(ENABLE_EXAMPLES "Enable KFR examples" ON "ENABLE_TESTS"
- OFF)
if (CLANG)
option(KFR_ENABLE_DFT "Enable DFT and related algorithms." ON)
else ()
@@ -390,7 +388,6 @@ if (ENABLE_EXAMPLES)
endif ()
if (ENABLE_EXAMPLES)
- add_subdirectory(examples)
add_subdirectory(tools)
endif ()
if (ENABLE_TESTS)
+10
View File
@@ -0,0 +1,10 @@
--- tools/CMakeLists.txt.orig 2025-08-02 10:33:46 UTC
+++ tools/CMakeLists.txt
@@ -23,5 +23,5 @@ target_link_libraries(sample_rate_converter kfr kfr_ds
add_executable(sample_rate_converter sample_rate_converter.cpp)
target_link_libraries(sample_rate_converter kfr kfr_dsp kfr_io use_arch)
-add_executable(ebu_test ebu_test.cpp)
-target_link_libraries(ebu_test kfr kfr_io use_arch)
+#add_executable(ebu_test ebu_test.cpp)
+#target_link_libraries(ebu_test kfr kfr_io use_arch)
@@ -0,0 +1,11 @@
--- tools/sample_rate_converter.cpp.orig 2025-08-02 11:51:50 UTC
+++ tools/sample_rate_converter.cpp
@@ -18,7 +18,7 @@ int main(int argc, char** argv)
println(library_version());
if (argc < 4)
{
- println("Usage: sample_rate_converter <INPUT_FILE> <OUTPUT_FILE> <TARGET_SAMPLE_RATE>");
+ println("Usage: kfr_src <INPUT_FILE> <OUTPUT_FILE> <TARGET_SAMPLE_RATE>");
println("Supported formats: WAV/W64, 16, 24, 32-bit PCM, 32, 64-bit IEEE");
return 1;
}