Commit 03a5b668 authored by jehan's avatar jehan

add build scripts for bctoolbox

parent 3fcbe6b0
......@@ -68,6 +68,7 @@ else()
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
linphone_builder_add_builder_to_target(TARGET_bellesip antlr3c)
linphone_builder_add_builder_to_target(TARGET_bellesip polarssl)
linphone_builder_add_builder_to_target(TARGET_bellesip bctoolbox)
if(ENABLE_UNIT_TESTS)
linphone_builder_add_builder_to_target(TARGET_bellesip cunit)
endif()
......
############################################################################
# belle-sip.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_bctoolbox_EXTERNAL_SOURCE_PATHS "bctoolbox")
set(EP_bctoolbox_GROUPABLE YES)
set(EP_bctoolbox_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_bctoolbox_DEPENDENCIES )
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_bctoolbox_DEPENDENCIES EP_polarssl)
endif()
if(MSVC)
set(EP_bctoolbox_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
# TODO: Activate strict compilation options on IOS
if(IOS)
list(APPEND EP_bctoolbox_CMAKE_OPTIONS "-DENABLE_STRICT=NO")
endif()
list(APPEND EP_bctoolbox_CMAKE_OPTIONS "-DENABLE_TESTS=${ENABLE_UNIT_TESTS}")
if(ENABLE_UNIT_TESTS AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_bctoolbox_DEPENDENCIES EP_cunit)
endif()
#set(EP_bctoolbox_SPEC_FILE "bctoolbox.spec")
#set(EP_bctoolbox_RPMBUILD_NAME "belle-sip")
......@@ -29,7 +29,7 @@ set(EP_bellesip_GROUPABLE YES)
set(EP_bellesip_LINKING_TYPE "${DEFAULT_VALUE_CMAKE_LINKING_TYPE}")
set(EP_bellesip_DEPENDENCIES )
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_bellesip_DEPENDENCIES EP_antlr3c EP_polarssl)
list(APPEND EP_bellesip_DEPENDENCIES EP_antlr3c EP_bctoolbox)
endif()
if(MSVC)
set(EP_bellesip_EXTRA_LDFLAGS "/SAFESEH:NO")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment