File tree Expand file tree Collapse file tree 7 files changed +429
-22
lines changed
packages/react-native-audio-api Expand file tree Collapse file tree 7 files changed +429
-22
lines changed Original file line number Diff line number Diff 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-
4038add_library (react-native-audio-api SHARED ${SOURCE_FILES} )
4139
4240file (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+
5354find_package (ReactAndroid REQUIRED CONFIG)
5455find_package (fbjni REQUIRED CONFIG)
5556find_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
6967if (ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
You can’t perform that action at this time.
0 commit comments