Skip to content

Commit a89736f

Browse files
maciejmakowski2003Maciej Makowski
and
Maciej Makowski
authored
fix: switch from kfr to fftw3 (#212)
* fix: switch from kfr to fftw3 * fix: removed comments form cmakelists --------- Co-authored-by: Maciej Makowski <maciej.makowski@swmansion.com>
1 parent c7acb44 commit a89736f

File tree

7 files changed

+429
-22
lines changed

7 files changed

+429
-22
lines changed

packages/react-native-audio-api/android/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ file(GLOB_RECURSE SOURCE_FILES
3535
"../common/cpp/types/*.h"
3636
)
3737

38-
add_subdirectory(../external/kfr ${CMAKE_CURRENT_BINARY_DIR}/kfr-build)
39-
4038
add_library(react-native-audio-api SHARED ${SOURCE_FILES})
4139

4240
file(GLOB DIRS CONFIGURE_DEPENDS "src/main/cpp/**" "../common/cpp/**")
@@ -48,8 +46,11 @@ target_include_directories(
4846
"${REACT_NATIVE_DIR}/ReactCommon/jsi"
4947
"${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni/react/jni"
5048
"${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni/third-party/folly"
49+
"${CMAKE_CURRENT_SOURCE_DIR}/libs/include/fftw3"
5150
)
5251

52+
set(fftw3 ${CMAKE_CURRENT_SOURCE_DIR}/libs/fftw3/${ANDROID_ABI}/libfftw3.a)
53+
5354
find_package(ReactAndroid REQUIRED CONFIG)
5455
find_package(fbjni REQUIRED CONFIG)
5556
find_package(oboe REQUIRED CONFIG)
@@ -60,10 +61,7 @@ set(LINK_LIBRARIES
6061
android
6162
log
6263
oboe::oboe
63-
kfr
64-
kfr_dsp
65-
kfr_dft
66-
kfr_io
64+
${fftw3}
6765
)
6866

6967
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)