ViPERFX_RE/CMakeLists.txt

95 lines
3.1 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)
#set(ANDROID_ARM_NEON true)
set(ANDROID_PLATFORM android-21)
SET(CMAKE_CXX_FLAGS "-O0")
SET(CMAKE_C_FLAGS "-O0")
2022-08-23 20:55:35 +08:00
project("ViPER4Android Reworked")
2021-07-28 01:00:39 +08:00
add_compile_definitions(VERSION_MAJOR=1)
add_compile_definitions(VERSION_MINOR=0)
add_compile_definitions(VERSION_CODENAME="Reworked")
2021-07-27 15:47:15 +08:00
2022-08-23 20:55:35 +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
src/cpp/viper/ViPER.cpp
src/cpp/ViPER4Android.cpp
2021-07-27 15:47:15 +08:00
# Effects
src/cpp/viper/effects/AnalogX.cpp
src/cpp/viper/effects/ColorfulMusic.cpp
src/cpp/viper/effects/Convolver.cpp
src/cpp/viper/effects/Cure.cpp
src/cpp/viper/effects/DiffSurround.cpp
src/cpp/viper/effects/DynamicSystem.cpp
src/cpp/viper/effects/FETCompressor.cpp
2022-09-18 09:38:22 +08:00
src/cpp/viper/effects/FIREqualizer.cpp
src/cpp/viper/effects/IIRFilter.cpp
src/cpp/viper/effects/PlaybackGain.cpp
src/cpp/viper/effects/Reverberation.cpp
src/cpp/viper/effects/SoftwareLimiter.cpp
src/cpp/viper/effects/SpeakerCorrection.cpp
src/cpp/viper/effects/SpectrumExtend.cpp
src/cpp/viper/effects/TubeSimulator.cpp
src/cpp/viper/effects/VHE.cpp
src/cpp/viper/effects/ViPERBass.cpp
src/cpp/viper/effects/ViPERClarity.cpp
src/cpp/viper/effects/ViPERDDC.cpp
2021-07-27 15:47:15 +08:00
# Utils
2022-09-13 08:14:03 +08:00
src/cpp/viper/utils/AdaptiveBuffer.cpp
2022-09-23 10:15:43 +08:00
src/cpp/viper/utils/Biquad.cpp
src/cpp/viper/utils/CAllpassFilter.cpp
src/cpp/viper/utils/CCombFilter.cpp
src/cpp/viper/utils/CRevModel.cpp
src/cpp/viper/utils/Crossfeed.cpp
src/cpp/viper/utils/DepthSurround.cpp
src/cpp/viper/utils/DynamicBass.cpp
2022-09-16 09:16:58 +08:00
src/cpp/viper/utils/FIR.cpp
src/cpp/viper/utils/Harmonic.cpp
src/cpp/viper/utils/HiFi.cpp
src/cpp/viper/utils/HighShelf.cpp
src/cpp/viper/utils/IIR_1st.cpp
src/cpp/viper/utils/IIR_NOrder_BW_BP.cpp
src/cpp/viper/utils/IIR_NOrder_BW_LH.cpp
2022-09-23 10:15:43 +08:00
src/cpp/viper/utils/MinPhaseIIRCoeffs.cpp
src/cpp/viper/utils/MultiBiquad.cpp
src/cpp/viper/utils/NoiseSharpening.cpp
src/cpp/viper/utils/PassFilter.cpp
src/cpp/viper/utils/PConvSingle_F32.cpp
src/cpp/viper/utils/PolesFilter.cpp
2022-09-16 09:16:58 +08:00
src/cpp/viper/utils/Polyphase.cpp
src/cpp/viper/utils/Stereo3DSurround.cpp
src/cpp/viper/utils/Subwoofer.cpp
src/cpp/viper/utils/TimeConstDelay.cpp
2022-09-18 09:38:22 +08:00
src/cpp/viper/utils/WaveBuffer.cpp)
message(${CMAKE_BUILD_TYPE})
2021-07-27 15:47:15 +08:00
add_library(
# Sets the name of the library.
v4afx_r
# 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})
2022-10-06 09:37:22 +08:00
target_link_libraries(v4afx_r log) # kissfft)
2022-10-15 09:40:21 +08:00
target_compile_options(v4afx_r PRIVATE -Wall -Wextra -Wno-unused-parameter)