Commit d6a7e22b authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI
Browse files

Build libodb and libodbmysql for Debian flexisip

parent e222872c
......@@ -76,23 +76,6 @@ clean-flexisip-rpm:
# needed: ?
# rm -rf WORK/rpmbuild/RPMS/*
build-odb:
export ODBC_PATH=../../OUTPUT
mkdir -p WORK/cmake-odb && \
cd WORK/cmake-odb && \
cmake ../.. -DLINPHONE_BUILDER_CONFIG_FILE=configs/config-flexisip-rpm.cmake \
-DLINPHONE_BUILDER_TARGET=odb \
-DCMAKE_PREFIX_PATH=$(PWD)/OUTPUT\
-DCMAKE_INSTALL_PREFIX=$(PWD)/OUTPUT \
$(filter -D%,$(MAKEFLAGS)) && \
make VERBOSE=1
clean-odb:
rm -rf WORK/tmp-odb && \
rm -rf WORK/Build-odb
build-python:
mkdir -p WORK/cmake-python && \
cd WORK/cmake-python && \
......
......@@ -160,15 +160,12 @@ if(_target_found GREATER -1)
linphone_builder_add_builder_to_target(TARGET_flexisip unixodbc )
linphone_builder_add_builder_to_target(TARGET_flexisip myodbc )
linphone_builder_add_builder_to_target(TARGET_flexisip sofiasip )
linphone_builder_add_builder_to_target(TARGET_flexisip flexisip)
endif()
# Build odb and its dependencies if it is in the targets list
list(FIND LINPHONE_BUILDER_TARGETS "odb" _target_found)
if(_target_found GREATER -1)
add_custom_target(TARGET_odb ALL)
add_dependencies(TARGET_linphone_builder TARGET_odb)
linphone_builder_add_builder_to_target(TARGET_odb odb )
linphone_builder_add_builder_to_target(TARGET_odb libodb )
linphone_builder_add_builder_to_target(TARGET_odb libodbmysql )
if(PLATFORM STREQUAL "Debian")
message( STATUS "Adding odb libs dependencies for Debian")
linphone_builder_add_builder_to_target(TARGET_flexisip libodb )
linphone_builder_add_builder_to_target(TARGET_flexisip libodbmysql )
endif()
linphone_builder_add_builder_to_target(TARGET_flexisip flexisip )
endif()
......@@ -29,6 +29,11 @@ else()
endif()
set(EP_flexisip_DEPENDENCIES EP_ortp EP_unixodbc EP_myodbc EP_sofiasip )
if(PLATFORM STREQUAL "Debian")
list(APPEND EP_flexisip_DEPENDENCIES EP_libodbmysql)
endif()
set(EP_flexisip_LINKING_TYPE "--disable-static" "--enable-shared")
set(EP_flexisip_BUILD_METHOD "autotools")
set(EP_flexisip_USE_AUTOGEN "yes")
......
......@@ -27,7 +27,7 @@ set(EP_libodb_BUILD_METHOD "rpm")
set(EP_libodb_SPEC_FILE "libodb.spec" )
set(EP_libodb_CONFIG_H_FILE "${CMAKE_CURRENT_SOURCE_DIR}/builders/libodb/${EP_libodb_SPEC_FILE}" )
set(EP_libodb_DEPENDENCIES EP_odb)
# set(EP_libodb_DEPENDENCIES EP_odb)
#create source dir and copy the tar.gz inside
set(EP_libodb_PATCH_COMMAND "${CMAKE_COMMAND}" "-E" "make_directory" "${LINPHONE_BUILDER_WORK_DIR}/rpmbuild/SOURCES/")
......
############################################################################
# odb.cmake
# libodbmysql.cmake
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
......
......@@ -112,6 +112,8 @@ endif()
# needed *before* the include
set(EP_ortp_FORCE_AUTOTOOLS "yes")
# Include builders
include(builders/CMakeLists.txt)
......@@ -159,9 +161,6 @@ if(PLATFORM STREQUAL "Debian")
list(APPEND EP_flexisip_CONFIGURE_OPTIONS "--with-boost-libdir=/usr/${CMAKE_INSTALL_LIBDIR}")
set(EP_flexisip_RPMBUILD_OPTIONS "${EP_flexisip_RPMBUILD_OPTIONS} --define 'boostlibdir /usr/${CMAKE_INSTALL_LIBDIR}'")
# debian doesn't package odb/libodb/libodb-mysql. We have to do it manually
set(EP_flexisip_DEPENDENCIES ${EP_flexisip_DEPENDENCIES} EP_libodbmysl )
CHECK_PROGRAM(alien)
CHECK_PROGRAM(fakeroot)
endif()
......
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