dep/soundtouch: Export main class on Android

This commit is contained in:
Connor McLaughlin
2022-08-22 19:31:46 +10:00
parent c7e8233b7b
commit 4c2906fb72
2 changed files with 14 additions and 2 deletions

View File

@ -5,7 +5,14 @@ else()
set(COMPILE_OPTIONS -Ofast)
endif()
add_library(soundtouch
if(NOT ANDROID)
add_library(soundtouch STATIC)
else()
add_library(soundtouch SHARED)
set(COMPILE_DEFINITIONS "${COMPILE_DEFINITIONS}" "ST_EXPORT")
endif()
target_sources(soundtouch PRIVATE
source/SoundTouch/AAFilter.cpp
source/SoundTouch/BPMDetect.cpp
source/SoundTouch/cpu_detect_x86.cpp