Skip to content

Commit

Permalink
Merge branch 'main' of github.com:software-mansion-labs/react-native-…
Browse files Browse the repository at this point in the history
…audio-api
  • Loading branch information
Maciej Makowski committed Nov 26, 2024
2 parents cac48c2 + a89736f commit 4199cef
Show file tree
Hide file tree
Showing 7 changed files with 429 additions and 22 deletions.
10 changes: 4 additions & 6 deletions packages/react-native-audio-api/android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ file(GLOB_RECURSE SOURCE_FILES
"../common/cpp/types/*.h"
)

add_subdirectory(../external/kfr ${CMAKE_CURRENT_BINARY_DIR}/kfr-build)

add_library(react-native-audio-api SHARED ${SOURCE_FILES})

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

set(fftw3 ${CMAKE_CURRENT_SOURCE_DIR}/libs/fftw3/${ANDROID_ABI}/libfftw3.a)

find_package(ReactAndroid REQUIRED CONFIG)
find_package(fbjni REQUIRED CONFIG)
find_package(oboe REQUIRED CONFIG)
Expand All @@ -60,10 +61,7 @@ set(LINK_LIBRARIES
android
log
oboe::oboe
kfr
kfr_dsp
kfr_dft
kfr_io
${fftw3}
)

if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 4199cef

Please sign in to comment.