- fixes for minimalistic builds (without AMR / EVS / Opus codecs)

This commit is contained in:
2021-01-21 13:53:25 +02:00
parent 1007d752bc
commit 33465c33a1
3 changed files with 17 additions and 13 deletions

View File

@@ -57,10 +57,10 @@ set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (rtphone_libs libs)
set (rtphone_engine engine)
set (USE_AMR_CODEC OFF CACHE BOOL "Use AMR codec. Requires libraries." OFF)
set (USE_EVS_CODEC OFF CACHE BOOL "Use EVS codec." OFF)
set (USE_OPUS_CODEC OFF CACHE BOOL "Use Opus codec." OFF)
set (USE_SEVANA_LIB OFF CACHE BOOL "Build with Sevana libraries" OFF)
set (USE_AMR_CODEC FALSE CACHED BOOL "Use AMR codec. Requires libraries.")
set (USE_EVS_CODEC FALSE CACHED BOOL "Use EVS codec." )
set (USE_OPUS_CODEC FALSE CACHED BOOL "Use Opus codec." )
set (USE_SEVANA_LIB FALSE CACHED BOOL "Build with Sevana libraries" )
# PIC code by default
set (CMAKE_POSITION_INDEPENDENT_CODE ON)
@@ -86,6 +86,7 @@ if (CMAKE_SYSTEM MATCHES "Darwin*")
endif()
if (USE_SEVANA_LIB)
message("Use Sevana libraries")
add_definitions( -DUSE_AQUA_LIBRARY -DUSE_PVQA_LIBRARY)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libs/pvqa/include)
endif()