Commit b2dda64a authored by Ghislain MARY's avatar Ghislain MARY

Add builder source code paths and split files for integration in linphone-sdk.

parent 8a04761b
...@@ -23,5 +23,5 @@ ...@@ -23,5 +23,5 @@
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint.git")
lcb_git_tag_latest("linphone") lcb_git_tag_latest("linphone")
lcb_git_tag("6899f2759c7b19d5402335d3a937c53020abfeca") lcb_git_tag("6899f2759c7b19d5402335d3a937c53020abfeca")
lcb_external_source_paths("externals/bv16-floatingpoint") lcb_external_source_paths("externals/bv16-floatingpoint" "external/bv16-floatingpoint")
lcb_spec_file("bv16.spec") lcb_spec_file("bv16.spec")
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/codec2.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/codec2.git")
lcb_git_tag_latest("linphone") lcb_git_tag_latest("linphone")
lcb_external_source_paths("externals/codec2") lcb_external_source_paths("externals/codec2" "external/codec2")
lcb_cmake_options("-DBUILD_SHARED_LIBS=NO") lcb_cmake_options("-DBUILD_SHARED_LIBS=NO")
lcb_extra_cflags("-include ${CMAKE_CURRENT_LIST_DIR}/codec2/codec2_prefixed_symbols.h") lcb_extra_cflags("-include ${CMAKE_CURRENT_LIST_DIR}/codec2/codec2_prefixed_symbols.h")
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/decaf.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/decaf.git")
lcb_git_tag_latest("bc") lcb_git_tag_latest("bc")
lcb_git_tag("bc") lcb_git_tag("bc")
lcb_external_source_paths("externals/decaf") lcb_external_source_paths("externals/decaf" "external/decaf")
lcb_groupable(YES) lcb_groupable(YES)
lcb_package_source(YES) lcb_package_source(YES)
...@@ -43,7 +43,7 @@ else() ...@@ -43,7 +43,7 @@ else()
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/ffmpeg.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/ffmpeg.git")
lcb_git_tag_latest("bc") lcb_git_tag_latest("bc")
lcb_git_tag("51aa587f7ddac63c831d73eb360e246765a2675f") lcb_git_tag("51aa587f7ddac63c831d73eb360e246765a2675f")
lcb_external_source_paths("externals/ffmpeg") lcb_external_source_paths("externals/ffmpeg" "external/ffmpeg")
lcb_may_be_found_on_system(YES) lcb_may_be_found_on_system(YES)
lcb_ignore_warnings(YES) lcb_ignore_warnings(YES)
lcb_build_method("autotools") lcb_build_method("autotools")
......
...@@ -23,6 +23,6 @@ ...@@ -23,6 +23,6 @@
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/gsm.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/gsm.git")
lcb_git_tag_latest("linphone") lcb_git_tag_latest("linphone")
lcb_git_tag("0f8822b5326c76bb9dc4c6b552631f51792c3982") lcb_git_tag("0f8822b5326c76bb9dc4c6b552631f51792c3982")
lcb_external_source_paths("gsm" "externals/gsm") lcb_external_source_paths("gsm" "externals/gsm" "external/gsm")
lcb_may_be_found_on_system(YES) lcb_may_be_found_on_system(YES)
lcb_ignore_warnings(YES) lcb_ignore_warnings(YES)
...@@ -21,6 +21,6 @@ ...@@ -21,6 +21,6 @@
############################################################################ ############################################################################
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/libxsd.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/libxsd.git")
lcb_external_source_paths("externals/libxsd") lcb_external_source_paths("externals/libxsd" "external/libxsd")
lcb_dependencies("xerces") lcb_dependencies("xerces")
lcb_may_be_found_on_system(YES) lcb_may_be_found_on_system(YES)
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/mbedtls.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/mbedtls.git")
lcb_git_tag_latest("linphone") lcb_git_tag_latest("linphone")
lcb_git_tag("3b88f2749d59e5346de08e121fba1d797c55ddaa") lcb_git_tag("3b88f2749d59e5346de08e121fba1d797c55ddaa")
lcb_external_source_paths("mbedtls" "externals/mbedtls") lcb_external_source_paths("mbedtls" "externals/mbedtls" "external/mbedtls")
lcb_may_be_found_on_system(YES) lcb_may_be_found_on_system(YES)
lcb_ignore_warnings(YES) lcb_ignore_warnings(YES)
......
...@@ -35,7 +35,7 @@ if(OPENCOREAMR_PREBUILT) ...@@ -35,7 +35,7 @@ if(OPENCOREAMR_PREBUILT)
else() else()
lcb_url("http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.3.tar.gz") lcb_url("http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.3.tar.gz")
lcb_url_hash("MD5=09d2c5dfb43a9f6e9fec8b1ae678e725") lcb_url_hash("MD5=09d2c5dfb43a9f6e9fec8b1ae678e725")
lcb_external_source_paths("externals/opencore-amr" "opencore-amr") lcb_external_source_paths("externals/opencore-amr" "opencore-amr" "external/opencore-amr")
lcb_ignore_warnings(YES) lcb_ignore_warnings(YES)
lcb_patch_command("${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/opencoreamr/CMakeLists.txt" "<SOURCE_DIR>") lcb_patch_command("${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/opencoreamr/CMakeLists.txt" "<SOURCE_DIR>")
......
...@@ -39,7 +39,7 @@ else() ...@@ -39,7 +39,7 @@ else()
set(OPENH264_VERSION "1.8.0") # Keep this variable, it is used for packaging to know the version to download from Cisco set(OPENH264_VERSION "1.8.0") # Keep this variable, it is used for packaging to know the version to download from Cisco
lcb_git_repository("https://github.com/cisco/openh264") lcb_git_repository("https://github.com/cisco/openh264")
lcb_git_tag("openh264v${OPENH264_VERSION}") lcb_git_tag("openh264v${OPENH264_VERSION}")
lcb_external_source_paths("externals/openh264") lcb_external_source_paths("externals/openh264" "external/openh264")
lcb_ignore_warnings(YES) lcb_ignore_warnings(YES)
lcb_build_method("custom") lcb_build_method("custom")
......
...@@ -35,7 +35,7 @@ if(OPUS_PREBUILT) ...@@ -35,7 +35,7 @@ if(OPUS_PREBUILT)
else() else()
lcb_url("http://downloads.xiph.org/releases/opus/opus-1.1.1.tar.gz") lcb_url("http://downloads.xiph.org/releases/opus/opus-1.1.1.tar.gz")
lcb_url_hash("MD5=cfb354d4c65217ca32a762f8ab15f2ac") lcb_url_hash("MD5=cfb354d4c65217ca32a762f8ab15f2ac")
lcb_external_source_paths("opus" "externals/opus") lcb_external_source_paths("opus" "externals/opus" "external/opus")
lcb_may_be_found_on_system(YES) lcb_may_be_found_on_system(YES)
lcb_ignore_warnings(YES) lcb_ignore_warnings(YES)
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
############################################################################ ############################################################################
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/soci.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/soci.git")
lcb_external_source_paths("externals/soci") lcb_external_source_paths("externals/soci" "external/soci")
if(NOT APPLE) if(NOT APPLE)
# Do not build sqlite3 on Apple systems (Mac OS X and iOS), it is provided by the system # Do not build sqlite3 on Apple systems (Mac OS X and iOS), it is provided by the system
lcb_dependencies("sqlite3") lcb_dependencies("sqlite3")
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/speex.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/speex.git")
lcb_git_tag_latest("linphone") lcb_git_tag_latest("linphone")
lcb_git_tag("fc1dd43c3c9d244bca1c300e408ce0373dbd5ed8") lcb_git_tag("fc1dd43c3c9d244bca1c300e408ce0373dbd5ed8")
lcb_external_source_paths("speex" "externals/speex") lcb_external_source_paths("speex" "externals/speex" "external/speex")
lcb_may_be_found_on_system(YES) lcb_may_be_found_on_system(YES)
lcb_ignore_warnings(YES) lcb_ignore_warnings(YES)
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/sqlite3.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/sqlite3.git")
lcb_git_tag_latest("master") lcb_git_tag_latest("master")
lcb_external_source_paths("externals/sqlite3") lcb_external_source_paths("externals/sqlite3" "external/sqlite3")
lcb_may_be_found_on_system(YES) lcb_may_be_found_on_system(YES)
lcb_ignore_warnings(YES) lcb_ignore_warnings(YES)
...@@ -23,6 +23,6 @@ ...@@ -23,6 +23,6 @@
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/srtp.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/srtp.git")
lcb_git_tag_latest("master") lcb_git_tag_latest("master")
lcb_git_tag("befc23777e07efba36ffd7bda73f22c92d4e2475") lcb_git_tag("befc23777e07efba36ffd7bda73f22c92d4e2475")
lcb_external_source_paths("srtp" "externals/srtp") lcb_external_source_paths("srtp" "externals/srtp" "external/srtp")
lcb_may_be_found_on_system(YES) lcb_may_be_found_on_system(YES)
lcb_ignore_warnings(YES) lcb_ignore_warnings(YES)
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/libjpeg-turbo.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/libjpeg-turbo.git")
#lcb_git_tag("f6b57f3521404f587f23d79ecd1b6db0dab6a221") #lcb_git_tag("f6b57f3521404f587f23d79ecd1b6db0dab6a221")
lcb_external_source_paths("externals/libjpeg-turbo") lcb_external_source_paths("externals/libjpeg-turbo" "external/libjpeg-turbo")
lcb_may_be_found_on_system(YES) lcb_may_be_found_on_system(YES)
lcb_linking_type("-DENABLE_STATIC=YES" "-DENABLE_SHARED=NO") lcb_linking_type("-DENABLE_STATIC=YES" "-DENABLE_SHARED=NO")
......
...@@ -35,7 +35,7 @@ if(VOAMRWBENC_PREBUILT) ...@@ -35,7 +35,7 @@ if(VOAMRWBENC_PREBUILT)
else() else()
lcb_url("http://downloads.sourceforge.net/project/opencore-amr/vo-amrwbenc/vo-amrwbenc-0.1.3.tar.gz") lcb_url("http://downloads.sourceforge.net/project/opencore-amr/vo-amrwbenc/vo-amrwbenc-0.1.3.tar.gz")
lcb_url_hash("MD5=f63bb92bde0b1583cb3cb344c12922e0") lcb_url_hash("MD5=f63bb92bde0b1583cb3cb344c12922e0")
lcb_external_source_paths("externals/vo-amrwbenc" "vo-amrwbenc") lcb_external_source_paths("externals/vo-amrwbenc" "vo-amrwbenc" "external/vo-amrwbenc")
lcb_ignore_warnings(YES) lcb_ignore_warnings(YES)
lcb_dependencies("opencoreamr") lcb_dependencies("opencoreamr")
......
...@@ -38,7 +38,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") ...@@ -38,7 +38,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
else() else()
lcb_url("http://storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-1.5.0.tar.bz2") lcb_url("http://storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-1.5.0.tar.bz2")
lcb_url_hash("MD5=49e59dd184caa255886683facea56fca") lcb_url_hash("MD5=49e59dd184caa255886683facea56fca")
lcb_external_source_paths("externals/libvpx") lcb_external_source_paths("externals/libvpx" "external/libvpx")
lcb_may_be_found_on_system(YES) lcb_may_be_found_on_system(YES)
lcb_ignore_warnings(YES) lcb_ignore_warnings(YES)
......
...@@ -21,6 +21,6 @@ ...@@ -21,6 +21,6 @@
############################################################################ ############################################################################
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/xerces-c.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/xerces-c.git")
lcb_external_source_paths("externals/xerces-c") lcb_external_source_paths("externals/xerces-c" "external/xerces-c")
lcb_may_be_found_on_system(YES) lcb_may_be_found_on_system(YES)
...@@ -35,7 +35,7 @@ if(XML2_PREBUILT) ...@@ -35,7 +35,7 @@ if(XML2_PREBUILT)
else() else()
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/libxml2") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/libxml2")
lcb_git_tag("v2.8.0") lcb_git_tag("v2.8.0")
lcb_external_source_paths("libxml2" "xml2" "externals/libxml2") lcb_external_source_paths("libxml2" "xml2" "externals/libxml2" "external/libxml2")
lcb_may_be_found_on_system(YES) lcb_may_be_found_on_system(YES)
lcb_ignore_warnings(YES) lcb_ignore_warnings(YES)
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
lcb_git_repository("https://gitlab.linphone.org/BC/public/external/zxing-cpp.git") lcb_git_repository("https://gitlab.linphone.org/BC/public/external/zxing-cpp.git")
lcb_git_tag_latest("bc") lcb_git_tag_latest("bc")
lcb_git_tag("bc") lcb_git_tag("bc")
lcb_external_source_paths("externals/zxing-cpp") lcb_external_source_paths("externals/zxing-cpp" "external/zxing-cpp")
#lcb_linking_type("-DENABLE_STATIC=YES" "-DENABLE_SHARED=NO") #lcb_linking_type("-DENABLE_STATIC=YES" "-DENABLE_SHARED=NO")
#lcb_extra_cflags("-fPIC") #lcb_extra_cflags("-fPIC")
...@@ -20,9 +20,8 @@ ...@@ -20,9 +20,8 @@
# #
############################################################################ ############################################################################
include(CMakeDependentOption)
include(ExternalProject) include(ExternalProject)
include(FeatureSummary) include(${CMAKE_CURRENT_LIST_DIR}/LinphoneOptions.cmake)
set(ep_base "${LINPHONE_BUILDER_WORK_DIR}/${CONFIG_NAME}") set(ep_base "${LINPHONE_BUILDER_WORK_DIR}/${CONFIG_NAME}")
set_property(DIRECTORY PROPERTY EP_BASE ${ep_base}) set_property(DIRECTORY PROPERTY EP_BASE ${ep_base})
...@@ -141,34 +140,6 @@ if(CMAKE_TOOLCHAIN_FILE) ...@@ -141,34 +140,6 @@ if(CMAKE_TOOLCHAIN_FILE)
endif() endif()
# This macro can be used to add an option. Give it option name and description,
# default value and optionally dependent predicate and value
macro(lcb_add_dependent_option NAME DESCRIPTION DEFAULT_VALUE CONDITION CONDITION_VALUE)
string(TOUPPER ${NAME} UPPERCASE_NAME)
string(REGEX REPLACE " " "_" UPPERCASE_NAME ${UPPERCASE_NAME})
string(REGEX REPLACE "\\+" "P" UPPERCASE_NAME ${UPPERCASE_NAME})
cmake_dependent_option(ENABLE_${UPPERCASE_NAME} "${DESCRIPTION}" "${DEFAULT_VALUE}" "${CONDITION}" "${CONDITION_VALUE}")
add_feature_info("${NAME}" "ENABLE_${UPPERCASE_NAME}" "${DESCRIPTION}")
endmacro()
macro(lcb_add_strict_dependent_option NAME DESCRIPTION DEFAULT_VALUE CONDITION CONDITION_VALUE STRICT_CONDITION ERROR_MSG)
lcb_add_dependent_option("${NAME}" "${DESCRIPTION}" "${DEFAULT_VALUE}" "${CONDITION}" "${CONDITION_VALUE}")
string(TOUPPER ${NAME} UPPERCASE_NAME)
string(REGEX REPLACE " " "_" UPPERCASE_NAME ${UPPERCASE_NAME})
string(REGEX REPLACE "\\+" "P" UPPERCASE_NAME ${UPPERCASE_NAME})
if(${ENABLE_${UPPERCASE_NAME}} AND NOT ${STRICT_CONDITION})
message(FATAL_ERROR "Trying to enable ${NAME} but ${ERROR_MSG}")
endif()
endmacro()
macro(lcb_add_option NAME DESCRIPTION DEFAULT_VALUE)
string(TOUPPER ${NAME} UPPERCASE_NAME)
string(REGEX REPLACE " " "_" UPPERCASE_NAME ${UPPERCASE_NAME})
string(REGEX REPLACE "\\+" "P" UPPERCASE_NAME ${UPPERCASE_NAME})
option(ENABLE_${UPPERCASE_NAME} "Enable ${NAME}: ${DESCRIPTION}" "${DEFAULT_VALUE}")
add_feature_info("${NAME}" "ENABLE_${UPPERCASE_NAME}" "${DESCRIPTION}")
endmacro()
macro(linphone_builder_get_autotools_configuration) macro(linphone_builder_get_autotools_configuration)
if(MSVC) if(MSVC)
set(_generator "MinGW Makefiles") set(_generator "MinGW Makefiles")
......
############################################################################
# LinphoneOptions.cmake
# Copyright (C) 2010-2018 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
############################################################################
include(CMakeDependentOption)
include(FeatureSummary)
# This macro can be used to add an option. Give it option name and description,
# default value and optionally dependent predicate and value
macro(lcb_add_dependent_option NAME DESCRIPTION DEFAULT_VALUE CONDITION CONDITION_VALUE)
string(TOUPPER ${NAME} UPPERCASE_NAME)
string(REGEX REPLACE " " "_" UPPERCASE_NAME ${UPPERCASE_NAME})
string(REGEX REPLACE "\\+" "P" UPPERCASE_NAME ${UPPERCASE_NAME})
cmake_dependent_option(ENABLE_${UPPERCASE_NAME} "${DESCRIPTION}" "${DEFAULT_VALUE}" "${CONDITION}" "${CONDITION_VALUE}")
add_feature_info("${NAME}" "ENABLE_${UPPERCASE_NAME}" "${DESCRIPTION}")
endmacro()
macro(lcb_add_strict_dependent_option NAME DESCRIPTION DEFAULT_VALUE CONDITION CONDITION_VALUE STRICT_CONDITION ERROR_MSG)
lcb_add_dependent_option("${NAME}" "${DESCRIPTION}" "${DEFAULT_VALUE}" "${CONDITION}" "${CONDITION_VALUE}")
string(TOUPPER ${NAME} UPPERCASE_NAME)
string(REGEX REPLACE " " "_" UPPERCASE_NAME ${UPPERCASE_NAME})
string(REGEX REPLACE "\\+" "P" UPPERCASE_NAME ${UPPERCASE_NAME})
if(${ENABLE_${UPPERCASE_NAME}} AND NOT ${STRICT_CONDITION})
message(FATAL_ERROR "Trying to enable ${NAME} but ${ERROR_MSG}")
endif()
endmacro()
macro(lcb_add_option NAME DESCRIPTION DEFAULT_VALUE)
string(TOUPPER ${NAME} UPPERCASE_NAME)
string(REGEX REPLACE " " "_" UPPERCASE_NAME ${UPPERCASE_NAME})
string(REGEX REPLACE "\\+" "P" UPPERCASE_NAME ${UPPERCASE_NAME})
option(ENABLE_${UPPERCASE_NAME} "Enable ${NAME}: ${DESCRIPTION}" "${DEFAULT_VALUE}")
add_feature_info("${NAME}" "ENABLE_${UPPERCASE_NAME}" "${DESCRIPTION}")
endmacro()
...@@ -20,40 +20,7 @@ ...@@ -20,40 +20,7 @@
# #
############################################################################ ############################################################################
# Define options that are specific to the android config include(${CMAKE_CURRENT_LIST_DIR}/options-android.cmake)
lcb_add_option("Arch suffix" "Append the android abi to shared libraries" ON)
lcb_add_dependent_option("Embedded OpenH264" "Embed the openh264 library instead of downloading it from Cisco." "${DEFAULT_VALUE_ENABLE_EMBEDDED_OPENH264}" "ENABLE_OPENH264" OFF)
# Define default values for the linphone builder options
set(DEFAULT_VALUE_ENABLE_FFMPEG OFF)
set(DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES ON)
set(DEFAULT_VALUE_ENABLE_GSM ON)
set(DEFAULT_VALUE_ENABLE_ILBC ON)
set(DEFAULT_VALUE_ENABLE_ISAC ON)
set(DEFAULT_VALUE_ENABLE_JPEG ON)
set(DEFAULT_VALUE_ENABLE_MBEDTLS ON)
set(DEFAULT_VALUE_ENABLE_MKV ON)
set(DEFAULT_VALUE_ENABLE_OPUS ON)
set(DEFAULT_VALUE_ENABLE_SILK OFF)
set(DEFAULT_VALUE_ENABLE_SPEEX ON)
set(DEFAULT_VALUE_ENABLE_G729 ${DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES})
set(DEFAULT_VALUE_ENABLE_G729B_CNG OFF)
set(DEFAULT_VALUE_ENABLE_SRTP ON)
set(DEFAULT_VALUE_ENABLE_UNIT_TESTS ON)
set(DEFAULT_VALUE_ENABLE_VCARD ON)
set(DEFAULT_VALUE_ENABLE_VIDEO ON)
set(DEFAULT_VALUE_ENABLE_VPX ON)
set(DEFAULT_VALUE_ENABLE_WEBRTC_AECM ON)
set(DEFAULT_VALUE_ENABLE_WEBRTC_AEC ON)
set(DEFAULT_VALUE_ENABLE_ZRTP ON)
set(DEFAULT_VALUE_ENABLE_LIME ON)
set(DEFAULT_VALUE_ENABLE_TOOLS OFF)
set(DEFAULT_VALUE_ENABLE_JAVA_WRAPPER ON)
set(ENABLE_NLS NO CACHE BOOL "" FORCE)
set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=YES" "-DENABLE_SHARED=NO")
set(DEFAULT_VALUE_CMAKE_PLUGIN_LINKING_TYPE "-DENABLE_STATIC=NO" "-DENABLE_SHARED=YES")
# Global configuration # Global configuration
......
...@@ -20,35 +20,12 @@ ...@@ -20,35 +20,12 @@
# #
############################################################################ ############################################################################
# Define default values for the linphone builder options include(${CMAKE_CURRENT_LIST_DIR}/options-ios.cmake)
set(DEFAULT_VALUE_ENABLE_FFMPEG OFF)
set(DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES ON)
set(DEFAULT_VALUE_ENABLE_GSM ON)
set(DEFAULT_VALUE_ENABLE_ILBC ON)
set(DEFAULT_VALUE_ENABLE_ISAC ON)
set(DEFAULT_VALUE_ENABLE_JPEG ON)
set(DEFAULT_VALUE_ENABLE_MBEDTLS ON)
set(DEFAULT_VALUE_ENABLE_MKV ON)
set(DEFAULT_VALUE_ENABLE_OPUS ON)
set(DEFAULT_VALUE_ENABLE_SILK OFF)
set(DEFAULT_VALUE_ENABLE_SPEEX ON)
set(DEFAULT_VALUE_ENABLE_G729 ${DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES})
set(DEFAULT_VALUE_ENABLE_G729B_CNG OFF)
set(DEFAULT_VALUE_ENABLE_SRTP ON)
set(DEFAULT_VALUE_ENABLE_UNIT_TESTS OFF) #link of binary significantly slow down compilation.
set(DEFAULT_VALUE_ENABLE_VCARD ON)
set(DEFAULT_VALUE_ENABLE_VIDEO ON)
set(DEFAULT_VALUE_ENABLE_VPX ON)
set(DEFAULT_VALUE_ENABLE_ZRTP ON)
set(DEFAULT_VALUE_ENABLE_LIME ON)
set(DEFAULT_VALUE_ENABLE_TOOLS OFF)
set(DEFAULT_VALUE_ENABLE_UPDATE_CHECK ON)
set(ENABLE_NLS NO CACHE BOOL "" FORCE)
set(CMAKE_MACOSX_RPATH TRUE) set(CMAKE_MACOSX_RPATH TRUE)
set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks") set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks")
set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=YES" "-DENABLE_SHARED=NO")
# Global configuration # Global configuration
if(NOT LINPHONE_IOS_DEPLOYMENT_TARGET) if(NOT LINPHONE_IOS_DEPLOYMENT_TARGET)
set(LINPHONE_IOS_DEPLOYMENT_TARGET 8.0) set(LINPHONE_IOS_DEPLOYMENT_TARGET 8.0)
......
############################################################################
# options-android.cmake
# Copyright (C) 2010-2018 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
############################################################################
# Define options that are specific to the android config
lcb_add_option("Arch suffix" "Append the android abi to shared libraries" ON)
lcb_add_dependent_option("Embedded OpenH264" "Embed the openh264 library instead of downloading it from Cisco." "${DEFAULT_VALUE_ENABLE_EMBEDDED_OPENH264}" "ENABLE_OPENH264" OFF)
# Define default values for the linphone builder options
set(DEFAULT_VALUE_ENABLE_FFMPEG OFF)
set(DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES ON)
set(DEFAULT_VALUE_ENABLE_GSM ON)
set(DEFAULT_VALUE_ENABLE_ILBC ON)
set(DEFAULT_VALUE_ENABLE_ISAC ON)
set(DEFAULT_VALUE_ENABLE_JPEG ON)
set(DEFAULT_VALUE_ENABLE_MBEDTLS ON)
set(DEFAULT_VALUE_ENABLE_MKV ON)
set(DEFAULT_VALUE_ENABLE_OPUS ON)
set(DEFAULT_VALUE_ENABLE_SILK OFF)
set(DEFAULT_VALUE_ENABLE_SPEEX ON)
set(DEFAULT_VALUE_ENABLE_G729 ${DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES})
set(DEFAULT_VALUE_ENABLE_G729B_CNG OFF)
set(DEFAULT_VALUE_ENABLE_SRTP ON)
set(DEFAULT_VALUE_ENABLE_UNIT_TESTS ON)
set(DEFAULT_VALUE_ENABLE_VCARD ON)
set(DEFAULT_VALUE_ENABLE_VIDEO ON)
set(DEFAULT_VALUE_ENABLE_VPX ON)
set(DEFAULT_VALUE_ENABLE_WEBRTC_AECM ON)
set(DEFAULT_VALUE_ENABLE_WEBRTC_AEC ON)
set(DEFAULT_VALUE_ENABLE_ZRTP ON)
set(DEFAULT_VALUE_ENABLE_LIME ON)
set(DEFAULT_VALUE_ENABLE_TOOLS OFF)
set(DEFAULT_VALUE_ENABLE_JAVA_WRAPPER ON)
set(ENABLE_NLS NO CACHE BOOL "" FORCE)
set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=YES" "-DENABLE_SHARED=NO")
set(DEFAULT_VALUE_CMAKE_PLUGIN_LINKING_TYPE "-DENABLE_STATIC=NO" "-DENABLE_SHARED=YES")
############################################################################
# options-ios.cmake
# Copyright (C) 2010-2018 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
############################################################################
# Define default values for the linphone builder options
set(DEFAULT_VALUE_ENABLE_FFMPEG OFF)
set(DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES ON)
set(DEFAULT_VALUE_ENABLE_GSM ON)
set(DEFAULT_VALUE_ENABLE_ILBC ON)
set(DEFAULT_VALUE_ENABLE_ISAC ON)
set(DEFAULT_VALUE_ENABLE_JPEG ON)
set(DEFAULT_VALUE_ENABLE_MBEDTLS ON)
set(DEFAULT_VALUE_ENABLE_MKV ON)
set(DEFAULT_VALUE_ENABLE_OPUS ON)
set(DEFAULT_VALUE_ENABLE_SILK OFF)
set(DEFAULT_VALUE_ENABLE_SPEEX ON)
set(DEFAULT_VALUE_ENABLE_G729 ${DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES})
set(DEFAULT_VALUE_ENABLE_G729B_CNG OFF)
set(DEFAULT_VALUE_ENABLE_SRTP ON)
set(DEFAULT_VALUE_ENABLE_UNIT_TESTS OFF) #link of binary significantly slow down compilation.
set(DEFAULT_VALUE_ENABLE_VCARD ON)
set(DEFAULT_VALUE_ENABLE_VIDEO ON)
set(DEFAULT_VALUE_ENABLE_VPX ON)
set(DEFAULT_VALUE_ENABLE_ZRTP ON)
set(DEFAULT_VALUE_ENABLE_LIME ON)
set(DEFAULT_VALUE_ENABLE_TOOLS OFF)
set(DEFAULT_VALUE_ENABLE_UPDATE_CHECK ON)
set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=YES" "-DENABLE_SHARED=NO")
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