Commit 6035e856 authored by Ghislain MARY's avatar Ghislain MARY

Remove now useless LINPHONE_BUILDER_BUILD_DEPENDENCIES option.

parent f1d409b3
############################################################################
# CMakeLists.txt
# Copyright (C) 2014 Belledonne Communications, Grenoble France
# Copyright (C) 2014-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
......@@ -32,7 +32,6 @@ set(LINPHONE_BUILDER_TARGET "linphone" CACHE STRING "Target to build.")
set(LINPHONE_BUILDER_PREBUILT_URL "" CACHE STRING "URL to download some prebuilt dependencies.")
option(LINPHONE_BUILDER_LATEST "Build latest versions (from git)." NO)
option(LINPHONE_BUILDER_CHECK_LASTEST "Check that the git revisions are the latest ones." NO)
option(LINPHONE_BUILDER_BUILD_DEPENDENCIES "Build the dependencies instead of using the system libraries." YES)
set(LINPHONE_BUILDER_EXTERNAL_SOURCE_PATH "" CACHE PATH "External path to source code that is available.")
set(LINPHONE_BUILDER_DUMMY_LIBRARIES "" CACHE STRING "Dummy libraries to be generated.")
option(LINPHONE_BUILDER_USE_SYSTEM_DEPENDENCIES "Use system dependencies." NO)
......
############################################################################
# bctoolbox.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
# Copyright (C) 2014-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
......@@ -28,15 +28,13 @@ lcb_groupable(YES)
lcb_package_source(YES)
lcb_spec_file("bctoolbox.spec")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(ENABLE_MBEDTLS)
lcb_dependencies("mbedtls")
elseif(ENABLE_POLARSSL)
lcb_dependencies("polarssl")
endif()
if(ENABLE_UNIT_TESTS)
lcb_dependencies("bcunit")
endif()
if(ENABLE_MBEDTLS)
lcb_dependencies("mbedtls")
elseif(ENABLE_POLARSSL)
lcb_dependencies("polarssl")
endif()
if(ENABLE_UNIT_TESTS)
lcb_dependencies("bcunit")
endif()
lcb_cmake_options(
......
############################################################################
# bellesip.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
# Copyright (C) 2014-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
......@@ -34,10 +34,8 @@ if(ENABLE_TUNNEL)
lcb_dependencies("tunnel")
endif()
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(NOT APPLE AND NOT ANDROID AND NOT QNX)
lcb_dependencies("zlib")
endif()
if(NOT APPLE AND NOT ANDROID AND NOT QNX)
lcb_dependencies("zlib")
endif()
lcb_cmake_options(
......
############################################################################
# bzrtp.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
# Copyright (C) 2014-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
......@@ -28,14 +28,12 @@ lcb_groupable(YES)
lcb_package_source(YES)
lcb_dependencies("bctoolbox")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(NOT APPLE)
# Do not build xml2 neither sqlite3 on Apple systems (Mac OS X and iOS), they are provided by the system
lcb_dependencies("xml2" "sqlite3")
endif()
if(ENABLE_UNIT_TESTS)
lcb_dependencies("bcunit")
endif()
if(NOT APPLE)
# Do not build xml2 neither sqlite3 on Apple systems (Mac OS X and iOS), they are provided by the system
lcb_dependencies("xml2" "sqlite3")
endif()
if(ENABLE_UNIT_TESTS)
lcb_dependencies("bcunit")
endif()
if(MINGW)
lcb_extra_cppflags("-D__USE_MINGW_ANSI_STDIO")
......
############################################################################
# linphone.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
# Copyright (C) 2014-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
......@@ -30,7 +30,7 @@ lcb_spec_file("liblinphone.spec")
lcb_rpmbuild_name("liblinphone")
lcb_dependencies("bctoolbox" "bellesip" "ortp" "ms2" "ms2plugins" "belr" "libxsd" "soci")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT APPLE)
if(NOT APPLE)
# Do not build sqlite3, xml2 and zlib on Apple systems (Mac OS X and iOS), they are provided by the system
lcb_dependencies("sqlite3" "xml2")
if(NOT ANDROID AND NOT QNX)
......
############################################################################
# ms2.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
# Copyright (C) 2014-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
......@@ -53,16 +53,16 @@ lcb_cmake_options(
"-DENABLE_G729B_CNG=${ENABLE_G729B_CNG}"
"-DENABLE_JPEG=${ENABLE_JPEG}"
)
if(ENABLE_GSM AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(ENABLE_GSM)
lcb_dependencies("gsm")
endif()
if(ENABLE_OPUS AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(ENABLE_OPUS)
lcb_dependencies("opus")
endif()
if(ENABLE_SPEEX AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(ENABLE_SPEEX)
lcb_dependencies("speex")
endif()
if(ENABLE_BV16 AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(ENABLE_BV16)
lcb_dependencies("bv16")
endif()
if(ENABLE_G729 OR ENABLE_G729B_CNG)
......@@ -78,14 +78,14 @@ if(ENABLE_VIDEO)
"-DENABLE_FFMPEG=${ENABLE_FFMPEG}"
"-DENABLE_VPX=${ENABLE_VPX}"
)
if(ENABLE_FFMPEG AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(ENABLE_FFMPEG)
if(ANDROID)
lcb_dependencies("ffmpegandroid")
else()
lcb_dependencies("ffmpeg")
endif()
endif()
if(ENABLE_VPX AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(ENABLE_VPX)
lcb_dependencies("vpx")
endif()
endif()
......@@ -102,14 +102,14 @@ lcb_cmake_options(
"-DENABLE_SRTP=${ENABLE_SRTP}"
"-DENABLE_ZRTP=${ENABLE_ZRTP}"
)
if(ENABLE_SRTP AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(ENABLE_SRTP)
lcb_dependencies("srtp")
endif()
if(ENABLE_ZRTP)
lcb_dependencies("bzrtp")
endif()
if(ENABLE_V4L AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(ENABLE_V4L)
lcb_dependencies("v4l")
endif()
############################################################################
# soci.cmake
# Copyright (C) 2015 Belledonne Communications, Grenoble France
# Copyright (C) 2015-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
......@@ -22,8 +22,8 @@
lcb_git_repository("git://git.linphone.org/soci.git")
lcb_external_source_paths("externals/soci")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT APPLE)
# Do not build sqlite3 on Apple systems (Mac OS X and iOS), they are provided by the system
if(NOT APPLE)
# Do not build sqlite3 on Apple systems (Mac OS X and iOS), it is provided by the system
lcb_dependencies("sqlite3")
endif()
......
############################################################################
# tunnel.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
# Copyright (C) 2014-2018 Belledonne Communications, Grenoble France
#
############################################################################
#
......@@ -26,8 +26,6 @@ lcb_git_tag("5d8582208f37174ded18280c7c1f8feefb1c4c55")
lcb_external_source_paths("tunnel")
lcb_groupable(YES)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
lcb_dependencies("bctoolbox")
endif()
lcb_dependencies("bctoolbox")
lcb_cmake_options("-DENABLE_SERVERS=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