Commit 6bdf8b4e authored by jehan's avatar jehan

add make option for G729B CNG

parent 2076bcda
......@@ -101,7 +101,7 @@ cmake_dependent_option(ENABLE_VPX "Build mediastreamer2 with VPX codec." YES "EN
option(ENABLE_MKV "Enable support of MKV files reading and writing." YES)
cmake_dependent_option(ENABLE_QNX "Build medistreamer2 with BB10 filters." NO "ENABLE_VIDEO" NO)
cmake_dependent_option(ENABLE_VT_H264 "Build mediastreamer2 with H264 encoder/decoder based on VirtualToolbox (Apple only)" YES "ENABLE_VIDEO" NO)
option(ENABLE_G729B_CNG "Build mediastremer2 with G729 annex B cng." NO)
macro(apply_compile_flags SOURCE_FILES)
if(${SOURCE_FILES})
......@@ -304,6 +304,14 @@ if(ENABLE_SOUND AND NOT(WIN32 OR ENABLE_ALSA OR ENABLE_ARTSC OR ENABLE_MACSND OR
message(FATAL_ERROR "Could not find a support sound driver API. Use -DENABLE_SOUND=NO if you don't care about having sound.")
endif()
if(ENABLE_G729B_CNG)
find_package(Bcg729 1.0.1)
if(NOT BCG729_FOUND)
message(WARNING "Could not find bcg729 , mediastreamer2 will be compiled without G729 AnnexB in RFC3389 .")
set(ENABLE_G729_CNG OFF CACHE BOOL "Build mediastreamer2 with g729 CNG." FORCE)
endif()
endif()
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
set(BcToolbox_FIND_COMPONENTS tester)
include("${EP_bctoolbox_CONFIG_DIR}/BcToolboxConfig.cmake")
......
......@@ -554,7 +554,10 @@ endif()
if (CAMAPI_FOUND)
list(APPEND VOIP_LIBS ${CAMAPI_LIBRARIES})
endif()
if (BCGG729_FOUND)
add_definitions(-DHAVE_G729B=1)
list(APPEND VOIP_LIBS ${BCG729_LIBRARIES})
endif()
set(MS2_VOIP_DEPENDENCIES ms2-git-version ms2-voipdescs-header)
if(APPLE OR ANDROID OR GLX_FOUND)
list(APPEND MS2_VOIP_DEPENDENCIES ms2-yuv2rgb-fs-header ms2-yuv2rgb-vs-header)
......
Markdown is supported
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