Commit be9c9d77 authored by Ghislain MARY's avatar Ghislain MARY Committed by Ronan

Clean SOCI builder.

parent 3204b2b0
......@@ -29,14 +29,6 @@ endif()
lcb_cmake_options(
"-DSOCI_TESTS=NO"
"-DSOCI_EMPTY=NO"
"-DWITH_DB2=NO"
"-DWITH_FIREBIRD=NO"
"-DWITH_MYSQL=YES"
"-DWITH_ODBC=NO"
"-DWITH_ORACLE=NO"
"-DWITH_POSTGRESQL=NO"
"-DWITH_SQLITE3=YES"
)
lcb_package_source(YES)
......
......@@ -87,29 +87,16 @@ endif()
# Include builders
include(builders/CMakeLists.txt)
if(LSB_RELEASE_DISTRO STREQUAL "Debian" AND LSB_RELEASE_DISTRO_VERSION STREQUAL "wheezy")
lcb_builder_cmake_options(soci "-DWITH_POSTGRESQL=OFF")
lcb_builder_rpmbuild_options(soci
"--with bc"
"--with sqlite3"
"--with mysql"
"--without postgresql"
)
else()
lcb_builder_cmake_options(soci "-DWITH_POSTGRESQL=ON")
lcb_builder_rpmbuild_options(soci
"--with bc"
"--with sqlite3"
"--with mysql"
"--with postgresql"
)
endif()
lcb_builder_cmake_options(linphone
"-DENABLE_CONSOLE_UI=NO"
"-DENABLE_DAEMON=NO"
)
lcb_builder_cmake_options(soci
"-DWITH_MYSQL=ON"
"-DWITH_POSTGRESQL=ON"
)
# prepare the RPMBUILD options that we need to pass
set(LINPHONE_BUILDER_RPMBUILD_GLOBAL_OPTIONS "--define '_mandir %{_prefix}'")
if(PLATFORM STREQUAL "Debian")
......
......@@ -93,3 +93,6 @@ if(ENABLE_CONFERENCE)
"-DENABLE_UNIT_TESTS=${ENABLE_UNIT_TESTS}"
)
endif()
# soci
lcb_builder_cmake_options(soci "-DWITH_MYSQL=ON")
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