############################################################################ # linphone.cmake # Copyright (C) 2014 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(EP_linphone_GIT_REPOSITORY "git://git.linphone.org/linphone.git") set(EP_linphone_GIT_TAG "52406b95edb52db4191e42c8f263d5cfd863f682") # Branch 'master' if(WIN32) # Use temporary CMake build scripts for Windows. TODO: Port fully to CMake. set(EP_linphone_DEPENDENCIES EP_bellesip EP_ortp EP_ms2 EP_xml2) set(EP_linphone_EXTRA_LDFLAGS "/SAFESEH:NO") else(WIN32) set(EP_linphone_USE_AUTOTOOLS "yes") set(EP_linphone_USE_AUTOGEN "yes") set(EP_linphone_CROSS_COMPILATION_OPTIONS "--prefix=${CMAKE_INSTALL_PREFIX}" "--host=${LINPHONE_BUILDER_TOOLCHAIN_HOST}" ) set(EP_linphone_CONFIGURE_OPTIONS "--disable-strict" "--enable-bellesip" "--enable-external-ortp" "--enable-external-mediastreamer" ) set(EP_linphone_LINKING_TYPE "--disable-static" "--enable-shared") set(EP_linphone_DEPENDENCIES EP_bellesip EP_ortp EP_ms2 EP_xml2) if(${ENABLE_AMR}) list(APPEND EP_linphone_DEPENDENCIES EP_msamr) endif(${ENABLE_AMR}) if(${ENABLE_G729}) list(APPEND EP_linphone_DEPENDENCIES EP_bcg729) endif(${ENABLE_G729}) if(${ENABLE_ILBC}) list(APPEND EP_linphone_DEPENDENCIES EP_msilbc) endif(${ENABLE_ILBC}) if(${ENABLE_ISAC}) list(APPEND EP_linphone_DEPENDENCIES EP_msisac) endif(${ENABLE_ISAC}) if(${ENABLE_SILK}) list(APPEND EP_linphone_DEPENDENCIES EP_mssilk) endif(${ENABLE_SILK}) if(${ENABLE_ZRTP}) # TODO else(${ENABLE_ZRTP}) list(APPEND EP_linphone_CONFIGURE_OPTIONS "--disable-zrtp") endif(${ENABLE_ZRTP}) if(${ENABLE_UNIT_TESTS}) list(APPEND EP_linphone_DEPENDENCIES EP_cunit) else(${ENABLE_UNIT_TESTS}) list(APPEND EP_linphone_CONFIGURE_OPTIONS "--disable-tests") endif(${ENABLE_UNIT_TESTS}) endif(WIN32)