From d947b8d0afa837dec8fd289114c4186235c1507a Mon Sep 17 00:00:00 2001 From: xufulong Date: Tue, 5 Oct 2021 21:11:28 +0800 Subject: [PATCH] add sox as a third-party library --- app/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 84591ec..decaca8 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -49,6 +49,10 @@ set_target_properties( ffmpeg PROPERTIES IMPORTED_LOCATION ../../../../libs/${CMAKE_ANDROID_ARCH_ABI}/libffmpeg.so ) +# third-party library: sox +add_subdirectory(src/main/cpp/sox) +include_directories(src/main/cpp/sox) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") include_directories(src/main/cpp) @@ -68,6 +72,7 @@ find_library( # Sets the name of the path variable. target_link_libraries( # Specifies the target library. media-handle ffmpeg + sox -landroid #native_window -ljnigraphics #bitmap -lOpenSLES #openSLES