Merge ad409c7e57b73cd33d25cabfde76cdab1da7fb42 into bdf5053968124d1e03c104defc8ea735c1114747

This commit is contained in:
rhjdvsgsgks 2025-01-14 01:13:09 +00:00 committed by GitHub
commit 0733c93ef9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 2 deletions

View File

@ -14,7 +14,7 @@ add_compile_definitions(VIPER_VERSION=20240314)
#add_subdirectory(src/viper/ffts)
# ViPERFX
include_directories(src/include)
include_directories(src/include src/viper/effects src/viper/utils)
set(FILES
# Main
@ -80,6 +80,8 @@ add_library(
# Provides a relative path to your source file(s).
${FILES})
if (ANDROID)
target_link_libraries(v4a_re log) # kissfft)
endif()
target_compile_options(v4a_re PRIVATE -flto -O3 -DNDEBUG)
#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)

View File

@ -1,9 +1,21 @@
#pragma once
#ifdef __ANDROID__
#include <android/log.h>
#define TAG "ViPER4Android"
#define VIPER_LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, TAG, __VA_ARGS__)
#define VIPER_LOGI(...) __android_log_print(ANDROID_LOG_INFO, TAG, __VA_ARGS__)
#define VIPER_LOGE(...) __android_log_print(ANDROID_LOG_ERROR, TAG, __VA_ARGS__)
#define VIPER_LOGE(...) __android_log_print(ANDROID_LOG_ERROR, TAG, __VA_ARGS__)
#else
#include <cstdio>
#define VIPER_LOGD(...) fprintf(stderr, __VA_ARGS__)
#define VIPER_LOGI(...) fprintf(stderr, __VA_ARGS__)
#define VIPER_LOGE(...) fprintf(stderr, __VA_ARGS__)
#endif