Commit ce3ada31 authored by Sandrine Avakian's avatar Sandrine Avakian

Adding v16 in cmake-builder.

parent 88b051cb
......@@ -102,6 +102,9 @@ else()
if(ENABLE_GSM)
linphone_builder_add_builder_to_target(TARGET_ms2 gsm)
endif()
if(ENABLE_BV16)
linphone_builder_add_builder_to_target(TARGET_ms2 bv16)
endif()
if(ENABLE_OPUS)
linphone_builder_add_builder_to_target(TARGET_ms2 opus)
endif()
......
############################################################################
# bv16.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
############################################################################
#set(EP_bv16_GIT_REPOSITORY "git://git.linphone.org/bv16.git" CACHE STRING "bv16 repository URL")
#set(EP_bv16_GIT_TAG_LATEST "linphone" CACHE STRING "bv16 tag to use when compiling latest version")
#set(EP_bv16_GIT_TAG "caeb73052b1171758acb565e7174a49fbd1427d2" CACHE STRING "bv16 tag to use")
set(EP_bv16_EXTERNAL_SOURCE_PATHS "bv16" "externals/bv16")
set(EP_bv16_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
if(MSVC)
set(EP_bv16_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
......@@ -56,6 +56,10 @@ list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_SPEEX=${ENABLE_SPEEX}")
if(ENABLE_SPEEX AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_speex)
endif()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_BV16=${ENABLE_BV16}")
if(ENABLE_BV16 AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_bv16)
endif()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_VIDEO=${ENABLE_VIDEO}")
if(ENABLE_VIDEO)
......
......@@ -27,6 +27,7 @@ set(DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES ON)
set(DEFAULT_VALUE_ENABLE_GSM ON)
set(DEFAULT_VALUE_ENABLE_OPUS ON)
set(DEFAULT_VALUE_ENABLE_SPEEX ON)
set(DEFAULT_VALUE_ENABLE_BV16 ON)
set(DEFAULT_VALUE_ENABLE_SRTP ON)
set(DEFAULT_VALUE_ENABLE_UNIT_TESTS ON)
set(DEFAULT_VALUE_ENABLE_VIDEO ON)
......
......@@ -63,7 +63,7 @@ ms2_add_option("ISAC" "ISAC audio encoding/decoding support." "${DEFAULT_VALUE_
ms2_add_option("OPUS" "OPUS audio encoding/decoding support." "${DEFAULT_VALUE_ENABLE_OPUS}")
ms2_add_option("Silk" "Silk audio encoding/decoding support." "${DEFAULT_VALUE_ENABLE_SILK}")
ms2_add_option("Speex" "Speex audio encoding/decoding support." "${DEFAULT_VALUE_ENABLE_SPEEX}")
ms2_add_option("BV16" "BroadVoice 16 audio encoding/decoding support." "${DEFAULT_VALUE_ENABLE_BV16}")
#video options and codecs
ms2_add_option("Video" "Ability to capture and display video." "${DEFAULT_VALUE_ENABLE_VIDEO}")
# FFMpeg is LGPL which is an issue only for iOS applications; otherwise it can be used in proprietary software as well
......
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