linphone.cmake 2.62 KB
Newer Older
1 2
############################################################################
# linphone.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/linphone.git")
24 25 26 27
lcb_git_tag_latest("master")
lcb_git_tag("3.10.0")
lcb_external_source_paths("linphone")
lcb_groupable(YES)
28
lcb_sanitizable(YES)
29
lcb_package_source(YES)
30 31
lcb_spec_file("liblinphone.spec")
lcb_rpmbuild_name("liblinphone")
Ghislain MARY's avatar
Ghislain MARY committed
32

33
lcb_dependencies("bctoolbox" "bellesip" "ortp" "ms2" "ms2plugins" "belr" "libxsd" "soci")
34
if(NOT APPLE)
35
	# Do not build sqlite3, xml2 and zlib on Apple systems (Mac OS X and iOS), they are provided by the system
36
	lcb_dependencies("sqlite3" "xml2")
37
	if(NOT ANDROID AND NOT QNX)
38
		lcb_dependencies("zlib")
39
	endif()
40
endif()
41 42 43 44 45 46
if(ENABLE_TUNNEL)
	lcb_dependencies("tunnel")
endif()
if(ENABLE_VCARD)
	lcb_dependencies("belcard")
endif()
Ghislain MARY's avatar
Ghislain MARY committed
47

jehan's avatar
jehan committed
48 49 50
if(ENABLE_LIME_X3DH)
	lcb_dependencies("lime")
endif()
51
lcb_cmake_options(
52
	"-DENABLE_GTK_UI=${ENABLE_GTK_UI}"
Ghislain MARY's avatar
Ghislain MARY committed
53 54 55
	"-DENABLE_VIDEO=${ENABLE_VIDEO}"
	"-DENABLE_DEBUG_LOGS=${ENABLE_DEBUG_LOGS}"
	"-DENABLE_DOC=${ENABLE_DOC}"
56
	"-DENABLE_TOOLS=${ENABLE_TOOLS}"
57
	"-DENABLE_NLS=${ENABLE_NLS}"
58
	"-DENABLE_LIME=${ENABLE_LIME}"
59
	"-DENABLE_LIME_X3DH=${ENABLE_LIME_X3DH}"
60 61 62
	"-DENABLE_UNIT_TESTS=${ENABLE_UNIT_TESTS}"
	"-DENABLE_POLARSSL=${ENABLE_POLARSSL}"
	"-DENABLE_MBEDTLS=${ENABLE_MBEDTLS}"
63
	"-DENABLE_SOCI=ON"
64
	"-DENABLE_TUNNEL=${ENABLE_TUNNEL}"
65
	"-DENABLE_UPDATE_CHECK=${ENABLE_UPDATE_CHECK}"
66
	"-DENABLE_VCARD=${ENABLE_VCARD}"
67
	"-DENABLE_CXX_WRAPPER=${ENABLE_CXX_WRAPPER}"
68
	"-DENABLE_CSHARP_WRAPPER=${ENABLE_CSHARP_WRAPPER}"
69 70
	"-DENABLE_SWIFT_WRAPPER=${ENABLE_SWIFT_WRAPPER}"
	"-DENABLE_JAZZY_DOC=${ENABLE_JAZZY_DOC}"
71
	"-DENABLE_JAVA_WRAPPER=${ENABLE_JAVA_WRAPPER}"
72
	"-DENABLE_QRCODE=${ENABLE_QRCODE}"
73
	"-DENABLE_ASSETS=${ENABLE_ASSETS}"
74
)