mirror of
https://github.com/AxioDL/boo.git
synced 2025-05-15 03:41:23 +00:00
Prevent libsoxr from making so much console noise
This commit is contained in:
parent
89b0fa5cd6
commit
97d0505562
@ -13,6 +13,7 @@ set(WITH_LSR_BINDINGS OFF)
|
|||||||
set(BUILD_TESTS OFF)
|
set(BUILD_TESTS OFF)
|
||||||
set(WITH_OPENMP OFF)
|
set(WITH_OPENMP OFF)
|
||||||
set(BUILD_SHARED_LIBS OFF)
|
set(BUILD_SHARED_LIBS OFF)
|
||||||
|
set(SOXR_SILENT ON)
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/soxr/cmake/Modules")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/soxr/cmake/Modules")
|
||||||
add_subdirectory(soxr)
|
add_subdirectory(soxr)
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ cmake_dependent_option (WITH_AVFFT "Use libavcodec (LGPL) for SIMD DFT." OFF
|
|||||||
"WITH_SIMD;NOT WITH_PFFFT" OFF)
|
"WITH_SIMD;NOT WITH_PFFFT" OFF)
|
||||||
cmake_dependent_option (WITH_PFFFT "Use PFFFT (BSD-like licence) for SIMD DFT." ON
|
cmake_dependent_option (WITH_PFFFT "Use PFFFT (BSD-like licence) for SIMD DFT." ON
|
||||||
"WITH_SIMD;NOT WITH_AVFFT" OFF)
|
"WITH_SIMD;NOT WITH_AVFFT" OFF)
|
||||||
|
option (SOXR_SILENT "Disable debug messages, even in debug mode" OFF)
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/lsr-tests)
|
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/lsr-tests)
|
||||||
cmake_dependent_option (BUILD_LSR_TESTS "Build LSR tests." OFF
|
cmake_dependent_option (BUILD_LSR_TESTS "Build LSR tests." OFF
|
||||||
@ -106,6 +107,10 @@ if (WITH_AVFFT)
|
|||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (SOXR_SILENT)
|
||||||
|
add_definitions (-DSOXR_SILENT=1)
|
||||||
|
endif ()
|
||||||
|
|
||||||
check_function_exists (lrint HAVE_LRINT)
|
check_function_exists (lrint HAVE_LRINT)
|
||||||
check_include_files (fenv.h HAVE_FENV_H)
|
check_include_files (fenv.h HAVE_FENV_H)
|
||||||
test_big_endian (WORDS_BIGENDIAN)
|
test_big_endian (WORDS_BIGENDIAN)
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#define UNUSED
|
#define UNUSED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined NDEBUG
|
#if defined NDEBUG || SOXR_SILENT
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
void lsx_dummy(char const *, ...);
|
void lsx_dummy(char const *, ...);
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user