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") ...@@ -25,8 +25,9 @@ set(EP_antlr3c_GIT_TAG_LATEST "linphone")
set(EP_antlr3c_GIT_TAG "311b6764e3f440db43617296ff856f7ec07bfdef") set(EP_antlr3c_GIT_TAG "311b6764e3f440db43617296ff856f7ec07bfdef")
set(EP_antlr3c_EXTERNAL_SOURCE_PATHS "antlr3c" "antlr3" "externals/antlr3") 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}") set(EP_antlr3c_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
if(MSVC) if(MSVC)
set(EP_antlr3c_EXTRA_LDFLAGS "/SAFESEH:NO") set(EP_antlr3c_EXTRA_LDFLAGS "/SAFESEH:NO")
endif() endif()
set(EP_antlr3c_CMAKE_OPTIONS "-DENABLE_DEBUGGER=NO")
...@@ -25,7 +25,5 @@ set(EP_bcg729_GIT_TAG_LATEST "master") ...@@ -25,7 +25,5 @@ set(EP_bcg729_GIT_TAG_LATEST "master")
set(EP_bcg729_GIT_TAG "7f76ef482b26400995474d37fc330565a9fe0e9e") set(EP_bcg729_GIT_TAG "7f76ef482b26400995474d37fc330565a9fe0e9e")
set(EP_bcg729_EXTERNAL_SOURCE_PATHS "bcg729") 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_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_bcg729_DEPENDENCIES EP_ms2) set(EP_bcg729_DEPENDENCIES EP_ms2)
...@@ -25,7 +25,6 @@ set(EP_bellesip_GIT_TAG_LATEST "master") ...@@ -25,7 +25,6 @@ set(EP_bellesip_GIT_TAG_LATEST "master")
set(EP_bellesip_GIT_TAG "ef77560739397b042da62189236b2c1889f84cd3") set(EP_bellesip_GIT_TAG "ef77560739397b042da62189236b2c1889f84cd3")
set(EP_bellesip_EXTERNAL_SOURCE_PATHS "belle-sip") 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_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_bellesip_DEPENDENCIES ) set(EP_bellesip_DEPENDENCIES )
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES) if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
...@@ -35,22 +34,12 @@ if(MSVC) ...@@ -35,22 +34,12 @@ if(MSVC)
set(EP_bellesip_EXTRA_LDFLAGS "/SAFESEH:NO") set(EP_bellesip_EXTRA_LDFLAGS "/SAFESEH:NO")
endif() endif()
if(ENABLE_RTP_MAP_ALWAYS_IN_SDP) set(EP_bellesip_CMAKE_OPTIONS "-DENABLE_RTP_MAP_ALWAYS_IN_SDP=${ENABLE_RTP_MAP_ALWAYS_IN_SDP}")
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_RTP_MAP_ALWAYS_IN_SDP=YES") list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TUNNEL=${ENABLE_TUNNEL}")
else()
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_RTP_MAP_ALWAYS_IN_SDP=NO")
endif()
if(ENABLE_TUNNEL) if(ENABLE_TUNNEL)
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TUNNEL=YES")
list(APPEND EP_bellesip_DEPENDENCIES EP_tunnel) list(APPEND EP_bellesip_DEPENDENCIES EP_tunnel)
else()
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TUNNEL=NO")
endif() endif()
if(ENABLE_UNIT_TESTS) list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TESTS=${ENABLE_UNIT_TESTS}")
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TESTS=YES") if(ENABLE_UNIT_TESTS AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES) list(APPEND EP_bellesip_DEPENDENCIES EP_cunit)
list(APPEND EP_bellesip_DEPENDENCIES EP_cunit)
endif()
else()
list(APPEND EP_bellesip_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
endif() endif()
...@@ -25,7 +25,6 @@ set(EP_bzrtp_GIT_TAG_LATEST "master") ...@@ -25,7 +25,6 @@ set(EP_bzrtp_GIT_TAG_LATEST "master")
set(EP_bzrtp_GIT_TAG "197b527d97a633074ecac82938a20073f73b88b0") set(EP_bzrtp_GIT_TAG "197b527d97a633074ecac82938a20073f73b88b0")
set(EP_bzrtp_EXTERNAL_SOURCE_PATHS "bzrtp") 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_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_bzrtp_DEPENDENCIES ) set(EP_bzrtp_DEPENDENCIES )
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES) if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
...@@ -42,12 +41,7 @@ if(MINGW) ...@@ -42,12 +41,7 @@ if(MINGW)
set(EP_bzrtp_EXTRA_CPPFLAGS "-D__USE_MINGW_ANSI_STDIO") set(EP_bzrtp_EXTRA_CPPFLAGS "-D__USE_MINGW_ANSI_STDIO")
endif() endif()
if(ENABLE_UNIT_TESTS) set(EP_bzrtp_CMAKE_OPTIONS "-DENABLE_TESTS=${ENABLE_UNIT_TESTS}")
list(APPEND EP_bzrtp_CMAKE_OPTIONS "-DENABLE_TESTS=YES") if(ENABLE_UNIT_TESTS AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES) list(APPEND EP_bzrtp_DEPENDENCIES EP_cunit)
list(APPEND EP_bzrtp_DEPENDENCIES EP_cunit)
endif()
else()
list(APPEND EP_bzrtp_CMAKE_OPTIONS "-DENABLE_TESTS=NO")
endif() endif()
...@@ -25,8 +25,9 @@ set(EP_cunit_GIT_TAG_LATEST "linphone") ...@@ -25,8 +25,9 @@ set(EP_cunit_GIT_TAG_LATEST "linphone")
set(EP_cunit_GIT_TAG "c4ba94426b409285222c60616918b35cce658943") set(EP_cunit_GIT_TAG "c4ba94426b409285222c60616918b35cce658943")
set(EP_cunit_EXTERNAL_SOURCE_PATHS "cunit" "externals/cunit") 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}") set(EP_cunit_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
if(MSVC) if(MSVC)
set(EP_cunit_EXTRA_LDFLAGS "/SAFESEH:NO") set(EP_cunit_EXTRA_LDFLAGS "/SAFESEH:NO")
endif() 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") ...@@ -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_LATEST "master")
set(EP_flexisip_GIT_TAG "d9a1718948629a3f03dd754bc779bab41d4c9753") 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_LINKING_TYPE "--disable-static" "--enable-shared")
set(EP_flexisip_BUILD_METHOD "autotools") set(EP_flexisip_BUILD_METHOD "autotools")
set(EP_flexisip_USE_AUTOGEN True) set(EP_flexisip_USE_AUTOGEN True)
set(EP_flexisip_CONFIGURE_OPTIONS ) set(EP_flexisip_CONFIGURE_OPTIONS )
set(EP_flexisip_CMAKE_OPTIONS )
set(EP_flexisip_CROSS_COMPILATION_OPTIONS set(EP_flexisip_CROSS_COMPILATION_OPTIONS
"--prefix=${CMAKE_INSTALL_PREFIX}" "--prefix=${CMAKE_INSTALL_PREFIX}"
"--host=${LINPHONE_BUILDER_HOST}" "--host=${LINPHONE_BUILDER_HOST}"
) )
set(EP_flexisip_CONFIG_H_FILE "flexisip.spec") 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}") 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") message(STATUS "Flexisip to be built with BC ODBC")
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--with-odbc=${CMAKE_INSTALL_PREFIX}") list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--with-odbc=${CMAKE_INSTALL_PREFIX}")
list(APPEND EP_flexisip_DEPENDENCIES EP_unixodbc EP_myodbc) list(APPEND EP_flexisip_DEPENDENCIES EP_unixodbc EP_myodbc)
...@@ -52,23 +55,19 @@ if ( ENABLE_ODBC ) ...@@ -52,23 +55,19 @@ if ( ENABLE_ODBC )
message(STATUS "Flexisip to be built with system ODBC") message(STATUS "Flexisip to be built with system ODBC")
endif() endif()
else() 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() endif()
list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_REDIS=${ENABLE_REDIS}") list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_REDIS=${ENABLE_REDIS}")
if ( ENABLE_REDIS ) if(ENABLE_REDIS)
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-redis") list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-redis")
else()
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-redis")
endif() 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}") list(APPEND EP_flexisip_CMAKE_OPTIONS "-DENABLE_PUSHNOTIFICATION=${ENABLE_PUSHNOTIFICATION}")
if ( ENABLE_PUSHNOTIFICATION ) if(ENABLE_PUSHNOTIFICATION)
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-pushnotification") list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--enable-pushnotification")
else() else()
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-pushnotification") list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-pushnotification")
endif() endif()
set(EP_flexisip_SPEC_FILE "flexisip.spec")
...@@ -29,4 +29,3 @@ set(EP_gsm_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}") ...@@ -29,4 +29,3 @@ set(EP_gsm_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
if(MSVC) if(MSVC)
set(EP_gsm_EXTRA_LDFLAGS "/SAFESEH:NO") set(EP_gsm_EXTRA_LDFLAGS "/SAFESEH:NO")
endif() 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 "https://github.com/redis/hiredis/archive/${hiredis_filename}")
#set(EP_hiredis_URL_HASH "SHA1=694b6d7a6e4ea7fb20902619e9a2423c014b37c1") #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_REPOSITORY "https://github.com/redis/hiredis.git")
set(EP_hiredis_GIT_TAG "0fff0f182b96b4ffeee8379f29ed5129c3f72cf7") set(EP_hiredis_GIT_TAG "0fff0f182b96b4ffeee8379f29ed5129c3f72cf7")
set(EP_hiredis_BUILD_METHOD "rpm")
set(EP_hiredis_SPEC_FILE "hiredis.spec" ) set(EP_hiredis_SPEC_FILE "hiredis.spec" )
set(EP_hiredis_CONFIG_H_FILE "${CMAKE_CURRENT_SOURCE_DIR}/builders/hiredis/${EP_hiredis_SPEC_FILE}" ) 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") ...@@ -25,6 +25,4 @@ set(EP_libilbcrfc3951_GIT_TAG_LATEST "master")
set(EP_libilbcrfc3951_GIT_TAG "6585f5926f693c58fcb6e8a71a2065bd33949b1a") set(EP_libilbcrfc3951_GIT_TAG "6585f5926f693c58fcb6e8a71a2065bd33949b1a")
set(EP_libilbcrfc3951_EXTERNAL_SOURCE_PATHS "libilbc-rfc3951") set(EP_libilbcrfc3951_EXTERNAL_SOURCE_PATHS "libilbc-rfc3951")
set(EP_libilbcrfc3951_CMAKE_OPTIONS )
set(EP_libilbcrfc3951_LINKING_TYPE "-DENABLE_STATIC=YES") set(EP_libilbcrfc3951_LINKING_TYPE "-DENABLE_STATIC=YES")
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
set(libodb_filename "libodb-2.3.0.tar.bz2") 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 "http://www.codesynthesis.com/download/odb/2.3/${libodb_filename}")
set(EP_libodb_URL_HASH "SHA1=eebc7fa706bc598a80439d1d6a798430fcfde23b") 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_SPEC_FILE "libodb.spec" )
set(EP_libodb_CONFIG_H_FILE "${CMAKE_CURRENT_SOURCE_DIR}/builders/libodb/${EP_libodb_SPEC_FILE}" ) set(EP_libodb_CONFIG_H_FILE "${CMAKE_CURRENT_SOURCE_DIR}/builders/libodb/${EP_libodb_SPEC_FILE}" )
set(EP_libodb_DEPENDENCIES EP_odb) set(EP_libodb_DEPENDENCIES EP_odb)
......
...@@ -25,11 +25,9 @@ set(EP_libodbmysql_URL "http://www.codesynthesis.com/download/odb/2.3/${libodbmy ...@@ -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_URL_HASH "SHA1=18adaa5535015e3471a5d205e44df42f0e3a3d37")
set(EP_libodbmysql_BUILD_METHOD "rpm") set(EP_libodbmysql_BUILD_METHOD "rpm")
set(EP_libodbmysql_SPEC_FILE "libodbmysql.spec" ) 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_CONFIG_H_FILE "${CMAKE_CURRENT_SOURCE_DIR}/builders/libodbmysql/${EP_libodbmysql_SPEC_FILE}" )
set(EP_libodbmysql_DEPENDENCIES EP_libodb) set(EP_libodbmysql_DEPENDENCIES EP_libodb)
set(EP_libodbmysql_RPMBUILD_NAME "libodb-mysql") set(EP_libodbmysql_RPMBUILD_NAME "libodb-mysql")
#create source dir and copy the tar.gz inside #create source dir and copy the tar.gz inside
......
...@@ -26,45 +26,25 @@ set(EP_linphone_GIT_TAG "e3bf7b0387a9e8f782ff745575dd412e193246de") ...@@ -26,45 +26,25 @@ set(EP_linphone_GIT_TAG "e3bf7b0387a9e8f782ff745575dd412e193246de")
set(EP_linphone_EXTERNAL_SOURCE_PATHS "linphone") set(EP_linphone_EXTERNAL_SOURCE_PATHS "linphone")
set(EP_linphone_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}") 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) set(EP_linphone_DEPENDENCIES EP_bellesip EP_ortp EP_ms2)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT IOS) if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT IOS)
# Do not build sqlite3 and xml2 on IOS, they are provided by the system # Do not build sqlite3, xml2 and zlib on IOS, they are provided by the system
list(APPEND EP_linphone_DEPENDENCIES EP_sqlite3 EP_xml2) list(APPEND EP_linphone_DEPENDENCIES EP_sqlite3 EP_xml2 EP_zlib)
endif() endif()
if(ENABLE_VIDEO) if(MSVC)
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_VIDEO=YES") set(EP_linphone_EXTRA_LDFLAGS "/SAFESEH:NO")
else()
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_VIDEO=NO")
endif() 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) if(ENABLE_TUNNEL)
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_TUNNEL=YES")
list(APPEND EP_linphone_DEPENDENCIES EP_tunnel) 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() endif()
if(ENABLE_DOC) list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_UNIT_TESTS=${ENABLE_UNIT_TESTS}")
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_DOC=YES") if(ENABLE_UNIT_TESTS AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
else() list(APPEND EP_linphone_DEPENDENCIES EP_cunit)
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")
endif() endif()
...@@ -23,5 +23,3 @@ ...@@ -23,5 +23,3 @@
set(EP_matroska2_GIT_REPOSITORY "git://git.linphone.org/libmatroska-c.git") set(EP_matroska2_GIT_REPOSITORY "git://git.linphone.org/libmatroska-c.git")
set(EP_matroska2_GIT_TAG_LATEST "bc") set(EP_matroska2_GIT_TAG_LATEST "bc")
set(EP_matroska2_GIT_TAG "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") ...@@ -25,88 +25,58 @@ set(EP_ms2_GIT_TAG_LATEST "master")
set(EP_ms2_GIT_TAG "810a99275823edc1ca8567c892406c016c48d2f8") set(EP_ms2_GIT_TAG "810a99275823edc1ca8567c892406c016c48d2f8")
set(EP_ms2_EXTERNAL_SOURCE_PATHS "mediastreamer2" "linphone/mediastreamer2") 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_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_ms2_DEPENDENCIES EP_ortp) set(EP_ms2_DEPENDENCIES EP_ortp)
if(ENABLE_NON_FREE_CODECS) if(MSVC)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_NON_FREE_CODECS=YES") set(EP_ms2_EXTRA_LDFLAGS "/SAFESEH:NO")
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_NON_FREE_CODECS=NO")
endif() endif()
if(ENABLE_GSM)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_GSM=YES") set(EP_ms2_CMAKE_OPTIONS
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES) "-DENABLE_NON_FREE_CODECS=${ENABLE_NON_FREE_CODECS}"
list(APPEND EP_ms2_DEPENDENCIES EP_gsm) "-DENABLE_UNIT_TESTS=${ENABLE_UNIT_TESTS}"
endif() "-DENABLE_DEBUG_LOGS=${ENABLE_DEBUG_LOGS}"
else() )
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_GSM=NO")
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() endif()
if(ENABLE_OPUS) list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_OPUS=${ENABLE_OPUS}")
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_OPUS=YES") if(ENABLE_OPUS AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES) list(APPEND EP_ms2_DEPENDENCIES EP_opus)
list(APPEND EP_ms2_DEPENDENCIES EP_opus)
endif()
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_OPUS=NO")
endif() endif()
if(ENABLE_SPEEX) list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_SPEEX=${ENABLE_SPEEX}")
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_SPEEX=YES") if(ENABLE_SPEEX AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES) list(APPEND EP_ms2_DEPENDENCIES EP_speex)
list(APPEND EP_ms2_DEPENDENCIES EP_speex)
endif()
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_SPEEX=NO")
endif() endif()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_VIDEO=${ENABLE_VIDEO}")
if(ENABLE_VIDEO) if(ENABLE_VIDEO)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_VIDEO=YES") list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_FFMPEG=${ENABLE_FFMPEG}")
if(ENABLE_FFMPEG) if(ENABLE_FFMPEG AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_FFMPEG=YES") list(APPEND EP_ms2_DEPENDENCIES EP_ffmpeg)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_ffmpeg)
endif()
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_FFMPEG=NO")
endif() endif()
if(ENABLE_VPX) list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_MKV=${ENABLE_MKV}")
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_VPX=YES") if(ENABLE_MKV)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES) list(APPEND EP_ms2_DEPENDENCIES EP_matroska2)
list(APPEND EP_ms2_DEPENDENCIES EP_vpx)
endif()
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_VPX=NO")
endif() endif()
else() list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_VPX=${ENABLE_VPX}")
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_VIDEO=NO") if(ENABLE_VPX AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
endif() list(APPEND EP_ms2_DEPENDENCIES EP_vpx)
if(ENABLE_SRTP)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_SRTP=YES")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_srtp)
endif() endif()
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_SRTP=NO")
endif() 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) if(ENABLE_ZRTP)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_ZRTP=YES")
list(APPEND EP_ms2_DEPENDENCIES EP_bzrtp) list(APPEND EP_ms2_DEPENDENCIES EP_bzrtp)
else()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_ZRTP=NO")
endif() endif()
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_DTLS=${ENABLE_DTLS}")
if(ENABLE_DTLS) if(ENABLE_DTLS)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_DTLS=YES")
list(APPEND EP_ms2_DEPENDENCIES EP_polarssl) 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() endif()
if(ENABLE_DOC) if(ENABLE_DOC)
list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_DOC=YES") list(APPEND EP_ms2_CMAKE_OPTIONS "-DENABLE_DOC=YES")
...@@ -116,10 +86,3 @@ endif() ...@@ -116,10 +86,3 @@ endif()
if(ENABLE_V4L AND LINPHONE_BUILDER_BUILD_DEPENDENCIES) if(ENABLE_V4L AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_ms2_DEPENDENCIES EP_v4l) list(APPEND EP_ms2_DEPENDENCIES EP_v4l)
endif() 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") ...@@ -25,18 +25,11 @@ set(EP_msamr_GIT_TAG_LATEST "master")
set(EP_msamr_GIT_TAG "076adbf96b8c369eb82817802819444fdc119139") set(EP_msamr_GIT_TAG "076adbf96b8c369eb82817802819444fdc119139")
set(EP_msamr_EXTERNAL_SOURCE_PATHS "msamr") 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_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_msamr_DEPENDENCIES EP_ms2 EP_opencoreamr) set(EP_msamr_DEPENDENCIES EP_ms2 EP_opencoreamr)
if(ENABLE_AMRNB) set(EP_msamr_CMAKE_OPTIONS "-DENABLE_NARROWBAND=${ENABLE_AMRNB}")
list(APPEND EP_msamr_CMAKE_OPTIONS "-DENABLE_NARROWBAND=YES") list(APPEND EP_msamr_CMAKE_OPTIONS "-DENABLE_WIDEBAND=${ENABLE_AMRWB}")
else()
list(APPEND EP_msamr_CMAKE_OPTIONS "-DENABLE_NARROWBAND=NO")
endif()
if(ENABLE_AMRWB) if(ENABLE_AMRWB)
list(APPEND EP_msamr_CMAKE_OPTIONS "-DENABLE_WIDEBAND=YES")
list(APPEND EP_msamr_DEPENDENCIES EP_voamrwbenc) list(APPEND EP_msamr_DEPENDENCIES EP_voamrwbenc)
else()
list(APPEND EP_msamr_CMAKE_OPTIONS "-DENABLE_WIDEBAND=NO")
endif() endif()
...@@ -25,10 +25,8 @@ set(EP_msilbc_GIT_TAG_LATEST "master") ...@@ -25,10 +25,8 @@ set(EP_msilbc_GIT_TAG_LATEST "master")
set(EP_msilbc_GIT_TAG "c5924ec00cfb4620bae6e980afdff89206211f64") set(EP_msilbc_GIT_TAG "c5924ec00cfb4620bae6e980afdff89206211f64")
set(EP_msilbc_EXTERNAL_SOURCE_PATHS "msilbc") 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_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_msilbc_DEPENDENCIES EP_ms2 EP_libilbcrfc3951) set(EP_msilbc_DEPENDENCIES EP_ms2 EP_libilbcrfc3951)
if(MSVC) if(MSVC)
set(EP_msilbc_EXTRA_LDFLAGS "/SAFESEH:NO") set(EP_msilbc_EXTRA_LDFLAGS "/SAFESEH:NO")
endif() endif()
...@@ -26,11 +26,10 @@ set(EP_msopenh264_GIT_TAG "0722c480d61746e9ab36f76b04ab2f3210890d07") ...@@ -26,11 +26,10 @@ set(EP_msopenh264_GIT_TAG "0722c480d61746e9ab36f76b04ab2f3210890d07")
set(EP_msopenh264_EXTERNAL_SOURCE_PATHS "msopenh264") set(EP_msopenh264_EXTERNAL_SOURCE_PATHS "msopenh264")
set(EP_msopenh264_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}") 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) if(APPLE)
set(EP_msopenh264_EXTRA_LDFLAGS "-Wl,-read_only_relocs,suppress") set(EP_msopenh264_EXTRA_LDFLAGS "-Wl,-read_only_relocs,suppress")
endif() endif()
if(MSVC) if(MSVC)
set(EP_msopenh264_EXTRA_LDFLAGS "/SAFESEH:NO") set(EP_msopenh264_EXTRA_LDFLAGS "/SAFESEH:NO")
endif() endif()
set(EP_msopenh264_DEPENDENCIES EP_ms2 EP_openh264)
...@@ -26,6 +26,4 @@ set(EP_mssilk_GIT_TAG "60c53a1542f3c5cb93342c7fb16e00ce075dd8f7") ...@@ -26,6 +26,4 @@ set(EP_mssilk_GIT_TAG "60c53a1542f3c5cb93342c7fb16e00ce075dd8f7")
set(EP_mssilk_EXTERNAL_SOURCE_PATHS "mssilk") set(EP_mssilk_EXTERNAL_SOURCE_PATHS "mssilk")
set(EP_mssilk_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}") set(EP_mssilk_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_mssilk_CMAKE_OPTIONS )
set(EP_mssilk_DEPENDENCIES EP_ms2) set(EP_mssilk_DEPENDENCIES EP_ms2)
...@@ -26,6 +26,5 @@ set(EP_mswasapi_GIT_TAG "81fe8504f70854bf7e1beb870248d31c5ffd4f5b") ...@@ -26,6 +26,5 @@ set(EP_mswasapi_GIT_TAG "81fe8504f70854bf7e1beb870248d31c5ffd4f5b")
set(EP_mswasapi_EXTERNAL_SOURCE_PATHS "mswasapi") set(EP_mswasapi_EXTERNAL_SOURCE_PATHS "mswasapi")
set(EP_mswasapi_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}") 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_EXTRA_LDFLAGS "/SAFESEH:NO")
set(EP_mswasapi_DEPENDENCIES EP_ms2) set(EP_mswasapi_DEPENDENCIES EP_ms2)
...@@ -26,16 +26,9 @@ set(EP_mswebrtc_GIT_TAG "88c0fa6ae7ea35fa25eac5ce4b50898e85443ff0") ...@@ -26,16 +26,9 @@ set(EP_mswebrtc_GIT_TAG "88c0fa6ae7ea35fa25eac5ce4b50898e85443ff0")
set(EP_mswebrtc_EXTERNAL_SOURCE_PATHS "mswebrtc") set(EP_mswebrtc_EXTERNAL_SOURCE_PATHS "mswebrtc")
set(EP_mswebrtc_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}") set(EP_mswebrtc_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_mswebrtc_CMAKE_OPTIONS )
set(EP_mswebrtc_DEPENDENCIES EP_ms2) set(EP_mswebrtc_DEPENDENCIES EP_ms2)
if(ENABLE_ISAC) set(EP_mswebrtc_CMAKE_OPTIONS
list(APPEND EP_mswebrtc_CMAKE_OPTIONS "-DENABLE_ISAC=YES") "-DENABLE_ISAC=${ENABLE_ISAC}"
else() "-DENABLE_AECM=${ENABLE_WEBRTC_AEC}"
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()
...@@ -26,5 +26,4 @@ set(EP_mswp8vid_GIT_TAG "0c28ede7baa26081ed13f93f5ede4ec61b5a263b") ...@@ -26,5 +26,4 @@ set(EP_mswp8vid_GIT_TAG "0c28ede7baa26081ed13f93f5ede4ec61b5a263b")
set(EP_mswp8vid_EXTERNAL_SOURCE_PATHS "mswp8vid") set(EP_mswp8vid_EXTERNAL_SOURCE_PATHS "mswp8vid")
set(EP_mswp8vid_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}") set(EP_mswp8vid_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_mswp8vid_CMAKE_OPTIONS )
set(EP_mswp8vid_DEPENDENCIES EP_ms2) set(EP_mswp8vid_DEPENDENCIES EP_ms2)
...@@ -26,6 +26,4 @@ set(EP_msx264_GIT_TAG "3a9b5a9ff79ea45b9f8f03d03d4a4a9213dc2c5d") ...@@ -26,6 +26,4 @@ set(EP_msx264_GIT_TAG "3a9b5a9ff79ea45b9f8f03d03d4a4a9213dc2c5d")
set(EP_msx264_EXTERNAL_SOURCE_PATHS "msx264") set(EP_msx264_EXTERNAL_SOURCE_PATHS "msx264")
set(EP_msx264_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}") set(EP_msx264_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_msx264_CMAKE_OPTIONS )
set(EP_msx264_DEPENDENCIES EP_ms2 EP_x264) set(EP_msx264_DEPENDENCIES EP_ms2 EP_x264)
...@@ -24,13 +24,10 @@ set(EP_myodbc_GIT_REPOSITORY "git://git.linphone.org/myodbc.git") ...@@ -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_LATEST "master")
set(EP_myodbc_GIT_TAG "0b7d687472cb461a13d6ae8b4011c09c8f66f61f") set(EP_myodbc_GIT_TAG "0b7d687472cb461a13d6ae8b4011c09c8f66f61f")
set(EP_myodbc_CMAKE_OPTIONS "-DWITH_UNIXODBC=1") set(EP_myodbc_DEPENDENCIES EP_unixodbc)
set(EP_myodbc_LINKING_TYPE )
set(EP_myodbc_DEPENDENCIES EP_unixodbc )
set(EP_myodbc_SPEC_FILE "scripts/myodbc3.spec") set(EP_myodbc_SPEC_FILE "scripts/myodbc3.spec")
set(EP_myodbc_CONFIG_H_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_CONFIGURE_EXTRA_CMD "cd scripts && make && cd -")
set(EP_myodbc_RPMBUILD_NAME "mysql-connector") set(EP_myodbc_RPMBUILD_NAME "mysql-connector")
\ No newline at end of file
set(EP_myodbc_CMAKE_OPTIONS "-DWITH_UNIXODBC=1")
...@@ -27,7 +27,6 @@ set(EP_odb_BUILD_METHOD "rpm") ...@@ -27,7 +27,6 @@ set(EP_odb_BUILD_METHOD "rpm")
set(EP_odb_SPEC_FILE "odb.spec" ) 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_CONFIG_H_FILE "${CMAKE_CURRENT_SOURCE_DIR}/builders/odb/${EP_odb_SPEC_FILE}" )
set(EP_odb_RPMBUILD_NAME "odb_") set(EP_odb_RPMBUILD_NAME "odb_")
#create source dir and copy the tar.gz inside #create source dir and copy the tar.gz inside
......
...@@ -35,19 +35,14 @@ if(EP_opencoreamr_PREBUILT) ...@@ -35,19 +35,14 @@ if(EP_opencoreamr_PREBUILT)
else() 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 "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_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_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_LINKING_TYPE "-DENABLE_STATIC=YES")
set(EP_opencoreamr_EXTERNAL_SOURCE_PATHS "externals/opencore-amr")
if(ENABLE_AMRNB) set(EP_opencoreamr_CMAKE_OPTIONS
list(APPEND EP_opencoreamr_CMAKE_OPTIONS "-DENABLE_AMRNB_DECODER=YES" "-DENABLE_AMRNB_ENCODER=YES") "-DENABLE_AMRNB_DECODER=${ENABLE_AMRNB}"
else() "-DENABLE_AMRNB_ENCODER=$