bctoolbox.cmake 1.7 KB
Newer Older
jehan's avatar
jehan committed
1
############################################################################
2
# bctoolbox.cmake
3
# Copyright (C) 2014-2018  Belledonne Communications, Grenoble France
jehan's avatar
jehan committed
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.
jehan's avatar
jehan committed
20 21 22
#
############################################################################

23
lcb_git_repository("https://gitlab.linphone.org/BC/public/bctoolbox.git")
24 25 26 27
lcb_git_tag_latest("master")
lcb_git_tag("master")
lcb_external_source_paths("bctoolbox")
lcb_groupable(YES)
28
lcb_sanitizable(YES)
29
lcb_package_source(YES)
30
lcb_spec_file("bctoolbox.spec")
jehan's avatar
jehan committed
31

32 33 34 35 36 37 38
if(ENABLE_MBEDTLS)
	lcb_dependencies("mbedtls")
elseif(ENABLE_POLARSSL)
	lcb_dependencies("polarssl")
endif()
if(ENABLE_UNIT_TESTS)
	lcb_dependencies("bcunit")
jehan's avatar
jehan committed
39
endif()
40 41
if(ENABLE_LIME_X3DH)
	lcb_dependencies("decaf")
jehan's avatar
jehan committed
42
endif()
43 44

lcb_cmake_options(
45 46
	"-DENABLE_MBEDTLS=${ENABLE_MBEDTLS}"
	"-DENABLE_POLARSSL=${ENABLE_POLARSSL}"
47
	"-DENABLE_DECAF=${ENABLE_LIME_X3DH}"
48 49 50
	"-DENABLE_TESTS=${ENABLE_UNIT_TESTS}"
	"-DENABLE_TESTS_COMPONENT=${ENABLE_UNIT_TESTS}"
)
Ghislain MARY's avatar
Ghislain MARY committed
51