Commit 637a6a65 authored by Ghislain MARY's avatar Ghislain MARY

Clean builders.

parent 968ce552
......@@ -25,8 +25,9 @@ set(EP_antlr3c_GIT_TAG_LATEST "linphone")
set(EP_antlr3c_GIT_TAG "311b6764e3f440db43617296ff856f7ec07bfdef")
set(EP_antlr3c_EXTERNAL_SOURCE_PATHS "antlr3c" "antlr3" "externals/antlr3")
set(EP_antlr3c_CMAKE_OPTIONS "-DENABLE_DEBUGGER=NO")
set(EP_antlr3c_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
if(MSVC)
set(EP_antlr3c_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_antlr3c_CMAKE_OPTIONS "-DENABLE_DEBUGGER=NO")
......@@ -25,7 +25,5 @@ set(EP_bcg729_GIT_TAG_LATEST "master")
set(EP_bcg729_GIT_TAG "7f76ef482b26400995474d37fc330565a9fe0e9e")
set(EP_bcg729_EXTERNAL_SOURCE_PATHS "bcg729")
set(EP_bcg729_CMAKE_OPTIONS )
set(EP_bcg729_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_bcg729_DEPENDENCIES EP_ms2)
......@@ -25,7 +25,6 @@ set(EP_bellesip_GIT_TAG_LATEST "master")
set(EP_bellesip_GIT_TAG "ef77560739397b042da62189236b2c1889f84cd3")
set(EP_bellesip_EXTERNAL_SOURCE_PATHS "belle-sip")
set(EP_bellesip_CMAKE_OPTIONS )
set(EP_bellesip_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_bellesip_DEPENDENCIES )
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
......@@ -35,22 +34,12 @@ if(MSVC)
set(EP_bellesip_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
if(ENABLE_RTP_MAP_ALWAYS_IN_SDP)
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_RTP_MAP_ALWAYS_IN_SDP=YES")
else()
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_RTP_MAP_ALWAYS_IN_SDP=NO")
endif()
set(EP_bellesip_CMAKE_OPTIONS "-DENABLE_RTP_MAP_ALWAYS_IN_SDP=${ENABLE_RTP_MAP_ALWAYS_IN_SDP}")
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TUNNEL=${ENABLE_TUNNEL}")
if(ENABLE_TUNNEL)
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TUNNEL=YES")
list(APPEND EP_bellesip_DEPENDENCIES EP_tunnel)
else()
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TUNNEL=NO")
endif()
if(ENABLE_UNIT_TESTS)
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TESTS=YES")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_bellesip_DEPENDENCIES EP_cunit)
endif()
else()
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TESTS=${ENABLE_UNIT_TESTS}")
if(ENABLE_UNIT_TESTS AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_bellesip_DEPENDENCIES EP_cunit)
endif()
......@@ -25,7 +25,6 @@ set(EP_bzrtp_GIT_TAG_LATEST "master")
set(EP_bzrtp_GIT_TAG "197b527d97a633074ecac82938a20073f73b88b0")
set(EP_bzrtp_EXTERNAL_SOURCE_PATHS "bzrtp")
set(EP_bzrtp_CMAKE_OPTIONS )
set(EP_bzrtp_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_bzrtp_DEPENDENCIES )
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
......@@ -42,12 +41,7 @@ if(MINGW)
set(EP_bzrtp_EXTRA_CPPFLAGS "-D__USE_MINGW_ANSI_STDIO")
endif()
if(ENABLE_UNIT_TESTS)
list(APPEND EP_bzrtp_CMAKE_OPTIONS "-DENABLE_TESTS=YES")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_bzrtp_DEPENDENCIES EP_cunit)
endif()
else()
list(APPEND EP_bzrtp_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
set(EP_bzrtp_CMAKE_OPTIONS "-DENABLE_TESTS=${ENABLE_UNIT_TESTS}")
if(ENABLE_UNIT_TESTS AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_bzrtp_DEPENDENCIES EP_cunit)
endif()
......@@ -25,8 +25,9 @@ set(EP_cunit_GIT_TAG_LATEST "linphone")
set(EP_cunit_GIT_TAG "c4ba94426b409285222c60616918b35cce658943")
set(EP_cunit_EXTERNAL_SOURCE_PATHS "cunit" "externals/cunit")
set(EP_cunit_CMAKE_OPTIONS "-DENABLE_AUTOMATED=YES" "-DENABLE_CONSOLE=NO")
set(EP_cunit_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
if(MSVC)
set(EP_cunit_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_cunit_CMAKE_OPTIONS "-DENABLE_AUTOMATED=YES" "-DENABLE_CONSOLE=NO")
......@@ -24,27 +24,30 @@ set(EP_flexisip_GIT_REPOSITORY "git://git.linphone.org/flexisip")
set(EP_flexisip_GIT_TAG_LATEST "master")
set(EP_flexisip_GIT_TAG "d9a1718948629a3f03dd754bc779bab41d4c9753")
set(EP_flexisip_DEPENDENCIES EP_ortp EP_sofiasip )
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_ODB=${ENABLE_ODB}")
if( ENABLE_ODB )
message(STATUS "Flexisip to be built with ODB")
list(APPEND EP_flexisip_DEPENDENCIES EP_libodbmysql)
endif()
set(EP_flexisip_LINKING_TYPE "--disable-static" "--enable-shared")
set(EP_flexisip_BUILD_METHOD "autotools")
set(EP_flexisip_USE_AUTOGEN True)
set(EP_flexisip_CONFIGURE_OPTIONS )
set(EP_flexisip_CMAKE_OPTIONS )
set(EP_flexisip_CROSS_COMPILATION_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
"--host=${LINPHONE_BUILDER_HOST}"
)
set(EP_flexisip_CONFIG_H_FILE "flexisip.spec")
set(EP_flexisip_SPEC_FILE "flexisip.spec")
set(EP_flexisip_DEPENDENCIES EP_ortp EP_sofiasip )
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-transcoder")
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_TRANSCODER=NO")
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_ODB=${ENABLE_ODB}")
if(ENABLE_ODB)
list(APPEND EP_flexisip_DEPENDENCIES EP_libodbmysql)
endif()
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_ODBC=${ENABLE_ODBC}")
if ( ENABLE_ODBC )
if( USE_BC_ODBC )
if(ENABLE_ODBC)
if(USE_BC_ODBC)
message(STATUS "Flexisip to be built with BC ODBC")
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--with-odbc=${CMAKE_INSTALL_PREFIX}")
list(APPEND EP_flexisip_DEPENDENCIES EP_unixodbc EP_myodbc)
......@@ -52,23 +55,19 @@ if ( ENABLE_ODBC )
message(STATUS "Flexisip to be built with system ODBC")
endif()
else()
message(STATUS "Flexisip to be built without ODBC")
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-odbc")
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-odbc")
endif()
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_REDIS=${ENABLE_REDIS}")
if ( ENABLE_REDIS )
if(ENABLE_REDIS)
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-redis")
else()
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-redis")
endif()
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-transcoder")
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_TRANSCODER=0")
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_PUSHNOTIFICATION=${ENABLE_PUSHNOTIFICATION}")
if ( ENABLE_PUSHNOTIFICATION )
if(ENABLE_PUSHNOTIFICATION)
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-pushnotification")
else()
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-pushnotification")
endif()
set(EP_flexisip_SPEC_FILE "flexisip.spec")
......@@ -29,4 +29,3 @@ set(EP_gsm_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
if(MSVC)
set(EP_gsm_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
############################################################################
# hiredis.cmake
# Copyright (C) 2015 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(hiredis_filename "v0.11.0.tar.gz")
#set(hiredis_filename "v0.11.0.tar.gz")
#set(EP_hiredis_URL "https://github.com/redis/hiredis/archive/${hiredis_filename}")
#set(EP_hiredis_URL_HASH "SHA1=694b6d7a6e4ea7fb20902619e9a2423c014b37c1")
set(EP_hiredis_BUILD_METHOD "rpm")
set(EP_hiredis_GIT_REPOSITORY "https://github.com/redis/hiredis.git")
set(EP_hiredis_GIT_TAG "0fff0f182b96b4ffeee8379f29ed5129c3f72cf7")
set(EP_hiredis_BUILD_METHOD "rpm")
set(EP_hiredis_SPEC_FILE "hiredis.spec" )
set(EP_hiredis_CONFIG_H_FILE "${CMAKE_CURRENT_SOURCE_DIR}/builders/hiredis/${EP_hiredis_SPEC_FILE}" )
......
......@@ -25,6 +25,4 @@ set(EP_libilbcrfc3951_GIT_TAG_LATEST "master")
set(EP_libilbcrfc3951_GIT_TAG "6585f5926f693c58fcb6e8a71a2065bd33949b1a")
set(EP_libilbcrfc3951_EXTERNAL_SOURCE_PATHS "libilbc-rfc3951")
set(EP_libilbcrfc3951_CMAKE_OPTIONS )
set(EP_libilbcrfc3951_LINKING_TYPE "-DENABLE_STATIC=YES")
......@@ -23,8 +23,8 @@
set(libodb_filename "libodb-2.3.0.tar.bz2")
set(EP_libodb_URL "http://www.codesynthesis.com/download/odb/2.3/${libodb_filename}")
set(EP_libodb_URL_HASH "SHA1=eebc7fa706bc598a80439d1d6a798430fcfde23b")
set(EP_libodb_BUILD_METHOD "rpm")
set(EP_libodb_BUILD_METHOD "rpm")
set(EP_libodb_SPEC_FILE "libodb.spec" )
set(EP_libodb_CONFIG_H_FILE "${CMAKE_CURRENT_SOURCE_DIR}/builders/libodb/${EP_libodb_SPEC_FILE}" )
set(EP_libodb_DEPENDENCIES EP_odb)
......
......@@ -25,11 +25,9 @@ set(EP_libodbmysql_URL "http://www.codesynthesis.com/download/odb/2.3/${libodbmy
set(EP_libodbmysql_URL_HASH "SHA1=18adaa5535015e3471a5d205e44df42f0e3a3d37")
set(EP_libodbmysql_BUILD_METHOD "rpm")
set(EP_libodbmysql_SPEC_FILE "libodbmysql.spec" )
set(EP_libodbmysql_CONFIG_H_FILE "${CMAKE_CURRENT_SOURCE_DIR}/builders/libodbmysql/${EP_libodbmysql_SPEC_FILE}" )
set(EP_libodbmysql_DEPENDENCIES EP_libodb)
set(EP_libodbmysql_RPMBUILD_NAME "libodb-mysql")
#create source dir and copy the tar.gz inside
......
......@@ -26,45 +26,25 @@ set(EP_linphone_GIT_TAG "e3bf7b0387a9e8f782ff745575dd412e193246de")
set(EP_linphone_EXTERNAL_SOURCE_PATHS "linphone")
set(EP_linphone_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_linphone_CMAKE_OPTIONS )
set(EP_linphone_DEPENDENCIES EP_bellesip EP_ortp EP_ms2)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT IOS)
# Do not build sqlite3 and xml2 on IOS, they are provided by the system
list(APPEND EP_linphone_DEPENDENCIES EP_sqlite3 EP_xml2)
# Do not build sqlite3, xml2 and zlib on IOS, they are provided by the system
list(APPEND EP_linphone_DEPENDENCIES EP_sqlite3 EP_xml2 EP_zlib)
endif()
if(ENABLE_VIDEO)
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_VIDEO=YES")
else()
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_VIDEO=NO")
if(MSVC)
set(EP_linphone_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_linphone_CMAKE_OPTIONS
"-DENABLE_VIDEO=${ENABLE_VIDEO}"
"-DENABLE_DEBUG_LOGS=${ENABLE_DEBUG_LOGS}"
"-DENABLE_DOC=${ENABLE_DOC}"
)
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_TUNNEL=${ENABLE_TUNNEL}")
if(ENABLE_TUNNEL)
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_TUNNEL=YES")
list(APPEND EP_linphone_DEPENDENCIES EP_tunnel)
else()
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_TUNNEL=NO")
endif()
if(ENABLE_UNIT_TESTS)
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_UNIT_TESTS=YES")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_linphone_DEPENDENCIES EP_cunit)
endif()
else()
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_UNIT_TESTS=NO")
endif()
if(ENABLE_DEBUG_LOGS)
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_DEBUG_LOGS=YES")
else()
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_DEBUG_LOGS=NO")
endif()
if(ENABLE_DOC)
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_DOC=YES")
else()
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_DOC=NO")
endif()
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT IOS)
# Do not build zlib on IOS, it is provided by the system
list(APPEND EP_linphone_DEPENDENCIES EP_zlib)
endif()
if(MSVC)
set(EP_linphone_EXTRA_LDFLAGS "/SAFESEH:NO")
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_UNIT_TESTS=${ENABLE_UNIT_TESTS}")
if(ENABLE_UNIT_TESTS AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_linphone_DEPENDENCIES EP_cunit)
endif()
......@@ -23,5 +23,3 @@
set(EP_matroska2_GIT_REPOSITORY "git://git.linphone.org/libmatroska-c.git")
set(EP_matroska2_GIT_TAG_LATEST "bc")
set(EP_matroska2_GIT_TAG "bc")
set(EP_matroska2_CMAKE_OPTIONS )
set(EP_matroska2_DEPENDENCIES )
......@@ -25,88 +25,58 @@ set(EP_ms2_GIT_TAG_LATEST "master")
set(EP_ms2_GIT_TAG "810a99275823edc1ca8567c892406c016c48d2f8")
set(EP_ms2_EXTERNAL_SOURCE_PATHS "mediastreamer2" "linphone/mediastreamer2")
set(EP_ms2_CMAKE_OPTIONS )
set(EP_ms2_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
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")
if(MSVC)
set(EP_ms2_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
if(ENABLE_GSM)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_GSM=YES")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_gsm)
endif()
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_GSM=NO")
set(EP_ms2_CMAKE_OPTIONS
"-DENABLE_NON_FREE_CODECS=${ENABLE_NON_FREE_CODECS}"
"-DENABLE_UNIT_TESTS=${ENABLE_UNIT_TESTS}"
"-DENABLE_DEBUG_LOGS=${ENABLE_DEBUG_LOGS}"
)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_GSM=${ENABLE_GSM}")
if(ENABLE_GSM AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_gsm)
endif()
if(ENABLE_OPUS)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_OPUS=YES")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_opus)
endif()
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_OPUS=NO")
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_OPUS=${ENABLE_OPUS}")
if(ENABLE_OPUS AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_opus)
endif()
if(ENABLE_SPEEX)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_SPEEX=YES")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_speex)
endif()
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_SPEEX=NO")
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_VIDEO=${ENABLE_VIDEO}")
if(ENABLE_VIDEO)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_VIDEO=YES")
if(ENABLE_FFMPEG)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_FFMPEG=YES")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_ffmpeg)
endif()
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_FFMPEG=NO")
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_FFMPEG=${ENABLE_FFMPEG}")
if(ENABLE_FFMPEG AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_ffmpeg)
endif()
if(ENABLE_VPX)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_VPX=YES")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_vpx)
endif()
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_VPX=NO")
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_MKV=${ENABLE_MKV}")
if(ENABLE_MKV)
list(APPEND EP_ms2_DEPENDENCIES EP_matroska2)
endif()
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_VIDEO=NO")
endif()
if(ENABLE_SRTP)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_SRTP=YES")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_srtp)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_VPX=${ENABLE_VPX}")
if(ENABLE_VPX AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_vpx)
endif()
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_SRTP=NO")
endif()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_SRTP=${ENABLE_SRTP}")
if(ENABLE_SRTP AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_srtp)
endif()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_ZRTP=${ENABLE_ZRTP}")
if(ENABLE_ZRTP)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_ZRTP=YES")
list(APPEND EP_ms2_DEPENDENCIES EP_bzrtp)
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_ZRTP=NO")
endif()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_DTLS=${ENABLE_DTLS}")
if(ENABLE_DTLS)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_DTLS=YES")
list(APPEND EP_ms2_DEPENDENCIES EP_polarssl)
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_DTLS=NO")
endif()
if(ENABLE_UNIT_TESTS)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_UNIT_TESTS=YES")
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_UNIT_TESTS=NO")
endif()
if(ENABLE_DEBUG_LOGS)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_DEBUG_LOGS=YES")
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_DEBUG_LOGS=NO")
endif()
if(ENABLE_DOC)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_DOC=YES")
......@@ -116,10 +86,3 @@ endif()
if(ENABLE_V4L AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_v4l)
endif()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_MKV=${ENABLE_MKV}")
if(ENABLE_MKV)
list(APPEND EP_ms2_DEPENDENCIES EP_matroska2)
endif()
if(MSVC)
set(EP_ms2_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
......@@ -25,18 +25,11 @@ set(EP_msamr_GIT_TAG_LATEST "master")
set(EP_msamr_GIT_TAG "076adbf96b8c369eb82817802819444fdc119139")
set(EP_msamr_EXTERNAL_SOURCE_PATHS "msamr")
set(EP_msamr_CMAKE_OPTIONS )
set(EP_msamr_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_msamr_DEPENDENCIES EP_ms2 EP_opencoreamr)
if(ENABLE_AMRNB)
list(APPEND EP_msamr_CMAKE_OPTIONS "-DENABLE_NARROWBAND=YES")
else()
list(APPEND EP_msamr_CMAKE_OPTIONS "-DENABLE_NARROWBAND=NO")
endif()
set(EP_msamr_CMAKE_OPTIONS "-DENABLE_NARROWBAND=${ENABLE_AMRNB}")
list(APPEND EP_msamr_CMAKE_OPTIONS "-DENABLE_WIDEBAND=${ENABLE_AMRWB}")
if(ENABLE_AMRWB)
list(APPEND EP_msamr_CMAKE_OPTIONS "-DENABLE_WIDEBAND=YES")
list(APPEND EP_msamr_DEPENDENCIES EP_voamrwbenc)
else()
list(APPEND EP_msamr_CMAKE_OPTIONS "-DENABLE_WIDEBAND=NO")
endif()
......@@ -25,10 +25,8 @@ set(EP_msilbc_GIT_TAG_LATEST "master")
set(EP_msilbc_GIT_TAG "c5924ec00cfb4620bae6e980afdff89206211f64")
set(EP_msilbc_EXTERNAL_SOURCE_PATHS "msilbc")
set(EP_msilbc_CMAKE_OPTIONS )
set(EP_msilbc_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_msilbc_DEPENDENCIES EP_ms2 EP_libilbcrfc3951)
if(MSVC)
set(EP_msilbc_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
......@@ -26,11 +26,10 @@ set(EP_msopenh264_GIT_TAG "0722c480d61746e9ab36f76b04ab2f3210890d07")
set(EP_msopenh264_EXTERNAL_SOURCE_PATHS "msopenh264")
set(EP_msopenh264_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_msopenh264_CMAKE_OPTIONS )
set(EP_msopenh264_DEPENDENCIES EP_ms2 EP_openh264)
if(APPLE)
set(EP_msopenh264_EXTRA_LDFLAGS "-Wl,-read_only_relocs,suppress")
endif()
if(MSVC)
set(EP_msopenh264_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_msopenh264_DEPENDENCIES EP_ms2 EP_openh264)
......@@ -26,6 +26,4 @@ set(EP_mssilk_GIT_TAG "60c53a1542f3c5cb93342c7fb16e00ce075dd8f7")
set(EP_mssilk_EXTERNAL_SOURCE_PATHS "mssilk")
set(EP_mssilk_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_mssilk_CMAKE_OPTIONS )
set(EP_mssilk_DEPENDENCIES EP_ms2)
......@@ -26,6 +26,5 @@ set(EP_mswasapi_GIT_TAG "81fe8504f70854bf7e1beb870248d31c5ffd4f5b")
set(EP_mswasapi_EXTERNAL_SOURCE_PATHS "mswasapi")
set(EP_mswasapi_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_mswasapi_CMAKE_OPTIONS )
set(EP_mswasapi_EXTRA_LDFLAGS "/SAFESEH:NO")
set(EP_mswasapi_DEPENDENCIES EP_ms2)
......@@ -26,16 +26,9 @@ set(EP_mswebrtc_GIT_TAG "88c0fa6ae7ea35fa25eac5ce4b50898e85443ff0")
set(EP_mswebrtc_EXTERNAL_SOURCE_PATHS "mswebrtc")
set(EP_mswebrtc_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_mswebrtc_CMAKE_OPTIONS )
set(EP_mswebrtc_DEPENDENCIES EP_ms2)
if(ENABLE_ISAC)
list(APPEND EP_mswebrtc_CMAKE_OPTIONS "-DENABLE_ISAC=YES")
else()
list(APPEND EP_mswebrtc_CMAKE_OPTIONS "-DENABLE_ISAC=NO")
endif()
if(ENABLE_WEBRTC_AEC)
list(APPEND EP_mswebrtc_CMAKE_OPTIONS "-DENABLE_AECM=YES")
else()
list(APPEND EP_mswebrtc_CMAKE_OPTIONS "-DENABLE_AECM=NO")
endif()
set(EP_mswebrtc_CMAKE_OPTIONS
"-DENABLE_ISAC=${ENABLE_ISAC}"
"-DENABLE_AECM=${ENABLE_WEBRTC_AEC}"
)
......@@ -26,5 +26,4 @@ set(EP_mswp8vid_GIT_TAG "0c28ede7baa26081ed13f93f5ede4ec61b5a263b")
set(EP_mswp8vid_EXTERNAL_SOURCE_PATHS "mswp8vid")
set(EP_mswp8vid_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_mswp8vid_CMAKE_OPTIONS )
set(EP_mswp8vid_DEPENDENCIES EP_ms2)
......@@ -26,6 +26,4 @@ set(EP_msx264_GIT_TAG "3a9b5a9ff79ea45b9f8f03d03d4a4a9213dc2c5d")
set(EP_msx264_EXTERNAL_SOURCE_PATHS "msx264")
set(EP_msx264_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_msx264_CMAKE_OPTIONS )
set(EP_msx264_DEPENDENCIES EP_ms2 EP_x264)
......@@ -24,13 +24,10 @@ set(EP_myodbc_GIT_REPOSITORY "git://git.linphone.org/myodbc.git")
set(EP_myodbc_GIT_TAG_LATEST "master")
set(EP_myodbc_GIT_TAG "0b7d687472cb461a13d6ae8b4011c09c8f66f61f")
set(EP_myodbc_CMAKE_OPTIONS "-DWITH_UNIXODBC=1")
set(EP_myodbc_LINKING_TYPE )
set(EP_myodbc_DEPENDENCIES EP_unixodbc )
set(EP_myodbc_DEPENDENCIES EP_unixodbc)
set(EP_myodbc_SPEC_FILE "scripts/myodbc3.spec")
set(EP_myodbc_CONFIG_H_FILE "scripts/myodbc3.spec")
set(EP_myodbc_CONFIGURE_EXTRA_CMD "cd scripts && make && cd -")
set(EP_myodbc_RPMBUILD_NAME "mysql-connector")
\ No newline at end of file
set(EP_myodbc_RPMBUILD_NAME "mysql-connector")
set(EP_myodbc_CMAKE_OPTIONS "-DWITH_UNIXODBC=1")
......@@ -27,7 +27,6 @@ set(EP_odb_BUILD_METHOD "rpm")
set(EP_odb_SPEC_FILE "odb.spec" )
set(EP_odb_CONFIG_H_FILE "${CMAKE_CURRENT_SOURCE_DIR}/builders/odb/${EP_odb_SPEC_FILE}" )
set(EP_odb_RPMBUILD_NAME "odb_")
#create source dir and copy the tar.gz inside
......
......@@ -35,19 +35,14 @@ if(EP_opencoreamr_PREBUILT)
else()
set(EP_opencoreamr_URL "http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.3.tar.gz")
set(EP_opencoreamr_URL_HASH "MD5=09d2c5dfb43a9f6e9fec8b1ae678e725")
set(EP_opencoreamr_CMAKE_OPTIONS )
set(EP_opencoreamr_EXTERNAL_SOURCE_PATHS "externals/opencore-amr")
set(EP_opencoreamr_PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/opencoreamr/CMakeLists.txt" "<SOURCE_DIR>")
set(EP_opencoreamr_LINKING_TYPE "-DENABLE_STATIC=YES")
set(EP_opencoreamr_EXTERNAL_SOURCE_PATHS "externals/opencore-amr")
if(ENABLE_AMRNB)
list(APPEND EP_opencoreamr_CMAKE_OPTIONS "-DENABLE_AMRNB_DECODER=YES" "-DENABLE_AMRNB_ENCODER=YES")
else()
list(APPEND EP_opencoreamr_CMAKE_OPTIONS "-DENABLE_AMRNB_DECODER=NO" "-DENABLE_AMRNB_ENCODER=NO")
endif()
if(ENABLE_AMRWB)
list(APPEND EP_opencoreamr_CMAKE_OPTIONS "-DENABLE_AMRWB_DECODER=YES")
else()
list(APPEND EP_opencoreamr_CMAKE_OPTIONS "-DENABLE_AMRWB_DECODER=NO")
endif()
set(EP_opencoreamr_CMAKE_OPTIONS
"-DENABLE_AMRNB_DECODER=${ENABLE_AMRNB}"
"-DENABLE_AMRNB_ENCODER=${ENABLE_AMRNB}"
"-DENABLE_AMRWB_DECODER=${ENABLE_AMRWB}"
)
endif()
......@@ -65,4 +65,3 @@ if (APPLE)
endif()
endif()
endif()
......@@ -36,7 +36,7 @@ else()
set(EP_opus_URL "http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz")
set(EP_opus_URL_HASH "MD5=c5a8cf7c0b066759542bc4ca46817ac6")
set(EP_opus_EXTERNAL_SOURCE_PATHS "opus" "externals/opus")
set(EP_opus_CMAKE_OPTIONS )
set(EP_opus_PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/opus/CMakeLists.txt" "<SOURCE_DIR>")
list(APPEND EP_opus_PATCH_COMMAND "COMMAND" "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/opus/config.h.cmake" "<SOURCE_DIR>")
set(EP_opus_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
......
......@@ -24,8 +24,6 @@ set(EP_ortp_GIT_REPOSITORY "git://git.linphone.org/ortp.git")
set(EP_ortp_GIT_TAG_LATEST "master")
set(EP_ortp_GIT_TAG "ef3258413d81f38033b15cb14362be26471d96d3")
set(EP_ortp_EXTERNAL_SOURCE_PATHS "oRTP" "ortp" "linphone/oRTP")
set(EP_ortp_CMAKE_OPTIONS )
set(EP_ortp_DEPENDENCIES )
if(EP_ortp_FORCE_AUTOTOOLS)
set(EP_ortp_LINKING_TYPE "--enable-static")
......@@ -33,16 +31,9 @@ if(EP_ortp_FORCE_AUTOTOOLS)
else()
set(EP_ortp_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
endif()
if(ENABLE_DOC)
list(APPEND EP_ortp_CMAKE_OPTIONS "-DENABLE_DOC=YES")
else()
list(APPEND EP_ortp_CMAKE_OPTIONS "-DENABLE_DOC=NO")
endif()
if(MSVC)
set(EP_ortp_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_ortp_SPEC_FILE "ortp.spec")
set(EP_ortp_CMAKE_OPTIONS "-DENABLE_DOC=${ENABLE_DOC}")
......@@ -25,8 +25,9 @@ set(EP_polarssl_GIT_TAG_LATEST "linphone-1.4")
set(EP_polarssl_GIT_TAG "5e723467b44d2d2128eba54bbad3e80d8dbdac05")
set(EP_polarssl_EXTERNAL_SOURCE_PATHS "polarssl" "externals/polarssl")
set(EP_polarssl_CMAKE_OPTIONS "-DENABLE_PROGRAMS=0" "-DENABLE_TESTING=0")
set(EP_polarssl_LINKING_TYPE "-DUSE_SHARED_POLARSSL_LIBRARY=1")
if(MSVC)
set(EP_polarssl_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_polarssl_CMAKE_OPTIONS "-DENABLE_PROGRAMS=0" "-DENABLE_TESTING=0")
############################################################################
# sofia-sip.cmake
# sofiasip.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
......
......@@ -22,6 +22,7 @@
set(EP_sqlite3_URL "http://www.sqlite.org/2014/sqlite-amalgamation-3080702.zip")
set(EP_sqlite3_URL_HASH "MD5=10587262e4381358b707df75392c895f")
set(EP_sqlite3_PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/sqlite3/CMakeLists.txt" "<SOURCE_DIR>")
if(WIN32)
list(APPEND EP_sqlite3_PATCH_COMMAND "COMMAND" "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/sqlite3/sqlite3.def" "<SOURCE_DIR>")
......
......@@ -25,8 +25,9 @@ set(EP_tunnel_GIT_TAG_LATEST "master")
set(EP_tunnel_GIT_TAG "8f56e77729e6aed5d0daf9ddec94ad67a936e0d0")
set(EP_tunnel_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_tunnel_CMAKE_OPTIONS "-DENABLE_SERVERS=NO")
set(EP_tunnel_DEPENDENCIES )
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_tunnel_DEPENDENCIES EP_polarssl)
endif()
set(EP_tunnel_CMAKE_OPTIONS "-DENABLE_SERVERS=NO")
......@@ -22,6 +22,7 @@
set(EP_v4l_URL "http://linuxtv.org/downloads/v4l-utils/v4l-utils-1.0.0.tar.bz2")
set(EP_v4l_URL_HASH "MD5=2127f2d06be9162b0d346f7037a9e852")
set(EP_v4l_BUILD_METHOD "autotools")
set(EP_v4l_CROSS_COMPILATION_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}"
......
......@@ -36,7 +36,7 @@ else()
set(EP_voamrwbenc_URL "http://downloads.sourceforge.net/project/opencore-amr/vo-amrwbenc/vo-amrwbenc-0.1.3.tar.gz")
set(EP_voamrwbenc_URL_HASH "MD5=f63bb92bde0b1583cb3cb344c12922e0")
set(EP_voamrwbenc_EXTERNAL_SOURCE_PATHS "externals/vo-amrwbenc")
set(EP_voamrwbenc_CMAKE_OPTIONS )
set(EP_voamrwbenc_PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/builders/voamrwbenc/CMakeLists.txt" "<SOURCE_DIR>")
set(EP_voamrwbenc_LINKING_TYPE "-DENABLE_STATIC=YES")
set(EP_voamrwbenc_DEPENDENCIES EP_opencoreamr)
......
......@@ -37,4 +37,3 @@ set(EP_x264_LINKING_TYPE "--enable-shared")
set(EP_x264_CONFIGURE_ENV "CC=$CC")
set(EP_x264_INSTALL_TARGET "install-lib-shared")
set(EP_x264_DEPENDENCIES EP_ffmpeg)
......@@ -25,7 +25,6 @@ set(EP_zlib_GIT_TAG_LATEST "master")
set(EP_zlib_GIT_TAG "91eb77a7c5bfe7b4cc6b722aa96548d7143a9936")
set(EP_zlib_EXTERNAL_SOURCE_PATHS "zlib")
set(EP_zlib_CMAKE_OPTIONS )
if(MSVC)
set(EP_zlib_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
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