Commit 78a0e793 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

adding mor CMake switches to configure VA behavior

parent 8272e745
......@@ -39,6 +39,18 @@ endif( NOT DEFINED ITA_VACORE_MODULE_INTERFACE_ENABLED )
if( NOT DEFINED ITA_VACORE_NO_MODULE_INTERFACE_THROW_EXCEPTION )
set( ITA_VACORE_NO_MODULE_INTERFACE_THROW_EXCEPTION ON CACHE BOOL "Throw exception during module call attempt if VACore was build without module interface" )
endif( NOT DEFINED ITA_VACORE_NO_MODULE_INTERFACE_THROW_EXCEPTION )
if( NOT DEFINED ITA_VACORE_EVENTS_ENABLED )
set( ITA_VACORE_EVENTS_ENABLED ON CACHE BOOL "VACore event handling" )
endif( NOT DEFINED ITA_VACORE_EVENTS_ENABLED )
if( NOT DEFINED ITA_VACORE_MAX_NUM_SOURCES )
set( ITA_VACORE_MAX_NUM_SOURCES 0 CACHE INT "VACore maximum number of sound sources ( 0 = unlimited )" )
endif( NOT DEFINED ITA_VACORE_MAX_NUM_SOURCES )
if( NOT DEFINED ITA_VACORE_MAX_NUM_LISTENERS )
set( ITA_VACORE_MAX_NUM_LISTENERS 0 CACHE INT "VACore maximum number of listeners ( 0 = unlimited )" )
endif( NOT DEFINED ITA_VACORE_MAX_NUM_LISTENERS )
# Rendering modules
......@@ -92,16 +104,16 @@ if( NOT DEFINED ITA_VACORE_WITH_REPRODUCTION_HEADPHONES )
set( ITA_VACORE_WITH_REPRODUCTION_HEADPHONES ON CACHE BOOL "Build VACore with reproduction module: headphones (equalization)" )
endif( NOT DEFINED ITA_VACORE_WITH_REPRODUCTION_HEADPHONES )
if( NOT DEFINED ITA_VACORE_WITH_REPRODUCTION_AMBISONICS )
set( ITA_VACORE_WITH_REPRODUCTION_AMBISONICS ON CACHE BOOL "Build VACore with reproduction module: ambisonics (B-format decoder)" )
set( ITA_VACORE_WITH_REPRODUCTION_AMBISONICS OFF CACHE BOOL "Build VACore with reproduction module: ambisonics (B-format decoder)" )
endif( NOT DEFINED ITA_VACORE_WITH_REPRODUCTION_AMBISONICS )
if( NOT DEFINED ITA_VACORE_WITH_REPRODUCTION_BINAURAL_NCTC )
set( ITA_VACORE_WITH_REPRODUCTION_BINAURAL_NCTC ON CACHE BOOL "Build VACore with reproduction module: binaural N-CTC" )
endif( NOT DEFINED ITA_VACORE_WITH_REPRODUCTION_BINAURAL_NCTC )
if( NOT DEFINED ITA_VACORE_WITH_REPRODUCTION_BINAURAL_MIXDOWN )
set( ITA_VACORE_WITH_REPRODUCTION_BINAURAL_MIXDOWN ON CACHE BOOL "Build VACore with reproduction module: binaural mixdown" )
set( ITA_VACORE_WITH_REPRODUCTION_BINAURAL_MIXDOWN OFF CACHE BOOL "Build VACore with reproduction module: binaural mixdown" )
endif( NOT DEFINED ITA_VACORE_WITH_REPRODUCTION_BINAURAL_MIXDOWN )
if( NOT DEFINED ITA_VACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN )
set( ITA_VACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN ON CACHE BOOL "Build VACore with reproduction module: ambisonics binaural mixdown (B-format decoder)" )
set( ITA_VACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN OFF CACHE BOOL "Build VACore with reproduction module: ambisonics binaural mixdown (B-format decoder)" )
endif( NOT DEFINED ITA_VACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN )
......@@ -115,11 +127,38 @@ add_definitions( -DIEEE754_64FLOAT=1 )
add_definitions( -DVABASE_DLL -DITA_DATA_SOURCES_DLL -DITA_BASE_DLL -DITA_CONVOLUTION_DLL -DITA_CTC_DLL -DITA_SAMPLER_DLL -DVACORE_DLL -DVACORE_EXPORTS )
add_definitions( "-DVACORE_DEFAULT_LOG_LEVEL=${ITA_VACORE_DEFAULT_DEBUG_LEVEL}" )
add_definitions( "-DVACORE_VERSION_MAJOR=${ITA_VACORE_VERSION_MAJOR}" )
add_definitions( "-DVACORE_VERSION_MINOR=${ITA_VACORE_VERSION_MINOR}" )
add_definitions( "-DVACORE_MODULE_INTERFACE_ENABLED=${ITA_VACORE_MODULE_INTERFACE_ENABLED}" )
add_definitions( "-DVACORE_NO_MODULE_INTERFACE_THROW_EXCEPTION=${ITA_VACORE_NO_MODULE_INTERFACE_THROW_EXCEPTION}" )
add_definitions( "-DVVACORE_EVENTS_ENABLED=${ITA_VACORE_EVENTS_ENABLED}" )
add_definitions( "-DVACORE_MAX_NUM_SOURCES=${ITA_VACORE_MAX_NUM_SOURCES}" )
add_definitions( "-DVACORE_MAX_NUM_LISTENERS=${ITA_VACORE_MAX_NUM_LISTENERS}" )
add_definitions( "-DVACORE_WITH_RENDERER_AMBIENT_MIXER=${ITA_VACORE_WITH_RENDERER_AMBIENT_MIXER}" )
add_definitions( "-DVACORE_WITH_RENDERER_AMBISONICS_FREEFIELD=${ITA_VACORE_WITH_RENDERER_AMBISONICS_FREEFIELD}" )
add_definitions( "-DVACORE_WITH_RENDERER_BINAURAL_FREEFIELD=${ITA_VACORE_WITH_RENDERER_BINAURAL_FREEFIELD}" )
add_definitions( "-DVACORE_WITH_RENDERER_BINAURAL_ARTIFICIAL_REVERB=${ITA_VACORE_WITH_RENDERER_BINAURAL_ARTIFICIAL_REVERB}" )
add_definitions( "-DVACORE_WITH_RENDERER_BINAURAL_ROOM_ACOUSTICS=${ITA_VACORE_WITH_RENDERER_BINAURAL_ROOM_ACOUSTICS}" )
add_definitions( "-DVACORE_WITH_RENDERER_BINAURAL_AIR_TRAFFIC_NOISE=${ITA_VACORE_WITH_RENDERER_BINAURAL_AIR_TRAFFIC_NOISE}" )
add_definitions( "-DVACORE_WITH_RENDERER_MONAURAL_FREEFIELD=${ITA_VACORE_WITH_RENDERER_MONAURAL_FREEFIELD}" )
add_definitions( "-DVACORE_WITH_RENDERER_PROTOTYPE_DUMMY=${ITA_VACORE_WITH_RENDERER_PROTOTYPE_DUMMY}" )
add_definitions( "-DVACORE_WITH_RENDERER_PROTOTYPE_HEARING_AID=${ITA_VACORE_WITH_RENDERER_PROTOTYPE_HEARING_AID}" )
add_definitions( "-DVACORE_WITH_RENDERER_PROTOTYPE_GENERIC_PATH=${ITA_VACORE_WITH_RENDERER_PROTOTYPE_GENERIC_PATH}" )
add_definitions( "-DVACORE_WITH_RENDERER_VBAP_FREEFIELD=${ITA_VACORE_WITH_RENDERER_VBAP_FREEFIELD}" )
add_definitions( "-DVACORE_WITH_REPRODUCTION_TALKTHROUGH=${ITA_VACORE_WITH_REPRODUCTION_TALKTHROUGH}" )
add_definitions( "-DVACORE_WITH_REPRODUCTION_HEADPHONES=${ITA_VACORE_WITH_REPRODUCTION_HEADPHONES}" )
add_definitions( "-DVACORE_WITH_REPRODUCTION_AMBISONICS=${ITA_VACORE_WITH_REPRODUCTION_AMBISONICS}" )
add_definitions( "-DVACORE_WITH_REPRODUCTION_BINAURAL_NCTC=${ITA_VACORE_WITH_REPRODUCTION_BINAURAL_NCTC}" )
add_definitions( "-DVACORE_WITH_REPRODUCTION_BINAURAL_MIXDOWN=${ITA_VACORE_WITH_REPRODUCTION_BINAURAL_MIXDOWN}" )
add_definitions( "-DVACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN=${ITA_VACORE_WITH_REPRODUCTION_AMBISONICS_BINAURAL_MIXDOWN}" )
string( TIMESTAMP VACORE_CMAKE_DATE "%Y-%m-%d" )
add_definitions( "-DVACORE_CMAKE_DATE=\"${VACORE_CMAKE_DATE}\"" )
add_library( VACore ${ProjectSources} )
target_link_libraries( VACore
${VISTA_USE_PACKAGE_LIBRARIES} # contains all libraries from vista_use_package() calls
)
target_link_libraries( VACore ${VISTA_USE_PACKAGE_LIBRARIES} ) # contains all libraries from vista_use_package() calls
vista_configure_lib( VACore )
set( VACORE_INCLUDE_OUTDIR "${CMAKE_CURRENT_SOURCE_DIR}/include" )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment