ViPERFX_RE/CMakeLists.txt

91 lines
2.9 KiB
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.16.3)
2021-07-27 15:47:15 +08:00
set(CMAKE_CXX_COMPILER_VERSION 20)
2022-10-06 09:37:22 +08:00
# NDK Settings
#set(ANDROID_ABI arm64-v8a)
set(ANDROID_ABI armeabi-v7a)
2022-12-14 09:56:26 +08:00
set(ANDROID_ARM_NEON true)
2023-01-06 10:24:08 +08:00
set(ANDROID_PLATFORM android-24)
2022-10-06 09:37:22 +08:00
2022-12-14 09:56:26 +08:00
project("ViPER4Android")
2023-01-06 10:24:08 +08:00
add_compile_definitions(VERSION_CODE=20221231)
add_compile_definitions(VERSION_NAME="0.1.0")
2021-07-27 15:47:15 +08:00
2022-12-14 09:56:26 +08:00
## KISS FFT
#set(KISSFFT_PKGCONFIG OFF)
#set(KISSFFT_STATIC ON)
#set(KISSFFT_TEST OFF)
#set(KISSFFT_TOOLS OFF)
2022-10-06 09:37:22 +08:00
#add_subdirectory(src/cpp/viper/kissfft)
2022-08-23 20:55:35 +08:00
# ViPERFX
include_directories(src/include)
2021-07-27 15:47:15 +08:00
set(FILES
# Main
2022-10-25 09:30:21 +08:00
src/viper/ViPER.cpp
src/ViPER4Android.cpp
2021-07-27 15:47:15 +08:00
# Effects
2022-10-25 09:30:21 +08:00
src/viper/effects/AnalogX.cpp
src/viper/effects/ColorfulMusic.cpp
src/viper/effects/Convolver.cpp
src/viper/effects/Cure.cpp
src/viper/effects/DiffSurround.cpp
src/viper/effects/DynamicSystem.cpp
src/viper/effects/FETCompressor.cpp
src/viper/effects/IIRFilter.cpp
src/viper/effects/PlaybackGain.cpp
src/viper/effects/Reverberation.cpp
src/viper/effects/SoftwareLimiter.cpp
src/viper/effects/SpeakerCorrection.cpp
src/viper/effects/SpectrumExtend.cpp
src/viper/effects/TubeSimulator.cpp
src/viper/effects/VHE.cpp
src/viper/effects/ViPERBass.cpp
src/viper/effects/ViPERClarity.cpp
src/viper/effects/ViPERDDC.cpp
2021-07-27 15:47:15 +08:00
# Utils
2022-10-25 09:30:21 +08:00
src/viper/utils/AdaptiveBuffer.cpp
src/viper/utils/Biquad.cpp
src/viper/utils/CAllpassFilter.cpp
src/viper/utils/CCombFilter.cpp
src/viper/utils/CRevModel.cpp
src/viper/utils/Crossfeed.cpp
src/viper/utils/DepthSurround.cpp
src/viper/utils/DynamicBass.cpp
src/viper/utils/FIR.cpp
src/viper/utils/Harmonic.cpp
src/viper/utils/HiFi.cpp
src/viper/utils/HighShelf.cpp
src/viper/utils/IIR_1st.cpp
src/viper/utils/IIR_NOrder_BW_BP.cpp
src/viper/utils/IIR_NOrder_BW_LH.cpp
src/viper/utils/MinPhaseIIRCoeffs.cpp
src/viper/utils/MultiBiquad.cpp
src/viper/utils/NoiseSharpening.cpp
src/viper/utils/PassFilter.cpp
2022-11-24 08:17:13 +08:00
src/viper/utils/PConvSingle.cpp
2022-10-25 09:30:21 +08:00
src/viper/utils/PolesFilter.cpp
src/viper/utils/Polyphase.cpp
src/viper/utils/Stereo3DSurround.cpp
src/viper/utils/Subwoofer.cpp
src/viper/utils/TimeConstDelay.cpp
src/viper/utils/WaveBuffer.cpp)
message(${CMAKE_BUILD_TYPE})
2021-07-27 15:47:15 +08:00
add_library(
# Sets the name of the library.
2023-01-06 10:24:08 +08:00
v4a_re
2021-07-27 15:47:15 +08:00
# Sets the library as a shared library.
2021-07-27 15:47:15 +08:00
SHARED
# Provides a relative path to your source file(s).
${FILES})
2023-01-06 10:24:08 +08:00
target_link_libraries(v4a_re log) # kissfft)
#target_compile_options(v4afx_r PRIVATE -O2 -DNDEBUG -Wall -Wsign-conversion -Wno-unused-result -Wno-unneeded-internal-declaration -fstrict-aliasing -fvisibility=hidden -Wextra -Wno-unused-parameter)