Commit 0ea63d2e authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Build bctoolbox RPM as the other ones.

parent 5bbb321a
......@@ -44,7 +44,3 @@ lcb_cmake_options(
"-DENABLE_TESTS_COMPONENT=${ENABLE_UNIT_TESTS}"
)
if(EP_bctoolbox_BUILD_METHOD STREQUAL "rpm")
set(EP_bctoolbox_CONFIGURE_COMMAND_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/builders/bctoolbox/configure.sh.rpm.cmake)
set(EP_bctoolbox_BUILD_COMMAND_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/builders/bctoolbox/build.sh.rpm.cmake)
endif()
#!/bin/sh
export RPM_TOPDIR="@LINPHONE_BUILDER_WORK_DIR@/rpmbuild"
cd @ep_build@
# create rpmbuild workdir if needed
for dir in BUILDROOT RPMS SOURCES SPECS SRPMS; do
mkdir -p "$RPM_TOPDIR/$dir"
done
if [ ! -f @ep_config_h_file@ ]
then
cmake @ep_source@ -DCMAKE_INSTALL_PREFIX=@RPM_INSTALL_PREFIX@ -DCPACK_PACKAGE_NAME=bc-bctoolbox -DCPACK_GENERATOR=RPM \
`echo "@EP_bctoolbox_CMAKE_OPTIONS@" | sed 's/;/ /g'`
make package
cp -v *.rpm "$RPM_TOPDIR/RPMS/"
fi
......@@ -75,6 +75,10 @@ endif()
lcb_builder_build_method(bctoolbox "rpm")
lcb_builder_cmake_options(bctoolbox "-DENABLE_TESTS=NO")
lcb_builder_cmake_options(bctoolbox "-DENABLE_TESTS_COMPONENT=NO")
lcb_builder_rpmbuild_options(bctoolbox
"--with bc"
"--without tests_component"
)
# Include builders
include(builders/CMakeLists.txt)
......
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