...
 
Commits (35)
......@@ -36,8 +36,8 @@ elseif(CMAKE_ANDROID_NDK_VERSION VERSION_LESS 17)
)
else()
set(SUPPORT_SOURCES
"${CMAKE_ANDROID_NDK}/sources/android/support/src/locale_support.cpp"
)
"${CMAKE_ANDROID_NDK}/sources/android/support/src/locale_support.cpp"
)
endif()
add_library(support STATIC ${SUPPORT_SOURCES})
......
......@@ -52,6 +52,7 @@ endif()
lcb_cmake_options(
"-DENABLE_TRANSCODER=${ENABLE_TRANSCODER}"
"-DENABLE_UNIT_TESTS=${ENABLE_UNIT_TESTS}"
"-DENABLE_ODBC=NO"
"-DENABLE_REDIS=${ENABLE_REDIS}"
"-DENABLE_SOCI=${ENABLE_SOCI}"
......@@ -64,3 +65,8 @@ lcb_cmake_options(
"-DENABLE_JWE_AUTH_PLUGIN=${ENABLE_JWE_AUTH_PLUGIN}"
"-DENABLE_EXTERNAL_AUTH_PLUGIN=${ENABLE_EXTERNAL_AUTH_PLUGIN}"
)
if (DEFINED SYSCONF_INSTALL_DIR)
lcb_cmake_options(
"-DSYSCONF_INSTALL_DIR=${SYSCONF_INSTALL_DIR}"
)
endif()
......@@ -32,3 +32,7 @@ lcb_dependencies("bctoolbox" "soci")
if(ENABLE_UNIT_TESTS)
lcb_dependencies("bellesip")
endif()
lcb_cmake_options(
"-DENABLE_C_INTERFACE=yes"
)
......@@ -56,6 +56,7 @@ lcb_cmake_options(
"-DENABLE_TOOLS=${ENABLE_TOOLS}"
"-DENABLE_NLS=${ENABLE_NLS}"
"-DENABLE_LIME=${ENABLE_LIME}"
"-DENABLE_LIME_X3DH=${ENABLE_LIME_X3DH}"
"-DENABLE_UNIT_TESTS=${ENABLE_UNIT_TESTS}"
"-DENABLE_POLARSSL=${ENABLE_POLARSSL}"
"-DENABLE_MBEDTLS=${ENABLE_MBEDTLS}"
......@@ -65,6 +66,8 @@ lcb_cmake_options(
"-DENABLE_VCARD=${ENABLE_VCARD}"
"-DENABLE_CXX_WRAPPER=${ENABLE_CXX_WRAPPER}"
"-DENABLE_CSHARP_WRAPPER=${ENABLE_CSHARP_WRAPPER}"
"-DENABLE_SWIFT_WRAPPER=${ENABLE_SWIFT_WRAPPER}"
"-DENABLE_JAZZY_DOC=${ENABLE_JAZZY_DOC}"
"-DENABLE_JAVA_WRAPPER=${ENABLE_JAVA_WRAPPER}"
"-DENABLE_QRCODE=${ENABLE_QRCODE}"
)
......@@ -32,7 +32,11 @@ lcb_rpmbuild_name("mediastreamer")
lcb_dependencies("ortp" "bctoolbox")
if(ANDROID)
lcb_dependencies("androidcpufeatures" "androidsupport")
if(CMAKE_ANDROID_NDK_VERSION VERSION_LESS 19)
lcb_dependencies("androidcpufeatures" "androidsupport")
else()
lcb_dependencies("androidcpufeatures")
endif()
endif()
lcb_cmake_options(
......
......@@ -47,6 +47,12 @@ endif()
if(ENABLE_VIDEO AND (CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone"))
lcb_dependencies("mswp8vid")
endif()
if(ENABLE_VIDEO AND (CMAKE_SYSTEM_NAME STREQUAL "WindowsStore"))
if(ENABLE_VIDEO AND WIN32)
lcb_dependencies("mswinrtvid")
endif()
if (ENABLE_AAUDIO)
lcb_dependencies("msaaudio")
endif()
if (ENABLE_ELPH264)
lcb_dependencies("mselph264")
endif()
############################################################################
# msaaudio.cmake
# Copyright (C) 2019 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.
#
############################################################################
lcb_git_repository("https://gitlab.linphone.org/BC/public/msaaudio.git")
lcb_git_tag_latest("master")
lcb_git_tag("master")
lcb_external_source_paths("msaaudio")
lcb_groupable(YES)
lcb_sanitizable(YES)
lcb_plugin(YES)
lcb_dependencies("ms2")
lcb_cmake_options(
"-DENABLE_AAUDIO=${ENABLE_AAUDIO}"
)
############################################################################
# mselph264.cmake
# Copyright (C) 2019 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.
#
############################################################################
lcb_git_repository("https://gitlab.linphone.org/BC/public/mselph264.git")
lcb_git_tag_latest("master")
lcb_git_tag("master")
lcb_external_source_paths("mselph264")
lcb_groupable(YES)
lcb_sanitizable(YES)
lcb_plugin(YES)
lcb_dependencies("ms2")
lcb_cmake_options(
"-DENABLE_ELPH264=${ENABLE_ELPH264}"
)
......@@ -135,7 +135,10 @@ else()
else()
set(VPX_TARGET "x86-android-gcc")
endif()
lcb_configure_options("--sdk-path=${CMAKE_ANDROID_NDK}/" )
lcb_configure_options(
"--sdk-path=${CMAKE_ANDROID_NDK}/"
"--android_ndk_api=${ANDROID_NATIVE_API_LEVEL}"
)
lcb_linking_type("--enable-static" "--disable-shared" "--enable-pic")
elseif(QNX)
set(VPX_TARGET "armv7-qnx-gcc")
......@@ -173,4 +176,7 @@ else()
lcb_configure_options("--disable-avx512")
endif()
lcb_configure_env("CC=$CC_NO_LAUNCHER LD=$CC_NO_LAUNCHER ASFLAGS=$ASFLAGS CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS")
# BUILD_ROOT is set by Xcode, but we still need the current build root.
# See https://gitlab.linphone.org/BC/public/external/libvpx/blob/v1.7.0-linphone/build/make/Makefile
lcb_make_options("BUILD_ROOT=.")
endif()
@if "%1" == "15" goto vs15
@if "%1" == "14" goto vs14
@if "%1" == "12" goto vs12
@if "%1" == "11" goto vs11
......@@ -6,6 +7,11 @@
@if "%1" == "9" goto vs9
@goto end
:vs15
:: No more env variable without load VsDevCmd script
@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
@goto printenv
:vs14
@call "%VS140COMNTOOLS%vsvars32.bat"
@goto printenv
......
......@@ -321,7 +321,18 @@ endmacro()
macro(linphone_builder_apply_flags)
string(TOUPPER "${CMAKE_BUILD_TYPE}" BUILD_TYPE)
if (CMAKE_CONFIGURATION_TYPES)
FOREACH(CONFIG_NAME ${CMAKE_CONFIGURATION_TYPES})
string(TOUPPER "${CONFIG_NAME}" CONFIG_NAME_UPPER)
linphone_builder_apply_flags_for_build_type(${CONFIG_NAME_UPPER})
ENDFOREACH(CONFIG_NAME)
else()
string(TOUPPER "${CMAKE_BUILD_TYPE}" BUILD_TYPE)
linphone_builder_apply_flags_for_build_type(${BUILD_TYPE})
endif()
endmacro()
macro(linphone_builder_apply_flags_for_build_type BUILD_TYPE)
if(LINPHONE_BUILDER_OSX_ARCHITECTURES)
set(CMAKE_OSX_ARCHITECTURES ${LINPHONE_BUILDER_OSX_ARCHITECTURES})
set(AUTOTOOLS_ARCH "-arch ${CMAKE_OSX_ARCHITECTURES}")
......@@ -378,7 +389,18 @@ endmacro()
macro(linphone_builder_apply_extra_flags PROJNAME)
string(TOUPPER "${CMAKE_BUILD_TYPE}" BUILD_TYPE)
if (CMAKE_CONFIGURATION_TYPES)
FOREACH(CONFIG_NAME ${CMAKE_CONFIGURATION_TYPES})
string(TOUPPER "${CONFIG_NAME}" CONFIG_NAME_UPPER)
linphone_builder_apply_extra_flags_for_build_type(${PROJNAME} ${CONFIG_NAME_UPPER})
ENDFOREACH(CONFIG_NAME)
else()
string(TOUPPER "${CMAKE_BUILD_TYPE}" BUILD_TYPE)
linphone_builder_apply_extra_flags_for_build_type(${PROJNAME} ${BUILD_TYPE})
endif()
endmacro()
macro(linphone_builder_apply_extra_flags_for_build_type PROJNAME BUILD_TYPE)
if(MSVC)
set(_no_warnings_flag "/W0")
else()
......@@ -430,7 +452,18 @@ endmacro()
macro(linphone_builder_restore_flags)
string(TOUPPER "${CMAKE_BUILD_TYPE}" BUILD_TYPE)
if (CMAKE_CONFIGURATION_TYPES)
FOREACH(CONFIG_NAME ${CMAKE_CONFIGURATION_TYPES})
string(TOUPPER "${CONFIG_NAME}" CONFIG_NAME_UPPER)
linphone_builder_restore_flags_for_build_type(${CONFIG_NAME_UPPER})
ENDFOREACH(CONFIG_NAME)
else()
string(TOUPPER "${CMAKE_BUILD_TYPE}" BUILD_TYPE)
linphone_builder_restore_flags_for_build_type(${BUILD_TYPE})
endif()
endmacro()
macro(linphone_builder_restore_flags_for_build_type BUILD_TYPE)
set(CMAKE_C_FLAGS_${BUILD_TYPE} "${SAVED_CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS_${BUILD_TYPE} "${SAVED_CMAKE_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS_${BUILD_TYPE} "${SAVED_CMAKE_EXE_LINKER_FLAGS}")
......
......@@ -72,7 +72,7 @@ lcb_builder_extra_cflags(codec2 "-ffast-math")
lcb_builder_linking_type(ffmpeg "--enable-static" "--disable-shared" "--enable-pic")
# lime
lcb_builder_cmake_options(lime "-DENABLE_UNIT_TESTS=NO")
lcb_builder_cmake_options(lime "-DENABLE_UNIT_TESTS=NO" "-DENABLE_JNI=YES")
# linphone
lcb_builder_cmake_options(linphone "-DENABLE_RELATIVE_PREFIX=YES")
......
......@@ -93,6 +93,7 @@ include(builders/CMakeLists.txt)
# linphone
if(WIN32)
lcb_builder_cmake_options(linphone "-DENABLE_RELATIVE_PREFIX=YES")
lcb_builder_extra_ldflags(linphone "/SAFESEH:NO")
else()
lcb_builder_cmake_options(linphone "-DENABLE_RELATIVE_PREFIX=${ENABLE_RELATIVE_PREFIX}")
endif()
......
......@@ -58,3 +58,65 @@ endif()
if(NOT LINPHONE_BUILDER_ADDITIONAL_CONFIG_STEPS)
set(LINPHONE_BUILDER_ADDITIONAL_CONFIG_STEPS "${CMAKE_CURRENT_LIST_DIR}/desktop/additional_steps.cmake")
endif()
if (MSVC)
lcb_builder_linking_type(mbedtls "-DUSE_STATIC_MBEDTLS_LIBRARY=YES" "-DUSE_SHARED_MBEDTLS_LIBRARY=NO")
endif()
if(APPLE)
set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_SHARED=NO" "-DENABLE_STATIC=YES")
# bctoolbox
lcb_builder_linking_type(bctoolbox "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
# belcard
lcb_builder_linking_type(belcard "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
# belr
lcb_builder_linking_type(belr "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
# lime
lcb_builder_linking_type(lime "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
# linphone
lcb_builder_cmake_options(linphone "-DENABLE_RELATIVE_PREFIX=YES")
lcb_builder_cmake_options(linphone "-DENABLE_CONSOLE_UI=NO")
lcb_builder_cmake_options(linphone "-DENABLE_DAEMON=NO")
lcb_builder_cmake_options(linphone "-DENABLE_NOTIFY=NO")
lcb_builder_cmake_options(linphone "-DENABLE_TUTORIALS=NO")
lcb_builder_cmake_options(linphone "-DENABLE_UPNP=NO")
lcb_builder_cmake_options(linphone "-DENABLE_MSG_STORAGE=YES")
lcb_builder_cmake_options(linphone "-DENABLE_DOC=NO")
lcb_builder_cmake_options(linphone "-DENABLE_NLS=NO")
lcb_builder_linking_type(linphone "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
# mbedtls
lcb_builder_linking_type(mbedtls "-DUSE_STATIC_MBEDTLS_LIBRARY=YES" "-DUSE_SHARED_MBEDTLS_LIBRARY=NO")
# mediastreamer2
lcb_builder_cmake_options(ms2 "-DENABLE_RELATIVE_PREFIX=YES")
lcb_builder_cmake_options(ms2 "-DENABLE_ALSA=NO")
lcb_builder_cmake_options(ms2 "-DENABLE_PULSEAUDIO=NO")
lcb_builder_cmake_options(ms2 "-DENABLE_OSS=NO")
lcb_builder_cmake_options(ms2 "-DENABLE_GLX=NO")
lcb_builder_cmake_options(ms2 "-DENABLE_X11=NO")
lcb_builder_cmake_options(ms2 "-DENABLE_XV=NO")
lcb_builder_cmake_options(ms2 "-DENABLE_DOC=NO")
lcb_builder_linking_type(ms2 "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
# ms2 plugins
lcb_builder_linking_type(msamr "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
lcb_builder_linking_type(mscodec2 "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
lcb_builder_linking_type(msopenh264 "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
lcb_builder_linking_type(mssilk "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
lcb_builder_linking_type(mswebrtc "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
lcb_builder_linking_type(msx264 "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
# ortp
lcb_builder_cmake_options(ortp "-DENABLE_DOC=NO")
lcb_builder_linking_type(ortp "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
# bellesip
lcb_builder_linking_type(bellesip "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
endif()
......@@ -37,7 +37,7 @@ function(CHECK_LIBRARY libname)
endif()
endfunction()
set(FLEXISIP_LIBDEPS ssl mysqlclient_r mysqlclient)
set(FLEXISIP_LIBDEPS ssl)
foreach(LIBNAME ${FLEXISIP_LIBDEPS})
check_library(${LIBNAME})
......@@ -64,6 +64,7 @@ if(LSB_RELEASE_DISTRO STREQUAL "Debian" AND (LSB_RELEASE_DISTRO_VERSION STREQUAL
else()
set(DEFAULT_VALUE_ENABLE_MBEDTLS ON)
endif()
set(DEFAULT_VALUE_ENABLE_TRANSCODER ON)
set(DEFAULT_VALUE_ENABLE_REDIS ON)
set(DEFAULT_VALUE_ENABLE_SOCI ON)
set(DEFAULT_VALUE_ENABLE_UNIT_TESTS OFF)
......@@ -95,6 +96,7 @@ lcb_builder_cmake_options(linphone
lcb_builder_cmake_options(soci
"-DWITH_MYSQL=ON"
"-DWITH_POSTGRESQL=ON"
"-DSOCI_SHARED=ON"
)
# prepare the RPMBUILD options that we need to pass
......
......@@ -22,15 +22,16 @@
# Define default values for the flexisip builder options
set(DEFAULT_VALUE_ENABLE_REDIS ON)
set(DEFAULT_VALUE_ENABLE_UNIT_TESTS OFF)
set(DEFAULT_VALUE_ENABLE_UNIT_TESTS ON)
set(DEFAULT_VALUE_ENABLE_PRESENCE ON)
set(DEFAULT_VALUE_ENABLE_CONFERENCE ON)
set(DEFAULT_VALUE_ENABLE_SNMP OFF)
set(DEFAULT_VALUE_ENABLE_POLARSSL OFF)
set(DEFAULT_VALUE_ENABLE_MBEDTLS ON)
set(DEFAULT_VALUE_ENABLE_PROTOBUF OFF)
set(DEFAULT_VALUE_ENABLE_JWE_AUTH_PLUGIN OFF)
set(DEFAULT_VAULE_ENABLE_EXTERNAL_AUTH_PLUGIN OFF)
set(DEFAULT_VALUE_ENABLE_JWE_AUTH_PLUGIN ON)
set(DEFAULT_VAULE_ENABLE_EXTERNAL_AUTH_PLUGIN ON)
set(DEFAULT_VALUE_ENABLE_TRANSCODER ON)
set(DEFAULT_VALUE_ENABLE_SOCI ON)
set(DEFAULT_VALUE_ENABLE_VCARD OFF)
......@@ -96,4 +97,4 @@ if(ENABLE_CONFERENCE)
endif()
# soci
lcb_builder_cmake_options(soci "-DWITH_MYSQL=ON")
lcb_builder_cmake_options(soci "-DWITH_MYSQL=ON" "-DSOCI_FRAMEWORK=OFF")
......@@ -31,7 +31,7 @@ set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks")
# Global configuration
if(NOT LINPHONE_IOS_DEPLOYMENT_TARGET)
set(LINPHONE_IOS_DEPLOYMENT_TARGET 8.0)
set(LINPHONE_IOS_DEPLOYMENT_TARGET 9.0)
endif()
set(LINPHONE_BUILDER_HOST "${CMAKE_SYSTEM_PROCESSOR}-apple-darwin")
set(COMMON_FLAGS "-miphoneos-version-min=${LINPHONE_IOS_DEPLOYMENT_TARGET} -fms-extensions")
......@@ -130,3 +130,5 @@ lcb_builder_linking_type(vpx "--enable-static" "--disable-shared")
lcb_builder_linking_type(x264 "--enable-static" "--enable-pic")
lcb_builder_install_target(x264 "install-lib-static")
# bellesip
lcb_builder_linking_type(bellesip "-DENABLE_SHARED=YES" "-DENABLE_STATIC=NO")
......@@ -36,6 +36,8 @@ include(builders/CMakeLists.txt)
# linphone
lcb_builder_cmake_options(linphone "-DENABLE_CSHARP_WRAPPER=YES")
lcb_builder_cmake_options(linphone "-DENABLE_SWIFT_WRAPPER=NO")
lcb_builder_cmake_options(linphone "-DENABLE_JAZZY_DOC=NO")
lcb_builder_cmake_options(linphone "-DENABLE_RELATIVE_PREFIX=YES")
lcb_builder_cmake_options(linphone "-DENABLE_CONSOLE_UI=NO")
lcb_builder_cmake_options(linphone "-DENABLE_DAEMON=NO")
......
......@@ -27,11 +27,12 @@ lcb_add_dependent_option("Embedded OpenH264" "Embed the openh264 library instead
# 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_GPL_THIRD_PARTIES OFF)
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_LIME_X3DH ON)
set(DEFAULT_VALUE_ENABLE_MBEDTLS ON)
set(DEFAULT_VALUE_ENABLE_MKV ON)
set(DEFAULT_VALUE_ENABLE_OPUS ON)
......@@ -40,7 +41,7 @@ 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_UNIT_TESTS OFF)
set(DEFAULT_VALUE_ENABLE_VCARD ON)
set(DEFAULT_VALUE_ENABLE_VIDEO ON)
set(DEFAULT_VALUE_ENABLE_VPX ON)
......@@ -49,4 +50,5 @@ set(DEFAULT_VALUE_ENABLE_WEBRTC_AEC ON)
set(DEFAULT_VALUE_ENABLE_ZRTP ON)
set(DEFAULT_VALUE_ENABLE_TOOLS OFF)
set(DEFAULT_VALUE_ENABLE_JAVA_WRAPPER ON)
set(DEFAULT_VALUE_ENABLE_QRCODE ON)
set(ENABLE_NLS NO CACHE BOOL "" FORCE)
......@@ -23,20 +23,21 @@
# Define default values for the linphone builder options
set(DEFAULT_VALUE_ENABLE_BV16 ON)
set(DEFAULT_VALUE_ENABLE_CXX_WRAPPER ON)
set(DEFAULT_VALUE_ENABLE_FFMPEG ON)
set(DEFAULT_VALUE_ENABLE_FFMPEG OFF)
set(DEFAULT_VALUE_ENABLE_G729 ${DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES})
set(DEFAULT_VALUE_ENABLE_G729B_CNG OFF)
set(DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES ON)
set(DEFAULT_VALUE_ENABLE_GSM ON)
set(DEFAULT_VALUE_ENABLE_GTK_UI OFF)
set(DEFAULT_VALUE_ENABLE_JPEG ON)
set(DEFAULT_VALUE_ENABLE_LIME_X3DH ON)
set(DEFAULT_VALUE_ENABLE_MBEDTLS ON)
set(DEFAULT_VALUE_ENABLE_MKV ON)
set(DEFAULT_VALUE_ENABLE_NLS OFF)
set(DEFAULT_VALUE_ENABLE_OPUS ON)
set(DEFAULT_VALUE_ENABLE_SPEEX ON)
set(DEFAULT_VALUE_ENABLE_SRTP ON)
set(DEFAULT_VALUE_ENABLE_TOOLS OFF)
set(DEFAULT_VALUE_ENABLE_TOOLS ON)
if(NOT LINPHONE_BUILDER_ENABLE_RPM_PACKAGING)
set(DEFAULT_VALUE_ENABLE_UNIT_TESTS ON)
endif()
......
......@@ -22,7 +22,7 @@
# 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_GPL_THIRD_PARTIES OFF)
set(DEFAULT_VALUE_ENABLE_GSM ON)
set(DEFAULT_VALUE_ENABLE_ILBC ON)
set(DEFAULT_VALUE_ENABLE_ISAC ON)
......@@ -34,11 +34,13 @@ 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_LIME_X3DH ON)
set(DEFAULT_VALUE_ENABLE_SRTP ON)
set(DEFAULT_VALUE_ENABLE_UNIT_TESTS ON)
set(DEFAULT_VALUE_ENABLE_UNIT_TESTS OFF)
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_TOOLS OFF)
set(DEFAULT_VALUE_ENABLE_QRCODE ON)
set(DEFAULT_VALUE_ENABLE_UPDATE_CHECK ON)
......@@ -22,6 +22,8 @@
# Define default values for the linphone builder options
set(DEFAULT_VALUE_ENABLE_CSHARP_WRAPPER ON)
set(DEFAULT_VALUE_ENABLE_SWIFT_WRAPPER OFF)
set(DEFAULT_VALUE_ENABLE_JAZZY_DOC OFF)
set(DEFAULT_VALUE_ENABLE_FFMPEG OFF)
set(DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES ON)
set(DEFAULT_VALUE_ENABLE_G729 ${DEFAULT_VALUE_ENABLE_GPL_THIRD_PARTIES})
......
......@@ -25,7 +25,6 @@
lcb_add_option("Unit tests" "Enable unit tests support with BCUnit library." "${DEFAULT_VALUE_ENABLE_UNIT_TESTS}")
lcb_add_option("Debug logs" "Enable debug level logs in libinphone and mediastreamer2." NO)
lcb_add_option("Doc" "Enable documentation generation with Doxygen and Sphinx" NO)
lcb_add_option("SOCI" "Enable SOCI support." "${DEFAULT_VALUE_ENABLE_SOCI}")
lcb_add_option("Tools" "Enable tools binary compilation." "${DEFAULT_VALUE_ENABLE_TOOLS}")
lcb_add_option("unmaintained" "Allow inclusion of unmaintained code in the build." OFF)
......
......@@ -26,7 +26,8 @@ lcb_add_option("Redis" "Enable hiredis support." "${DEFAULT_VALUE_ENABLE_REDIS}"
lcb_add_option("Presence" "Enable presence server support." "${DEFAULT_VALUE_ENABLE_PRESENCE}")
lcb_add_option("Conference" "Enable conference server support." "${DEFAULT_VALUE_ENABLE_CONFERENCE}")
lcb_add_option("SNMP" "Enable SNMP support." "${DEFAULT_ENABLE_SNMP}")
lcb_add_option("Transcoder" "Enable transcoder support." "${DEFAULT_ENABLE_TRANSCODER}")
lcb_add_option("Transcoder" "Enable transcoder support." "${DEFAULT_VALUE_ENABLE_TRANSCODER}")
lcb_add_option("Protobuf" "Enable protobuf for REDIS." "${DEFAULT_ENABLE_PROTOBUF}" "ENABLE_PROTOBUF" OFF)
lcb_add_option("Jwe Auth Plugin" "Enable JweAuth plugin support." "${DEFAULT_VALUE_ENABLE_JWE_AUTH_PLUGIN}")
lcb_add_option("External Auth Plugin" "Enable ExternalAuth plugin support" "${DEFAULT_VALUE_ENABLE_EXTERNAL_AUTH_PLUGIN}")
lcb_add_option("SOCI" "Enable SOCI support." "${DEFAULT_VALUE_ENABLE_SOCI}")
......@@ -25,9 +25,11 @@
lcb_add_option("GTK UI" "Enable the GTK user interface of Linphone." "${DEFAULT_VALUE_ENABLE_GTK_UI}")
lcb_add_option("CXX wrapper" "Build the C++ wrapper for Liblinphone." "${DEFAULT_VALUE_ENABLE_CXX_WRAPPER}")
lcb_add_option("CSharp wrapper" "Build the C# wrapper from Liblinphone." "${DEFAULT_VALUE_ENABLE_CSHARP_WRAPPER}")
lcb_add_option("Swift wrapper" "Build the Swift wrapper from Liblinphone." "${DEFAULT_VALUE_ENABLE_SWIFT_WRAPPER}")
lcb_add_option("Jazzy doc" "Build the Swift doc from Liblinphone." "${DEFAULT_VALUE_ENABLE_JAZZY_DOC}")
lcb_add_option("Java wrapper" "Build the Java wrapper from Liblinphone." "${DEFAULT_VALUE_ENABLE_JAVA_WRAPPER}")
lcb_add_option("LIME" "Enable Linphone IM Encryption support in Liblinphone." OFF)
lcb_add_option("LIME X3DH" "Enable Linphone IM Encryption version 2 support in Liblinphone." ON)
lcb_add_option("LIME" "Enable Linphone IM Encryption support in Liblinphone." "${DEFAULT_VALUE_ENABLE_LIME}")
lcb_add_option("LIME X3DH" "Enable Linphone IM Encryption version 2 support in Liblinphone." "${DEFAULT_VALUE_ENABLE_LIME_X3DH}")
lcb_add_option("NLS" "Enable internationalization of Linphone and Liblinphone." "${DEFAULT_VALUE_ENABLE_NLS}")
lcb_add_option("Update Check" "Enable update check." "${DEFAULT_VALUE_ENABLE_UPDATE_CHECK}")
lcb_add_option("VCARD" "Enable vCard 4 support in Linphone and Liblinphone." "${DEFAULT_VALUE_ENABLE_VCARD}")
......
......@@ -64,6 +64,7 @@ lcb_add_strict_dependent_option("MPEG4" "MPEG4 video encoding/decoding support (
lcb_add_strict_dependent_option("OpenH264" "H.264 video encoding/decoding support with the openh264 library (require license)." OFF "ENABLE_VIDEO" OFF "ENABLE_NON_FREE_CODECS" "non free codecs option not enabled (ENABLE_NON_FREE_CODECS).")
lcb_add_dependent_option("VPX" "VPX (VP8) video encoding/decoding support." "${DEFAULT_VALUE_ENABLE_VPX}" "ENABLE_VIDEO" OFF)
lcb_add_strict_dependent_option("X264" "H.264 video encoding support with the x264 library (require license)." OFF "ENABLE_VIDEO;ENABLE_GPL_THIRD_PARTIES;ENABLE_UNMAINTAINED" OFF "ENABLE_NON_FREE_CODECS" "non free codecs option not enabled (ENABLE_NON_FREE_CODECS).")
lcb_add_option("AAudio" "AAudio Android sound card for Android 8+." "${DEFAULT_VALUE_ENABLE_AAUDIO}")
# Other options
lcb_add_option("PCAP" "PCAP support." "${DEFAULT_VALUE_ENABLE_PCAP}")
......@@ -185,7 +185,7 @@ class Preparator:
self.missing_python_dependencies = []
self.missing_dependencies = {}
self.wrong_cmake_version = False
self.release_with_debug_info = False
self.release_with_debug_info = True
self.veryclean = False
self.show_gpl_disclaimer = False
self.min_cmake_version = None
......@@ -518,12 +518,4 @@ class Preparator:
def prepare_tunnel(self):
if self.args.tunnel:
if not os.path.isdir("submodules/tunnel"):
info("Tunnel wanted but not found yet, trying to clone it...")
p = Popen("git clone gitosis@git.linphone.org:tunnel.git submodules/tunnel".split(" "))
p.wait()
if p.returncode != 0:
error("Could not clone tunnel. Please see http://www.belledonne-communications.com/voiptunnel.html")
return 1
info("Tunnel enabled.")
self.additional_args += ["-DENABLE_TUNNEL=YES"]
......@@ -30,18 +30,43 @@ if(NOT CMAKE_ANDROID_NDK)
endif()
file(READ "${CMAKE_ANDROID_NDK}/source.properties" SOURCE_PROPERTIES_CONTENT)
string(REGEX MATCH "Pkg\\.Revision = ([0-9]+)\\." NDK_VERSION_MATCH "${SOURCE_PROPERTIES_CONTENT}")
string(REGEX MATCH "Pkg\\.Revision = ([0-9]+)\\.([0-9]+)\\." NDK_VERSION_MATCH "${SOURCE_PROPERTIES_CONTENT}")
set(CMAKE_ANDROID_NDK_VERSION ${CMAKE_MATCH_1})
set(CMAKE_ANDROID_NDK_VERSION_MINOR ${CMAKE_MATCH_2})
set(ANDROID_NATIVE_API_LEVEL "android-17")
if(ENABLE_AAUDIO)
set(ANDROID_NATIVE_API_LEVEL "android-28")
else()
if(CMAKE_ANDROID_NDK_VERSION VERSION_LESS 19)
set(ANDROID_NATIVE_API_LEVEL "android-17")
else()
# Starting with NDK 19, API 17 no longer exists
set(ANDROID_NATIVE_API_LEVEL "android-21")
endif()
endif()
set(ANDROID_CPP_FEATURES "rtti exceptions")
set(ANDROID_STL "c++_shared")
include("${CMAKE_ANDROID_NDK}/build/cmake/android.toolchain.cmake")
set(CMAKE_FIND_ROOT_PATH "${CMAKE_SYSROOT}" "${ANDROID_SYSTEM_LIBRARY_PATH}" "${CMAKE_INSTALL_PREFIX}")
if(CMAKE_ANDROID_NDK_VERSION VERSION_LESS 19)
set(CMAKE_FIND_ROOT_PATH "${CMAKE_SYSROOT}" "${ANDROID_SYSTEM_LIBRARY_PATH}" "${CMAKE_INSTALL_PREFIX}")
else()
if(CMAKE_ANDROID_NDK_VERSION VERSION_EQUAL 19)
# NDK 19b needs this, but not NDK 19
if(CMAKE_ANDROID_NDK_VERSION_MINOR GREATER_EQUAL 1)
set(CMAKE_FIND_ROOT_PATH "${CMAKE_SYSROOT}" "${ANDROID_SYSTEM_LIBRARY_PATH}" "${CMAKE_INSTALL_PREFIX}")
endif()
else()
set(CMAKE_FIND_ROOT_PATH "${CMAKE_SYSROOT}" "${ANDROID_SYSTEM_LIBRARY_PATH}" "${CMAKE_INSTALL_PREFIX}")
endif()
endif()
set(CMAKE_CXX_FLAGS_RELEASE "-Os -DNDEBUG")
set(CMAKE_C_FLAGS_RELEASE "-Os -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-Os -g -DNDEBUG")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-Os -g -DNDEBUG")
set(CMAKE_C_FLAGS_ASAN "-fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls")
set(CMAKE_CXX_FLAGS_ASAN "-fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls")
set(CMAKE_SHARED_LINKER_FLAGS_ASAN "-fsanitize=address")
\ No newline at end of file