flexisip.cmake 1.83 KB
Newer Older
Guillaume BIENKOWSKI's avatar
Guillaume BIENKOWSKI committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
############################################################################
# flexisip.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_flexisip_GIT_REPOSITORY "gitosis@git.linphone.org:flexisip")
24 25 26 27 28 29

if(LINPHONE_BUILDER_LATEST)
	set(EP_flexisip_GIT_TAG "master")
else()
	set(EP_flexisip_GIT_TAG "7892114eb03c28a4983dd5626aed704cca9efa1b")
endif()
Guillaume BIENKOWSKI's avatar
Guillaume BIENKOWSKI committed
30 31

set(EP_flexisip_DEPENDENCIES EP_ortp EP_unixodbc EP_myodbc EP_sofiasip )
32

33
list(APPEND EP_flexisip_DEPENDENCIES EP_libodbmysql)
34

Guillaume BIENKOWSKI's avatar
Guillaume BIENKOWSKI committed
35 36 37 38 39 40 41 42
set(EP_flexisip_LINKING_TYPE "--disable-static" "--enable-shared")
set(EP_flexisip_BUILD_METHOD "autotools")
set(EP_flexisip_USE_AUTOGEN "yes")
set(EP_flexisip_CONFIGURE_OPTIONS )
set(EP_flexisip_CROSS_COMPILATION_OPTIONS
	"--prefix=${CMAKE_INSTALL_PREFIX}"
	"--host=${LINPHONE_BUILDER_HOST}"
)
43
set(EP_flexisip_CONFIG_H_FILE "flexisip.spec")
Guillaume BIENKOWSKI's avatar
Guillaume BIENKOWSKI committed
44 45 46

list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--disable-transcoder" "--enable-redis" "--with-odbc=${CMAKE_INSTALL_PREFIX}" )

47
set(EP_flexisip_SPEC_FILE "flexisip.spec")