flexisip.cmake 2.28 KB
Newer Older
1 2
############################################################################
# flexisip.cmake
3
# Copyright (C) 2014-2018  Belledonne Communications, Grenoble France
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#
############################################################################
#
# 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
19
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20 21 22
#
############################################################################

23
lcb_git_repository("https://gitlab.linphone.org/BC/public/flexisip")
Ghislain MARY's avatar
Ghislain MARY committed
24 25 26 27
lcb_git_tag_latest("master")
lcb_git_tag("cc4e47496600e9b1d3d412ce6e887275c204334b")
lcb_external_source_paths("<LINPHONE_BUILDER_TOP_DIR>")
lcb_groupable(YES)
28
lcb_sanitizable(YES)
29

Ghislain MARY's avatar
Ghislain MARY committed
30
lcb_spec_file("flexisip.spec")
31
lcb_dependencies("belr" "sofiasip")
Ghislain MARY's avatar
Ghislain MARY committed
32
if(ENABLE_CONFERENCE)
33
	lcb_dependencies("linphone")
34
endif()
35 36 37
if(ENABLE_PRESENCE OR ENABLE_MDNS)
	lcb_dependencies("bellesip")
endif()
38
if(ENABLE_SOCI)
39
	lcb_dependencies("soci")
40
endif()
Ghislain MARY's avatar
Ghislain MARY committed
41
if(ENABLE_TRANSCODER)
42
	lcb_dependencies("ms2")
43
else()
44
	lcb_dependencies("ortp")
45
endif()
Ghislain MARY's avatar
Ghislain MARY committed
46 47 48
if(ENABLE_REDIS)
	lcb_dependencies("hiredis")
endif()
49 50 51
if(ENABLE_JWE_AUTH_PLUGIN)
	lcb_dependencies("jose")
endif()
Ghislain MARY's avatar
Ghislain MARY committed
52

Ghislain MARY's avatar
Ghislain MARY committed
53
lcb_cmake_options(
54
	"-DENABLE_TRANSCODER=${ENABLE_TRANSCODER}"
55
	"-DENABLE_ODBC=NO"
56 57 58
	"-DENABLE_REDIS=${ENABLE_REDIS}"
	"-DENABLE_SOCI=${ENABLE_SOCI}"
	"-DENABLE_PRESENCE=${ENABLE_PRESENCE}"
59
	"-DENABLE_CONFERENCE=${ENABLE_CONFERENCE}"
60 61 62
	"-DENABLE_SNMP=${ENABLE_SNMP}"
	"-DENABLE_DOC=${ENABLE_DOC}"
	"-DENABLE_PROTOBUF=${ENABLE_PROTOBUF}"
63
	"-DENABLE_MDNS=${ENABLE_MDNS}"
64
	"-DENABLE_JWE_AUTH_PLUGIN=${ENABLE_JWE_AUTH_PLUGIN}"
65
	"-DENABLE_EXTERNAL_AUTH_PLUGIN=${ENABLE_EXTERNAL_AUTH_PLUGIN}"
66
)
67 68 69 70 71
if (DEFINED SYSCONF_INSTALL_DIR)
	lcb_cmake_options(
		"-DSYSCONF_INSTALL_DIR=${SYSCONF_INSTALL_DIR}"
	)
endif()