Commit 503966dc authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add option to enable/disable non free codecs.

parent a7cb0cd7
......@@ -28,6 +28,11 @@ set(EP_ms2_EXTERNAL_SOURCE_PATHS "ms2" "mediastreamer2" "linphone/mediastreamer2
set(EP_ms2_CMAKE_OPTIONS )
set(EP_ms2_LINKING_TYPE "-DENABLE_STATIC=NO")
set(EP_ms2_DEPENDENCIES EP_ortp)
if(ENABLE_NON_FREE_CODECS)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_NON_FREE_CODECS=YES")
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_NON_FREE_CODECS=NO")
endif()
if(ENABLE_GSM)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_GSM=YES")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
......
......@@ -41,6 +41,7 @@ linphone_builder_add_feature_info("SRTP" ENABLE_SRTP "SRTP media encryption supp
cmake_dependent_option(ENABLE_ZRTP "Enable ZRTP support." ${DEFAULT_VALUE_ENABLE_ZRTP} "ENABLE_SRTP" OFF)
linphone_builder_add_feature_info("ZRTP" ENABLE_ZRTP "ZRTP media encryption support.")
option(ENABLE_NON_FREE_CODECS "Allow inclusion of non-free codecs in the build." YES)
option(ENABLE_AMRNB "Enable AMR narrow-band audio codec support." ${DEFAULT_VALUE_ENABLE_AMRNB})
linphone_builder_add_feature_info("AMR-NB" ENABLE_AMRNB "AMR narrow-band audio encoding/decoding support.")
option(ENABLE_AMRWB "Enable AMR wide-band audio codec support." ${DEFAULT_VALUE_ENABLE_AMRWB})
......
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