linphone.cmake 2.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
############################################################################
# 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
19
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20 21 22
#
############################################################################

Ghislain MARY's avatar
Ghislain MARY committed
23 24 25 26 27
lcb_git_repository("git://git.linphone.org/linphone.git")
lcb_git_tag_latest("master")
lcb_git_tag("3.10.0")
lcb_external_source_paths("linphone")
lcb_groupable(YES)
28
lcb_package_source(YES)
Ghislain MARY's avatar
Ghislain MARY committed
29 30
lcb_spec_file("liblinphone.spec")
lcb_rpmbuild_name("liblinphone")
Ghislain MARY's avatar
Ghislain MARY committed
31

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

jehan's avatar
jehan committed
47 48 49
if(ENABLE_LIME_X3DH)
	lcb_dependencies("lime")
endif()
Ghislain MARY's avatar
Ghislain MARY committed
50
lcb_cmake_options(
51
	"-DENABLE_GTK_UI=${ENABLE_GTK_UI}"
Ghislain MARY's avatar
Ghislain MARY committed
52 53 54
	"-DENABLE_VIDEO=${ENABLE_VIDEO}"
	"-DENABLE_DEBUG_LOGS=${ENABLE_DEBUG_LOGS}"
	"-DENABLE_DOC=${ENABLE_DOC}"
55
	"-DENABLE_TOOLS=${ENABLE_TOOLS}"
56
	"-DENABLE_NLS=${ENABLE_NLS}"
57
	"-DENABLE_LIME=${ENABLE_LIME}"
Ghislain MARY's avatar
Ghislain MARY committed
58 59 60 61
	"-DENABLE_UNIT_TESTS=${ENABLE_UNIT_TESTS}"
	"-DENABLE_POLARSSL=${ENABLE_POLARSSL}"
	"-DENABLE_MBEDTLS=${ENABLE_MBEDTLS}"
	"-DENABLE_TUNNEL=${ENABLE_TUNNEL}"
62
	"-DENABLE_UPDATE_CHECK=${ENABLE_UPDATE_CHECK}"
Ghislain MARY's avatar
Ghislain MARY committed
63
	"-DENABLE_VCARD=${ENABLE_VCARD}"
64
	"-DENABLE_CXX_WRAPPER=${ENABLE_CXX_WRAPPER}"
65
	"-DENABLE_CSHARP_WRAPPER=${ENABLE_CSHARP_WRAPPER}"
Sylvain Berfini's avatar
Sylvain Berfini committed
66
	"-DENABLE_JAVA_WRAPPER=${ENABLE_JAVA_WRAPPER}"
67
)